Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Images are no longer included #21

Open
michlschmid opened this issue Jul 23, 2013 · 2 comments
Open

Images are no longer included #21

michlschmid opened this issue Jul 23, 2013 · 2 comments

Comments

@michlschmid
Copy link

After upgrading to Symfony 2.3 and the current WhiteOctoberTCPDFBundle release (0e82ad1) my PDF throw the following error during the rendering in Symfony:

TCPDF ERROR: [Image] Unable to get image: /usr/local/symfony/2.3/enetz/app/../vendor/tecnick.com/tcpdf/examples/images/bundles/enetzresource/images/allgaeuer-kraftwerke_logo.png

The source code which causes this is:

$pdf->SetHeaderData("bundles/enetzresource/images/allgaeuer-kraftwerke_logo.png", '', 'RSS Reader Report', $title_page);

That code worked fine until the updated. Can't find any hints on config changes or sth like that.

Thank for any help!

Regards,

Michl

@scrnet
Copy link

scrnet commented Jul 25, 2017

Same problem here!

@sampart
Copy link
Owner

sampart commented Aug 7, 2017

@vlabmichl, @scrnet Does it help if you add a slash at the start of your path? I.e. making it:

$pdf->SetHeaderData("/bundles/enetzresource/images/allgaeuer-kraftwerke_logo.png", '', 'RSS Reader Report', $title_page);

That way it'll look in the bundles folder under your web-root, which is probably what you want.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants