Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

open fdf/pdf from servlet

843841May 18 2006 — edited Jun 3 2006
I am having a creepy problem opening a fdf file from struts action.

I am creating a new fdf file using the data from the database, and want to display everything in fdf file to the user with a "SUBMIT" button. when user press the button it should store the file as a pdf in the database. here is a sample of my code
//I have already inserted the data in the fdf file.
String templateURL = localhost:8080/project/someaction.do;
fdf.SetFile(templateURL);
//Before this I am doing the code for the submit button
//Prepare to send the FDF stream
// First set the response content type
response.setContentType("application/vnd.fdf");
response.setHeader("Content-Disposition", "inline; filename=\"" + fdf + "\"");

OutputStream os = response.getOutputStream();
			fdf.Save(os);
			response.flushBuffer();
Everything looks good and the system was working until last week thats when I installed the update of Acrobat Professional (From 7.0 to 7.0.7) since then I am getting a pop up box asking me to SAVE the document in a pdf format, notice there is no option to open it, when I save it it just saves the pdf with put any data. I unstalled and reinstalled both acrobat professional and acrobat reader, still getting this mesasage. When I uninstall reader I get message box with both save or open option when I open the file I see the data in it with bunch of garbage.

anyone know about this problem? I am using IE 6.0
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2006
Added on May 18 2006
4 comments
431 views