That's to be expected. Reording/suppressing pages involves some shuffling in 
the page tree but duplicating pages requires a lot more decisions and a 
PdfStamper to output it. Hence, no dups.

Paulo 

> -----Original Message-----
> From: CameronM [mailto:[email protected]] 
> Sent: Wednesday, February 11, 2009 10:30 PM
> To: [email protected]
> Subject: [iText-questions] SelectPages with repeats in page range
> 
> 
> 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.


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


------------------------------------------------------------------------------
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

Reply via email to