11 Replies Latest reply on Dec 15, 2015 2:38 AM by Test Screen Name

    exportAsFDF method fails to export Comments made unless a document is Reader Extended

    michaelw51771899

      Problem-Description:

      Adobe Reader 11 JavaScript exportAsFDF method fails to export Comments made unless a document is Reader Extended

       

      Method:

      1. Open a document that has NOT been Reader Extended

      2. Add comments to the PDF file

      3. Use the following JavaScript to export comments

       

      // Import permission

      statImport = PDDocPermRequest(pdDoc,PDPermReqObjAnnot,PDPermReqOprImport,NULL);

      sprintf(szMsg,"canLoadMarkup() AnnotPerm(import)= %d.\n",statImport);

      traceMsg(szMsg);

      // Export permission

      statExport = PDDocPermRequest(pdDoc,PDPermReqObjAnnot,PDPermReqOprExport,NULL);

      sprintf(szMsg,"canLoadMarkup() AnnotPerm(export)= %d.\n",statExport);

      if (statImport == 0 && statExport == 0)

      {

      // see ShowPermissions.cpp from Adobe Plugin SDK sample.

      // statImport = -1 - permission denial

      // statImport = 0 - permission granted

      // statImport >= 1 - permission either unknown or pending

      sprintf(szMsg,"##### reader and permissions granted: %s", prodName);

      traceMsg(szMsg);

      retFlag = TRUE;

      }

      else

      {

      sprintf(szMsg,"%s: Reader implies NOT okay to load markup", prodName);

      traceMsg(szMsg);

      retFlag = FALSE; // Reader can not load markup.

      }

       

      Result:

      No comments are exported

       

      Expected:

      That if the file allows commenting via checking the PDDocPermRequest then it should also allow exporting comments.