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

External CSS and @media print #17

Open
lisamarie2000 opened this issue Oct 24, 2013 · 2 comments
Open

External CSS and @media print #17

lisamarie2000 opened this issue Oct 24, 2013 · 2 comments

Comments

@lisamarie2000
Copy link

Hello Ray,

First of all, good work!

I have some questions: Is it possible to use external style sheets? I am using ZF2 and was trying to set a basePath to use my stylesheets, but it doesn´t work. My stylesheets which I am using (embedded in an extra layout.phtml) do not show up or seem to have an effect on the pdf.

What should be exactly in the basePath? While having a normal Zend Framework 2 Skeleton Application? I tried it with $model->setOption('basePath', '/public/'), as my path in the layout.phtml is ...->appendStylesheet($this->basePath() . '/css/main.css'), but it is not working.

And another issue, is it possible to use @media print with the DOMPDFModule? I tried it inline with @media print { h1 { color: indianred; }}, but no success. It only takes affect when saving the pdf manually via the browser ("Print"/...), but not in the generated PDF from the module.

Thanks!

@vmasterua
Copy link

I have the same problem.

@raykolbe
Copy link
Owner

Hi @lisamarie2000 and @vmasterua,

As you've noticed DOMPDFModule hasn't received the time and attention it deserves. I understand how frustrating this is and I'm sorry you've had to deal with this frustration 😢

I'm currently taking steps to stabilize DOMPDFModule which includes code updates as well as creating a backlog that will ensure its continued success.

You can follow project Phoneix to see what immediate work is being prioritized.

Thank you for your understanding and patience.

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

No branches or pull requests

3 participants