tecnickcom / TCPDF

Official clone of PHP library to generate PDF documents and barcodes
https://tcpdf.org
Other
4.18k stars 1.51k forks source link

Style a TCPDF button #604

Open MichaelMrt opened 1 year ago

MichaelMrt commented 1 year ago

Is there a way to style TCPDF buttons?

$pdf->Button('test', 50, 7, 'sometext', 'print("test"); ' . 'Print()', array('lineWidth' => 2, 'borderStyle' => 'beveled', 'fillColor' => array(100, 0, 0), 'strokeColor' => array(0, 100, 0)));

The fillColor and strokeColor seem to have no effect on the button. I always get grey buttons.

I'd like to change the background color and remove the border.