Article 6CGBY img2pdf produces empty output file with strange error message

img2pdf produces empty output file with strange error message

by
porphyry5
from LinuxQuestions.org on (#6CGBY)
To produce readable pdfs in my ereader from pdfs available online I
1) extract images of each page with pdftoppm
2) crop them down to just the text area on each page with Imagemagick
3) convert the cropped images back to pdf with img2pdf

The latest file I processed with this method produced a bizarre result in img2pdf, an output file of 0 bytes, and the error message:
Quote:
pdf width or height is below 3.00 - too small for some viewers!
error: Page size must be between 3 and 14400 PDF units
The image files being processed are each 303x475, and I get the same result if I resize these files by 200%, so the problem seems to have nothing to do with file size

Can anyone suggest what may be causing this problem? If it is any help, the original file is 'lecturesonindus01jowegoog.pdf' available for free download from archive.org. It is a file produced by google in their project to copy historical texts.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments