Hello,
I've found one way to concat pdf files using PDFCopyFields. Ex, if I append file1 and file2, the file result is another file3. But I want the file2.pdf will be appended to file1.pdf, not file3.pdf. Do you have any suggestion?
Here's the code

public class PdfForm extends PdfReader {
public void appendPdfDocument (PdfForm pdf){
        try{
            ByteArrayOutputStream baos    =  new ByteArrayOutputStream();       
            PdfCopyFields copy = new PdfCopyFields(baos);
            copy.addDocument(this);
            copy.addDocument(pdf);
            copy.close();
            PdfForm f = new PdfForm(baos.toByteArray());               
//            FileOutputStream f = new FileOutputStream("D:\\PDF");
//            f.write(baos.toByteArray());
        }
        catch(Exception e){     }           
    }
}

And one more thing, Is there any difference between AcroFields.Item and PRAcroForm.FieldInformatin
Thank in advance.


Nguyet Minh

Chung ta song tren doi nay khong phai de tim thay mot nguoi hoan hao de yeu,ma la de hoc cach yeu nguoi khong hoan hao mot cach tron ven.


All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to