Print Page | Close Window

loading pdf file

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2753
Printed Date: 17 Jun 25 at 10:15AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: loading pdf file
Posted By: sdhanaraj7
Subject: loading pdf file
Date Posted: 11 Oct 13 at 2:42PM
Hi, 

Integrated the debunu pdf library with my asp.net application. . I want to display the pdf file in the web application.  I created annotation in the pdf file and trying to display the same pdf file using asp.net application. But the newly created annotations are not displaying in the pdf while displaying. 

here my sample code is given below

//unlock the key
 QP.UnlockKey("pdf key");
//load the pdf file
  QP.LoadFromFile(filepath, "");
//file merge with previous file if any
 QP.MergeFileList("old filename","new filename");
 QP.AddNoteAnnotation(200, 200, 2, 200, 100, 50, 50, "annotation1", "demo annotation ", 0.1, 0.2, 0.4, 0);
 QP.SaveToFile(filepath);
//again loading the same file to preview the annotations and bind to the object tag in the web //application. But no able to view the annotation
  QP.LoadFromFile(filepath, "");

Need suggestions 

regards,
Dhana



Replies:
Posted By: Ingo
Date Posted: 12 Oct 13 at 7:48PM
Hi Dhana!

I think after save you have to start a new instance and a new load to see the new annotation.

Cheers, Ingo



-------------
Cheers,
Ingo



Posted By: sdhanaraj7
Date Posted: 12 Oct 13 at 8:35PM
can you provide any sample code for that




Posted By: Ingo
Date Posted: 12 Oct 13 at 8:39PM
Hi!

Don't know about asp but ...

QP.SaveToFile...
//...
QP.Free...
//...
QP.Create...
//...
QP.LoadFromFile //... with your new annot...

Cheers, Ingo



-------------
Cheers,
Ingo



Posted By: shinji14
Date Posted: 15 Oct 13 at 2:56PM
I have exactly the same problem, impossible to load a file with that size after doing a MergeFileFast. I have tried creating a new instance, but it doesn't works. 


Posted By: Wheeley
Date Posted: 15 Oct 13 at 9:52PM
You do realize MergeFileList merges files on disk don't you. So if you are expecting the annotation in the merged file, then you have to load it into memory after merging and then add the annotation.

Wheeley



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