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

Cannot remove the margins in API V1

Alto wrote on 2020-01-27:
Hi, we are trying to create a PDF without margins with no luck. There always appears a margin.

We have tried with:
client.setPageMargins( "0mm", "0mm", "0mm", "0mm" ); //we have tried different units here: in,px and even no units

Also tried:
client.setNoMargins( true );

And also tried:
client.setPageWidth( "960px" ); //as our <body> width is 960px

But always the same result with margins (see the white margins in attached image)

Please can you provide us any help here?
support wrote on 2020-01-27:
Hi,

Please send us the HTML code you are trying to convert to support@pdfcrowd.com and we will look into it.