Stylesheet is ignored
sslotsky opened this issue · 2 comments
Hi,
I'm having a hard time getting my styles to show on the generated PDF.
I've tried specifying the path using "@routes" as well as using the classpath:
<link rel="stylesheet" type="text/css" href="@routes.Assets.at("css/pdf.css")" media="screen" />
OR
<link rel="stylesheet" type="text/css" href="/public/css/pdf.css" media="screen" />
My stylesheet only contains one declaration:
td {
color: blue;
}
However, my PDF comes up with no styles applied. All text is black. Also tried changing background color and other properties.
Please let me know if you need more information. I really like the way this module integrates with Play! but I need styles to work for my client. Thanks!
Confirmed - looking into it.
Fixed - please upgrade to 0.3
Sorry, I wasn't aware CSS links have to be handled manually when using flying saucer.