Skip to main content
Participating Frequently
February 12, 2019
Question

attachments

  • February 12, 2019
  • 1 reply
  • 1059 views

You can find attachments using PDDocGetNameTree in Acrobat SDK.

However, I want to find the number of MAX pages and the named destination of the attached file.

This topic has been closed for replies.

1 reply

Legend
February 12, 2019

Do you mean you want to find the number of pages of each attached file (Do you can get the maximum)?

I don’t understand the second requirement, sorry.

Participating Frequently
February 12, 2019

1. Number of pages of the attached file.

2. The destination of the attached file.

I want to ask 1,2.

Legend
February 12, 2019

Ok, you will need to open the file on a PDDoc object. I have never done this, but I feel that the methods PDFileAttachmentFromCosObj and PDFileAttachmentOpenStream would be at the heart of any solution.

You could also process the name tree entries as Cos objects, get an ASStm and open it.