Print Page | Close Window

LoadfromFile returns 2

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1599
Printed Date: 23 Nov 24 at 7:21AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: LoadfromFile returns 2
Posted By: tgaebler
Subject: LoadfromFile returns 2
Date Posted: 11 Oct 10 at 8:43AM
Hello,
i m new to use QuickPDF.
 
i tryed follow Code from the Sample.
 
string fileName = "test.pdf";
string licenseKey = "..."; PDFLibrary qp = new PDFLibrary();
qp.UnlockKey(licenseKey);
if (qp.Unlocked() == 1)

{

qp.LoadFromFile(fileName);

}
 
With the Sample PDF its works, but with my own PDF Loadfromfile return always 2.
What can i do?
 
Thomas



Replies:
Posted By: tgaebler
Date Posted: 11 Oct 10 at 9:56AM
i found the problem, because we merge the PDFs with Gios PDF Splitter and Merger . but why can quick PDF the PDF not load?


Posted By: Rowan
Date Posted: 11 Oct 10 at 7:05PM
For PDF files that return 2 when called with LoadFromFile try calling SetAdvancePassword("") before LoadFromFile and see if that helps.


Posted By: tgaebler
Date Posted: 12 Oct 10 at 9:16AM
Thanks, that works.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk