I know - that bit was as offensive to write - I decided to post it as wrong 
because I had seen people on various forums suggest it. Perhaps that did not 
come across.

In regards to my question on using anchors with concatenating documents - I 
have used the book to make several attempts with no success. I am clearly 
missing something and in no way assume it is simple. I was only hoping that you 
could give me (and maybe others) a pointer in the right direction.


Katrina Walker wrote:
> I tried to do this earlier and found that only the last byte array to be 
> copied would be displayed in the produced pdf.
> 
>   byte[] cover = cFs.cpbaos.toByteArray();
>   byte[] toc = cFs.tocbaos.toByteArray();
>   byte[] content = cFs.cbaos.toByteArray();
>                        
>   byte[] pdf = new byte[cover.length+toc.length+content.length];
>   System.arraycopy(cover, 0, pdf, 0, cover.length);
>   System.arraycopy(toc, 0, pdf, cover.length, toc.length);
>   System.arraycopy(content, 0, pdf, cover.length+toc.length, 
> content.length);

O, o, o, that's not supposed to work.
That's like cursing in Church!!!
If you know it doesn't work, why do you post stuff like this?

> I ended up using PdfReader and PdfCopy and it worked well.

OK.

> When the pdf is produced the pointed cursor does display over the table 
> of contents headings but doesn't appear to know what it references. Is 
> this an issue with concatenating the two Documents or with how I have 
> implemented it?

It's not as simple as you assume.



Katrina Walker wrote:
> Hi,
>
> I am trying to produce a pdf with a table of contents at the start of 
> the pdf. The problem I have is that the table of contents can only be 
> populated once all the content has been processed (due to existing 
> codebase).  I am currently using a com.lowagie.text.Document for the 
> table of contents and then a com.lowagie.text.Document for the 
> content. I was wondering if there is a way to concatenate the two 
> Documents and then create the PDF as opposed to creating two PDF's and 
> concatenating them.
>
> Thanks
> Kat Walker
>
>
>

*********************************************************************
Please note that:

1. This e-mail may constitute privileged information. If you are not the 
intended recipient, you have received this confidential email and any 
attachments transmitted with it in error and you must not disclose, copy, 
circulate or in any other way use or rely on this information.
2. E-mails to and from the company are monitored for operational reasons and in 
accordance with lawful business practices.
3. The contents of this email are those of the individual and do not 
necessarily represent the views of the company.
4. The company does not conclude contracts by email and all negotiations are 
subject to contract.
5. The company accepts no responsibility once an e-mail and any attachments is 
sent.
http://www.integralis.com
*********************************************************************



------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to