APPX is the Premier Development and Runtime Environment for Business Application Software
(Answer) (Category) FAQ's - APPX Software, Inc. : (Category) APPX Utility : (Category) APPX Development Environment : (Category) Output Processes :
Now that I can generate PDF files from APPX, how can I get the PDF to display as such in a browser?
Normally I use a CGI script that designates the content type as "text/html". I can create a link on the website that runs a subroutine that creates a PDF report, but in sending it back to the browser, it's treating it as text, so all of the PDF codes you would see if you looked at it in Notepad are displayed instead of launching Acrobat. How can I send the PDF file as a *.pdf back to the browser so it knows to open Acrobat?

Changing the content type tag in the CGI script to "application/pdf", which is the content type for *.pdf documents, will do the trick.

[Append to This Answer]
2004-Apr-07 3:39pm
Previous: (Answer) Additional help on PDF layout options
Next: (Answer) What is the best format to print a logo, images?
This document is: http://board.appx.com/cgi-bin/fom.cgi?file=483
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
Copyright 2003 by APPX Software, Inc. All rights reserved.