Skip to main content
Participant
April 3, 2018
Answered

About the size of the image displayed on the document

  • April 3, 2018
  • 1 reply
  • 516 views

I want to make B's image size on document the same as A's size.

A and B use the same image.

A: Acrobat tool [Edit PDF] -> [Add Image]

B: Read file in plugin -> Extract image data from file -> Create PDEImage in Acrobat SDK -> Add to document

So, please tell me the following.

  1. 1. How is the information of the image(size and resolution) related to the size on the document (the value of a and dof ASFixedMatrix)?
  2. 2. If there are elements that influence the size on the document in addition to the image size and resolution, I would like you to tell me something.
This topic has been closed for replies.
Correct answer lrosenth

That’s doing it the hard way!

Images are XObjects, which mean that you can simply refer to them from multiple pages – you only need the CosObj (not the actual data).

So use the PDFEdit APIs to get the CosObj and attributes (such as page location, matrix, etc.) from A, then use them to create the PDEImage for the second page.

1 reply

lrosenth
Adobe Employee
lrosenthCorrect answer
Adobe Employee
April 3, 2018

That’s doing it the hard way!

Images are XObjects, which mean that you can simply refer to them from multiple pages – you only need the CosObj (not the actual data).

So use the PDFEdit APIs to get the CosObj and attributes (such as page location, matrix, etc.) from A, then use them to create the PDEImage for the second page.