Insert PDF Content
- 22 Aug 2023
- 1 Minute to read
- PDF
Insert PDF Content
- Updated on 22 Aug 2023
- 1 Minute to read
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
InsertPdfDocument
Inserts the content of a PDF document (generated or provided) into a source PDF document. Additional settings allow for the correct positioning of the inserted content and managing page number continuity, or its formatting.
Exceptions are thrown for configuration settings that fail validation, or any other error condition.
Configuration:
Parameter | Data Type | Description |
---|---|---|
MergeContent [Required] | Byte[] | The PDF content to insert into SourceDocument. |
Page | Integer | Sets the page number to begin inserting MergeContent. |
Placeholder | String | String placeholder in the PDF where content insertion should take place. |
ProcessingMode | String | Two options are available:
|
UsePlaceholderPositionX | Boolean | Sets whether to use the X position in points of the specified Placeholder when inserting MergeContent. |
UsePlaceholderPositionY | Boolean | Sets whether to use the Y position in points of the specified Placeholder when inserting MergeContent. |
XOffset | Integer | Set an X offset in points for MergeContent being inserted. |
YOffset | Integer | Set an Y offset in points for MergeContent being inserted. |
FillColor | String | Sets the fill color in hexadecimal for the background of MergeContent. |
FillPositionHeight | Integer | Sets the height of the fill area in points. |
FillPositionWidth | Integer | Sets the width of the fill area in points. |
FillPositionX | Integer | Sets the X position in points of the fill-area. |
FillPositionY | Integer | Sets the Y position in points of the fill-area. |
ShouldDrawRectangleArea | Boolean | Sets whether to draw the fill-area over old page numbers on every page.![]() Fill-area blocking is useful to avoid scanning for page number patterns on each page. |
DisplayName | String | Display name of the workflow activity. |
Result [Out] | Byte[] | The resulting PDF document after MergeContent has been inserted into SourceDocument. |
PageNumberFixedPositionX | Integer | Sets the X position of page numbering in points. |
PageNumberFixedPositionXOffset | Integer | Sets the offset of the X position of page numbering in points. |
PageNumberFixedPositionY | Integer | Sets the Y position of page numbering in points. |
PageNumberFixedPositionYOffset | Integer | Sets the offset of the Y position of page numbering in points. |
PageNumberFontSize | Integer | Specifies the font size of page numbering text. |
PageNumberFormat | String | Defines the format of page number text using the tokens {PageNumber} and {TotalPages}.![]() E.g.: "Page {PageNumber} of {TotalPages}" translates to "Page 1 of 10" where the current page number =1 and the total pages in the document = 10. |
PageNumberTextPosition | String | Sets the position of the page number text. Three options are available:
|
ShouldInsertPageNumbers | Boolean | Set the inclusion of page numbers or not. |
ShouldPerformRedactionOnPageNumberPattern | Boolean | Specifies whether to clear the previous page numbering text based on the configured page text format. |
SourceDocument [Required] | Byte[] | The source PDF document to insert MergeContent into where Placeholder or PageNumber occurs. |
Was this article helpful?