Question

I am using dompdf to generate a PDF file. The PDF simply contains texts. I need the content of the PDF to show as an image instead of texts. I do not know where to start. Cannot find anything using Google. Any suggestions?

More info:

In the PDF I currently generated, I can select specific portion of texts by highlighting it using the mouse. In the PDF I should generate, I should not be able to select portion of texts because the texts is already an image. So the PDF I should generate contains an image, and the image contains the texts.

Was it helpful?

Solution

You could generate a png first using phpgd / ImageMagick then shove it through dompdf

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top