In my PHP based admin panel, I've a button "Print Message", which print a receipt table. Currently I've no printer so I am saving this receipt as PDF (using 'save as pdf' option from print section in chrome).
I want to change the font-face and font color of this PDF document. I've tried several options like
- Inline CSS on target table.
- External CSS file with media="print"
attribute.
- @media print{}
media query.
but nothing worked for me.
When I am using the system installed fonts, its working and showing result on my system but when I am using attached font using @font-face
, its not working.
I hope someone here can help me.
Thanks.