Moderators:PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
1. I'd like to get my hands on the IUIX_Dialog displayed when a user goes for "File - Save As Optimized..." command. Such a dialog does not appear in "DlgTemplates.xml" (Resources.dat) and therefore I do not know how to implement an IUIX_EventMonitor for it. Is that even possible (since this command is from the plugin)? If possible I will have more questions
2. I would need to get notified once the "save as optimized..." file is saved to the file system. For this I have my custom IUIX_CmdHandler.OnNotify (UIX_CmdNotify_Exec) for "cmd.pdfopt.pages". Using it I can catch the moment when the command is executed and the "Optimize PDF" dialog appears to the user. If the user clicked "ok" on it - the "Save File" dialog appears and if "Save" button is clicked, the "e.afterShowOpenSaveDialog" is triggered and I can use IPXV_ShowOpenSaveDialogEvent to get to the file name the user used for saving the optimized file.
And at this moment I'm stuck, because saving goes on and I do not have a way to figure out when it is done (and the file is available on the file system so I can do something with it).
Any idea / help?
p.s.
Why: I want to add an option to linearize a document after saving as optimized. I know how to linearize.
That is : is it possible to get IUIX_Dialog displayed when a user goes for "File - Save As Optimized..." - as I'd like to place a check box on it (on the Cleanup "tab").
I can catch e.Visible for 'dlg.PDFOptimizer', but pTarget in my IUIX_EventMonitor's OnEventMonitor is not IUIX_Dialog (nor any of pTarget.Parents) - so cannot do anything with it What is pTarget when e.Visible for that dialog?
What I am after: to place a check box here:
image.png
Or even better here:
image.png
-žarko
You do not have the required permissions to view the files attached to this post.