我正在使用<cfdocumentitem type="footer">
在PDF文档中创建页脚,它工作正常。除了我似乎无法控制字体。我试过<span>
,<font face>
等没有运气。目前我正在尝试与类如下表。CFDocumentItem - 更改字体大小
任何人都知道如何控制<cfdocumentitem>
在页脚中的字体外观?
<cfdocument format="pdf"
marginBottom = ".5"
marginLeft = ".4"
marginRight = ".4"
marginTop = ".2"
>
<style type="text/css">@import "pdf.css";</style>
<cfdocumentitem type="footer">
<cfoutput>
<table width=100%>
<tr>
<td class=verd10>
<b>#pdfstuff.pdffinal#</b>
</td>
<td align=right class=verd10 valign=top>
Page #cfdocument.currentPageNumber# of #cfdocument.currentPageNumber#
</td>
</tr>
</table>
</cfoutput>
</cfdocumentitem>
pdf document data etc
</cfdocument>
在@import中拉动效果会更好一点...获取我想要的字体面,但不是大小...奇怪的东西 - 我可以在普通PDF中使用.pdf12 - 12pt字体,但在页脚中使用相同的字体是更小 - 更像是一个10分,但我称为PDF12 - 似乎只是限制我的尺寸,我可以在那里使用...不知道,如果marginbottom也有什么关系呢? – 2013-05-12 16:18:15
是的 - 将我的marginbottom增加到1.5而不是.5显着地改变了我的字体大小......它必须限制您在为marginbottom分配的空间内的大小。 @import如上所述是必需的。 – 2013-05-12 16:24:03