Skip to main content
Participant
March 2, 2016
Question

PDF Metadata

  • March 2, 2016
  • 1 reply
  • 913 views

Hi,

I am developing an adobe plugin in visual studio 2010 using VC++ and need to extract documentid from pdf metadata using PDDocGetXAPMetadata while requesting pdf file to open but it is giving error PDDocGetXAPMetadataSELPROTO is undefined. I have already included header files  PDMetadataProcs.h and PDMetadataCalls.h.

In header file PDMetadataProcs.h

XNPROC(ASText,

      PDDocGetXAPMetadata, (IN  PDDoc pdDoc)) also showing error: explicit type is missing('int' assumed) and expected a type specifier when compiling.

I want to extract documentid of pdf file before opening it in adobe reader.

Please help me out in resolving this issue.

Thanks.

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
March 2, 2016

This method is not available in Reader.

Participant
March 2, 2016

Is there any way of getting documentid of pdf file?

Participant
March 2, 2016

Use the method PDDocGetID.


  PDDoc pdDoc = AVDocGetPDDoc(MyDoc);

  char buf[256] = {0};

  ASInt32 uintChars = PDDocGetID(pdDoc, 0, (unsigned char*)buf, 256);

  it is giving encrypted documentid..my requirement is retrieving decrypted docid