PDF Printer Extension
Outsystems Forge provides a large set of reusable assets that help accelerate application delivery. These assets are made available by our community uses and by Outsystems.
When searching PrintPdfFileFromPrinter File in Outsystems Forge.
The PDF Printer Extension allows developers to send PDF files to a printer directly from their application. This component supports configuring printers on a local network (LAN) and includes error handling for scenarios such as printer offline status or lack of paper.
Features
Print PDF files directly from the specified file path.
Support for printers connected via LAN.
Detailed feedback through output messages (success or error information).
Input Parameters
Output
OutputMessage(Text) - Success or error message describing the status of the print operation (e.g., "Printer offline" or "Paper not found").
How It Works
PdfFile: Provide the name of the file (e.g., document.pdf).
ServerName: Enter the IP/path of the printer server if on a LAN.
PrinterName: Enter the printer’s name (e.g., OfficePrinter_1).
Path: Specify the complete file path where the PDF is stored (e.g., C:\Files\document.pdf).
If successful, you will receive a confirmation message.
If any issue arises (e.g., printer offline, paper not available), a corresponding error message is returned.
Diagram: Example Workflow
Add a simple workflow diagram: Include a diagram showing the steps involved:
Step 1: Configure inputs (PDF details, printer info).
Step 2: Send to printer.
Step 3: Success/Error feedback.
Examples
Input:
PdfFile: invoice.pdf
ServerName: 192.168.1.100
PrinterName: HP_LaserJet_Pro
Path: C:\Documents\PrintQueue\invoice.pdf
OutputMessage:
"File printed successfully."
Screenshot
Add a screenshot of the success message displayed in the application interface (e.g., a success toast or message box).
Example 2: Printer Offline
PdfFile: report.pdf
ServerName: 192.168.1.105
PrinterName: Canon_Office
Path: D:\Work\Reports\report.pdf
"Error: Printer is offline."
Add a screenshot of the error message displayed to the user, showing how the system handles failures.
Dependencies
The printer must be accessible and correctly configured in the network.
Ensure the file path is valid and the file exists at the specified location.
Use Cases
Automating report printing in an office environment.
Generating and printing invoices in an ERP system.
Printing labels or certificates directly from the application.
Support
For any issues or queries regarding this component, feel free to contact the development team via the Forge page.