Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to get vector image coordinates from PDF files.

Community Beginner ,
Oct 13, 2022 Oct 13, 2022

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.

TOPICS
Acrobat SDK and JavaScript
891
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 13, 2022 Oct 13, 2022

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 14, 2022 Oct 14, 2022

Karthik25609754pc5m_0-1665732946207.png

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 14, 2022 Oct 14, 2022
LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 13, 2022 Oct 13, 2022

What exactly are you trying to do?

 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 14, 2022 Oct 14, 2022

Karthik25609754pc5m_0-1665732630901.png

I want to get this  vector image coordinates values.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 14, 2022 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines