Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: PDF::Report and barcode generation

by FreeBeerReekingMonk (Deacon)
on Mar 19, 2015 at 21:00 UTC ( [id://1120658]=note: print w/replies, xml ) Need Help??


in reply to PDF::Report and barcode generation

How about just testing the pdf as a standalone file too?

open(FF, ">","/tmp/holamundo.pdf"); print FF $pdf->Finish(); close(FF);
and view that pdf view a viewer, or drag and dropping into your browser?

I created a small testcase (using miniserver.pl), and your pdf is displayed inline in the browser, with barcode and all, no problems. (at first I thought you needed extra mime encoding). It maybe the browser?

print $client "HTTP/1.0 200 OK", Socket::CRLF; print $client "Content-type: application/pdf", Socket::CRLF; #view pdf + inline #print $client "Content-type: application/x-unknown", Socket::CRLF; # +force a save popup print $client Socket::CRLF; my $SLURP = `$localfile`; print $client $SLURP;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found