Forum


Replies: 3   Views: 4162
Pdf merger adding font
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 07-06-2016 - 16:01

Hello,

There's no option to acomplish what you need, so you should change the library code. You should change the method mergePdf in the MultiMerge class using the SetFont method from TCPDF to embed a new font. This is the signature of the method available in lib/fpdf-tpl/fpdf-tpl.php:

public function SetFont($family, $style = '', $size = 0)

You can read more information about this method on:

http://www.tcpdf.org/fonts.php

Regards.