I am working on an e-learning portal, but it seems difficult to display the first page of the uploaded PDF
> You need to use
Example: & lt ;? Php $ imagePreview = new imagick ('file.pdf [0]'); $ ImagePreview- & gt; Set image format ("jpg"); Header ("Content-Type: Image / JPEG"); Echo $ imagePreview;
& lt ;? Php $ imagePreview = new imagick ('file.pdf [0]'); $ ImagePreview- & gt; Set image format ("jpg"); Header ("Content-Type: Image / JPEG"); Echo $ imagePreview;
Comments
Post a Comment