Opened 2 years ago

Closed 6 months ago

#6359 closed enhancement (fixed)

Some types of vector pdf files are not recognizeable by ogrinfo command

Reported by: piotrpachol Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords:
Cc:

Description

Some types of vector pdf files are not recognizeable by ogrinfo command. I don't know if it is a bug so I add as request.
Request is to add new configuration option to enable opening such files with 'pdf' driver and write information about files. If option=NO (default) ogrinfo will work as it is now. If option=YES ogrinfo will show information about such files.
I attach zip file containing 2 vector pdf files which are not recognizeable by ogrinfo command. Other pdf not recognizeable you can download from here: https://en.wikipedia.org/wiki/File:APISmap1.pdf

Attachments (1)

example_pdf.zip (143.2 KB) - added by piotrpachol 2 years ago.

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by piotrpachol

Attachment: example_pdf.zip added

comment:1 Changed 2 years ago by Even Rouault

That PDF has only the default layer, but currently the driver requires explicit layers. I don't remember if there was a fundamental reason for that limitation.

comment:2 Changed 6 months ago by Jukka Rahkonen

Update: GDAL 2.3dev does not find layers.

comment:3 Changed 6 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 40820:

PDF: make OGR_PDF_READ_NON_STRUCTURED=YES configuration option work with documents without layers (fixes #6359)

Note: See TracTickets for help on using tickets.