#301 2d barcodes: get png as stream

closed
nobody
None
1
2013-12-19
2013-12-18
Lubos Dz
No

Hi,

creating barcode QR code PNG outputs directly into browser with headers - e.g.TCPDF2DBarcode::getBarcodePNG(). The function has hard-coded output headers which makes it impossible to fetch QR code as binary stream via ob_start() .. ob_get_clean() due to corrupted output.

Would it be possible to add extra argument, e.g.

output="I" .. inline adds headers, just like now (default)
output="/path/to/save/file" .. saves into harddisk and no headers
output="S" ... returns binary stream string

What do you think... ?
Thanx
Lubos

Discussion

  • Nicola Asuni

    Nicola Asuni - 2013-12-19

    Ticket moved from /p/tcpdf/bugs/872/

     
  • Nicola Asuni

    Nicola Asuni - 2013-12-19
    • summary: QR code - impossible to get as file stream (PNG) - cannot avoid headers --> 2d barcodes: get png as stream
    • Group: v1.0_(example) --> Next_Release_(example)
     
  • Nicola Asuni

    Nicola Asuni - 2013-12-19
    • status: open --> closed
     

Log in to post a comment.