Skip to main content
Participant
July 11, 2023
Question

get the georeferenced coordinates of a position in PDF

  • July 11, 2023
  • 1 reply
  • 2767 views

Hi, I would like to know if it is possible to get the georeferenced coordinates of a given position in PDF. I have a georeferenced map from which, using the "Geospatial Location" tool, I can have the georeferenced coordinates of that point, but I would like to know if it is possible using python or javascript to extract said coordinates by giving a point from the pdf.

I attach an example plan and an image where the georeferenced coordinates appear.

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
July 13, 2023

The answer is a qualified NO.  Geo-referencing is a late add-on to PDF and there is no Acrobat JavaScript interface to this data. It could be done with a custom plug-in, which could make the data available thru the Acrobat JavaScript model.  

 

But since you mentioned Python, I'm thinking you mean extracting this data with a web based application.  The answer to that is yes.  The geo reference data is stored in a special structure inside the PDF. All you need is a PDF library that can extract this special data, and the PDF page coordinate data.  Then you can write the code that converts page coordinates into Geo Coordinates.   It's possible that something like this already exists, but it is outside the scope of this forum. 

 

  

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
July 13, 2023

Could you tell me how to make such a plugin or a phyton library to be able to do what you indicate?

Thom Parker
Community Expert
Community Expert
July 14, 2023

Here's a link to the documentation on creating Acrobt plug-ins

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/plugin/index.html

 

Creating a python app requires a PDF library in Python.  This is something you would need to license. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often