Database Reference
In-Depth Information
Here is another example generated from the same
book
table's PDF page
definition. This time the grid is shown, but no colors.
A note about fonts used
All the text we see in the PDF schema is drawn using a specific font. phpMyAdmin
3.1.x uses the
DejaVuSans
font (
http://dejavu.sourceforge.net
), which covers a
wide range of characters.
For actual PDF generation, phpMyAdmin relies on the
tcpdf
library
(
http://tcpdf.sourceforge.net
), which itself is an adaptation of the
fpdf
library
(
http://www.fpdf.org
). These libraries have two ways of using fonts—embedded
and not embedded. Embedded fonts produce a bigger PDF file because the whole
font is included in the PDF. This is the default option chosen by phpMyAdmin
because the library does not depend on the presence of a specific
TrueType
font in
the client operating system.
The fonts are located in
libraries/tcpdf/font
under the main
phpMyAdmin directory.
To use a different font file, we must first add it to the library (tools are present in the
original
tcpdf
kit and a tutorial is available on the
http://www.fpdf.org
website)
and then modify phpMyAdmin's
pdf_schema.php
source code.
Search WWH ::
Custom Search