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 field
com.aspose.pdf.TextBoxField textBoxField = (com.aspose.pdf.TextBoxField)pdfDocument.getForm().get(“textbox1”); // Set the tooltip for textfield
textBoxField.setAlternateName(“Text box tool tip”); // Save modified document
pdfDocument.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