Is it possible to customize the pdf export?

Answered
Tiago asked on January 26, 2024

Hello,
Is it possible to customize the pdf export? I would like to add a title in the header and in the footer i would like to add a logo and the date/time of the export.
Kind regards,
Tiago

3 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster January 29, 2024

Hello, Tiago!

Thank you for your question.

We recommend customizing the PDF export with the exportTo() API call. For the pdf export type, this method allows adding string or HTML content with the footer and header parameters. The date of export can be added using the ##CURRENT-DATE## token, and the logo can be added as the <img> tag with the Base64 image in the src attribute. The custom export function can be inserted into the toolbar using the beforetoolbarcreated event handler
You are welcome to check the JSFiddle example with PDF export customized accordingly to your request: https://jsfiddle.net/flexmonster/2841b9qx/

Please let us know if the suggested approach is helpful.

Best Regards,
Maskym 

Public
Tiago February 1, 2024

Hello Maksym,
It worked like a charm, thank you!
Kind regards,
Tiago

Public
Maksym Diachenko Maksym Diachenko Flexmonster February 2, 2024

Hello, Tiago!

Thank you for your feedback.
We are glad to hear that the suggested solution worked for you.
Feel free to contact us if any other questions arise.

Best Regards,
Maksym

Please login or Register to Submit Answer