{
PDDocument document = null;
try
{
document = PDDocument.load( args[0] );
PDActionJavaScript javascript = new PDActionJavaScript(
"app.alert( {cMsg: 'PDFBox rocks!', nIcon: 3, nType: 0, cTitle: 'PDFBox Javascript example' } );");
document.getDocumentCatalog().setOpenAction( javascript );
if( document.isEncrypted() )
{
throw new IOException( "Encrypted documents are not supported for this example" );