Hey guys, so I am in need of some serious help! My goal was to generate labels with a barcode. I used the PostScript::MailLabels module for the label set up, and since I want to IMPORT my own barcodes I used the Barcode::Code39 module. Everything is working great except one very serious problem.
The barcode image I upload is uploaded via CGI/html and when I generate my postscript file for the labels it can NOT read my barcode image. It instead prints out the code to show the image ($Cgi->img({-src => "data:image/gif;base64,$barcode_64"});
My question is, is there some way I can make this image appear through post script? When I generate my labels how can I get my barcode to appear?
labels->labelsetup( Avery => $labels->averycode(8160), PaperSize => 'letter', Font => 'Times-Roman', Y_Adjust => 1 / 16, X_Adjust => 1 / 16, ); #Generate image foreach my$row (@$rows) { my $barcode = (GD::Barcode::Code39->new('*'.$row->[1].'*')->plot(N +oText=>1, Height=>20)->gif()); my $barcode_64 = encode_base64($barcode); my $barcode_image = $Cgi->img({-src => "data:image/gif;base64,$bar +code_64"}); #Array with label data we need push(@data, [$row->[3] . " " . +$row->[5] . " " . $row->[6], "CMDM# " . $row->[0] . " ". "Copy# " . $ +row->[4], $barcode_image, $row->[1],"Property of Me"]); } print $Cgi->header(-type => "application/ps", -attachment => 'test.ps'), $labels->makelabels(\@data);
In reply to HELP! Label images PostScript by Tru27roo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |