有沒有什麼方法可以打印PDFKit和自定義字體?PDFKIT自定義字體
在CSS中我有:當如HTML,但印刷渲染PDFKit到PDF使用標準字體
@font-face {
font-family: 'ChaparralProRegular';
src: url("path_to_font/chaparralpro-regular-webfont.eot");
src: url("path_to_font/chaparralpro-regular-webfont.eot?#iefix") format("embedded-opentype"),
url("path_to_font/chaparralpro-regular-webfont.woff") format("woff"),
url("path_to_font/chaparralpro-regular-webfont.ttf") format("truetype"),
url("path_to_font/chaparralpro-regular-webfont.svg#ChaparralProRegular") format("svg");
上面的代碼工作正常。 任何線索?
JFI做你所提供的媒體屏幕,你的樣式,也有選項附加樣式表'wkthmltopdf'附加樣式表我想pdfkit太支持它是,它'kit.stylesheets <<'/ path_to_your_stylesheet' – Viren