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:24PM |
|
extractpageranges hanging to long. 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( "xxxxxxx");
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"; } } Edited by poston - 14 Aug 12 at 5:17AM |
||
![]() |
||
poston ![]() Beginner ![]() ![]() Joined: 08 Aug 12 Location: Ohio Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
|
On the ExtractPageRanges(pages); An exception of type 'System.Runtime.InteropServices.COMException' occurred in AGFlipBookProfile.DLL but was not handled in user code Additional information: Out of memory on a pdf that is only 112 MB My system has 6GB ram hard drive is a terabyte Edited by poston - 14 Aug 12 at 5:17AM |
||
![]() |
||
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
|
You need to check the memory usage in windows Task Manager to see how much memory is being used while your program is running.
Are you running on a 64bit OS ? If so you may want to try running the 64bit version of the ActiveX control. Andrew.
|
||
![]() |
||
poston ![]() Beginner ![]() ![]() Joined: 08 Aug 12 Location: Ohio Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
|
|
||
![]() |
||
poston ![]() Beginner ![]() ![]() Joined: 08 Aug 12 Location: Ohio Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
|
|
||
![]() |
||
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
|
We would need to have access to the original PDF file to be able to reproduce the crash and fix the problem.
Can you create a new support case using http://www.quickpdflibrary.com/support/support-query.php and then send us a download link using something like https://www.wetransfer.com/ 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