System Actions
/
Device actions

Component To PDF

Component To PDF

The system used to convert to PDF is the action. This action also converts dynamic content, graphics or data in a specific element to PDF format.

To add the ComponentToPDF system action, select the element to add the action to. Click +Add Action under the Properties panel. (A)

Click OnClick--> Device --> ComponentToPDF and add the ComponentToPDF action. (A)

The added Component To PDF action comes with Component to Save as PDF, Quality and Filename parameters.

Component to Save as PDF:

This parameter allows you to select the element to be converted to PDF. The elements on the screen will be listed under this parameter with the related element name.

Quality:

This parameter specifies the quality level to be used during PDF conversion.

There are options such as Low, Normal, Medium, High, Extreme in the quality levels drop-down menu.

  • Low:

Applies low quality compression.

Can lead to smaller file sizes, but may reduce visual quality.

  • Normal:

Applies standard quality compression.

It provides stability, a reasonable file size and acceptable visual quality.

It is the preferred overall quality option in most cases.

  • Medium:

Applies medium quality and compression.

It may offer a slightly better visual quality than normal, but the file size may be slightly larger.

  • High:

Applies high quality compression.

Provides better visual quality, but the file size usually increases.

Particularly suitable for high-resolution images or when print quality is required.

  • Extreme:

Applies the highest quality compression. It aims to maximize visual quality, but the file size will usually be larger. Particularly suitable for special cases that require print quality and high resolution.

Filename:

This parameter allows you to define, either statically or dynamically, the file name where the generated PDF file will be saved. It is usually expressed as a text string. For example, it can take a value such as report.pdf. This parameter can be user or application specific or dynamically generated.

Orientation:

This parameter allows the output resulting from the action to be generated either portrait or landscape.

Used to select the parameter input method of the Symbol Picker (B) action in the added action.

You can perform various operations for the added actions via Context Menu (C).

You can easily copy the action with the Copy option. In this way, you will gain speed where action repetition is required.

With the Add Confirmation option, you can add a confirmation message for the action to work,

With Add Condition, you can specify that the action you add works in line with a certain condition,

You can easily delete the action added with the Remove option.

Example Usage of Component To PDF Action

In an example scenario, let's look at the flow that will allow the content of the elements in the Row element to be saved as PDF when a button is clicked.

To do this, add a button to the screen with the element you want to convert to PDF.

With the button selected, add the action by clicking Onclick→Device→ComponenttoPDF.

The added action, Component to Save as Pdf, comes with Quality and Filename parameters.

Select the Row element to be converted to PDF from the drop-down menu in the Component to save as PDF parameter.

To determine the image quality of the texts in the Row element, select Extreme using the Quality parameter. In the Filename parameter, name the file name as Privacy_policy.pdf.

Preview the application via the RUN button.

Click on the relevant button on the screen.

The texts in the Row element will be created and downloaded as PDF.

No items found.

İlişkili diğer içerikler

No items found.

Sözlük

No items found.

Alt Başlıklar