allcolor / YaHP-Converter

YaHP is a Java library that allows you to convert an HTML document into a PDF document.
GNU Lesser General Public License v2.1
56 stars 23 forks source link

How to link CSS? #24

Closed Wizzpro closed 10 years ago

Wizzpro commented 10 years ago

Hi! I have problems converting an HTML-file where there is a style-tag or link to a CSS-file. How can I solve this?

Regards,

Oliver

allcolor commented 10 years ago

Hi, the css needs only to be referred with a valid href, either relative to the base url or with an absolute url.

Regards. Le 13 août 2014 14:19, "Wizzpro" notifications@github.com a écrit :

Hi! I have problems converting an HTML-file where there is a tag or to a CSS-file.
How can I solve this?

Regards,

Oliver

— Reply to this email directly or view it on GitHub https://github.com/allcolor/YaHP-Converter/issues/24.

Wizzpro commented 10 years ago

Thank you for your reply, it works with a valid href. But my next question is this, is it possible to link css through an url this way: src:url(http://www.supersavertravel.se/system/fonts/RobotoCondensed-Light-webfont.eot)? I´m having issues with this kind of bindings. Thank you.

allcolor commented 10 years ago

there is no support for web font. If you need special font you need ttf font and embed them in the pdf. Le 14 août 2014 08:31, "Wizzpro" notifications@github.com a écrit :

Thank you for your reply, it works with a valid href. But my next question is this, is it possible to link css through an url this way: src:url( http://www.supersavertravel.se/system/fonts/RobotoCondensed-Light-webfont.eot)? I´m having issues with this kind of bindings. Thank you.

— Reply to this email directly or view it on GitHub https://github.com/allcolor/YaHP-Converter/issues/24#issuecomment-52148342 .

Wizzpro commented 10 years ago

Ok thank you.