[TYPO3-dev] Howto display a pdf preview in FE
Christian Leicht
usenet at schani.com
Tue Dec 7 01:08:30 CET 2010
schrieb Steffen Kamper:
> Hi,
>
> Christian Leicht schrieb:
>> Hello,
>> i like to display a preview of an pdf file in a own extension. How is
>> it possible to display it? Is there a ready funktion in the API?
>>
>
> you can do it with normal IMG_RESOURCE
>
> vg Steffen
Thank you Steffen,
i try´d this:
$test = "/home/httpd/fileadmin/testfile.pdf";
$photofile =
$this->cObj->getImgResource($test,array('maxW'=>'100','maxH'=>'120'));
t3lib_div::debug($photofile[3]);
But i get a error.
The file exist´s and is ok.
I should get the filepath of the new image.
Christian
More information about the TYPO3-dev
mailing list