PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

That's Quite Strange, considering the body of PDDocClearFlags specifically
mentions using it to prevent the save dialog from appearing.

Can you PDDocClose() the document during WillCloseInternalDocuments?  It's
text mentions that nothing is saved, though based on the PDDocClearFlags
behavior, I wouldn't take their word on it. :/

Evil Hack solution:  Create a dummy ASFileSys and force it to save there.
Turn off all the clean-up/saveAs/linearize type flags.  The idea being to
have it happen so fast that the user isn't aware of it.

--Mark Storer
  Software Engineer
  Cardiff Software
#include <disclaimer>
typdef std::disclaimer<Cardiff> Discard;


> -----Original Message-----
> From: Aandi Inston [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 07, 2003 6:12 AM
> To: [EMAIL PROTECTED]
> Subject: [PDFdev] Problems with PDDocNeedsSave flag in Acro6
> 
> 
> 
> PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
> _____________________________________________________________
> 
> Our Quite Revealing plug-in dynamically creates a new
> PDDoc and opens a window for it. The document contents 
> are dynamically generated.  
> 
> Problem: We want to allow the user to simply close this
> new document window without getting a prompt for save.
> We therefore clear the PDDocNeedsSave flag at every
> opportunity. This includes after each modification, in
> an IdleProc, and in response to AVAppWillCloseAllInternalDocs.
> 
> This seems to work, though not 100% reliably, in Acrobat 5.
> (5.05 on the Mac, we find, may be behaving like 6 on Mac
> and Windows).
> 
> In Acrobat 6, closing this window, or quitting Acrobat,
> always seems to produce a "do you want to save..." prompt.
> 
> Are we going about this the wrong way?  Is this prompt based
> on something other than the PDDocNeedsSave flag?
> 
> Aandi
> 
> To change your subscription:
> http://www.pdfzone.com/discussions/lists-pdfdev.html
> 

To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html

Reply via email to