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!
![]() |
ExtractPageRanges |
Post Reply ![]() |
Author | |
poston ![]() Beginner ![]() ![]() Joined: 08 Aug 12 Location: Ohio Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() 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"; } } |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Answered in duplicate post above.
Andrew.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store