Skip to content

Tag: dompdf

DOMPDF Chinese Character

I have problem that when I download the PDF it will download the font together in the PDF which will create a very big size of PDF (about 10mb+). Answer You’ll want to enable font subsetting. In dompdf 0.6.2 or earlier set the DOMPDF_ENABLE_FONTSUBSETTING configuration constant to true. Configuration co…

dompdf HTML to PDF – can’t set margin of page

version: 0.6.0 beta 3 I tryed in every manner to make dompdf set the margin of the page. I have a long page with a lot of text, divided in chapters… my css is something like: when the php is but what I get is a page with NO margins!!! only the padding of the #wrapper are applied… and they

Custom Fonts for DOMPDF

I’m Using DOM PDF 0.6.0 Beta 2. I want to use custom fonts (Fonts: ‘Segeo Print’, ‘Lucida Handwriting’,’Airplanes in the Night Sky’) in PDF file. I followed the guidelines to install and use fonts in my PHP Code, which is given here http://code.google.com/p/dompdf/wik…

dompdf and img tag, image wont show

Here is the HTML just before $dompdf->render() and $dompdf->output() are called: All other invoices display the image fine when viewing in the browser, or printing it, or emailing it as HTML. When I click ‘Generate PDF’ inside of our application, it renders the invoice in PDF, except the log…