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

How to get vector image coordinates from PDF files.

Community Beginner ,
Oct 13, 2022 Oct 13, 2022

Copy link to clipboard

Copied

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

Views

543

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Karthik25609754pc5m_0-1665732946207.png

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

What exactly are you trying to do?

 

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Karthik25609754pc5m_0-1665732630901.png

I want to get this  vector image coordinates values.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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