pdftoppm image scaling issue
When attempting to generate an image from a PDF PHT19.pdf with specific scale constraints, the generated image is off by a few pixels.
pdftoppm command
pdftoppm -scale-to-x 198 -scale-to-y 99 -r 250 -jpeg PHT19.pdf $(pwd)/fullImage.jpg
The width of the image is 199 and NOT 198 as required. Any ideas on how to resolve this?
Device Info
- pdftoppm version:
dev@ip:$ pdftoppm -v
pdftoppm version 0.86.1
Copyright 2005-2020 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
- OS version
dev@ip$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal