Wednesday, July 2, 2014

Re: how to show barcode vartically

I looked at the TCPDF home page, documentation and examples. Seems like that is not possible.

One way you may be able to do it, is by creating an image instead and then rotate it for your usage.
Enjoy, John

On Wednesday, 2 July 2014 15:52:19 UTC+3, sneha kulkarni wrote:
hi

i wants to show barcode vartically but it show horizaotally in tcpdf

please help if possible

my code is



$style = array(
'position' => '',
'align' => 'S',
'stretch' => false,
'fitwidth' => true,
'cellfitalign' => '',
'border' => false,
'hpadding' => 'auto',
'vpadding' => 'auto',
'fgcolor' => array(0,0,0),
'bgcolor' => array(255,255,255),
'text' => false,
'font' => 'helvetica',
'fontsize' => 11,
'stretchtext' => 4
);


$params=$pdf->serializeTCPDFtagParameters(array(($BarcodeValue),'C128',3.7,4,4.8,1,1,$style,'N'));

$html .= '<tcpdf method="write1DBarcode" params="'.$params.'" />';

$pdf->writeHTML($html, true, 0, true, 0);

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: