How to remove margins in pdfs #99
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I struggle to understand how to remove white margins while converting to pdf. I have A4 scans and I would like to convert them without margin. How can I do this? My current code looks as follows. Thank you.
I do not yet understand what you mean by "white margins". If your input images are of A4 size and have the right dpi set, then the created pages will also be A4. Also, the convert() function does not have a pagesize argument. Maybe it helps if you post an example image here so that I can see the problem you have?
Thanks for the reply. I just noticed that the original document was the root cause, sorry for the confusion. Seems to work perfectly, great repo!
Please close this issue once you think that the problem has been resolved.