Sign PDF documents from Smart Card and Key Store Location using Aspose.PDF for .NET

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

February release of Aspose.PDF for .NET has been rolled out and is thriving with exciting features and enhancements. Our efforts to implement most requested functionalities has brought up the API this far that its feature set has become such enriched and appealing. Being specialized API in order to process PDF documents, Aspose.PDF for .NET 19.2 brings more interesting features in this revision. In this post, we will be going to explore what is new in this release and having insights into further improvements. Without waiting so much, let’s learn what this update of the API offers and how it can be consumed to perform newly introduced functionalities.

Signing a PDF document from a Smart Card

Signing PDF documents with digital signatures is common exercise when you intend to secure them. This functionality can be achieved using Adobe Reader by following “Adding Signatures and Security” guide. In referred guide, you can notice that all steps are performed manually by using Adobe Reader. But, automating this entire process and getting this done programmatically sounds more efficient and time saving. Isn’t it? At this point, Aspose.PDF can definitely save you big time from efforts. Those who are already users of the API, may know that it offers functionality to digitally sign PDF documents as well as certify them using PFX file.

Well, extending its feature set in the region of signing and security, Aspose.PDF for .NET now offers the functionality to add digital signatures from a key store location. Which means you will be able to apply the signature by accepting the certificate provided by certificate store, smart card or PIV card connected to the system at run-time. All of the mentioned functionality can be achieved by just using following simple code snippet(s):

Using Signature Field

Using PdfFileSignaure

Major Enhancements for Creating Tagged PDFs

We are not yet done with the updates this release of the API has brought. There have been many requests for the feature to create Tagged PDFs (PDF/UA) which is finally offered by the API. With every release of the API, this feature is being richer with useful enhancements. You can now achieve following by using this release of the API:

  • Styling Text Structure: Support of setting text style for structure elements was implemented to TaggedPdf. Access to necessary property perform through StructureTextState property of StructureElement. (Only for Structure Element which implements the ITextElement interface). All properties can be null. Use null to inherit necessary property from parent Structure Element. (Default value is null).
  • Access Structure Elements Attributes: Access to structure elements attributes was implemented to TaggedPdf. StructureAttributeCollection, StructureAttributes and StructureAttributes classes is intended for work with attributes. AttributeOwnerStandard, AttributeKey and AttributeName classes contain valid values for corresponding entities.
  • Illustrate Structure Elements

Useful Improvements and Fixes

As per the history of monthly API revisions, this release of the API has also been improved for performance and usability. Following is the list of useful improvement and fixes in Aspose.PDF for .NET 19.2:

  • HTML to PDF Conversion Engine has been further improved
  • Text Extraction scenarios have been taken care of to return precise coordinates
  • Memory consumption in processing text paragraphs has been optimized
  • API is further improved to work in non-windows platforms
  • Inter-File format conversion is further improved
  • Text replacement and searching scenarios have been improved

It would surely be exciting to use API with such above mentioned improvements, enhancements and of course new feature. Now you must have pretty good idea of what’s new in the API and how it can improve your experience to automate PDF documents processing.

Well, story does not end here as you can also check release notes page of this release of the API for every minor detail of the updates. In case you still have inquiries in this regard, you are most welcome to post them in our forums. For more exciting features and news, stay tuned with us.