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 conversion returns a file not found error

See original GitHub issue

This issue is working with the same pdf and program that oschwartz10612 opened a few days ago.
As they said, we were able to get the program to produce images rather than white squares. However, this only works with certain types of image files. I’ve been using PNG as the output format, however there is always a noticeable level of compression in the final pdf (the program converts the pdf to images for editing, then converts the images back into a pdf).
When I use TIFF, ultimately the format I’d like to use, the following error is returned.

C:\Users\eleph>C:/Python/Python38/python.exe "c:/Users/eleph/Documents/My Documents/CROTEK/Workspace/Algorithm for Correcting Scanned Documents/" Traceback (most recent call last): File "c:/Users/eleph/Documents/My Documents/CROTEK/Workspace/Algorithm for Correcting Scanned Documents/", line 82, in <module> convert_from_path( File "C:\Python\Python38\lib\site-packages\pdf2image\", line 108, in convert_from_path poppler_version = _get_poppler_version( File "C:\Python\Python38\lib\site-packages\pdf2image\", line 394, in _get_poppler_version proc = Popen(command, env=env, stdout=PIPE, stderr=PIPE) File "C:\Python\Python38\lib\", line 854, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Python\Python38\lib\", line 1307, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified

Here is the part of the code that converts the pdf to images.

convert_from_path( pdf_path = (subfolder + "/" + "no_text_" + filename), output_folder = subfolder, fmt = "tiff", output_file = (f"no_text_{filename}") )

Lastly, here is the pdf:

I’m using Windows 10. I’m relatively new to coding, so if there’s any important information I’ve accidentally excluded please let me know. Any help you could provide would be greatly appreciated.

Edit: I just realized the error I pasted is really difficult to read, but I’m unsure of how to format it well while keeping it in the code format. My sincerest apologies.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

oschwartz10612commented, Jun 28, 2020

This was fixed in conda-forge/poppler-feedstock#67. You can download using conda or the packaged version here:

oschwartz10612commented, Jun 29, 2020

No problem. Thanks for working with us!

Let me know if people have issues with the repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Converting pdf file to tiff - java - Stack Overflow
I am trying to convert a colored image or not image PDF file in to a multi-page tiff file. For that i have...
Read more >
Error when loading certain tiff files (not able to convert to PDF)
Detailed error: Exception: Message: Unable to convert non-TIFF image to PDF using the FromTiff API Conditional expression: filter.get() Version ...
Read more >
Convert PDF to TIFF get null error - Free Support Forum
Our developer downloaded the conversion jar and tested with default and “300” resolution. No difference was found about the size of converted ......
Read more >
File conversion error | Adobe Acrobat Export PDF
Learn how to resolve a "file conversion" error when you try to convert a PDF file using Adobe Acrobat Export PDF service.
Read more >
Problem while converting PDFs to TIFF if the PDF has images
I am facing an error while converting a pdf files to tiff using ... Please find my attached code. ... BITMASK instead of...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found