hide annotations in viewer

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

feaci
User
Posts: 7
Joined: Sun May 10, 2009 6:47 pm

hide annotations in viewer

Post by feaci »

I would like to manage by myself annotations in a PDF file (from reading them using low-level function to editing and showing them).
In order to do it, I need the viewer not to show them (as I want to do it).
Is it possibile?

Thanks,
Federico.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: hide annotations in viewer

Post by Corwin - Tracker Sup »

You can execute the "HideAllComments" (36435) command to hide all comments and "ShowAllComments" (36436) to show them :)

Code: Select all

PDFXCview.DoVerb("", "ExecuteCommand", "HideAllComments", vDataOut, 0);
PDFXCview.DoVerb("", "ExecuteCommand", "ShowAllComments", vDataOut, 0);