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 - ExtractPageRanges
  FAQ FAQ  Forum Search   Register Register  Login Login

ExtractPageRanges

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

Joined: 08 Aug 12
Location: Ohio
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote poston Quote  Post ReplyReply Direct Link To This Post Topic: ExtractPageRanges
    Posted: 08 Aug 12 at 7:23PM

ExtractPageRanges hanging

public static string PrintSelectedPages(string pathToPDF, string docName, List<string> selectedPages, List<FreeEditField> freeEdits, List<PostItNote> PostIts, List<Highlight> highlights)

{

QuickPDFAX0815.

PDFLibrary qp = new PDFLibrary();

qp.UnlockKey(

"jf5jp43i7639hb7hu8mk7ab6y");

if (qp.LoadFromFile(pathToPDF, "") == 1)

{

string pages = "";

foreach (string s in selectedPages)

{

pages = pages + s +

",";

}

qp.ExtractPageRanges(pages);

StringBuilder sb = new StringBuilder();

sb.Append(

"var pp=this.getPrintParams();");

sb.Append(

"pp.interactive = pp.constants.interactionLevel.automatic;");

sb.Append(

"this.print(pp);");

qp.SetOpenActionJavaScript(

"var pp=this.getPrintParams();this.print(pp);");

qp.SaveToFile(

HttpContext.Current.Server.MapPath("../TmpForDownloads/print" + docName));

qp =

null;

string doc = doc = AddEditFieldData(freeEdits, "../TmpForDownloads/print" + docName, selectedPages);

if (PostIts.Count > 0)

{

doc = AddPostItNotes(PostIts,

"../TmpForDownloads/print" + docName, selectedPages);

}

if (highlights.Count > 0)

{

doc = AddHighlight(highlights,

"../TmpForDownloads/print" + docName, selectedPages);

}

return doc;

}

else

{

return "ERROR";

}

}

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

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 10 Aug 12 at 3:36PM
Answered in duplicate post above.

Andrew.
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