Hi!

I'm using PDFlib (http://www.pdflib.com/) to generate a PDF using data
fetched from an SQL database.
Like this:

--- test.html ---

[-
  ( Some SQL stuff )
  ( Generate PDF )

  $escmode = 0;
  my $buffer = PDF_get_buffer($p);
  $http_headers_out{'Content-Type'} = "application/pdf";
  $http_headers_out{'Content-Length'} = length($buffer);
  $http_headers_out{'Content-Disposition'} = "inline; filename=test.pdf";
  print OUT $buffer;
-]


--- base.epl ---

[- $sub = Execute ({object => 'include/sub.epl'}); -]

<html>
  [- Execute('*', $sub); -]
</html>


This prints the PDF file to the browser but I get the raw data enclosed in
<html></html> tags.
What do I have to do to get the PDF file sent to the client as a PDF and not
an HTML file?


/Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to