Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
From Filling in PDF Forms with ASP.NET and iTextSharp - 4GuysFromRolla.com[^] I downloaded the source code, and then created a ASP.Net project using the code. However, I could not compile the project due to the missing of components. For instance, for the 2 lines of the code below, the PDFFieldType and PDFCheckBoxFieldType are in red-error:
C#
var formFieldType = PDFFieldType.GetPDFFieldType(formFields.GetFieldType(entry.Key.ToString()));
if (formFieldType is PDFCheckBoxFieldType) { ... }

I downloaded the XFINIUM.PDF WIN/MONO PROFESSIONAL EDITION 6.2.0 components downloaded from http://www.xfiniumpdf.com/xfinium-pdf-downloads.html and then installed its .msi. It looks to be that there are some missing components.

What I have tried:

Looking for a couple of PDF related components ......
Posted
Updated 15-Jun-16 9:40am

1 solution

You didn't read the article very carefully. It tells you explicitly:
Quote:
that examines how to programmatically work with PDF files from an ASP.NET application using iTextSharp, a .NET open source library for PDF generation.

It's even in the title of the article!
 
Share this answer
 
v3
Comments
s yu 16-Jun-16 7:27am    
Dave: I followed the procedure step by step. I did load the itextsharp.dll as one of the reference. The iTextSharp version from the source code is 4.1.6. I checked itextsharp on Object Browser, but could not find the 3 members (PDFCheckBoxFieldType, PDFFieldType.GetPDFFieldType, PDFHelper.GetExportValue) in the program.
Dave Kreskowiak 16-Jun-16 8:29am    
Did you add the appropriate using directives to the top of the code to import the namespaces those classes are in?
s yu 16-Jun-16 9:05am    
I loaded the code from the original (including: using iTextSharp.text.pdf; on the top). Could you provide additional advisory if you can? Thanks.
Dave Kreskowiak 16-Jun-16 9:18am    
Do you still get the squiggley red line under those terms?
s yu 16-Jun-16 9:23am    
Yes for the squiggley red lines. Through Object Browser, can't find the missing components.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900