pdf to tiff converting only first page
See original GitHub issueDescribe the bug Converting pdf to TIFF only converts first page. I tried adding first and last pages, I also tried using even or odd pages but still only the first page gets converted.
To Reproduce
Steps to reproduce the behavior:
On python: convert_from_path(file, output_folder=outdir, poppler_path = poppler_path, fmt="tiff", output_file=filename, grayscale=True)
On cmd: run pdftocairo -tiff sample.pdf
.
Expected behavior Convert all pdfpages to tiff.
Desktop (please complete the following information):
- OS: Windows 10
- Python: 3.9
- Poppler: 21.03
Additional context I noticed an error “No display font for ArialUnicode” and I though it was the root cause. I tried to install Arial Unicode MS but issue still remained. I resolved the error by embedding the fonts on Acrobat Pro but pdf2cairo still converts one page. Converting PDF to other formats like png or ppm successfully converts all pages.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (3 by maintainers)
Top GitHub Comments
Confirming that the issue has been fixed with the new update on
poppler-windows
pdftocairo now converts all pages totiff
. Thanks!I also had the thought that perhaps it’s an issue with
pdftocairo
, after getting a better understanding of howpdf2image
works, and that is indeed the case, the same issue is produced when converting a PDF to a TIFF file by runningpdftocairo
directly.To provide some additional information to anyone else encountering this issue: It appears to be an issue specific to Windows 10, or the version of Poppler that is currently available on Windows, 21.03 while the current version of Poppler is 21.08. The current version of Poppler works correctly on a base system install on Arch Linux (Release 2021.08.01)
The respective projects used to create the Windows binaries for Poppler (see below) are behind by several versions, and it’s unclear where these projects are at in regards to being up to date with the current version of Poppler.
Poppler Windows Repos: https://github.com/oschwartz10612/poppler-windows https://github.com/conda-forge/poppler-feedstock