hi,

As mentioned in the subject I get this error whenever I generate pdf document 
base on the other one. I've to shuffle pages in the original file and though 
the addTemplate would fit the best. Here is my code:

PdfContentByte cbyte=writer.getDirectContent();
PdfImportedPage page=null;
    for(int i=1;i<=pages;i++){  
      page=writer.getImportedPage(reader,i);
      cbyte.addTemplate(page,0.8f,0,0,0.75f,200,0);  
                
      doc.newPage();
    }

I've no idea where to find the source of the problem or the way to solve it. 
The original file doesn't have any errors.


-------------------------------------------------------
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&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to