Skip to content

Commit 8ee723b

Browse files
nabe-hiromichilindarecfut
authored andcommitted
pdfcross update connector (add image api) (microsoft#2079)
* add image connector * fix readme operations name
1 parent 8d1dfeb commit 8ee723b

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

certified-connectors/PDFcross/apiDefinition.swagger.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,79 @@
195195
}
196196
}
197197
}
198+
},
199+
"/image": {
200+
"post": {
201+
"tags": [
202+
"image"
203+
],
204+
"summary": "Add image file to PDF",
205+
"description": "You can add image to PDF. For example adding your company logo to the PDF at all pages. ",
206+
"operationId": "addImage",
207+
"consumes": [
208+
"application/json"
209+
],
210+
"produces": [
211+
"application/pdf"
212+
],
213+
"parameters": [
214+
{
215+
"in": "body",
216+
"name": "file",
217+
"description": "The content of the PDF document and image. For example adding company logo to all pages.",
218+
"required": true,
219+
"schema": {
220+
"type": "object",
221+
"required": [
222+
"fileContent",
223+
"imageContent",
224+
"positionX",
225+
"positionY",
226+
"addType"
227+
],
228+
"properties": {
229+
"fileContent": {
230+
"type": "string",
231+
"format": "byte"
232+
},
233+
"imageContent": {
234+
"type": "string",
235+
"format": "byte"
236+
},
237+
"positionX": {
238+
"type": "number",
239+
"format": "float"
240+
},
241+
"positionY": {
242+
"type": "number",
243+
"format": "float"
244+
},
245+
"addType": {
246+
"type": "string",
247+
"format": "enum - all pages - from to last page - from to pages"
248+
},
249+
"fromPage": {
250+
"type": "number",
251+
"format": "int32"
252+
},
253+
"toPage": {
254+
"type": "number",
255+
"format": "int32"
256+
}
257+
}
258+
}
259+
}
260+
],
261+
"responses": {
262+
"200": {
263+
"description": "PDF added image",
264+
"schema": {
265+
"type": "string",
266+
"format": "binary"
267+
}
268+
}
269+
}
270+
}
198271
}
199272
},
200273
"securityDefinitions": {

certified-connectors/PDFcross/readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Protect your PDF with a password. [Documentation](https://pdfcross.com/en/docs/p
2222
### Watermark
2323
Watermark the PDF. [Documentation](https://pdfcross.com/en/docs/power-automate/add-watermark)
2424

25+
### Image
26+
Add image to the PDF. [Documentation](https://pdfcross.com/en/docs/power-automate/add-image)
27+
2528
## Obtaining Credentials
2629
You can get your own API key from [PDFcross dashboard](https://dashboard.pdfcross.com/).
2730

0 commit comments

Comments
 (0)