Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - loading pdf file
  FAQ FAQ  Forum Search   Register Register  Login Login

loading pdf file

 Post Reply Post Reply
Author
Message
sdhanaraj7 View Drop Down
Beginner
Beginner
Avatar

Joined: 27 Sep 13
Location: chennai
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote sdhanaraj7 Quote  Post ReplyReply Direct Link To This Post Topic: loading pdf file
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
sdhanaraj7 View Drop Down
Beginner
Beginner
Avatar

Joined: 27 Sep 13
Location: chennai
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote sdhanaraj7 Quote  Post ReplyReply Direct Link To This Post Posted: 12 Oct 13 at 8:35PM
can you provide any sample code for that


Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
shinji14 View Drop Down
Beginner
Beginner


Joined: 15 Oct 13
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote shinji14 Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
Wheeley View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Oct 05
Location: United States
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wheeley Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store