Thanks Paulo, I've actually worked it out. I should have used:
pdfbookmark["Page"] = "0 /XYZ"; instead of pdfbookmark["Page"] = "/XYZ"; Having the first one meant that SimpleBookmark rejected the destination. I think. Perhaps SimpleBookmark could be made a little more verbose, I don't think it raised any errors. Regards, Billy. On Mon, Mar 2, 2009 at 10:00 PM, Paulo Soares <[email protected]> wrote: > A look at the resulting PDF would help. > > Paulo > >> -----Original Message----- >> From: Billy Anachronism [mailto:[email protected]] >> Sent: Monday, March 02, 2009 4:53 AM >> To: [email protected] >> Subject: [iText-questions] GoToR and Simplebookmarks >> >> Hi, >> >> I'm trying to create some outlines that link to external pdf >> documents. I've got the hash entries (I'm using iTextSharp): >> >> pdfbookmark["Title"] = bkmarks[current][2]; >> pdfbookmark["Kids"] = kids; >> pdfbookmark["Action"] = "GoToR"; >> pdfbookmark["Page"] = "/XYZ"; >> pdfbookmark["File"] = bkmarks[current][1]; >> pdfbookmark["NewWindow"] = "false"; >> >> The outline shows up fine but there is no link. Have I added >> something wrong? >> >> Cheers, >> >> Billy > > > Aviso Legal: > Esta mensagem é destinada exclusivamente ao destinatário. Pode conter > informação confidencial ou legalmente protegida. A incorrecta transmissão > desta mensagem não significa a perca de confidencialidade. Se esta mensagem > for recebida por engano, por favor envie-a de volta para o remetente e > apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o > destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. > > Disclaimer: > This message is destined exclusively to the intended receiver. It may contain > confidential or legally protected information. The incorrect transmission of > this message does not mean the loss of its confidentiality. If this message > is received by mistake, please send it back to the sender and delete it from > your system immediately. It is forbidden to any person who is not the > intended receiver to use, distribute or copy any part of this message. > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > 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 > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ 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
