PDF Suite
Content Type: Module
Categories: Utility
Overview
PDF Suite - Mendix Module
The Mendix PDF Suite Module offers powerful Java actions for manipulating PDF documents within your Mendix applications. It includes four essential Java actions, each with unique capabilities to enhance and customize PDF files.
Java Actions
-
HighlightPDF
- Description: Searches for specific text within a PDF and highlights it. Optionally, you can add a tooltip for additional context.
- Parameters:
- searchText: Text to search and highlight within the PDF.
- inputDOC: PDF document to search within.
- includeTooltip: Boolean to decide if a tooltip should be included.
- tooltipText: Tooltip text to display on hover over the highlighted text.
- Use Case: Ideal for emphasizing key sections of a PDF and providing extra information via tooltips.
-
LinkAnnotationPDF
- Description: Searches for specific text within a PDF and creates a clickable link annotation. Clicking the linked text opens the provided URL.
- Parameters:
- searchText: Text to search and link within the PDF.
- inputDOC: PDF document to search within.
- linkURL: URL to open when the linked text is clicked.
- Use Case: Useful for adding references or external resources directly in a PDF, enhancing document interactivity.
-
TextToPDF
- Description: Converts a given text into a PDF document, sets a title, and saves the content into the specified PDF document.
- Parameters:
- inputText: Text to convert into a PDF document.
- pdfTitle: Title to set for the generated PDF.
- inputDOC: FileDocument object where the generated PDF will be stored.
- Use Case: Ideal for dynamically generating PDF documents from text input, such as reports or letters.
-
GetPDF_Content
- Description: Retrieves the content of a PDF document as a string.
- Parameters:
- inputDOC: PDF File to extract the content from.
- Use Case: Useful for extracting and processing the text from a PDF document.
Documentation
Dependencies
Note:-This modules requires installation of community commons module as PDFbox library which is required for these java action are there in community commons .