Menu

#70 Augument TCPDFBarcode classes with ability to return raw png image data

Unstable_(example)
closed
nobody
None
1
2014-05-20
2014-05-20
No

Updates the TCPDFBarcode and TCPDF2DBarcode classes to allow for fetching the rendered image as is, but separating the logic in the getBarcodePNG() methods into two functions, one sending http headers and echoing the image data, and the new method getBarcodePNGData() which just returns the image data.

Also worth noting is that the documentation of the getBarcodePNG() method is wrong, because it currently states that the function will return the image data, rather than output it.

1 Attachments

Discussion

  • Martin Lindhe

    Martin Lindhe - 2014-05-20

    Note: i attempted to extend the code so that existing users should be unaffected

     
  • Nicola Asuni

    Nicola Asuni - 2014-05-20

    OK. Fixed in TCPDF 6.0.080.
    Thank you for reporting this issue.

     
  • Nicola Asuni

    Nicola Asuni - 2014-05-20
    • status: open --> closed
     

Log in to post a comment.