Document is not read Error

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

kscott
User
Posts: 2
Joined: Wed Oct 22, 2008 4:09 pm

Document is not read Error

Post by kscott »

Can anyone assist me with adding text annotations to a pdf document. I'm currently using the XChange Viewer and the following C# line

PXCp_AddTextAnnotationA((int)m_Doc, 1, ref rectF, title, annotation, annotationType, ref commonAnnotInfo);

The trail version of the XChange Pro includes several examples in C# but none using the Annotations function. I'm try to understand what I can and can not do. I basically extended the functionality of the PXCView36 project and included the XCProDemo_aspnet.XCPro_Defs class.

Also the PDF-ToolsV4SDK.pdf references a PDFDocument but the viewer has created a PDFDoc class. Where can I find the PDFDocument they are referring to in the help document?

Any help would be greatly appreciated.
KScott
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Document is not read Error

Post by Lzcat - Tracker Supp »

This is completely wrong forum for your questions - becuse they have no relations to the end-user Viewer.

Returning to your questions: NEVER mix function calls from different SDK. Rule is simple: each library (dll) use his own document handles and they cannot be mixed. So if you create document handle using pxcview36 - it can be used only with functions from thi library.

Function PXCp_AddTextAnnotationA is declared in C# sample (file XCPro40_Declares.cs), you may refer to C++ sample to see functions call order. We will update C# example to illustrate how to use this function, but this will take some time.

Please advise if you need further help.
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.