Can I remove PDF margins?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
spiderman2

Can I remove PDF margins?

Post by spiderman2 »

Hi,

I'm converting a scanned book to a format suitable for my eBook reader, so I now have a number of scanned and cropped jpeg images (one for each page) that I want to convert to a pdf file. ImageMagick is the only software that has succeeded in creating a pdf file readable on the eBook device. However, when i convert the jpeg images into the pdf file using

Code: Select all

convert protfys-*.jpg -crop 1560x2400+130+30 -compress Zip -monochrome -resize 1300 protfys.pdf
a margin is added to the pdf file so that the extracted images does not fill up the whole page but appear centered horizontally and vertically on the page. For optimal viewing on my eBook reader, I want the images to fill the page horizontally. Is this possible to do with ImageMagick?

Thankful for help,
Henrik
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Can I remove PDF margins?

Post by fmw42 »

don't know if this will help, but after a crop you should add +repage to avoid any potential virtual canvas

see http://www.imagemagick.org/Usage/crop/#crop_repage
Post Reply