Quantcast
Viewing all articles
Browse latest Browse all 3131

PDF Tool Tip Nullpointer Exception

Hello team!

I wanted to check if PDF Java supports a tool tip that can be added as a feature to the pdf document?

I was looking at this sample code you had:

// Open a document com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document("input.pdf");// Get a fieldcom.aspose.pdf.TextBoxField textBoxField = (com.aspose.pdf.TextBoxField)pdfDocument.getForm().get("textbox1");// Set the tooltip for textfieldtextBoxField.setAlternateName("Text box tool tip");// Save modified documentpdfDocument.save("output.pdf");
However the code throws a null pointer exception on textBoxField.setAlternateName("Text box tool tip");
Any reason for this? I am using the aspose-pdf-9.5.0-jdk16.jar





Viewing all articles
Browse latest Browse all 3131

Trending Articles