[gdal-dev] ogr2ogr using PDF driver reports: ERROR 1: Max token stack size reached
    Even Rouault 
    even.rouault at spatialys.com
       
    Thu Feb  8 03:48:51 PST 2024
    
    
  
Arjan,
> I'm trying to convert a PDF with vector data into a shape with:
>
> ogr2ogr test.shp Archeologische\ beleidskaart\ 2023.pdf  --config 
> OGR_PDF_READ_NON_STRUCTURED YES
>
> However, It gives the error: ERROR 1: Max token stack size reached
>
> The sources are only converted partly, possibly because of this error. 
> Might there be something wrong with my pdf source? Or can this be 
> solved by setting some kind of config option when using the PDF driver?
This is likely an error/omission in pdfreadvectors.cpp itself. Parsing 
PDF is a complicated task. We'd need the PDF to further analyze
Even
-- 
http://www.spatialys.com
My software is free, but my time generally not.
    
    
More information about the gdal-dev
mailing list