As more business applications move into the web environment, it makes sense that things such as document sharing and editing also move to the browser. However, in many situations, users will need to do more than simply view a PDF document.
They may need to add annotations to supply additional information, redact personal information from the document, or even fill out form fields within the document. Thankfully, the Document Solutions JavaScript PDF Viewer makes adding this functionality to your JavaScript application easy.
In this article, we’re going to be going over the following features of the Document Solutions JavaScript PDF Viewer:
Annotation Editor for JavaScript PDF Viewer
Key Features of Annotations
Redact Content from a PDF
Form Editor for JavaScript PDF Viewer
Key Features of Form Editor
Additional Editing Options for PDF Viewer
Now, let's take a look at these features.
The annotation tools in the Document Solutions JavaScript PDF Viewer will help users review and mark important information in their PDF documents. They will also be able to add, modify, and remove annotations from existing PDF documents while preserving the original content.
Users can draw annotations on the PDF and comment and reply to each other's comments. With the ability to hide annotations, users can easily view and print the original documents, and if they need to, they can also print copies that include their annotations. The Annotation Editor lists all of the annotations in your document, which allows you to access and modify existing annotations:
Typically, users rely on Adobe Acrobat to annotate PDFs. With a viewer that includes editing features, your users can annotate their documents right in the application without needing to move back and forth between applications. As you can see, a viewer that includes editing capabilities can significantly streamline a business' workflow.
Here are just a few examples where this functionality would be beneficial:
A website designer prepares screenshots for a website and combines them in a PDF to send for review. Reviewers mark areas that need changes using the annotation tools.
The annotation tools in the Document Solutions JavaScript PDF Viewer make all these scenarios possible. Let’s examine the features included with Annotations.
The following key features are available with annotations:
The Document Solutions PDF Viewer supports all the annotations you need to review your PDF documents. You can add the following:
Document Solutions PDF Viewer annotation tools have an intuitive UI that allows users to draw annotations on the PDF. The PDF Viewer includes a separate Annotation Toolbar and Editor for adding annotations, modifying their properties, or deleting annotations from the existing PDF.
The Property panel displays a list of annotations in your document. You can select any annotation on the PDF, apply annotation-specific properties from the left panel, or delete the annotation.
On the Page tab in the panel, you can see how many annotations exist on your page. When you send your document for review, you can identify the number of edits made.
You can edit existing annotations or remove them at any point while reviewing PDFs in the JavaScript PDF Viewer. To add an annotation, just click the Annotation Editor button on the left panel, and you will see the Annotation Toolbar. Click on any annotation, and draw directly on the PDF. Select the annotation, and you will see the annotation properties displayed in the left panel. You can also load a PDF with existing annotations, select the annotation, modify the properties, or delete the annotation from the property panel.
Users will find extensive support for setting annotation-specific properties in the viewer. You can add rich text, set text color, add a border, set author and subject, add a reply, set the Bounds/X/Y position for the annotations, and much more from the Property panel.
If you want to view the original PDF, you can hide annotations using the Hide button, and print the PDF without annotations.
Click the save button to apply changes to your PDF and save the annotations. The viewer needs to be connected to a server running DsPdf to save the changes. The list of changes and the original PDF are sent to the server, where DsPdf applies the changes. Then, it sends the modified PDF back to the client, where the user can save it.
The Redact Annotation or Redact a region option in the toolbar helps you mark confidential sections for removal. You can set the Mark Border Color and Mark Fill Color to let users mark the area for redaction. The user can set these properties to apply when hovering over the redacted content, i.e., the Overlay Fill Color, Overlay Text, Overlay Text Align, and Repeat Text properties. All of these options will appear in your PDF when the content is removed from the document.
You can also redact specific content from the Apply redact button in the Property panel. Once redaction is applied, you can reset it using the Reset Redact button in the toolbar. However, when saving the PDF, the redacted information is no longer accessible, and applied redactions cannot be reset.
You can apply individual redact annotations or click the Apply all redacts button to apply the redactions throughout the entire document. When you save the PDF with applied redacts, the redacted content will be removed entirely from the PDF. Users cannot select or copy the removed material to another document or make use of other PDF tools to read the redacted content.
With the Form Editor, you can now design interactive PDF forms online. The Editor will help you use various Form Fields and advanced properties when creating your forms. You can also fill out and submit the form online.
The features of the Form Editor include:
You can create the following PDF forms with the Form Designer:
Registration forms (examples: event, university courses, membership, patient history, contests, etc.)
Application forms (examples: job application, loan application, etc.)
Feedback forms (examples: events, website, e-commerce, etc.)
Request forms (examples: rental, information, payment forms, etc.)
The Document Solutions JavaScript PDF Viewer supports several types of form fields that will help make your PDF interactive and complete:
Document Solutions Form Editor tools have a user-friendly UI to add form fields to the PDF. The PDF Viewer includes a separate Form Fields Toolbar and Editor to add form fields, modify the properties, or delete them from the existing PDF. The Property panel displays a list of form fields in your document. You can select any form field on the PDF, apply form field-specific properties from the left panel, and delete the form field. On the Page tab in the panel, you can also see how many form fields exist on your page.
At any point, while designing a PDF form in the online viewer, you can change existing form fields and also remove them. To add a form field, just click the Form Editor button on the left panel, and you will see the Form Editor Toolbar. Click on any form field, and draw directly on the PDF page. Select the form field, and you will see the form field properties displayed in the left panel. You can also load a PDF form with existing form fields, select the form field, apply properties, or choose the Delete option from the property panel to delete the form field.
There is extensive support for setting the form field-specific properties for each form field supported by the viewer. Among a few general features, you can set Name, ReadOnly, Value, Align, Backcolor, Max Length, Border properties, Font size, and set the Bounds/X/Y position of the form fields.
Additionally, you can set the Required property on text fields such as TextField, PasswordField, TextArea, and ComboText Field.
If you want to view the original PDF file, you can hide the form fields using the Hide button on the main toolbar and view or print the PDF file without the form fields.
Apply changes to your PDF document, and save the form fields. This operation needs a DsPdf product on the server to obtain the original PDF and the list of changes, apply the changes, and send the modified PDF back to the client.
After designing the PDF Form, you can let your users fill in and submit the PDF form to the viewer. The form data is either submitted to the database or generated as a PDF from the populated values. You can also import form data into a PDF form from the database into the viewer.
In addition to annotations, redactions, and form fields, you can use the following features to work with and edit PDF documents.
It is possible to use the PDF Viewer to create PDF documents using the New Document button. You can design the PDF or a PDF form through the Annotation and Form Editor tools.
You can add a new page to an existing PDF document or an original PDF document using the New page button, and use the Delete button to delete the pages.
You can select the Annotation/Form Fields added to a PDF document in the Annotation Editor and Form Editor view at any point. Use the Delete button to delete the Annotations or Form Fields from new or existing PDF documents.
If you want to undo or redo your changes to the annotations or form fields, you can use the Undo/Redo buttons in both the Annotation and Form Editor. These buttons record your changes incrementally, and you can keep undoing or redoing your actions until you are satisfied with the result.
With that, we’ve gone over the annotations, redaction, and form fields features of the Document Solutions JavaScript PDF Viewer. As you’ve seen, it couldn’t be easier to add your own annotations, redact information that shouldn’t be displayed, and add/edit form fields to create interactive PDF forms.