This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Set PDF Weight and Height

zohaib wrote on 2017-02-05:

I am trying to set PDF Weight and Height using pdfcrowd API.
After creating PDF when i see newly created PDF file size. that,s not which I set using following code
$client->convertHtml($html, $out_file);

PDF file show page size: 8.3in * 11.70in
Html div container weight also less than 8.5in

Please held me to fix this issue.
support wrote on 2017-02-05:

You need to call setPageWidth and setPageHeight before convertHtml.