Print Page | Close Window

PageRanges parameter

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=3173
Printed Date: 02 May 24 at 8:59PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: PageRanges parameter
Posted By: twaldorff
Subject: PageRanges parameter
Date Posted: 09 Sep 15 at 8:02AM
Hi
 
Various functions like RenderAsMultipageTIFFToFile has a PageRanges parameter which is a string containing like "1-3,6,7".
In my case I would like to have it covering all pages.
I have found that "" (empty) or "0" fails.
I can make it work by setting it to "1-1000" as I know/assume that I never go beyond page 1000.
But is there a proper way of doing this?
 
Thomas 



Replies:
Posted By: mLipok
Date Posted: 09 Sep 15 at 8:07AM
First use
http://www.debenu.com/docs/pdf_library_reference/PageCount.php
then you be know how many page is.



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: twaldorff
Date Posted: 09 Sep 15 at 8:17AM
Thanks for the quick response.
Yes, you are absolutely right that I could build the string using pagecount information.
And also that it will be very polite not to ask for pages which are not there like when doing "1-1000" on a 2-page pdf.
 
I will change my question: Is there a fixed string (undocumented?) which corresponds to "all pages"?
 
Thomas



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