Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP with PDF & FDF

Status
Not open for further replies.

ByNary010101

Programmer
Joined
Nov 22, 2004
Messages
16
Location
US
Hey all, quick question (hopefully). I'm trying to use the fdf application type to display a PDF document populated with information from a DB through raw fdf code and not the development kit. My issue is that whenever I try to open the ASP page that serves up the fdf which in turn serves up the PDF it won't do it, instead I get the following sequence:
--a file download dialog
--if I click "Open", Adobe 5.0 starts up and then displays a dialog "The form C:\ est.pdf, specified within FDF, was not found. Would you like to browse for it?"
--when I click "Yes" I find the PDF in the exact spot that I specified in the FDF
--then it opens like it is supposed to except it isn't displayed in the browser

I'm lost as to what I'm doing wrong; below is some sample code I have been using:
Code:
<% Response.ContentType = "application/vnd.fdf" %>

%FDF-1.2
1 0 obj
<<
/FDF
<< 
/Fields [ 
<< /T (txtFirstName) /V (Mike) >> 
<< /T (txtLastName) /V (Johnson) >>
]
/F (C:\test.pdf)
>> 
>>
endobj
trailer
<<
/Root 1 0 R
>>
%%EOF>

I hope my explanation made sense. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top