Our application uses OpenLayers+PostGIS to visualize and process millions of spatial data files (GeoJSON).
We have a requirement to be able to export the processed final data as PDF/GeoPDF Vector maps.
Every solution, including the official OL example, first converts the OL canvas to a raster, then converts the image to PDF using something like jspdf. The raster conversion completely destroys the vector data, making the final PDF unusable for professional purposes (lines are pixelated, labels are blurred) (example below)
Is there a method that *preserves the Vector points/lines/labels in the map by skipping the raster conversion? Example: maps exported from AutoCAD/ArcGIS/QGIS have perfect, infinitely zoomable vector pdfs.
I've looked far and low for this, but couldn't find an answer, except for using 'gdal_translate', which seems cumbersome and poorly documented for programmatic usage.