Configure the Generate PDF operation
After creating the Print template entity and the Print entity generation action, we configure the Generate PDF operation.
In this example, we add the operation to the Entity operations component of the Content detail page:
On the menu bar, click Manage , and then select Pages.
Go to the Content detail page and edit the Entity operations component. In this example, we enable custom settings by turning the switch to the right.
On the Entity operations component, click More options and select Edit .
On the EntityOperations component page, click Add operation and select Generate PDF.
In the Generate PDF section, link the Generate PDF operation with the CMPRecipePrint action created in the previous section.
Turn the Disable button after click switch to active.
If you want the downloads to be of higher quality, turn the High-resolution switch to active. In this example, we do select the High-resolution option.
For the download in high-resolution option to work, the
asset.json file in the print template package should also include:
Can we improve this article ? Provide feedback