coherentgraphics / cpdf-binaries

PDF Command Line Tools binaries for Linux, Mac, Windows
GNU Affero General Public License v3.0
593 stars 42 forks source link

Ranges break pdf with only one page #26

Closed jonasdw closed 6 years ago

jonasdw commented 6 years ago

When trying to add pagenumbers (starting from page 2) and the pdf is only one page long, an empty pdf is generated.

johnwhitington commented 6 years ago

Are you sure? What should happen is that an error is returned, because the page range is invalid for that PDF... No PDF output will be produced.

jonasdw commented 6 years ago

@johnwhitington I'll look into that right away!

jonasdw commented 6 years ago

@johnwhitington It seems that cpdf indeed throws a range error of some sort.