Skip to main content
Participant
Oct 13, 2022 1:04 PM UTC
Question

How to get vector image coordinates from PDF files.

Hi,

I want to  get the vector image coordinates from PDF files.  I have try to lot ways but did not take the values.Please give the solutions for this query.

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Thom Parker
Community Expert
Community Expert
Oct 13, 2022 10:52 PM UTC

What exactly are you trying to do?

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
Oct 14, 2022 7:31 AM UTC

I want to get this  vector image coordinates values.

Translate
Legend
Oct 14, 2022 8:13 AM UTC

These are either images or they are vectors. They CANNOT be both. You also mark text. This is not image, nor vector. Text is a different kind of thing. The PDFEdit calls in a C++ plug-in can be used to get all the data including

- graphics transformation matrixes (which define position and scale)

- starting position for text run, and characters included

- bezier curves for vectors

You would iterate through all the graphical objects on a page. You see ALL the objects on the page, so you have to write code to pick out the relevant objects, and get their properties. This is not a task for a beginner with C++, or a beginner with the API, or the a beginner with computer graphics. I recommend reading the "text" and "graphics" chapters from the PDF Reference; these few hundred pages of documentation are really necessary preparation for working with the PDFEdit API.

Translate
Legend
Oct 13, 2022 2:49 PM UTC

Images are not vectors. But you can get their coordinates if you write a C++ plugin for Acrobat Pro. 

Translate
Participant
Oct 14, 2022 7:36 AM UTC

How to get this container name and coordinates from PDF file using C++ plugin.

Translate
Thom Parker
Community Expert
Community Expert
Oct 14, 2022 4:21 PM UTC

You could also use a tool like PDFCanOpener to discover what type of things are on the page and also get the coordinates of those things.

https://www.windjack.com/product/pdfcanopener/

 

 

 

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