Streaming a PDF to the browser
am 17.01.2007 17:46:22 von Ben EagleThis is a multi-part message in MIME format.
--===============1743925854==
Content-Class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C73A57.05445FA2"
This is a multi-part message in MIME format.
------_=_NextPart_001_01C73A57.05445FA2
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Using PDF::API2, I am trying to build a pdf straight to the browser
without having to save it to the server.
=20
I am using:
=20
print $q->header( "application/pdf" );
=20
print $pdf->stringify;
$pdf->end;
=20
=20
but its not working all I get is garble its not opening the pdf just
spitting the encoded text to the screen
=20
can anyone give me any Ideas on how to fix this???
------_=_NextPart_001_01C73A57.05445FA2
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
charset=3Dus-ascii">
style=3D'font-size:10.0pt;
font-family:Arial'>Using PDF::API2, I am trying to build a pdf straight =
to the
browser without having to save it to the server.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I am using:
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>print $q->header( "application/pdf" =
);
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>print $pdf->stringify;
style=3D'font-size:10.0pt;
font-family:Arial'>$pdf->end;
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>but its not working all I get is garble its not =
opening the pdf
just spitting the encoded text to the screen
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>can anyone give me any Ideas on how to fix =
this???
------_=_NextPart_001_01C73A57.05445FA2--
--===============1743925854==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1743925854==--