Abdullah  Kozey

Abdullah Kozey

1624119660

Add Digital and Visual Signatures to PDF Documents in C# .NET

Signatures have always played a significant role in authenticating the validity of documents. In the past, the signature was added using the ink-and-paper based approach. Now, most of the documents are created and shared in a PDF format.

Even the signing process has become digitized, and PDF documents are signed using Digital Signature. The signing of a document using a digital signature does not require the signing authority to be physically present. Instead, the individual/enterprise can create a DigitalID, which acts as their electronic identity and has been verified by the trusted authorities.

This DigitalID is then used to add digital signatures to the document.

GrapeCity Documents for PDF (GcPdf) is a cross-platform library used to create, analyze, and modify PDF documents. Grapecity Documents for PDF supports the digital signature feature. It can be used to sign PDF documents using the relevant API members.

This post shows you how Grapecity Documents for PDF can generate signed PDF documents by adding digital and visual signatures.

Using Digital Signatures

Digital signatures are commonly used for authenticating PDF documents in almost every enterprise or business, whether it is a government sector, banking, software, tax computation, business contracts, or agreements.

The ability to digitally sign documents offers numerous advantages, such as saving on the paper, efficient utilization of time, providing added security, and remotely signing a document. Grapecity Documents for PDF enable you to sign documents digitally – without Adobe Acrobat dependencies.

#web #.net #desktop #document apis

What is GEEK

Buddha Community

Add Digital and Visual Signatures to PDF Documents in C# .NET
Einar  Hintz

Einar Hintz

1602560783

jQuery Ajax CRUD in ASP.NET Core MVC with Modal Popup

In this article, we’ll discuss how to use jQuery Ajax for ASP.NET Core MVC CRUD Operations using Bootstrap Modal. With jQuery Ajax, we can make HTTP request to controller action methods without reloading the entire page, like a single page application.

To demonstrate CRUD operations – insert, update, delete and retrieve, the project will be dealing with details of a normal bank transaction. GitHub repository for this demo project : https://bit.ly/33KTJAu.

Sub-topics discussed :

  • Form design for insert and update operation.
  • Display forms in modal popup dialog.
  • Form post using jQuery Ajax.
  • Implement MVC CRUD operations with jQuery Ajax.
  • Loading spinner in .NET Core MVC.
  • Prevent direct access to MVC action method.

Create ASP.NET Core MVC Project

In Visual Studio 2019, Go to File > New > Project (Ctrl + Shift + N).

From new project window, Select Asp.Net Core Web Application_._

Image showing how to create ASP.NET Core Web API project in Visual Studio.

Once you provide the project name and location. Select Web Application(Model-View-Controller) and uncheck HTTPS Configuration. Above steps will create a brand new ASP.NET Core MVC project.

Showing project template selection for .NET Core MVC.

Setup a Database

Let’s create a database for this application using Entity Framework Core. For that we’ve to install corresponding NuGet Packages. Right click on project from solution explorer, select Manage NuGet Packages_,_ From browse tab, install following 3 packages.

Showing list of NuGet Packages for Entity Framework Core

Now let’s define DB model class file – /Models/TransactionModel.cs.

public class TransactionModel
{
    [Key]
    public int TransactionId { get; set; }

    [Column(TypeName ="nvarchar(12)")]
    [DisplayName("Account Number")]
    [Required(ErrorMessage ="This Field is required.")]
    [MaxLength(12,ErrorMessage ="Maximum 12 characters only")]
    public string AccountNumber { get; set; }

    [Column(TypeName ="nvarchar(100)")]
    [DisplayName("Beneficiary Name")]
    [Required(ErrorMessage = "This Field is required.")]
    public string BeneficiaryName { get; set; }

    [Column(TypeName ="nvarchar(100)")]
    [DisplayName("Bank Name")]
    [Required(ErrorMessage = "This Field is required.")]
    public string BankName { get; set; }

    [Column(TypeName ="nvarchar(11)")]
    [DisplayName("SWIFT Code")]
    [Required(ErrorMessage = "This Field is required.")]
    [MaxLength(11)]
    public string SWIFTCode { get; set; }

    [DisplayName("Amount")]
    [Required(ErrorMessage = "This Field is required.")]
    public int Amount { get; set; }

    [DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
    public DateTime Date { get; set; }
}

C#Copy

Here we’ve defined model properties for the transaction with proper validation. Now let’s define  DbContextclass for EF Core.

#asp.net core article #asp.net core #add loading spinner in asp.net core #asp.net core crud without reloading #asp.net core jquery ajax form #asp.net core modal dialog #asp.net core mvc crud using jquery ajax #asp.net core mvc with jquery and ajax #asp.net core popup window #bootstrap modal popup in asp.net core mvc. bootstrap modal popup in asp.net core #delete and viewall in asp.net core #jquery ajax - insert #jquery ajax form post #modal popup dialog in asp.net core #no direct access action method #update #validation in modal popup

I am Developer

1597488623

Laravel 7 Digital Signature Pad

In this post, i will show you how to create digital signature pad in laravel.

Here, i will guide you step by step to create digital signture pad in laravel. So, follow the following steps and create digital signature pad in laravel.

Laravel Signature Pad Tutorial

Follow below given steps to create laravel digital signature pad app:

