-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export-Import PDF Metadata - Geospatial data not written to output #42
Comments
Any examples? Maybe changing the mode could help. We depend on Ghostscript. If it is possible in GS, we can do it... |
Thanks for responding. The attached script, scale.txt, generates a PDF file but fails to reproduce the spatial data in it. What am I doing wrong? (I'm using Avenza Maps on iPhone to determine whether I've got spatial data or not.)
|
From this post, it seems like Ghostscript will never preserve metadata. However, you can use exiftool or pdftk to copy the metadata from one pdf to another (needs to be tested). You will probably need to install them in your system though. There are examples on the link above. You could replace the whole gs call in the pdftk example with the pdfscale call if you want. Maybe this could be added as an optional feature to pdfscale. |
Thanks for looking at this. After trying qpdf, pdftk, pdfunite, and pdfjam, I discovered that qpdf works to overlay a legend pdf on a map pdf:
The geospatial data is retained in |
Pretty interesting. I may have a look into this when I have some time. Maybe we can automate this process within pdfScale (external tool install will be needed though). |
I tried scaling a CalTopo PDF map with geospatial data. The scaling works; I like it.
But the output file was missing the geospatial data.
The text was updated successfully, but these errors were encountered: