Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.5.5] [Contao 4.4.26] No Image in PDF Documents - tcpdf Version 6.2.25 #1980

Closed
Ainschy opened this issue Oct 1, 2018 · 0 comments
Closed
Labels
Milestone

Comments

@Ainschy
Copy link
Contributor

Ainschy commented Oct 1, 2018

When isotope creates a pdf document, relative image paths become absolute.
https://github.com/isotope/core/blob/master/system/modules/isotope/library/Isotope/Model/Document/Standard.php#L181-L188

In the bugfix version of TCPDF 6.2.25 the image path is checked and new replaced if necessary. In tcpdf https://github.com/tecnickcom/TCPDF/blob/master/tcpdf.php#L18819-L18850

https://github.com/tecnickcom/TCPDF/blob/master/tcpdf.php#L18831 check tcpdf the document part in the imgsrc-part, but under contao 4 we have document-root in web folder. So the check failed and tcpdf generate a wrong imgsrc path.

Set a confict rule in my composer.json for the 6.2.25 but its not the solution for this.

Contao give relative path by rendering a pdf from frontend.

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

No branches or pull requests

2 participants