Opened 4 months ago
Last modified 2 months ago
#70269 closed defect
GDAL Missing PDF Support (at least when installed as dependency for QGIS3) — at Version 3
Reported by: | mhanmore | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | gdal qgis3 |
Description (last modified by mhanmore)
The issue The GDAL build via MacPorts as part of qgis3 installation currently lacks support for PDF files, which means qgis3 behaves as though PDF files don't exist.
Expected behavior QGIS ships with PDF support in all other distribution modes. GDAL as a QGIS3 dependency should therefore be built with poppler to enable PDF support.
I was able to fix the problem with sudo port install poppler
followed by sudo port install gdal +pdf +poppler
Steps to reproduce
- Install GDAL as a qgis3 dependency via MacPorts using
sudo port install qgis3
. - Attempt to open or georeceference a PDF in Qgis3
- Run
gdalinfo --formats | grep -i pdf
. - Observe that PDF support is not listed.
System Information
- OS: macOS: Sonoma on M3 Max
- GDAL Versions:
Broken:
gdal @3.9.0_0+postgresql16+proj9
Fixed:gdal @3.9.0_0+poppler+postgresql16+proj9
Change History (3)
comment:1 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 4 months ago by mhanmore
Many thanks. If that is a deliberate GDAL deployment decision then I think there is still a change that needs to be made int he QGIS3 port, which needs to specify gdal +poppler
in order to achieve feature parity with the other QGIS distribution options.
comment:3 Changed 4 months ago by mhanmore
Description: | modified (diff) |
---|
Sounds like you've already found the solution. The gdal port doesn't have pdf support enabled by default and you can enable it by installing it with the +poppler variant. (It does not have a +pdf variant.) gdal has many other variants for optional features that you may want to enable.
port variants gdal
shows you what they are.