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.

Try ByteScout PDF SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

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(); } } }

Try ByteScout PDF SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout PDF SDK Home Page

Explore ByteScout PDF SDK Documentation

Get ByteScout PDF SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next