Print Page | Close Window

ExtractPageRanges

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=2363
Printed Date: 22 Nov 24 at 12:36PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: ExtractPageRanges
Posted By: poston
Subject: ExtractPageRanges
Date 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";

}

}




Replies:
Posted By: AndrewC
Date Posted: 10 Aug 12 at 3:36PM
Answered in duplicate post above.

Andrew.



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