Error message when opening a PDF document

67 views
Skip to first unread message

Nick

unread,
Oct 3, 2006, 2:10:37 PM10/3/06
to PDFNet SDK
We are currently looking at your product since we wish to work around a
lot with pdf-files on a server. Wich apperently adobe does not
support.

So I've been tipsed about that pdfnet is a very good product and
decided to test it.

Now the problem I get is that I simply can't open the file:

> -----------------
> PDFDoc doc = new PDFDoc(strFile);
> // strFile = path to the .pdf ... pdf is included in the name.
>
> and I am using following:
>
> using pdftron;
> using pdftron.Common;
> using pdftron.PDF;
> using pdftron.SDF;
> --------------------

the error returned is as following:

Attemted to read or write protected memory.

I am using VS 2005, dotNET 2.0
Would really appriciate help. Concerning what may cause this problem.

Nick

unread,
Oct 3, 2006, 2:17:29 PM10/3/06
to PDFNet SDK
You should be able to use PDFNet to open any valid PDF document.

A) Did you initialize PDFNet using PDFNet.Initalize()?
B) Did you call pdfdoc.InitSecurityHandler() after creating the
document?
C) Is Acrobat Pro asking you to save the opened document? If yes, this
means that the document is corrupt and that you need to 'rebuild' the
xref table. In PDFNet, you could use XRefRebuilder to fix PDF documents
with broken offset tables.

Nic
PDFTron Support

Reply all
Reply to author
Forward
0 new messages