ASP.NET Collect user input from PDF Form fields.

We are considering a number of application requirements, and we are considering a number of solutions. Given that we are probably not the only developer who has ever been introduced with these requirements, we are wondering which solution and methods others might choose ...

The following are, in general, requirements for one specific application function:

- Platform: ASP.NET

- Collect user input (via standard web forms)

- fill out PDF forms using collected user input AND DO NOT PAY PDF formats

- Immediately display PDF forms (in a browser) and allow the user to edit the contents of the fields (PDF forms must be displayed in iFrame).

- allow the user to "send" the modified PDF file to the web server (where it will be finally flattened and saved in the database)

The last moment, as you can imagine, is the one that makes us scratch our heads ... how to "save" a PDF file with user changes - return to the web server file system ... where it will be completely flattened and saved in the database.

Any practical suggestions? Any recommendations? Do alternative solutions NOT include PDF forms?

Keep in mind that given the target audience, Adobe LiveCycle licensing solutions are definitely NOT in the picture ....

thank

Giorgio

+3
source share
4 answers

PDF, iTextSharp ( AcroForm XFA/LiveCycle).

, iTextSharp ( iText) AcroForm, LiveCycle FLATTEN.

, PDF ​​ :

  • FDF: PDF. /, .
  • HTML-
  • PDF: PDF ( ) URL-. , . , "Reader Enabled" Reader.

iText PdfStamper ( !) , PDF Reader-Enabled-ness.

:

  • , , iText PdfStamper PDF .
  • PDF
  • PDF PdfStamper. "open, setFormFlattening (true), close()".

PDF FDF PDF ( , PDF IIRC, Reader Acrobat). , PDF .

FDF :

%FDF-1.2
%âãÏÓ
1 0 obj
<</F(http://www.mySite.com/myPDF.pdf)
/Fields[
  <</T(Check1)/V/Off>>
  <</T(Some Field)/V(A value)>>
  <</T(AnotherFld)/V(1.0)>>
  <</T(You get)/V(the idea)>>
 ]
>>/Type/Catalog>>
endobj
trailer
<</Root 1 0 R>>
%%EOF

< < → wrap "" ( ).
()
[]
/ "". , .

:

'\'.\r,\n,\t,\b,\f, (,) \. OCTAL:\ooo, "o" - .

(grr).

escapes '#', . HEX , . Grr grr. , a-z A-Z 0-9. _; * @ . , .

( , , , , /URL- PDF), .

FDF , FDF .

, FDF , FDF , , .

+2

, , iTextSharp. , PDF , . iTextSharp, , , .

+1

PDF /, , html- (. SO ). PDF (Amyuni PDF Creator.Net, iText ..), PDF .

0

PDF- -:

  • Acrobat XI "" > "" > "".
  • " " "", FormsCentral.
  • " " " ".
  • Customize your form with intuitive tools
-1
source

All Articles