MaikJaek / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

IMP: It would be great if it were possible to request *ONLY* a page range rather than all to be rendered. #142

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Pardon my ignorance but there does not appear to be an easy way to achieve this 
using the current R8 API. One option is to load and create the Document from 
the XHTML and then attempt to extract the page range "pages" but that is itself 
not easy. I cant seem to find an easy API that gives me a new Document from an 
existing Document. That has led me to think perhaps a page range can more 
easily controlled at the FS rendering phase.

Originally i thouoght perhaps it might be possible to supply my own decorated 
"Document" instance and simply ignore writes when the page is an out of range 
page. However this itself might be broken when text or another similar element 
overflows from a page that is in range to a new page which is out of range. 
What happens ? does it work ? does it make sense...

Original issue reported on code.google.com by miroslav...@gmail.com on 13 Apr 2011 at 6:04