question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pdf to tiff converting only first page

See 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.

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.

sample.pdf

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
frederick0291commented, Sep 24, 2021

Confirming that the issue has been fixed with the new update on poppler-windows pdftocairo now converts all pages to tiff. Thanks!

1reaction
arethiscommented, Aug 13, 2021

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 pdftocairo 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert PDFs to TIFF files with an online converter - Adobe
Steps to convert a PDF to a TIFF file.​​ Go to the conversion page and click Select a file or drag and drop...
Read more >
How to convert a PDF to a TIFF file – A beginner's guide - Canto
There are a few different ways to convert the PDF to TIFF. First, you could download a third party program and install it...
Read more >
PDF to TIFF – Convert PDF Documents to TIFF Format Online
This online tool lets you convert PDF documents into multipage TIFF files completely for free. All the pages in a PDF file will...
Read more >
How to Convert PDF to TIFF in Adobe Acrobat
Step 1. Click "Convert PDF" · Step 2. Select the PDF File · Step 3: Convert PDF to TIFF with Adobe Acrobat Alternative....
Read more >
How to Convert PDF to TIFF: An Ultimate Guide - Inkit
Step 2: Convert PDF to TIFF · Open Adobe Acrobat · Explore Tools > Export PDF · Choose Image, then TIFF to dropdown...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found