I use the itext library to copy one PDF document to another PDF
document through a Java program. The source PDFs were created using
Acrobat writer. The whole PDF is getting replicated correctly. But I
am not able to get the document-level Javascripts that were defined
in the source PDF. The field-level Javascripts are being replicated.
I tried do
objPdfReader = new PdfReader(lSFileInPdf);
Document doc = new Document(objPdfReader.getPageSizeWithRotation(1));
String onLoadJscript = doc.getJavaScript_onLoad();
But it returns me a null.
Can anyone tell me the solution.