我正在使用PDFKit.org通过JavaScript生成PDF.
文档是不言自明的,但我面临一个未解决的问题,我猜一些StackOverflow成员可能已经找到了一个技巧.
我必须在某个时刻旋转文本,文档只解释如何旋转形状(如a rect()).
我已经尝试了几件事,但到目前为止它们都没有.
所以我正在寻找通过调整代码来旋转它的方法,或者也许你们中的一些人可以向我展示我可能错过的文档的一部分?
我尝试了一切,我不能写出好的Jquery代码让我的身体向上滚动.这是我的JS:
$("body").animate({scrollTop:$(document).height()}, 9000);
$(this).fadeOut(fast);
当用户点击特定的div时,它会使身体向下滚动,然后我想要反转此功能以使身体向上滚动..任何想法?
实际上我在fonts文件夹中有三个文件.这是Gotham-Bold.ttf,Gotham-Medium.ttf,Gotham-Thin.ttf.....所以,我需要使用@font-face三次,这三种类型的.请有人帮助我.
我目前使用的代码如下:
@font-face {
font-family: 'Gotham';
src: url('fonts/Gotham-Bold.eot'); /* IE9 Compat Modes */
src: url('fonts/Gotham-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/Gotham-Bold.woff') format('woff'), /* Modern Browsers */
url('fonts/Gotham-Bold.ttf') format('truetype'), /* Safari, Android, iOS */
url('fonts/Gotham-Bold.svg#svgFontName') format('svg'); /* Legacy iOS */
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Gotham';
src: url("/fonts/Gotham-Bold.eot");
}
@font-face {
font-family: 'Gotham';
src: url("/fonts/Gotham-Bold.woff") format("woff");
}
Run Code Online (Sandbox Code Playgroud)
谢谢.
javascript ×2
css ×1
font-face ×1
jquery ×1
node-pdfkit ×1
pdf ×1
pdfjs ×1
scroll ×1
scrollview ×1