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. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ 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
