View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005264||OXID eShop (all versions)||4.03. 3rd party libraries||public||2013-06-28 15:25||2016-01-04 21:13|
|Product Version||4.7.6 / 5.0.6|
|Target Version||Fixed in Version|
|Summary||0005264: Update tcpdf to latest revision|
|Description||the shipped tcpdf-library is over 3 years old, in 3 monts its even 4 years old.|
There are lot of bugfixes in the current version, even better support of PHP 5.3
One nice feature of that newer version would be to have smaller pdf-files by subsetting the choosen font.
The licence has changed to GNU-LGPLv3
|Additional Information||6.0.000 (2013-03-17)|
- IMPORTANT: PHP4 support has been removed starting from this version.
- IMPORTANT: Support for font subsetting was added by default to reduce the size of documents using large unicode font files.
If you embed the whole font in the PDF, the person on the other end can make changes to it even if he didn't have your font.
If you subset the font, file size of the PDF will be smaller but the person who receives your PDF would need to have your same font in order to make changes to your PDF.
|Tags||3rd Party Libraries|
|PHP Version||Not defined|
|Database Version||Not defined|
||waiting for the PO decision.|
||any progress on this one? there are a lot of bugs fixed in latest version, it's even made available via github now|
We are looking through all 3rd party libraries and evaluating them.
All changes will be presented with the Next Major Version.
||Subsetting would be a great feature! File size of invoices in oxid eshop are pretty large!!!|
To reduce filesize, we currently break update-compatibility by replacing core/oxpdf.php::SetFont with this code
public function SetFont($family, $style='', $size=0, $fontfile='')
// make PDFs smaller (font-subsetting not working with that ancient version of TCPDF)
parent::SetFont("", $style, $size, $fontfile);
Beware of problems with UTF-8 here, default fallbacks are used by this
||What do you mean with problems with UTF-8? Characters other than latin?|
This works, because TCPDF falls back to "helvetica" instead of Arial, which is another font and might not look like expected (because the letters have different spacings).
I've already changed the code like you wrote and seen the result.
But what are the problems with UTF-8?
Might have been a problem on our side ;) can't reproduce it right now. If everything works okay, thats one problem less to consider.