0

I am using Dompdf 0.8.0 to create my PDF. In one page there are multiple fonts used. i.e. 2 font types are used for signatures and one is regular font.

But when we reach the signature fonts it changes all of the page fonts to signature fonts.

Please see attached image and underlined text. These marked text are signatures, the others are normal text. Note the behavior of changing fonts. Each signature has a different font family. And after the text has changed to the respective font family.

I tried these ways already:

  1. Used classes for signatures.
  2. Used fonts family in line in tag.
  3. Used fonts in dompdf options:

    $dompdf->set_option('defaultFont', 'dejavu sans');
    

Also tried with options:

$options = new Options();
$options->set('defaultFont', 'dejavu sans');

How do I resolve this problem? Attachment

Rajesh
  • 1
  • 1
  • Can you share a sample of the HTML used? – BrianS Mar 09 '17 at 23:31
  • HTML have same structure as a HTML page have. There are 6 pages in PDF. First 5 pages are rendering fine, but in 6th page signature fonts changes and this happened. – Rajesh Mar 10 '17 at 06:48
  • The main thing is that, everything is working fine on localhost but not working on server. Its neither showing any error nor working fine. – Rajesh Mar 10 '17 at 07:01

0 Answers0