643 matches
7 actions
PdfBroker.io
7 actions
- Basic method to verify api is up and runningGETv1.0.0
- Concatenate multiple pdf files into single pdf file..POSTv1.0.0
- Create pdf-file from complete XSL-FO document.POSTv1.0.0
- Create pdf-file from transforming xml document with Xsl-Fo transform document.POSTv1.0.0
- Generate an image of to provided pdf filePOSTv1.0.0
- Generate pdf file from url using the excellent tool wkhtmltopdf.POSTv1.0.0
- Write text on a page in a pdf document.POSTv1.0.0
Other/PdfBroker.io
Write text on a page in a pdf document.
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
{
"type": "object",
"description": "The request dto object to write a string on pdf page",
"properties": {
"FontFileBase64String": {
"type": "string",
"description": "System fonts are available, but you can provide your own font file to be embedded in the pdf document. Send font as Base64 encoded string."
},
"Options": {
"type": "object",
"description": "Options for writing string in pdf page;",
"properties": {
"Font": {
"type": "object",
"description": "The Font dto object",
"properties": {
"Name": {
"type": "string",
"description": "Gets the name of the font"
},
"Size": {
"type": "number",
"format": "float",
"description": "Gets the size of the font"
},
"Style": {
"type": "integer",
"format": "int32",
"description": "Font style enum representing Regular, Bold, Italic, BoldItalic",
"enum": [
0,
1,
2,
3
]
}
},
"additionalProperties": false
},
"PageNumber": {
"type": "integer",
"format": "int32",
"description": "Get or set which page in the pdf to write on, default is first page."
},
"Text": {
"type": "string",
"description": "The text to write in the pdf"
},
"TextColor": {
"type": "object",
"description": "Set color",
"properties": {
"B": {
"type": "integer",
"format": "int32",
"description": "Get or sets B value of RGB color"
},
"G": {
"type": "integer",
"format": "int32",
"description": "Get or sets G value of RGB color"
},
"R": {
"type": "integer",
"format": "int32",
"description": "Get or sets R value of RGB color"
}
},
"additionalProperties": false
},
"XOrigin": {
"type": "integer",
"format": "int32",
"enum": [
0,
1,
2
]
},
"XPosition": {
"type": "number",
"format": "float",
"description": "Get or set the X axis position on where to write string, in reference to XOrigin."
},
"YOrigin": {
"type": "integer",
"format": "int32",
"enum": [
0,
1,
2
]
},
"YPosition": {
"type": "number",
"format": "float",
"description": "Get or set the Y axis position on where to write string, in reference to YOrigin."
}
},
"additionalProperties": false
},
"PdfFileBase64String": {
"type": "string",
"description": "The pdf file to add text to, as Base64 encoded string."
}
},
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
{
"type": "object",
"description": "When setting the Accept-header in the request to \"application/json\" the content of the pdf file will be return as Base64 encoded string. Note that converting data to Base64 encoded strings increases the response size with approximately 33%, if you can accept the a binary format it's better to use Accept-header \"application/pdf\".",
"properties": {
"ErrorMessage": {
"type": "string",
"description": "If any error occurs the message will be displayed in here"
},
"PdfFileBase64String": {
"type": "string",
"description": "The Base64 encoded string that is the pdf file."
}
},
"additionalProperties": false
}