You need to sign in to do that
Don't have an account?
Austin JRB
VisualForce page that renderes as a PDF in A4 format
How do you control the format for a VisualForce page that renderes as a PDF in A4 format
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
use the @page element in CSS:
I've been playing with this, and thought I should share a gotcha for anyone else using A4 size PDFs.
Some elements, specifically it seems like anything in the Salesforce UI style, like an apex pageblocktable, have a tendency to break the @page directive.
I've taken to building an HTML page with direct references to merge fields, rather than use apex components, to preserve the page size.
The only time this has caused significant pain is when I had to use an apex:repeat component in an HTML table, and write a list controller just to avoid using the apex table components.
So if an A4 PDF keeps coming out in Letter size, there's something to check.
Cheers,
Nick