-
1. Re: About save pdf file.
lrosenth May 22, 2009 6:33 AM (in response to ChromeUser)That is because until the field loses "focus", you haven't actually made any changes to the document.
-
2. Re: About save pdf file.
ChromeUser May 22, 2009 9:30 PM (in response to lrosenth)But the user could not think so.
They just think they input the value but why they can not save the value.
Think about if the form has just only one text field,then the document could not be saved?
-
3. Re: About save pdf file.
Malcolm Thomson May 23, 2009 7:27 AM (in response to ChromeUser)ChromeUser wrote:
But the user could not think so.
They just think they input the value but why they can not save the value.
Think about if the form has just only one text field,then the document could not be saved?
That is true to an extent, although as you point out when you try and close the document the field will lose focus and therefore the application will ask the user if they would like to save the document.
If you are worried about the user not noticing this or wanting to save the document them selves then you could create a button that the user clicks to save the document
HTH
Malcolm
-
4. Re: About save pdf file.
ChromeUser May 23, 2009 9:22 PM (in response to Malcolm Thomson)That is what i want to say.
How can i decide the document need to save?Usually i call "PDDocGetFlags" to check the document is need to save.
But at that situation the "PDDocGetFlags" can not get the right result, it tell me no need save reslut.
-
5. Re: About save pdf file.
Malcolm Thomson May 24, 2009 6:59 AM (in response to ChromeUser)Technically the PDDocGetFlags, is giving you the correct result, as Leonard said, until the form field loses the focus the document has not changed and therefore does not require a save.
This is how the form fields are implemented, you could try calling AVAPgeViewClearFocusAnnot () and then check the PDDoc flags, as this call should cause the form to loose focus and therefore update the status of the document.
HTH
Malky
-
6. Re: About save pdf file.
ChromeUser May 24, 2009 6:17 PM (in response to Malcolm Thomson)Malcolm Thomson wrote:
Technically the PDDocGetFlags, is giving you the correct result, as Leonard said, until the form field loses the focus the document has not changed and therefore does not require a save.
This is how the form fields are implemented, you could try calling AVAPgeViewClearFocusAnnot () and then check the PDDoc flags, as this call should cause the form to loose focus and therefore update the status of the document.
HTH
Malky
Thanks for your reply,Malcolm.
The AVAPgeViewClearFocusAnnot () can be used to resolve my current problem.
But I am not clearly that if there are any other type objects that are same as Annot.
If there are so how do i to deal with these uncertain type of objects?
Thanks.
-
7. Re: About save pdf file.
Malcolm Thomson May 25, 2009 6:51 AM (in response to ChromeUser)As just about all items that are drawn on a PDF file in Acrobat as Annots to greater or lesser degree, I am not sure where your problem is, if they have created a different kind of annotation ( such as a comment) then you calling AVPageViewClearAnnot() would cause that annotation to be cleared and if possible the document would be marked as requiring a save.
So unless I am misunderstanding your workflow, there would be no difference in what your plug-in would need to do to enable the save.
HTH
Malky
-
8. Re: About save pdf file.
ChromeUser May 26, 2009 12:49 AM (in response to Malcolm Thomson)Thanks Malcolm for your reply.



