To obtain underline annotations when editing text that already contains them in PDF.js, follow these steps:
- Open the PDF file that contains the text with underline annotations in PDF.js.
- Click on the "Edit" button on the toolbar.
- Navigate to the page where the text with underline annotations is located and click on the text to be edited.
- Use the cursor keys to move to the underline annotation and select it.
- Click on the annotation to open the Annotation Properties dialog.
- In the Properties dialog, select the "Underline" option from the "Type" dropdown menu.
- Click on "OK" to apply the underline annotation to the text.
- Continue editing the text as desired, and save the changes to the PDF file.
Note: If you want to remove an underline annotation, select it and click on the "Delete" button on the toolbar.