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);
At the end I call:
AVPageView pageView = AVDocGetPageView (avDoc);
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?
I find that notify method work fine for me. Are you using the PDFEdit API?
Good to know.
I am using PDE and Cos object calls.
It looks like updating text and other vector items is refreshing properly, but images are not.
I'm using a simple PDE based process to edit images, e.g.:
for(ASInt32 i = 0;i< len;i+=4)
And it actually works fine once I've saved the file, so I'm wondering if I'm either
a. forgetting to release an object somewhere
b. not properly notifying Acrobat that the image data has been updated (I thought PDEImageSetData would do that...)