If I call reader.selectpages ('1, 5, 26') for a pdf that has only 20 pages, I
get page 1, 5 and 20.
Is this correct ?
Thanks.
Giuseppe.
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/selectpages-for-non-existing-page-tp4659480.html
Sent from the iText - General
beppecosta schreef op 20/11/2013 10:22:
If I call reader.selectpages ('1, 5, 26') for a pdf that has only 20 pages, I
get page 1, 5 and 20.
Is this correct ?
It may be how iText interprets wrong data.
I assumes that when you ask for a page that is higher than the page
count, you actually
Giuseppe,
beppecosta wrote
If I call reader.selectpages ('1, 5, 26') for a pdf that has only 20
pages, I get page 1, 5 and 20.
Is this correct ?
That looks like a case of garbage in, garbage out.
Seriously, if the behavior of a method for invalid input is not documented,
don't assume it to
/ That looks like a case of garbage in, garbage out./
I agree but we receive some pdf from our dealer that SHOULD have 26 pages
(the last page contains the signature) and we must extract the first, fifth
and 28th. page. But possibly there was an error and it was built without
some pages.
The