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 constants can be set in dompdf/dompdf_config.custom.inc.php. In dompdf 0.7.0 or later
Tag: dompdf
DOMPDF images have poor quality when processing in server
I am working on a website with different jQuery forms that output to a html result page, this html is converted to a pdf file with DOMPDF library. When the conversion is made in local, there is no problem, but when it takes place in the server, the resulting pdf images have lower quality than the originals, with white scratches
dompdf inserts blank page at end of document
I’m generating a pdf document using dompdf 0.6.0, and have a strange issue where a blank page is being created at the end. My (simplified) html:
<...How to get page number on dompdf PDF when using “view”
Ok, so I use the following snippet to get “views” of HTML with PHP variables loaded in as $data so that I can do things like fill in tr’s of data from a database call or whatever. function getView ($…
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
file_put_contents: Failed to open stream, no such file or directory
I am trying to use dompdf to save a form to an easily-readable .pdf file, and my processing script is below. I am receiving the error Warning: file_put_contents(/files/grantapps/NAME0.pdf) [function….
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/wiki/CPDFUnicode But I’m not able to get desire fonts in my PDF. You can find my code in
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 logo is missing. I have put a debugging line in to email