Hi,
I've just started with iText and I'm trying to read a PDF File for
sending it to the print through a silent print.At the moment,
following the instructions and making some changes I've able to send a
new document to the print.
My problem now, is that I don'w know how to read the whole document.
(Finally I'll try to integrate reading a document and print it,
instead of print a new document).
I've been looking the example for reading. However it just implements
how to read two pages. I've been also seeking at the mailing archive
and I haven't been capable of finding any solution.
Does anybody knwo how implement the reading without put a condition
any time you want to read a page??? (I mean, a general method).
Thanks in advance.
This is what I want to avoid. Use a condition for every page:
while (i < n) {
...
PdfImportedPage page1 = writer.getImportedPage(reader, i);
....
if (i < n) {
...
PdfImportedPage page2 = writer.getImportedPage(reader, i);
....
}
if (i < n) {....
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions