I noticed that PDF-Files generated with PHP using FPDF/FPDI etc grow up extremely when adding/embedding fonts to it. So I tried to avoiding to do if i use well known font-families like arial
.
Assuming I only use Arial/Arial-bold and I comment out the following parts like this in my constructor:
// $this->AddFont('Arial', '', 'arial.php');
// $this->AddFont('Arial', 'B', 'arialbd.php');
what is the expected behaviour of pdfs opened on various computers?
The reason for doing this is the following:
- The size of my PDF is 10Kb instead of 1Mb
- I assume that arial is present on nearly any machine and if not the machine should replace the arial font with a similar font. The used font is not so important for my document.
Is this an intelligent approach or is it risky to use a not embedded font?
I addition please tell me what charset is used in that case. My previously embedded fonts had been of ISO-8859-15 to be able to use the euro sign. If i comment out the font embedding everything is displayed in arial on my windows machine except the euro sign. I suspect that windows uses a windows charset instead and the euro sign is on a different char.
Please give me a hint what is the best practice on create PDF-Files with FPDF without embedding fonts when using common font-families. And what charset is used by the interpreter in that case?