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

setPageMargins(0, 0, 0, 0) not working

phpbits wrote on 2014-09-11:

Does anyone of you have an idea why setPageMargins(0, 0, 0, 0) is not working? I set it to zero but the content is adding margin at the bottom. Please refer to my screenshot, the image was cut down at the bottom. Thanks!

support wrote on 2014-09-12:

This issue is not related to setPageMargin but rather to the way how our software inserts page breaks. Please post here (or send it to the following and we will look at what can be done about it.

1/ HTML code or the URL the PDF is generated from
2/ Your API integration code