【发布时间】:2013-05-27 09:14:43
【问题描述】:
我正在使用 Grails 渲染插件来生成 PDF。
我想在我的 PDF 中包含 CSS 以很好地呈现它。我在rendering plugin website上找到了一个例子
我将下面的 CSS 放在打印媒体中,以便它适用于 PDF,但这不适用于我。我也不知道如何将字体从 Arial 更改为另一种字体。谁能给我解释一下?
插件使用带有此 CSS 的 Arial 字体:
@font-face {
src: url(path/to/arial.ttf);
-fs-pdf-font-embed: embed;
-fs-pdf-font-encoding: cp1250;
}
body {
font-family: "Arial Unicode MS", Arial, sans-serif;
}
【问题讨论】:
标签: css grails pdf-generation rendering gsp