pdf-tools-utils
Service icon

PDF Tools Utils

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded
 on 8 Jul (21 hours ago)
 by 
5.0
 (3 ratings)
pdf-tools-utils

PDF Tools Utils

Documentation
1.0.1

This component provides advanced server-side PDF manipulation for OutSystems 11 Reactive Apps, powered by the PDFSharp and MigraDoc libraries. All operations work with binary data and run within the OutSystems Integration Studio context.


Actions Overview

1. RotatePDF

Rotates specific pages in a PDF.

ParameterTypeDescription
PDFBinary         Binary      Input PDF
PageNumberListTextPages to rotate
AngleIntegerDegrees (90, 180, 270)
ResultPDFBinaryRotated output PDF

2. EncryptPDFWithPassword

Encrypts a PDF with a user password.

ParameterTypeDescription
PDFBinary    Binary    PDF to protect
PasswordTextUser password
ResultPDFBinaryProtected PDF

3. MergePDFs

Combines multiple PDFs into a single output.

ParameterTypeDescription
Doc_Binaries    List of Binary Records    PDFs to merge
PDF_OutputBinaryFinal merged PDF

4. SplitPDF

Splits a PDF into individual pages.

ParameterTypeDescription
PDFBinary    Binary     Input PDF
PagesListEach page as a binary record

5. RemovePageFromPDF

Removes a specific page by index.

ParameterTypeDescription
PDFBinary     Binary     Input PDF
PageNumberInteger        Page to remove (1-based)
ResultPDFBinaryOutput without that page

6. AppendPageToPDF

Appends a new page (binary PDF) to an existing file.

ParameterTypeDescription
PDFBinaryBinary    Main PDF
PageBinaryPage to append
ResultPDF   BinaryFinal PDF

7. GetNumberOfPagesFromPDF

Returns the number of pages in a given PDF.

ParameterTypeDescription
PDFBinary   BinaryPDF
PageCountInteger     Output count

8. FormFields_Get

Extracts field names, values, and types from a fillable PDF.

Output Field Structure: FieldsRecord
Name – Field name
Value – Current field value
Type – TXT / CHK / RAD / LBX

9. FormFields_SetValues

Fills field values into a fillable PDF.

ParameterTypeDescription
PDFBinaryBinary   Input PDF
FieldListListList of fields with name/value
IsOutputReadOnly   Boolean   Lock form after filling
ResultPDFBinaryOutput PDF

10. PDFDownloadURL

Downloads a PDF from a public URL.

ParameterTypeDescription
PDFURLText           Full URL of the PDF
PDFBinary

11. AddImageToPDFs

Adds an image (e.g., signature, logo, watermark) to specified pages with custom size, position, and opacity.

ParameterTypeDescription
PDFBinaryBinary    Input PDF
ImageBinaryBinaryImage to embed
PageNumberList      TextComma-separated pages (or blank = all)       
XPositionDecimal     X coordinate
YPositionDecimalY coordinate
ImageWidthDecimalWidth of image
ImageHeightDecimalHeight of image
OpacityInteger0–100
ResultPDFBinaryPDF with image applied

12. PDFInspector

Extracts metadata such as title, author, PDF version, number of pages, encryption status, etc.

Output Structure: InspectorInfo

  • Title, Author, Subject, Keywords

  • Creator, Producer

  • PDFVersion

  • PageCount

  • IsEncrypted

  • FileSizeInBytes


13. ReorderPDFPages

Reorders pages in a PDF based on a custom comma-separated list.

ParameterTypeDescription
PDFBinaryBinary     Input PDF
PageOrderList      Texte.g., "3,1,2"
ResultPDFBinaryOutput with reordered pages

14. ExtractImagesFromPDF

Extracts embedded image content from a PDF and returns them by page.

Output Structure: ExtractedImageRecord

  • Image (Binary)

  • Page (Integer)

   
Binary   Downloaded PDF content


1.0.0

This component provides advanced server-side PDF manipulation for OutSystems 11 Reactive Apps, powered by the PDFSharp and MigraDoc libraries. All operations work with binary data and run within the OutSystems Integration Studio context.


Actions Overview

1. RotatePDF

Rotates specific pages in a PDF.

ParameterTypeDescription
PDFBinary         Binary      Input PDF
PageNumberListTextPages to rotate
AngleIntegerDegrees (90, 180, 270)
ResultPDFBinaryRotated output PDF

2. EncryptPDFWithPassword

Encrypts a PDF with a user password.

ParameterTypeDescription
PDFBinary    Binary    PDF to protect
PasswordTextUser password
ResultPDFBinaryProtected PDF

3. MergePDFs

Combines multiple PDFs into a single output.

ParameterTypeDescription
Doc_Binaries    List of Binary Records    PDFs to merge
PDF_OutputBinaryFinal merged PDF

4. SplitPDF

Splits a PDF into individual pages.

ParameterTypeDescription
PDFBinary    Binary     Input PDF
PagesListEach page as a binary record

5. RemovePageFromPDF

Removes a specific page by index.

ParameterTypeDescription
PDFBinary     Binary     Input PDF
PageNumberInteger        Page to remove (1-based)
ResultPDFBinaryOutput without that page

6. AppendPageToPDF

Appends a new page (binary PDF) to an existing file.

ParameterTypeDescription
PDFBinaryBinary    Main PDF
PageBinaryPage to append
ResultPDF   BinaryFinal PDF

7. GetNumberOfPagesFromPDF

Returns the number of pages in a given PDF.

ParameterTypeDescription
PDFBinary   BinaryPDF
PageCountInteger     Output count

8. FormFields_Get

Extracts field names, values, and types from a fillable PDF.

Output Field Structure: FieldsRecord
Name – Field name
Value – Current field value
Type – TXT / CHK / RAD / LBX

9. FormFields_SetValues

Fills field values into a fillable PDF.

ParameterTypeDescription
PDFBinaryBinary   Input PDF
FieldListListList of fields with name/value
IsOutputReadOnly   Boolean   Lock form after filling
ResultPDFBinaryOutput PDF

10. PDFDownloadURL

Downloads a PDF from a public URL.

ParameterTypeDescription
PDFURLText           Full URL of the PDF
PDFBinary   Binary   Downloaded PDF content