Under Review

Sugar should update to a newer TCPDF library

I have created a custom function to generate a PDF report using the built-in TCPDF - however, I need to be able to add a digital signature field to the PDF.  There is a function added in TCPDF Version 5.9 (addEmptySignatureAppearance) that will do exactly this.  Unfortunately it seems SugarCRM is still on tcpdf 4.6.  Is it possible to 'replace' the tcpdf library include with Sugar with a newer version without completely breaking the SugarPDF functions?  Has anyone done this? Successfully?

Sugar REALLY should be on a newer version of this library! TCPDF 4.6 is now 5 years old! and the current version is 6.0.083.
  • Year 2019

    Sugar 8.3.0

    TCPDF still stuck at 4.6 , 10 yrs old ??

  • This was discussed in the Dev section of the Partner Summit.

    The reason the TCPDF version is so far behind is that shortly after SugarCRM started using the TCPDF engine, the author of TCPDF changed the license of the software, stopping them from using it.

    It has been an ongoing negotiation since then, however the sides have been unable to reach an agreement.

    They aren't keeping it old because they want to, I promise!

  • Is there any new information on this? While I understand that this is not high priority for Sugar; it is high priority to your customers to be able to provide well formatted documents via PDF Template Manager
  • I also just checked Sugar 7.5 and it is still using TCPDF version 4.6 unfortunately...
  • I tried changing the TCPDF library with the 5.9 version as bcaverly mentioned above, and although it rendered my new document perfectly for quotes, it produced the following errors when attempting to download the Invoice document.  With php errors turned off, the document downloaded successfully, but it did not pull out all the fields unlike version 4.6.

    Notice: Undefined index: rows in /Applications/MAMP/htdocs/sugar7/vendor/tcpdf/tcpdf.php on line 17017

    Warning: array_push() expects parameter 1 to be array, null given in /Applications/MAMP/htdocs/sugar7/vendor/tcpdf/tcpdf.php on line 17019

    Notice: Undefined index: thead in /Applications/MAMP/htdocs/sugar7/vendor/tcpdf/tcpdf.php on line 16696

    Warning: array_push() expects parameter 1 to be array, null given in /Applications/MAMP/htdocs/sugar7/vendor/tcpdf/tcpdf.php on line 17019

    Notice: Undefined index: thead in /Applications/MAMP/htdocs/sugar7/vendor/tcpdf/tcpdf.php on line 16696

    Notice: Undefined index: thead in /Applications/MAMP/htdocs/sugar7/vendor/tcpdf/tcpdf.php on line 16709
    TCPDF ERROR: Some data has already been output, can't send PDF file