Destination
- From: "Paulo Soares" <psoares (at) consiste.pt>
- Date: Wed, 17 May 2006 16:38:30 +0100
Use an action.
PdfAction action = PdfAction.gotoLocalPage("some name", true);
Even if the destination is not created no error will be produced.
Paulo
> -----Original Message-----
> From: itext-questions-admin (at) lists.sourceforge.net
> [mailto:itext-questions-admin (at) lists.sourceforge.net] On
> Behalf Of Pablo Nebrera Herrera
> Sent: Wednesday, May 17, 2006 3:36 PM
> To: itext-questions (at) lists.sourceforge.net
> Subject: [iText-questions] Destination
>
> I have local destination on my pdf and it works perfect.
>
> I have changed my code a bit and now it doesn't :-( I add destination
> that has no destination on my local PDF. The problem is, I
> can not know
> it the destination will exist or not.
>
> How could I add destinations even it f they don't exist on yhe local
> pdf?
>
> I throws an exception when I close the document:
>
> java.lang.RuntimeException: The name '0.0.0.0' has no local
> destination.
> at
> com.lowagie.text.pdf.PdfWriter.addLocalDestinations(Unknown Source)
> at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)
> at com.lowagie.text.Document.close(Unknown Source)
> at com.jmrep.reportCenter.makeReport(reportCenter.java:146)
> ......
>
> Thanks a lot
>
>
> Pablo
>
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web
> services, security?
> Get stuff done quickly with pre-integrated technology to make
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> dat=121642
> _______________________________________________
> iText-questions mailing list
> iText-questions (at) lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
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.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions