User Manual

Print PDF

14/7/25
Print PDF

Kuika's Print PDF action allows you to print application documents in PDF format. Reports, invoices or other documents in your application — whether they are documents stored in the database or content created in the Report Designer module — can be prepared in PDF format and printed directly with a single click. This action allows users to quickly and conveniently print documents.

Technical Features

  • PDF Printing: Enables printing of PDF documents in the application.
  • Base64 Data Support: The Base64 format data of the PDF file to be printed can be used.
  • Web and Mobile Application Support: Works seamlessly in web and mobile applications.

Print PDF Action Application Steps

  1. Go to the UI Design module and select the screen or button that will start the printing process.
  1. Select the relevant element and add the Device > Print PDF action by selecting the trigger event (Initial Actions, OnClick, OnBlur, etc.) from the + ADD ACTION menu.

Configure Action Parameters

  • Base64: Enter the Base64-encoded content of the PDF file to be printed.

You can get this data from the Datasource or from the result of the ‘Get Report Base64’ action created in Report Designer.

  • This parameter can be defined as fixed or dynamically using the Symbol Picker.

Usage Scenario: User Printing the PDF Report

In an invoice application, when the user clicks the ‘Print Invoice’ button, the PDF invoice generated by the system is sent to the Print PDF action in Base64 format, and the user initiates the printing process.

Adding a Print Action

  • Go to the UI Design module and add a Button element from the Elements panel on the left.
  • Enter ‘Print PDF’ in the Label section of the button.
  • Select the button and add the following action from the + ADD ACTION menu:
    • OnClick → Get Component Base64
    • Capture the PDF data in Base64 format returned from the PDF creation action.
  • Then, in the same OnClick, using this Base64 data:
    • Add the Device → Print PDF action.
    • Assign the Base64 code from the PDF creation action to the Base64 parameter.
  • Click the SAVE button to complete the process.

Print PDF Action Advanced Customisations

  • Dynamic PDF Content: You can dynamically generate Base64 data based on user selections or report results.
  • Conditional Printing: For example, the print action can be triggered when a specific condition is met.

Technical Risks

  • Invalid Base64 Data: Incorrect or incomplete Base64 content can cause printing errors.
  • Performance: Printing large PDF files may cause delays on the device.
  • Printer Compatibility: Printer settings and connections must be correct on the device.

The Print PDF action is a powerful tool in the Kuika platform that allows users to quickly print PDF documents, simplifying document management processes.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar