I am having problems with opening a certain type of application.

I use a PdfPCellEvent to add an launching event to a PdfPCell.

code:

public class MyCellEvent implements PdfPCellEvent {

public void cellLayout(PdfPCell cell, Rectangle position,
PdfContentByte[] canvases) {
String uri = "some uri";
PdfContentByte cb =
canvases[PdfPTable.TEXTCANVAS];
cb.setAction(PdfAction.createLaunch(uri,null,"open",null),position.getLeft(),position.getBottom(),position.getRight(),
position.getTop());
}
}

It works for most resources, however, when I want to launch a local
pdf file acrobat crashes. For example:
uri = "file:///c:/test.pdf"

I know it also can be solved by using a gotoRemotePage action. However,
I rather do it in this way, so every file-type is supported.

Any ideas?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to