Copy link to clipboard
Copied
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.
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.
Copy link to clipboard
Copied
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.