Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
Evan M. #1
PDF Form with data outside browser
I have a C#.NET web app that I'm creating that is meant to allow users
to fill out data in PDF forms and save it to a database, using the FDF
Toolkit. The problem that I'm having occurs when a user tries to open
the form to view the data / continue working on it. If I have
acrobat's "Display in Browser" option turned on so that the PDF file
loads inside the browser window, the form shows up with it's data
without a problem. However, if I turn that option off so that the PDF
loads in acrobat (or reader) separately, the PDF file will load, but
will not have any data with it.
Below is the code that I'm using to load the form data:
protected void Page_Load(object sender, EventArgs e)
{
if (Session["SelectedOperatorSN"] == null)
Response.Redirect ("LoadEnclosure.aspx");
Response.ContentType = "application/vnd.fdf";
string urlPath = Request.Url.AbsoluteUri.Substring (0,
Request.Url.AbsoluteUri.LastIndexOf ('/')) + "/PDFs/";
FDFACXLib.FdfApp fdfApp = new FDFACXLib.FdfApp ();
FDFACXLib.FdfDoc outDoc = (FDFACXLib.FdfDoc) fdfApp.FDFCreate ();
outDoc.FDFSetFile (urlPath + "T4102.pdf");
string serialNum = (string) Session["SelectedOperatorSN"]; ;
T4102DBAccess.LoadFDF (outDoc, serialNum); // Gets the form data fro
mteh database and sets it using FDF.SetValue()
Response.BinaryWrite ((byte[]) outDoc.FDFSaveToBuf ());
outDoc.FDFClose ();
Response.End ();
}
For our environment, loading the PDF form outside of the browser
window is the preferable method. Does anyone have any advice as to
what I can do about this?
Evan M. Guest
-
Autopopulated form not displaying data in pdfunless the form field is clicked
Within my online application, I have a pdf form that is auto generated and displayed to the user in the browser. My problem is that the populated... -
file upload form enctype="multipart/form-data
I'm upload a file using cffile upload and that seems to work fine except I need to use enctype="multipart/form-data on the form side. This isn't a... -
Getting client file name from a submitted form usingmultipart/form-data
Ive got a simple form with an type="file" -- all works fine, but what i want to do is get the extension of the file uploaded but not have to upload... -
Browser Back Button and Form Data Persistence
A form on MyForm.cfm posts to PostMyForm.cfm. While viewing the PostMyForm.cfm page, the user presses the browser's back button and doesn't see the... -
mx 7 flash form The form data has expired, Please reloadthis page in your browser.
When i first go to any flash form on my CFMX 7 server i get the following message. The form data has expired, Please reload this page in your...



Reply With Quote

