紙のフォームがある場合は、それをスキャンして、CutePDFなどのプログラムでPDFフォームに変換できます。次に、(長方形をドラッグして)入力できるフィールドを作成し、名前を付けて、フォームを保存します。iTextSharpは、プログラムによる方法でフォームフィールドに入力できるC#ライブラリです。
例:
//Replace with path to the form
var pdfFormLocation = "C:\\pdfForm.pdf";
//Adjust below path to a temp location
var pdfPath = String.Format("C:\\temp\\{0}", Guid.NewGuid().ToString());
File.Copy(pdfFormLocation, pdfPath, true);
var reader = new PdfReader(pdfPath);
var output = new FileStream();
var stamper = new PdfStamper(reader, output);
//the form field names can be a little hairy
stamper.AcroFields.SetField("topmostSubform[0].Page1[0].f1_01_0_[0]", "Your Name");
//make the form no longer editable
stamper.FormFlattening = true;
stamper.Close();
reader.Close();
//now you can go print this file from pdfPath
リンク:
iTextSharp
CutePDF