php - TCPDF change font inside html -


I want the .ttf font (3 files), and give them the TCPDF font folder.

This classic $ pdf- & gt; Set font (); This works fine when using calls, but the problem is that I do not know the HTML which was later changed to $ pdf-> Write html ();

, this is called the X font.

For example:

  $ pdf-> Setfont ('Dejaav Sans', '', 10); $ Html = '& lt; Table & gt; & Lt; TR & gt; & Lt; Td> & Lt; span style = "font-family: x;" & Gt; & Lt; / Span & gt; & Lt; / Td> & Lt; TD & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; '; $ Pdf- & gt; Write HTML ($ HTML, true, false, true, false, '');   

What do I want, first & lt; & lt; inside td & gt; Span & gt; Exclude , using the dejavu sans font through all documents; tag, where I need the font X I tried to use the family of fonts - family but it does not work yet.

You will not be able to do this with writing only one HTML if you have a PDF If you want real HTML, you can use dopdf

Notice You can use this many writing HTML () functions, but it will be difficult to keep your words correctly.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -