Brian Sweeney

Results 826 comments of Brian Sweeney

The extra processing of PNG images is something I'd have to look into more. The initial logic was developed with the PDF 1.3 spec in mind so there may be...

Some thoughts: - Masking is (was?) necessary where alpha transparency is used. Here's relevant comment from the code: > png files typically contain an alpha channel. pdf file format or...

Dompdf doesn't provide any type of functionality to support this. It's also a challenging question. There are actually two parts to the problem: 1. downloading/parsing the stylesheet 2. applying the...

[getCss](https://github.com/dompdf/dompdf/blob/v2.0.4/src/Dompdf.php#L1281-L1289) and [setCss](https://github.com/dompdf/dompdf/blob/v2.0.4/src/Dompdf.php#L1262-L1270) are in the main Dompdf class. Your first approach is what I had in mind. The second approach won't work because data from each document will pollute...

Any errors reported? Can you share a sample of the HTML? I will note that Bootstrap is, generally, problematic for Dompdf because of some of the features it relies on...

The error looks like you're attempting to use the FontMetrics class as a static class instead of the instance (e.g., `FontMetrics::getFont` instead of `$fontMetrics->getFont`). Dompdf switched from a static to...

If you can upload the original SVG here we can do some testing.

@fan711 at least one of your samples is affected by dompdf/php-svg-lib#98. Not sure about the other, though I suspect both will be addressed by the next release of SvgLib.

SvgLib 0.5.3 was just published. If you're using composer and update you should see this issue fixed.

Can you share the JPEG file causing the issue?