Skip navigation
Currently Being Moderated

Updating Thumbnails in Acrobat

May 8, 2012 5:35 AM

Tags: #acrobat-sdk #thumbnai

After I update the AP dictionary for an annotation, I call PDDocCreateThumbnails in order to update the page thumbnails shown to the user.  If I examine the document contents, the Thumb page entry is updated appropriately, however the page thumbnail shown in the Acrobat UI does not update.

 

If I reduce or enlarge the thumbnails, they then update appropriately.  Is there some method I'm missing that would allow me to force this update?  Or a better way of generating the thumbnails?  Thanks.

 
Replies
  • Currently Being Moderated
    May 8, 2012 5:44 AM   in reply to ctartamella

    Are you sure you need to update the thumbnail image for the page? I have

    not dealt with thumbnails in a long time. Acrobat and Reader (and I assume

    all 3rd party tools that want to be taken seriously) will create the

    thumbnails on the fly. The problem with embedded thumbnails is that when

    you update the page, and you do not force an update of the thumbnail image,

    you will still see the old thumbnail.

     

    In your case, I assume that all you have to do is execute

    PDPageContentsDidChange for the page in question, and Acrobat or Reader

    will then automatically update the thumbnail.

     

    Karl Heinz Kremer

    PDF Acrobatics Without a Net

     

    khk@khk.net

    http://www.khkonsulting.com

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2012 6:22 AM   in reply to ctartamella

    The save prompt is triggered by the dirty flag, when you clear that flag,

    you will no longer get asked to save the file:

     

    PDDocClearFlags(pdDoc, PDDocNeedsSave) will do that. Be careful however to

    not clear that flag if the document was modified via other methods (besides

    the AP dictionary). To avoid that, get the PDDocNeedsSave flag before you

    modify the AP dict, and then after your modification, set it back to what

    it was before your operation.

     

    Karl Heinz Kremer

    PDF Acrobatics Without a Net

     

    khk@khk.net

    http://www.khkonsulting.com

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points