Hi,
While attempting to generate PDF files, we noticed that images of PNG with an alpha channels and tags like

are not supported, Please help us to sort out the problem or any alternative solutions are also appreciated.

Thanks
Devaraj
Netlink Technologies

CommentFileSizeAuthor
#5 dompdf_lib_class_pdf_php.patch695 bytesyjk

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Are you using TCPDF, dompdf or wkhtmltopdf?

João

Devaraj’s picture

I am using dompdf

Thanks
Devaraj

jcnventura’s picture

It seems that dompdf doesn't support it (and may take a while to do it): http://groups.google.com/group/dompdf/browse_thread/thread/d0560edc58ed6...

I would advise that you try wkhtmltopdf.

João

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

No further info in more than two weeks. Closing the issue.

yjk’s picture

Status: Closed (won't fix) » Needs review
StatusFileSize
new695 bytes

For users of dompdf, creating a copy instead of a clone in lib/class.pdf.php line 4971 should fix this:

//$alpha_channel = clone $imagick;
$alpha_channel = new Imagick($file);
$alpha_channel->setFormat('png');

jcnventura’s picture

Status: Needs review » Closed (won't fix)

Please report this in the dompdf issue queue (http://code.google.com/p/dompdf/issues/list), not here. I can't fix dompdf.