File | Date | Author | Commit |
---|---|---|---|
AsposePdfEditor | 2015-02-25 |
![]() |
[71dfa1] New Release v2.3.1 |
AsposePdfEditor.sln | 2014-12-07 |
![]() |
[39a86b] Released v2.1.0 |
LICENSE | 2014-12-07 |
![]() |
[c51f1c] Initial commit |
README.md | 2015-02-25 |
![]() |
[6b3b4f] Updated Readme File |
This is a new and improved PDF Editor application developed in HTML5, jQuery Ajax and ASP.NET to edit PDF files using Aspose.Pdf for .NET. The enhancements in the editor's UI and the improvements in performance by the use of HTML5 with JQuery and Ajax makes it more user friendly and can be easily included in user applications.
Portable Document Format (PDF) is one of the most commonly used file formats today. We come across a requirement quite often to edit a PDF files. Aspose.Pdf for .NET API provides comprehensive features to perform creation, manipulation and conversion of PDF files.
As per the feature request from one of our users, we have implemented the following feature and released v2.3.1 of our HTML5 PDF Editor by Aspose.Pdf for .NET:
This new release of HTML5 PDF Editor now supports the following important features:
Following are some of the features we have already implemented in HTML5 PDF Editor's previous releases and more features will be implemented soon:
You can easily use the attached sample application to perform editing on your PDF documents. You can download the application and start using it to edit your PDF files. In the sample application, we are loading PDF files, converting them to image and viewing them in our application using HTML5 Canvas control. We have kept the UI of the application simple so it is easy to understand the implementation of the features.
Let's see how we can use different features of the PDF editor.
You can create new PDF files using HTML5 PDF Editor. Use the "Create New File" menu item as shown below to create a new PDF file:
After pressing the "Create New File" menu item, a new PDF file with one empty page is created and loaded in the editor as shown below:
We can use the editor to upload the existing PDF file. We can upload the files both from local machine and Dropbox as shown in the below image:
We will choose the file from Dropbox by clicking the menu item "Open From Dropbox" and a popup will appear to select the file from Dropbox as shown below:
Below image shows the file loaded into the viewer:
Now, you can draw the signatures on PDF file using the Drawing tool. To sign the document, select the "Signature" tool as shown below:
After selecting the "Signature" tool, you can click at the location where you want to add the signature. A dialog will appear where you can draw the signature using free hand drawing as shown below:
You can draw the signature in the dialog as shown below:
Once done with the signature, press the "Done" button to place the signature image on the PDF file as shown below:
Once the signature image is added to the PDF viewer, you can drag and resize it and place it at the required location as shown below:
We can load a PDF file with form fields in the similar fashion as we have described above. Currently, we support the following form fields:
After loading a PDF file with form fields, all the form fields are loaded in the editor as shown below:
Once the file with form fields is loaded, you can fill the form using the PDF Editor.
Following is the screenshot of filled form:
The updated file with updated form fields can be saved using the *Save * button and following is the screenshot output PDF file:
If a form has some fields which are required, those will get highlighted after loading in PDF Editor as shown below:
HTML5 PDF Editor provides the feature to add attachments in the PDF file. To add the attachments, select "Add Attachments" from the Attachment menu as shown below:
On selecting the "Add Attachment" option, file upload dialog will open which can be used to attach the file in the PDF document.
HTML5 PDF Editor now supports managing the PDF file attachments. Using the Attachments button, we can open the list of the Attachments in our PDF file as shown below:
Once the attachments are loaded, we can download the attachments from the PDF file using the Download button. We can remove an attachment from PDF file using the Remove button. This will remove the attachment from the list as shown below:
Another important feature supported in PDF Editor is to search the text on all pages of a PDF file. Simply use 'Search Text' button and select 'Search Text' from the dropdown as shown below:
On selecting 'Search Text' from the menu, a popup will appear where you can provide the text you want to search and press Search button as shown below:
After providing the text to search and pressing 'Search' button, all the instances of the text search will be highlighted in the PDF file as shown in the figure below:
Another very useful feature is to replace text in a PDF file. You can use the 'Search' menu and select 'Replace Text' menu item as shown below:
On selecting 'Replace Text', a popup dialog will appear and you will be required to provide the text to find and the text to replace it with as shown below:
After providing the required fields, simply press 'Replace' button and all the occurrences of the required text will be replace with the new text as shown below:
Another very useful feature supported by PDF Editor is to insert images in your PDF file. The images can be inserted from local machine or from Dropbox as per the requirement. You can use 'Insert Image' button and select your desired image import location as shown below:
You can select your desired image from any of the location on your local machine or dropbox and insert it into the PDF file. Below image shows the inserted image in our PDF file:
Using the drag mode, you can select the image and reposition it at a location where you want to insert it. Below image shows the repositioned image:
After loading the file, now we will perform different operations on the PDF file. First, let's see how we can append another PDF file to our loaded PDF file. For that, we will use the 'Append File' button to upload the file as shown below:
Pressing the 'Append File' button will open the File Upload Dialog and you will be required to upload the file you need to append as shown below:
Once the upload completes, you will see that newly uploaded file will get appended at the end of the existing PDF file. Following screenshot shows the result of append process:
Another feature supported by our Html5 PDF Editor is to move pages within PDF file. You can click 'Move Page' button as shown below:
Once you click the button, an input dialog Move Page After will be shown which requires the page number after which you want to move the current page as shown below:
After providing the page number, you simply need to click 'Move button' and your current page will be moved from current location to after the page number you entered.
An important feature of the PDF Editor is to highlight the content of the PDF file. For that, you can simply click the 'Highlight Mode' button as shown in the below figure:
Now, in highlight mode, you can simply highlight the content using your mouse drawing. Following image shows the highlighted text in the PDF file:
Another important feature which is supported by the PDF Editor is to insert text in the PDF file by clicking the 'Text Mode' button.
Now, once the text mode is active, you can click anywhere on the viewer to add text using text edit dialog as shown below:
After adding and formatting the text, you can press the OK button in the editor dialog and the text will be inserted to the PDF file as shown in the image below:
You can also edit the text by clicking the inserted text in the 'Text Mode'. It will again open the text editor dialog with the text you need to edit. The below image shows once we edit the text we just added:
After performing the changes and pressing 'OK' button, the updated text will be shown. We have changed some text and the color of the text and the updated text is shown below:
Now, you can rotate the inserted text after it has been added to the PDF file, for that you need to click on the drag mode and select the text item you want to rotate as shown below:
Now, using the marker, you can rotate the text to any angle as per your requirement as shown below:
Once done, you can save and export the PDF file to see the content in your PDF file as shown below:
Another feature supported in the PDF editor is to drag, reposition or delete the content i.e. Text, image and highlight section inserted in the PDF file. For that, you need to click the 'Drag Mode' button as shown below:
Once you select a highlighted section or some text, it will get a dotted rectangle around it and you can drag it anywhere on your page. The result of dragging feature is shown below:
Another feature is to add pages in PDF file. You can use the Add Page button as shown below and an empty page will be added to the end of the PDF file:
As we can add a new page in our PDF file, we can also delete an existing page from PDF file using the editor. By clicking the Delete Page button, the page in view will get deleted from PDF file:
After you are done with the editing of PDF file, you can press the 'Save PDF File' button to save the changes you made to the PDF file.
This feature allows to export the saved PDF file to different file formats including PDF, Text, HTML, Word, Excel, XPS and SVG. You can simply click the Export File button and choose the format in which you want to export the resultant file.
Following is the resultant PDF file:
You can download the sample application and try it at your end. The complete source code is available and you can use it to further modify the application as per your needs. You can also suggest any changes and we will try to implement them.
I am using a free trial license of Aspose.Pdf for .NET in the application which removes any trial limitations of Aspose.Pdf API. You can also get a free trial license to further explore the features of Aspose.Pdf API as per your requirement. In case no license file is used, the application will work in evaluation mode and will have some restrictions. So, it is recommended to have a free trial license (without any credit card information requirement or any payment).
In evaluation version (without the use of a free trial license or paid subscription of Aspose.Pdf for .NET) only 4 items from any of the collections will be loaded in the editor. Following warning message will be shown in such case:
In such case, please get a free trial license to test the HTML5 PDF Editor without any evaluation restrictions as mentioned above.