Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: PDF::Create - send output to STDOUT?

by shotgunefx (Parson)
on Jun 04, 2002 at 09:23 UTC ( [id://171432]=note: print w/replies, xml ) Need Help??


in reply to PDF::Create - send output to STDOUT?

I had a similar problem, I just inherited from it and added a method raw_data to give me the completed PDF.

Also be aware that PDF::Create doesn't escape text which can cause errors when trying to view PDFs created by it.
package PDF::Create::Raw; use PDF::Create; use 5.006; use strict; use warnings; # Wrapper around PDF::Create that lets us access the raw data. our @ISA = qw(PDF::Create); our $VERSION = '0.02'; # Adds raw_data to grab the PDF data for outputting sub raw_data { my $self = shift; return $self->{'data'}; } 1; __END__ =head1 NAME PDF::Create::Raw - Perl extension for creating PDF files. =head1 DESCRIPTION Same as PDF::Create with one overrided method rawdata. =head1 AUTHOR Pumphret, Lee<lt>E<gt> =head1 SEE ALSO L<perl>. =cut


-Lee

"To be civilized is to deny one's nature."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://171432]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found