I’d like to be able to use Aspose.Pdf.Kit to set the tooltip text for a text field in a PDF form. I can do this manually in Adobe Acrobat Professional. However, I have not found a way of doing this in Aspose.Pdf.Kit, though I did see ways of changing much of the other information about a PDF form field in Pdf.Kit. Is there a way of doing this in Pdf.Kit?
Hi Mark,
I’m sorry to inform you that setting tooltip is currently not supported by either Aspose.Pdf.Kit or Aspose.Pdf. However, I have logged a new feature request as PDFKITNET-22445 in our issue tracking system. Our team will look into this requirement and you’ll be updated via this forum thread once it is supported.
We’re sorry for the inconvenience.
Regards,
Is there a workaround that you can suggest I use where some text would be displayed when the mouse enters a field and the text would no longer be displayed when the mouse exits the field?
Also if I create an Aspose.Pdf.Kit.Form and examine some of the fields in it, how can I close the form without saving it? If I made no modifications to the form, then I don't want to save anything.
Thanks,
Mark Novick
software engineer
ASC
Hi Mark,
As I mentioned in my previous post, we need to investigate your requirement for tooltip; however, I’m afraid, we’re unable to provide the workaround for this requirement at the moment.
As far as your second questions is concerned, if you don’t want to save the form then please do not call the Save method of the Form object.
I hope this helps. If you have any further questions, please do let us know.
Regards,
Is there some alternative way I can show the text? For example FormEditor has a RemoveFieldAction method. Is there some way to add a field action? Could I somehow add an extra field and show it? I'd prefer that the extra field only be shown after the mouse enters a field, but I might be able to live with it if an extra field were always shown in addition to the original field. I could use the z-order to put one field on top of another field. Aspose.Pdf has a FloatingBox class. I could try to show a FloatingBox in addition to the original field.
I'd like to make changes to a PDF in Adobe Reader, save them, then compare the original and new version and use Aspose's software to create a new PDF which contains the fields of the updated PDF but in addition somehow shows the original values of the fields that have changed as well.
Regarding my second question, if I have a PDF Form that has not been saved, will that prevent another application from writing to the PDF or deleting it? If this is prevented, then how do I close the PDF Form in Aspose so that other applications can modify the PDF file?
Another issue: I'd like to update field values and field attributes, such as the background color. It seems that I need Pdf.Kit.Form to change the values and Pdf.Kit.FormEditor to change the field attributes. This seems awkward since I have to save changes that I make in the Form before making the changes in FormEditor, or vice versa. Am I missing something, or do I need extra saves here?
Thanks,
Mark Novick
software engineer
ASC
Hi Mark,
As far as RemoveFieldAction is concerned, it is only supported for the Button controls. You may check all the possible ways JavaScript can be used using Aspose.Pdf.Kit in this topic.
You can add a new field using FormEditor class as shown in this example. If you just want to add some kind of comments or explanation, you may try annotation feature of Aspose.Pdf.Kit.
Moreover, if you only want to open an existing PDF file and just read the values then you don’t need to save the file and the source file can be used or deleted by any other application or worker process.
I would like to share that Form class allows you to work with the PDF form’s data while FormEditor class helps you manipulate PDF form fields. I’m afraid, in order to perform both of these operations, you’ll have to open and save the file with these classes separately.
If you have any further questions or concerns, please do let us know.
Regards,