advancedhtmltopdf-itext-connector
Service icon

AdvancedHTMLToPDF_iText Connector

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 15 May
 by 
0.0
 (0 ratings)
advancedhtmltopdf-itext-connector

AdvancedHTMLToPDF_iText Connector

Documentation
1.0.0

Name of the Component: AdvancedHTML2PDF_iText 

Overview: 

The HTML to PDF Extension for OutSystems offers a simple yet powerful solution to convert HTML content into PDF documents using the robust iText library. This extension is ideal for dynamically generating PDF reports, invoices, and various other documents directly within OutSystems applications, providing full control over formatting and layout through HTML and CSS. 

The iText library is optimized for high-performance server-side applications, supporting asynchronous operations to ensure efficient processing. It can generate PDF documents exceeding 250 pages within seconds. In our demo application, we utilized dynamic table rendering to streamline content creation, significantly boosting both scalability and performance. 

 

Key Features: 

  • Converts HTML content with inline CSS into high-quality PDF documents using the powerful iText library. 

  • Enables seamless generation of PDFs from dynamic, data-driven HTML content. 

  • Supports custom styling, embedded images, and standard HTML elements for rich, flexible formatting. 

  • Easily integrates into OutSystems applications as a reusable, server-side action. 

Extension Info: 

This extension exposes a single server action named AdvancedHTML2PDF_iText, which can be seamlessly consumed by any OutSystems application. The below screenshot illustrates how the action looks like, 

                                               Picture 

Note: This HTML template includes a standardized header and footer, while the table data can be dynamically injected as needed. Our demo application showcases a working example of this functionality. 

Sample Screenshot 

Picture 

Note: Generating HTML dynamically helps optimize performance by reducing page rendering time. 

Performance Observed: 

We tested the component with 5,000 records rendered in a table within the PDF report, generating approximately 250 pages in just 5 to 6 seconds demonstrating its high scalability and performance.  

iText supports CSS and HTML, enabling you to apply custom styles for generating well-formatted, visually rich PDF documents directly from HTML content using our component. 

Troubleshooting: 

Invalid HTML: Ensure the HTML content is well-structured and properly formatted. Malformed or incomplete HTML can lead to conversion failures. 

Error Handling: Errors are managed at the code level, allowing us to identify and resolve issues effectively during runtime.