ByteScout PDF SDK - C# - Read Form Values from W-9 form - ByteScout

ByteScout PDF SDK – C# – Read Form Values from W-9 form

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – C# – Read Form Values from W-9 form

How to read form values from W 9 form in C# using ByteScout PDF SDK

The tutorial shows how to read form values from W 9 form in C#

The sample shows steps and algorithm of how to read form values from W 9 form and how to make it work in your C# application. ByteScout PDF SDK is the SDK for pdf documents generation, modification and updates. Can also generate and fill PDF forms. Provides support for text (fonts, style, size, font family), layers, pdf form fields, vector and raster drawings. It can read form values from W 9 form in C#.

This code snippet below for ByteScout PDF SDK works best when you need to quickly read form values from W 9 form in your C# application. In order to implement the functionality, you should copy and paste this code for C# below into your code editor with your app, compile and run your application. Use of ByteScout PDF SDK in C# is also explained in the documentation included along with the product.

Trial version of ByteScout PDF SDK is available for free. Source code samples are included to help you with your C# app.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
using Bytescout.PDF; using System; namespace ReadForm { class Program { static void Main(string[] args) { // Load PDF form Document pdfDocument = new Document(@"W-9_Filled.pdf"); pdfDocument.RegistrationName = "demo"; pdfDocument.RegistrationKey = "demo"; Page page = pdfDocument.Pages[0]; Console.WriteLine("W-9 Form values are as follows"); // Name var cName = ((EditBox)page.Annotations["f1_1[0]"]).Text; Console.WriteLine({code}quot;Name: {cName}"); // Business Address var cAddress = ((EditBox)page.Annotations["f1_2[0]"]).Text; Console.WriteLine({code}quot;Address: {cAddress}"); // Cleanup pdfDocument.Dispose(); Console.WriteLine(); Console.WriteLine("Press any key to exit...."); Console.ReadLine(); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF SDK Home Page

Explore ByteScout PDF SDK Documentation

Explore Samples

Sign Up for ByteScout PDF SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF SDK Home Page

Explore ByteScout PDF SDK Documentation

Explore Samples

Sign Up for ByteScout PDF SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next