Override PDF export layout (letter,legal etc.)

Is this possible to override the height, width, and margin part of PDF export layout (letter, legal etc.)? I want to enhance the size of these layout for my templates and dashboards.

Yes you can.

If you use the built in export from the ‘share’ options, you can set it in the dropdowns. If you choose custom, you can set the exact size.
image

If you are exporting via script, you can set this too - see here for the parameters and here for an example.

@david.glickman - Dundas is hiring. :smiley:

https://www.dundas.com/about/careers/

1 Like

But employees aren’t allowed to get points in the cube :smile:

That’s right. You guys get cool prizes, i get glitter all over my desk.

Thanks David for your kind help.

But I don’t want to export using any button. I want to achieve the same using share option and user will also able to select any export layout (letter,legal,A3 etc.) but size will be decided by the script, not that which is provided by dundas. I am a newbie in dundas that’s why struggling with this issue. Please don’t mind. Need your valuable suggestion on this.

Hi Anupam

Not sure what you’re trying to achieve. Using the share option the user can choose any size in the dropdown. If they want to choose a different size, the user can choose ‘custom’ and then set their size in cm/inches.
Do you mean that you want to change what the size for ‘letter’ is for example? I don’t know if that is possible.

Hello @anupam.mishra!
I think I understand what you want. One solution can be to build a “filter” (a parameter for layout) which will be selected by the user and the size will be another variable but not available for the user. You can set the size variable depending on your requirements.
Here is an example: https://www.dundas.com/support/developer/script-library/Export/Create-an-Export-for-a-Report