Skip to main content
Participant
October 13, 2022
Question

How to get vector image coordinates from PDF files.

  • October 13, 2022
  • 2 replies
  • 992 views

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 has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
October 13, 2022

What exactly are you trying to do?

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
October 14, 2022

I want to get this  vector image coordinates values.

Legend
October 14, 2022

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.

Legend
October 13, 2022

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

Participant
October 14, 2022

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

Thom Parker
Community Expert
Community Expert
October 14, 2022

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/

 

 

 

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