TransWikia.com

Zoom / Scale down the entire visualforce page when rendered as pdf

Salesforce Asked by KamilK on November 17, 2021

I’m trying to scale down the entire pdf generated from VF page using rederAs=”pdf”.

Using transform: scale(0.9) works only when page is not rendered as PDF, when rendered as PDF this attribute seems to be ignored. Adding !important does not help.

zoom: 0.9 does not work either…

Does anyone have any suggestions ?

Thanks,
Kamil

One Answer

I think I just got the bottom of it and possibly there is no way to do this...

The reason for ignoring transform and zoom css properties is that Salesforce most probably uses Flying Saucer pdf renderer, which only support CSS 2.1, while both properties were introduced in CSS 3.0.

Answered by KamilK on November 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP