-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GDAL reads PDF as blank #45657
Comments
@PhiliusMaximus this seems to be a GDAL/upstream problem. On Windows/QGIS 3.16 and 3.20 based on the osgeo4w installer v2, with GDAL 3.3.1 if I gdal_translate the PDF to a tif the resulting layer is also blank. Doing the same on installs based on older GDAL releases (like 3.0.3) it returns a correct result. This should be also asked/reported in the GDAL tracker. |
Thanks @gioman - have done this (I hope! I'm very new to GitHub) - OSGeo/gdal#4701 |
Cross-reported on GDAL - they say it's not them. OSGeo/gdal#4701 |
@PhiliusMaximus the pattern seems to be related to the gdal version shipped with QGIS. If they say is not a bug then maybe is a missing library/driver, but seems strange to me because the format is recognized, it just turn out that gdal do not seems to be able to read any info from the input. More investigation is needed. |
And by the way, is not a georeferencer only issue (try gdal_translate from the Processing toolbox) and GDAL 3.0.4 (Ubuntu 20.04) reads/concerts that PDF without issues. So also this seems to be a Windows/Osgeo4w v2 issue only. |
I'm grateful for your input, @gioman, thank you. |
@PhiliusMaximus I updated to 3.3.2 on Ubuntu 20.04, and it reads the PDF as expected. So this seems likely a packaging problem but still not an issue in QGIS code per se. This should be filed here instead: https://trac.osgeo.org/osgeo4w/report/1?sort=ticket&asc=0&page=1 |
Posted to https://trac.osgeo.org/osgeo4w/ticket/702#no1 for further investigations. |
Duplicate of #44522 |
What is the bug or the crash?
Georeferencer opens all .pdf files but some are not visible; they appear white with no image detail.
This does not occur on all .pdf files and I have attached one example where it does not work for me below.
Pdf open with no viual in 3.16.11:
![2021-10-25 pdf open but no visual](https://user-images.githubusercontent.com/68945311/138676692-473722be-ddf4-468a-bb56-95a85183ae22.PNG)
Same pdf open in 3.10.4:
![2021-10-25 pdf open with visual](https://user-images.githubusercontent.com/68945311/138677604-3e8fe05d-e1a6-433b-b952-516d44b9cc33.PNG)
Up until now I have been able to take screenshots of the pdf files that have this error and geocode those instead, but I will be trying to geocode some large plans soon and I don't think screenshots will suffice.
Steps to reproduce the issue
Boyton Place Mng Co areas.pdf
I have attached the pdf that I opened in the screenshot examples.
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Supported QGIS version
New profile
Additional context
While 3.10.4 is over a year old, I think this error has only been occuring for a month or two. Apologies, I don't keep logs of software installs!
The text was updated successfully, but these errors were encountered: