New Forum | Previous | Next | (P-PDF) Developers
Topic: Obscure case of 'expected a dict' error
Conf: (P-PDF) Developers, Msg: 82860
Date: 3/14/2003 09:43 AM
Something strange is going on with Acrobat 5 plug-in I am developing.
I am building an xobject and then show it as part of active document, by temporarily referring to it from a page's content (just for the period of time between WillDraw and DidDraw). This part is working fine. Now, I don't want my object to be saved as part of the document, so I carefully destroy it on WillSave, and then rebuild it after DidSave, on next relevant WillDraw. I am pretty sure that the destruction part is clean. However - now I am starting to describe what the problem is - the incremental save results in "Expected a dict object" error. It only pops up under the following condition: at the moment incremental save actually occurs my xobject is displayed within the current page. The error message pops up not immediately, but when the page needs to be redrawn, right after WillDraw, by which time a fresh instance of my xobject (form) is built and referred to. The phrase "within the current page" above should be read literally, that is, if I switch to continuous view and the page with my xobject occupies 49%, and some other page occupies 51%, there will be no problem.
I would appreciate if anyone could give me some clues on this, because I already spent 3 days fighting it and there is no real progress.
Thanks in advance,