Closed JanC closed 4 years ago
Hi @JanC thank you for thoroughly describing your problem. Within Docker you are using a different GDAL version (3.1.0dev > 3.0.4), could you reproduce the issue using the same GDAL version?
hi, I've just tried with Ubuntu docker where I manually installed the gdal 3.0.4 and the result there is the same (correct white background)
gdalinfo --version
GDAL 3.0.4, released 2020/01/28
gdal_translate 00989I11.PDF 00989I11_linux_3.0.4.tiff
Input file size is 807, 1237
proj_uom_get_info_from_database: unit of measure not found
0...10...20...30...40...50...60...70...80...90...100 - done.
@JanC I can't reproduce it at this moment. I think you could get a better support from GDAL repository https://github.com/OSGeo/gdal/issues as it's related to the tool itself.
I can't reproduce it at this moment.
Do you mean that the same input .pdf file produces a .tiff with a white background on your side?
ok, I'll open a ticket in that repo
No, unfortunately I can't try the example at this moment because I don't have access to my testing installation. Could you please link the new issue you open, so anyone con follow up the thread?
See link above.
Great, thank you. `osgeo-gdal is built with both Pdfium and Poppler, so the behavior would be the expected considering the answer, did you solution fix your issue then?
yeah the GDAL_PDF_BANDS
config options works.
gdal_translate 00989I11.PDF 00989I11.tiff --config GDAL_PDF_BANDS 3
👍
So I'm closing the ticket
Please answers the following
I've...
brew update
twice?)brew gist-logs formula
Describe the bug Converting a .pdf to .tiff using
gdal_translate
creates a .tiff with transparent backgroundTo Reproduce
Steps to reproduce the behavior:
gdal_translate 00989I11.PDF 00989I11.tiff
Expected behavior I would expect the .tiff to have a white color as background as the source PDF does not contain any
NoData
valueScreenshots Source PDF:
Generated .tiff
Additional context
The
gdalinfo
of the .pdf is:The same command with the same input file creates a .tiff with a white color when using the Linux version of gdal:
Linux output:
brew doctor
output: