Title: Barcode black render
Last modified: January 11, 2019

---

# Barcode black render

 *  Resolved [ronowe](https://wordpress.org/support/users/ronowe/)
 * (@ronowe)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/barcode-black-render/)
 * Hello,
    I have problem with barcode generator. I use this PHP Snippet: echo WC_Order_Barcodes()-
   >display_barcode($order_id); The barcode is generated but the rendering is with
   black rectangle. Ay suggestions? [Link to screenshot](https://www.dropbox.com/s/fi6himdnkzjrzuq/barcodeerror.jpg?dl=0)
    -  This topic was modified 7 years, 5 months ago by [ronowe](https://wordpress.org/support/users/ronowe/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/barcode-black-render/#post-11086276)
 * Hi! We have seen this before, and unfortunately this is due to how the order 
   barcodes plugin generates the image, which is not processed correctly by dompdf…
   The only solution I know is to stretch the barcode image vertically and put it
   in a div container that cuts off the black part… I’m sorry I don’t have a better
   solution for this!

Viewing 1 replies (of 1 total)

The topic ‘Barcode black render’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/barcode-black-render/#post-11086276)
 * Status: resolved