Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7173903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:55:19+00:00 2026-05-28T15:55:19+00:00

Is there any to fill PDF form fields using an Excel Data source? (Think

  • 0

Is there any to fill PDF form fields using an Excel Data source? (Think 1000 pdf’s)

For each row in Excel create a new blank pdf based from template “myForm.pdf” and fill in the matching values from the columns in Excel to the fields in “myForm.pdf” then save it as “myForm(i).pdf”

Finally Merge all the pdfs into a single PDF document.

VBA or Javascript for Adobe is fine as long as the concept holds true. Some manual parts are ok if it’s not too much.

Not too many tutorials out there apparently so I really appreciate any expertise here.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:55:20+00:00Added an answer on May 28, 2026 at 3:55 pm

    As promised 🙂

    TRIED AND TESTED

    // Add reference to iTextSharp.dll. Freely available on the web. Free to use for non commercial applications.
    
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.IO;
    using System.Windows.Forms;
    using iTextSharp;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using iTextSharp.text.xml;
    
    namespace WindowsFormsApplication3
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            private void button1_Click(object sender, EventArgs e)
            {
                // Original Pdf
                string PDFFile = "C:\\MyOriginalPDF.pdf";
    
                // New Pdf
                string newPDFFile = "C:\\NewPDFFILE.pdf";
    
                PdfReader pdfReader = new PdfReader(PDFFile);
                PdfStamper pdfStamper = new PdfStamper(pdfReader, new FileStream(newPDFFile, FileMode.Create));
    
                AcroFields pdfFFields = pdfStamper.AcroFields;
    
                // Fill PDF Form Fields
                pdfFFields.SetField("FieldName1", "Value1");
                pdfFFields.SetField("FieldName2", "Value2");
                //
                // And So on
    
                // Use this to remove editting options by setting it to false
                // To keep editing option leave it as TRUE
                pdfStamper.FormFlattening = true;
    
                // close the pdf
                pdfStamper.Close();
            }
        }
    }
    

    Edit: To interact with Excel From C#, I would recommended visiting the below mentioned link.

    Topic: VB.NET and Excel

    Link: VB.NET and Excel

    To convert the VB.Net Code to C# use the below link 🙂

    Topic: Convert C# Code to VB.Net and vice-verse

    Link: http://www.developerfusion.com/tools

    Do let me know if you are still stuck and we will take it from there… 🙂

    More Edits!!!

    Inspired by your post, I finally ended up writing an article on my blog. Now all you have to do is copy the entire code and convert it into C# and make relevant changes to suit your needs 🙂

    Topic: Fill/Retrieve data from PDF Form Fields using VB.Net From an Excel File

    Link: http://www.siddharthrout.com/index.php/2018/08/28/fillretrieve-data-from-pdf-form-fields-using-vb-net-from-an-excel-file/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been able (using itextsharp) to insert data into fields on a pdf and
I have created a PDF form that represents a certificate. Is there any way
Is there any method (that doesn't use loop or recursion) to create and fill
Is there any method (that doesn't use loop or recursion) to create and fill
Is there any way to enforce a template in Bugzilla to guide users fill
Is there any way to check whether a file is locked without using a
Is there any way to fill an ellipse or a rect by point to
Is there any way to fill a style sheet box with leader? For example
Is there any command or tool that can recreate the schema and fill the
Is there any way to make boost::bind work with std::fill ? I tried the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.