We are writing a program that needs to insert document-level JavaScript with iText 7. We founded that with iText 5, the solution was Stamper.AddJavaScript().
相关问题
- Get the Creation Date of a PDF file using iText 7
- iText 7 can not set margin
- iText 7 accessible PDFs from HTML: how do I avoid
- itext7 pdf 只读
- Add Digital Signature to a PDF using IText 7
相关文章
- itext7 pdf 只读
- Reader extensions not needed anymore for digital s
- Cannot draw elements on already flushed pages
- iText 7: Paragraph height as it would be rendered
- iText7 Convert PDF to Image
- iText embedding Color space (ICC Profile) in PDF I
- Manipulate paths, color etc. in iText
- How to bring image to the front(of the text/image)
It depends on the type of event you want your
JavaScript
code to be triggered at.For instance, to define an action that would be executed as soon as the document is opened, use
PdfDocument#getCatalog().setOpenAction
.Example for opening a print dialog when the document is opened: