pdf to tiff converting only first pageSee original GitHub issue
Describe 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.
Steps to reproduce the behavior:
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.
- Created 2 years ago
- Comments:10 (3 by maintainers)
Top GitHub Comments
Confirming that the issue has been fixed with the new update on
pdftocairo now converts all pages to
I also had the thought that perhaps it’s an issue with
pdftocairo, after getting a better understanding of how
pdf2image works, and that is indeed the case, the same issue is produced when converting a PDF to a TIFF file by running
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.