PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Hi Ted--
Thanks for the feedback. I solved the problem,
although I'm not sure why this worked. Basically, I
removed everything generated by VS.net in the .aspx
file except for the code-behind inherits declaration.
For some reason, removing the following from the .aspx
page made this issue go away...?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<html>
<head>
<title>generateFDF</title>
<meta name="GENERATOR" content="Microsoft Visual
Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic
.NET 7.1">
<meta name=vs_defaultClientScript
content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
</form>
</body>
</html>
--- Ted Daniels <[EMAIL PROTECTED]> wrote:
>
> PDF-Forms is a service provided by PDFzone.com |
> http://www.pdfzone.com/
>
__________________________________________________________________
>
> John:
>
> FDF files are just txt files, so generate a txt file
> of the appropriate
> format and put pagemarkers in for the variables. You
> can then generate FDF
> files all day long from ASP. Of course each one has
> to point to a valid PDF
> file with the same Form Field structure - doesn't
> matter what the actual PDF
> form layout is.
>
> The example below is one I use to generate content
> for a form out of a
> database. In other words the form is defined. The
> content for the form
> (field values) are generated on-the-fly out of the
> database, by user input,
> by populating the FDF file variables.
>
> There are many ways you can get the values from the
> database into the form,
> depending on your own preferences. I use CF so am
> familiar with the actuall
> CF syntax. I'd have to research the specific ASP
> syntax. Typically you won't
> find anything useful on any of the Adobe sites -it
> should be in the ASP.net
> user guides.
>
> Format of FDF file is like this simple example (#
> are place markers for
> ColdFusion, use % or whatever for ASP. Also note
> that the FDF file must
> point to the PDF form it is associated with. This is
> defined at the end
> behind the /F marker. /V is the Value market, /T is
> the field name. You have
> slight differences for Radio Buttons and Checkboxes
> - just generate some FDF
> files from a PDF file to see values you need to put
> in.):
>
> %FDF-1.2
> 1 0 obj<<
> /FDF
> <<
> /Fields
> [
> << /V (#Portal#)/T (Portal)>>
> << /V (#FormID#)/T (FormNo)>>
> << /V (#RequisitionNo#)/T (RequisitionNo)>>
> << /V (#City#)/T (City)>>
> << /V (#CampusName#)/T (CampusName)>>
> << /V (#DateFormat(DateSent)#)/T (DateSent)>>
> << /V (#DateFormat(DateWanted)#)/T (DateWanted)>>
> <CFIF #App1Approval# is '1'>
> << /V /Yes/T (BusMngrApproval)>>
> <CFELSE>
> << /V /No/T (BusMngrApproval)>>
> </CFIF>
> <CFIF #App2Approval# is '1'>
> << /V /Yes/T (TransportMngrApproval)>>
> <CFELSE>
> << /V /No /T (TransportMngrApproval)>>
> </CFIF>
> <CFIF #App3Approval# is '1'>
> << /V /Yes /T (PrinApproval)>>
> <CFELSE>
> << /V /No /T (PrinApproval)>>
> </CFIF>
> << /V (#RequestedBy#)/T (RequestedBy)>>
> << /V (#Destination#)/T (Destination)>>
> << /V (#NoBuses#)/T (NoBuses)>>
> << /V (#NoPax#)/T (NoPax)>>
> << /V (#TypeTrip#)/T (TripType)>>
> << /V (#TimeFormat(ETD)#)/T (ETD)>>
> << /V (#TimeFormat(ETR)#)/T (ETR)>>
> << /V (#Purpose#)/T (Purpose)>>
> << /V (#Remarks#)/T (Remarks)>>
> << /V (Bus No 2)/T (BusNo)>>
> << /V (Driver-3)/T (DriverName)>>
> << /V (0)/T (MileageEnd)>>
> << /V (0)/T (MileageStart)>>
> << /V (0)/T (TotalMiles)>>
> ]
>
>
/F(#Application.Portal.DocumentsURL#pdf/Van_Bus_Requisition.pdf)
> >>
> >>
> endobj
> trailer
> <</Root 1 0 R>>
> %%EOF
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf
> Of John S
> Sent: Wednesday, January 21, 2004 5:31 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PDF-Forms] FDF and ASP.NET
> documentation or tutorials?
>
>
>
> PDF-Forms is a service provided by PDFzone.com |
> http://www.pdfzone.com/
>
__________________________________________________________________
>
> Hi Ted--
> Thanks for the feedback. Actually, I'm trying to
> generate the FDF file dynamically from an .aspx
> page.
>
>
> I'm looking for documentation, because I'm running
> into problems even getting the FDF sample files
> (like
> GenerateFDF) to work on my development box (running
> XP
> Pro with IIS installed). I've copied FdfAcX.dll and
> FdfTk.dll to the WINDOWS/System32 directory and used
> regsvr32 to register the dll. I've also configured
> MIME mappings for for FDF (string value
> 'application/fdf,fdf,,5'). I've also configured a
> new
> MIME type for my default web site inside of IIS, and
> rebooted after doing all the above...basically
> everything suggested in the documentation for
> ActiveX
> version of FDF, as well as things suggested on
>
http://members.tripod.com/pdfpro/internet_server_setup.htm.
> But I'm still having problems when trying to run
> the
> sample...1)tries to save the .aspx file to disk when
> launching from VS.net or IE, or 2) get a "file is
> damaged" error when clicking the "get data from
> asxp"
> link (which I've updated to point to the new
> location
> in localhost) in the sample. Any ideas, or
> suggestions on ways I can research this further?
>
> Thanks for the help!
> John
>
>
> --- Ted Daniels <[EMAIL PROTECTED]> wrote:
>
> > John:
> >
> > Dealing with FDF files in ASP, ColdFusion or any
> > other similar cGI/app
> > server is the same.
> >
> > Generate your FDF file from the PDF form. FDF file
> > is a simple text form.
> >
> > I would go through it with Notepad (Virtual N) or
> > similar editor to get it
> > into a nice clean structure, rather than just a
> > jumble of text. If you use
> > Notepad you'll probably want to remove the little
> > artefacts that are in the
> > file.
> >
> > Identify the Field Value and Field Name pairs
> > (enclosed between << and
> > >>)and replace the FieldValue with the variable
> you
> > want to put in. The
> > variable can be obtained from an html form
> > submission, or from a call to a
> > database.
> >
> > Ted Daniels
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> Behalf
> > Of John S
> > Sent: Wednesday, January 21, 2004 12:36 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PDF-Forms] FDF and ASP.NET documentation
> > or tutorials?
> >
> >
> >
> > PDF-Forms is a service provided by PDFzone.com |
> > http://www.pdfzone.com/
> >
>
__________________________________________________________________
> >
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html