printpdffilefromprinter
Web icon

PrintPdfFileFromPrinter

Stable version 2.0.0 (Compatible with OutSystems 11)
Other versions available for 10 and Older
Uploaded
 on 21 December 2018
 by 
5.0
 (6 ratings)
printpdffilefromprinter

PrintPdfFileFromPrinter

Documentation
2.0.0

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.


Overview

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

 

  1. PdfFile(Text) - Name of the PDF file to be printed.
  2. ServerName(Text) - IP address or path of the printer server, if connected in a LAN environment.
  3. PrinterName(Text) - Name of the printer to which the file should be sent.
  4. Path(Text) - File path or location of the PDF file on the system


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

  1. Specify the required input parameters:

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).

  1. Call the extension action with the parameters configured.
  2. Review the OutputMessage to verify the operation:

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

Example 1: Successful Print

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

Input:

PdfFile: report.pdf

ServerName: 192.168.1.105

PrinterName: Canon_Office

Path: D:\Work\Reports\report.pdf

OutputMessage:

"Error: Printer is offline."

Screenshot

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.