-
Notifications
You must be signed in to change notification settings - Fork 68
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
cover.html page does not seem to respect mPDF styles #478
Comments
After a quick search, I'm wondering if the |
Is what you mean with that it only applies it on the even pages, but I have not yet an idea where to search for that issue. |
Thanks to your information, I have tried the @page and it does seem to actually work. Here is the code I used:
And in the cover.html
However, the cover.html background image is also used by the "even" page that follows because I'm using the "doubled-sided" config. Is there any way to prevent this behavior, since I just want a cover page? Here's a picture of what I mean: This is the cover_background.jpg, on the cover page: And this is the even (blank) page automtically put there by the "double-sided" config, using the same background: |
Aha, nice that you could make progress. |
Greetings,
I've tried to make this work for hours to no avail. I am unable to locate what doesn't work
In my custom template's style.css, I have added this:
This is in respect to mPDF "supported-css" documentation regarding background images. The URL does works.
When exporting a PDF, the background works for:
The background does not work for:
Exemple PDF here: create_your_first_pages.pdf
Is there more documentation as to WHY this is the case, and HOW to define which pages will have a background?
Specifically, I'm trying to have a full page background on the cover page only. I have tried to add only this element with inline css, but again it is not honored
Any ideas?
The text was updated successfully, but these errors were encountered: