• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Embed API - Updated annotations are not exported to XFDF

Community Beginner ,
Aug 16, 2021 Aug 16, 2021

Copy link to clipboard

Copied

I am building an application for modifying and creating annotations using the Embed API.  Everything seems to work just fine, except for when I export the pdf data as an XFDF the updated annotations are not present.  I have attached a video to show the behavior but had to compress it significantly, here is a breakdown of what happens:

 

  1. In my application (the Embed API), I open up a PDF with no comments
  2. I highlight some text and add a comment, and save the PDF
  3. I open up the saved PDF in adobe and export the XFDF 
    1. The XFDF has the correct content for the annotation created using the Embed Api (The annotation is of the type <Contents>)
  4. I add a new annotation in Adobe Reader and save the document
  5. I export the XFDF and the XFDF has the two annotations
    1. The Annotation from Embed Api is <Contents>
    2. The Annotation from Adobe Reader is <Contents-Richtext>
  6. I open up the saved PDF in my application and update the existing annotation that was created in Adobe Reader
  7. Save the newly modified PDF
  8. Open up the PDF in adobe reader 
    1. Can see the updated comment in the comments pane
  9. Export the XFDF from this file
    1. The XFDF does not contain the updates that were made from the Embed API
  10. As a bonus, I exported the FDF file and can see the contents in that file 

 

I would expect the behavior to be the same for both the Embed API and the Adobe Reader.

 

TOPICS
PDF Embed API

Views

580

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2021 Aug 17, 2021

Copy link to clipboard

Copied

Can you share the PDF files from step 5 and 9? I'll also try to reproduce with my own file.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 17, 2021 Aug 17, 2021

Copy link to clipboard

Copied

Oh sure, I've attached it here.  But any pdf seems to have the same issue.  I think it has to do with how in Adobe Reader, comments are saved as <Contents-RichText> and the Embed Api saves them as <Contents> so then when updating, it doesn't correctly apply the updates.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2021 Aug 17, 2021

Copy link to clipboard

Copied

I wouldn't be surprised if Reader drops annotations that aren't 100% what it is expecting but that's why I wanted your file and my own test. It's possible that the PDF creation tool has something to do with it. Thanks for the file.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 01, 2021 Sep 01, 2021

Copy link to clipboard

Copied

LATEST

@Joel_Geraci Any luck getting any further than I did?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources