asp.net / c# / fdf

I plan to purchase FDF software from  http://www.nk-inc.com/software/fdftoolkit.net/fdftoolkitnet20.aspx

However, most of the codes in vb.net and other c# sample does not seem working.

All I have to do is. I have like insurance application with 2 fields first name and last name in the pdf
I need to use FDF and populate first / last name value to the pdf.

Does anyone use this software in the past? And can show me how to code them in c#/ asp.net?

Thanks
Webboy2008Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RainverseCommented:
I don't know anything about FDF but before you spend your money, you may want to check out: http://itextpdf.com/

-MJC
0
RainverseCommented:
There's a c# example of filling fields for that library here: http://itextpdf.com/examples/iia.php?id=157 (among many others here: http://itextpdf.com/themes/keywords.php
0
Webboy2008Author Commented:
I need more samples using asp.net/c#.
0
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

RainverseCommented:
0
käµfm³d 👽Commented:
You *could* put the samples you have through an online converter:

http://www.developerfusion.com/tools/convert/vb-to-csharp/
http://converter.telerik.com/
0
NKOWACommented:
See examples below...

I'm assuming you already know how to use Visual Studio, and you can reference both iTextSharp.dll, and FDFApp.dll in your project.

// using FDFApp;
private FDFApp.FDFApp_Class cFDFApp = new FDFApp.FDFApp_Class();
private FDFApp.FDFDoc_Class cFDFDoc = new FDFApp.FDFDoc_Class();

protected void PopulateAcrobatPDF()
        {
            FDFApp.FDFApp_Class cFDFApp = new FDFApp.FDFApp_Class();
            FDFApp.FDFDoc_Class cFDFDoc = new FDFApp.FDFDoc_Class();
            cFDFDoc = cFDFApp.FDFCreate();

            //ACROBAT PDF
            cFDFDoc.FDFSetFile(@"C:\myBlankFormLiveCycle.pdf");
            cFDFDoc.FDFSetValue("FirstName", "Bill", true, true);
            cFDFDoc.FDFSetValue("LastName", "Gates", true, true);
            
            //SEND TO BUFFER
            Response.Clear();
            Response.ContentType = cFDFApp.MimeFDF;
            cFDFDoc.FDFSetStatus("Status: Loaded Successfully!", true);
            Response.BinaryWrite(cFDFDoc.FDFSavetoBuf(FDFDoc_Class.FDFType.FDF, true));
            Response.End();
    
        }
        protected void PopulateLiveCyclePDF()
        {
            FDFApp.FDFApp_Class cFDFApp = new FDFApp.FDFApp_Class();
            FDFApp.FDFDoc_Class cFDFDoc = new FDFApp.FDFDoc_Class();
            cFDFDoc = cFDFApp.FDFCreate();

            //LiveCycle PDF AND 
            cFDFDoc.XDPAddForm("TopMostSubForm", @"C:\myBlankFormLiveCycle.pdf");
            cFDFDoc.XDPSetValue("FirstName", "Bill", true, true);
            cFDFDoc.XDPSetValue("LastName", "Gates", true, true);
            
            //SEND TO BUFFER
            Response.Clear();
            Response.ContentType = cFDFApp.MimeXDP; 
            cFDFDoc.FDFSetStatus("Status: Loaded Successfully!", true);
            Response.BinaryWrite(cFDFDoc.FDFSavetoBuf(FDFDoc_Class.FDFType.XDP, true));
            Response.End();

        }

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.