  1. Step 1: Install Laravel New App
  2. Step 2: Connect Database To App
  3. Step 3: Create One Model and Migration
  4. Step 4: Add Routes For digital Signature Pad
  5. Step 5: Create Controller by Artisan Command
  6. Step 6: Create Blade View
  7. Step 7: Make Upload Directory
  8. Step 8: Start Development Server

https://www.tutsmake.com/laravel-signature-pad-tutorial-from-scratch/

#laravel digital signature #digital signature implementation in laravel #laravel signature pad #signature pad laravel #digital signature laravel

Ari  Bogisich

Ari Bogisich

1598649660

Document Accessibility for PDF Documents in C# .NET

GrapeCity Documents

Tagged PDF Documents

An accessible PDF is also referred to as a tagged PDF document. PDF tags have names similar to HTML tags. Here is a list of standard tags used in PDF documents. Adding these tags has no visual effect on the document. They add a hidden structure to the document which represents the document content in a manner recognizable by a screen reader or other text to speech recognition software.

GrapeCity Documents for PDF (GcPdf) allows users to create tagged PDF documents. Below we discuss how to add tags to different content elements such as text, paragraphs, lists, images, etc.

How to Create a Tagged PDF Document

A PDF document is composed of different content elements such as text, paragraphs, lists, images, and tables. Each of these elements can be represented by a standard PDF tag such as ‘P’ for paragraph, ‘L’ for list, and ‘Figure’ for an image.

When creating a tagged PDF document, add a tag for each content element. This collection of these tags is represented by a tree with child nodes. This tree is presented to the screen reader, which then uses it to read the PDF content out loud for people with disabilities.

Following the same approach as described above, GcPdf tags a PDF document using a set of structural elements. Each structural element represents a content element in the document.

For example, to represent a paragraph create a structural element of the ‘P’ tag type. structural elements are represented by StructElement class provided by the GcPdf library.

Follow the steps below to create a tagged PDF document with GcPdf:

  1. Create a new PDF document by initializing the GcPdfDocument class and add a new page to it by accessing the Pages property of the GcPdfDocument class.
  2. Fetch the page graphics by accessing the Graphics property of the Page class. The returned GcPdfGraphics class instance will be used to render the document content and create the logical structure tree by adding the appropriate tags.
  3. Create a container element by initializing an instance of the StructElement class and it to the tree root by accessing the StructTreeRoot property of the GcPdfDocument class. The container elements are added at the highest level of hierarchy to provide grouping for other block-level elements.
  4. Create a block-level element by initializing an instance of the StructElement class, based on the type of content that you adding to the document (such as paragraph, list, table, and images)
  5. Add the block element as a child in the container element (created in the above step) by accessing the Children property of the StructElement class.
  6. Generate the content for the block-level element by invoking the appropriate method such as DrawImage for rendering image, DrawTextLayout for rendering text/paragraphs, and so on. The content being generated must be rendered as marked content by invoking the BeginMarkedContent method of GcPdfGraphics class which must be enclosed by the EndMarkedContent method of GcPdfGraphics class. The BeginMarkedContent method accepts a parameter of type TagMcid class, which acts as the identification of the marked content.
  7. Append the generated marked content to the related structure element by accessing the ContentItems property of the StructElement class.
  8. Set the Marked property of MarkInfo class to True, by accessing the MarkInfo property of the GcPdfDocument class, this would indicate that the document conforms to the Tagged PDF conventions.
  9. Save the PDF document by invoking the Save method of the GcPdfDocument class.

#web #.net #document apis #c# #programming-c #csharp

Abdullah  Kozey

Abdullah Kozey

1624119660

Add Digital and Visual Signatures to PDF Documents in C# .NET

Signatures have always played a significant role in authenticating the validity of documents. In the past, the signature was added using the ink-and-paper based approach. Now, most of the documents are created and shared in a PDF format.

Even the signing process has become digitized, and PDF documents are signed using Digital Signature. The signing of a document using a digital signature does not require the signing authority to be physically present. Instead, the individual/enterprise can create a DigitalID, which acts as their electronic identity and has been verified by the trusted authorities.

This DigitalID is then used to add digital signatures to the document.

GrapeCity Documents for PDF (GcPdf) is a cross-platform library used to create, analyze, and modify PDF documents. Grapecity Documents for PDF supports the digital signature feature. It can be used to sign PDF documents using the relevant API members.

This post shows you how Grapecity Documents for PDF can generate signed PDF documents by adding digital and visual signatures.

Using Digital Signatures

Digital signatures are commonly used for authenticating PDF documents in almost every enterprise or business, whether it is a government sector, banking, software, tax computation, business contracts, or agreements.

The ability to digitally sign documents offers numerous advantages, such as saving on the paper, efficient utilization of time, providing added security, and remotely signing a document. Grapecity Documents for PDF enable you to sign documents digitally – without Adobe Acrobat dependencies.

#web #.net #desktop #document apis

Tamale  Moses

Tamale Moses

1620917400

How to Parse and Extract Content from PDF Documents in C# VB.NET

GrapeCity Documents for PDF v3.2 has significant new enhancements for extracting text from PDF documents. The logic is improved, easily handling individual cases such as text rendered multiple times to create bold or shadowed text effects so that text is not repeated in the output but only appears once in the document. The FindText method now returns a FoundPosition object, returning an array of Quadrilateral structures from its Bounds property – the FindText method finds text which spans more than one line. A new property ITextMap.Paragraphs now returns a collection of ITextParagraph objects associated with the ITextMap.

Extract Paragraphs Using ITextMap.Paragraphs

This example reads an existing multi-page PDF document and shows how to use ITextMap.Paragraphs to extract paragraphs from each page of a PDF document. The complete example and code is included in the updated sample explorer for GrapeCity Documents for PDF.

#web #.net #desktop #vb.net #c# #pdf