I need to create a Python script (2.7 or 3.x) that converts Geospatial PDF file (vector drawing) to KML file (vector), preserving original styles - like colors, drawing, eventually labels. Direct conversion using GDAL/OGR library does not preserve these properties. GDAL/OGR can write styles to KML files (see: [url removed, login to view]) but does not support styles reading from PDF format (see: [url removed, login to view]).
Requested script should be written in Python and may be based on GDAL/OGR library + another library that allows to read styles from Geospatial PDF and passes these parameters to write process of output KML file (using GDAL/OGR - see: [url removed, login to view]). Input of the script is PDF file path (example of Geospatial PDF is here: [url removed, login to view]), the output is KML file (output path also as input parameter). Script must be able to convert any Geospatial PDF (containing vector drawing) to KML file such a way that the drawing of resulting KML file displayed at Google Maps or Google Earth will looks like at the original PDF (or it will be very close to the original).