Updating page after changing content
I have a plug-in I am porting back over from PDFLibrary to Acrobat.
The plug-in modifies the color of every object on the page that has a color attribute: vector, gradients, images, etc.
It works great in PDLibrary and has for many yeas now.
In Acrobat, the same process never updates the window until I save the document.
The pattern I use iterates through pages like this:
PDPage page = PDDocAcquirePage(pdDoc,i);
ModifyObjects...
PDPageNotifyContentsDidChange(page);
PDPageRelease(page);
At the end I call:
AVPageView pageView = AVDocGetPageView (avDoc);
AVPageViewInvalidateRect (pageView,NULL);
AVPageViewDrawNow (pageView);
But the page doesn't redraw until I save it. I've tried the usual tricks with zooming in/out and that doesn't work either.
Any clues as to where to look?
Thanks!
-Don
