New Forum | Previous | Next | (P-PDF) Developers
Topic: How to close PDF from DidOpen notification
Conf: (P-PDF) Developers, Msg: 111215
Date: 5/10/2004 08:45 PM
I'm trying to close "just opened" pdf from inside PDDocDidOpen notification. I'm going around this using IdleProc.
Simply: in PDDocDidOpen - after a feew tests I store pdDoc in my global variable and then in IdleProc I use:
AVDoc avDoc = AVDocFromPDDoc (mPDDoc);
if (avDoc) AVDocClose(avDoc,true);
This works fine from local system, but when I open a file from inside a browser (http://localhost/test/1.pdf) it doesn't work. Strange is, that after close method is called, Acrobat calls again DidOpen notification with absolutely new pdDoc.
How should I correctly close doc which is opened through the net?