there are few stories (text + images) stored in a database (in HTML format). Using PHP I would show them, but I would prevent the exctraction, copy or download from the site.
I used the imagick library with the setImageFormat function:
<?php
$im = new imagick('file1.pdf[0]');
$im->setImageFormat('jpg');
$im->setImageCompressionQuality(100);
header('Content-Type: image/jpeg');
echo $im;
?>
but this requires the creation of a PDF first and I'd like to load it directly from the DB and the quality of the image is so poor and is not readable using tablets/smartphones.
Is there a way to allow to read the material and prevent its copy?
I searched in this site, but the few answers are not covering my need.
Thanks in advance!