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

PageRanges parameter

 Post Reply Post Reply
Author
Message
twaldorff View Drop Down
Beginner
Beginner


Joined: 28 Nov 11
Location: Denmark
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote twaldorff Quote  Post ReplyReply Direct Link To This Post Topic: PageRanges parameter
    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 
Back to Top
mLipok View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Apr 14
Location: Poland, Zabrze
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote mLipok Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
twaldorff View Drop Down
Beginner
Beginner


Joined: 28 Nov 11
Location: Denmark
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote twaldorff Quote  Post ReplyReply Direct Link To This Post 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
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