Customize paper size of PDF(ultimate PDF)
Question
Application Type
Reactive

Hi All,

I want to customize paper size for PDF (using ultimate PDF ), currently its set to a4 but I need it to be 210mm * 280mm.

How can I achieve this?


Thanks 

Shivangi

Solution

Hi,

Check the public actions on UltimatePDF.
There's and "CustomPaperSize" action that does what you need.

Since it's a function you can call it directly on the PrintToPDF_Advanced


Cheers!

Thanks Luis!

It worked :)

I believe you can target the output result body and style it using CSS

for example 

 @media print{ body{ width:210mm; height: 280mm; } }

Hi Nabil,

Tried this way , its not working ..



Solution

Hi,

Check the public actions on UltimatePDF.
There's and "CustomPaperSize" action that does what you need.

Since it's a function you can call it directly on the PrintToPDF_Advanced


Cheers!

Thanks Luis!

It worked :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.