Hi,
I have a requirement of merging two documents.I saw the code below which may
be helpful to me.But i m facing some problem with it.Markus can u please
send me a more detailed code of how u r using PdfCopyMerge.
I am using something like this:

 ByteArrayOutputStream baosPDF = new ByteArrayOutputStream();
 PdfCopyMerge tPdfCopyMerge = new PdfCopyMerge(baosPDF);
 document = new Document(PageSize.A4, 80, 50, 30, 65);
 writer=PdfWriter.getInstance(document, baosPDF);
  document.open();
  LetterOfCreditPdf letterOfCredit=new LetterOfCreditPdf(); // this is my
data class
      baosPDF=letterOfCredit.generatePDFDocumentBytes(request,ctx);
      String b=baosPDF.toString();//+baosPDF.toString();
      byte b1[]=b.getBytes() ;
      PdfReader pReader=new PdfReader(b1);
      PdfReader pReader1=new PdfReader(b1);
      tPdfCopyMerge.addDocument(pReader);
      tPdfCopyMerge.close();

----- Original Message -----
From: "Markus Spitzer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 21, 2004 5:47 PM
Subject: [iText-questions] Lost tab order because of PdfCopyMerge


>
> I use PdfCopyMerge to concat two pdfforms.
>
> Code:
>  PdfCopyMerge tPdfCopyMerge = new PdfCopyMerge(tByteArrayOutputStream);
>        tPdfCopyMerge.addDocument(PdfReader1);
>        tPdfCopyMerge.addDocument(PdfReader2);
>        tPdfCopyMerge.close();
>
> The problem is, I lose the original tab order in the merged pdf file
because
> of this.
> Is there any solution for my problem?
>
> Markus
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to