I think that I'll find a workaround for this problem, but I post details of a
problem I found the the selectpages method of the reader object. My app has
been using this method for a while with no problems, either to extract
particular pages from a source PDF [e.g. selectpages("1-2, 4-5, 9")] or to
re-order its pages [e.g. selectpages("8-9, 4-5, 1")]. Someone tried
something different where they tried to create duplicates of a page. It
failed and I've investigated. The command came through something like
selectpages("1-2, 1-2, 1-2, 9"), which I thought would select 7 pages. It
doesn't; instead it selects 3 pages (1, 2, 9) and the repeated mentions of
"1-2" get ignored. I was playing round and also found that ("1-2, 2-3, 3-4,
4-5") gives only 5 pages, as does "1-3, 2-4, 3-5"). Is this deliberate? I'll
use a pdfcopy to deal with the problem but I thought that maybe this
behaviour wasn't intended for the selectpages method.
--
View this message in context:
http://www.nabble.com/SelectPages-with-repeats-in-page-range-tp21965776p21965776.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php