Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Barcodes generated using BarcodeGeneratorDynamicHTML() do not render when printed #194

Closed
objecttothis opened this issue Mar 19, 2024 · 1 comment

Comments

@objecttothis
Copy link

objecttothis commented Mar 19, 2024

In my function I have

$generator = new BarcodeGeneratorDynamicHTML();
$barcode_value = $this->get_barcode_value($item, $barcode_config);
return $generator->getBarcode($barcode_value, $barcode_config['barcode_type']);

Which properly generates the barcode. I needed to use this method because generating the PNG only allowed me to set a width factor and not an overall width in pixels and I needed all barcodes to have the same width regardless of their content.

The problem is that the barcode does not render when printed. I tried adding overflow:visible to the CSS, but this had no effect. Is there a way to force the print engine to render the <div> elements that make up the barcode?

@casperbakker
Copy link
Member

This is not a problem from this library. This is just HTML/CSS rendering itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants