你可以做任何一种方式。过去,我在 HTML、LaTeX、Word 和 Excel 文档方面都取得了成功。
无论您选择哪种方式,您都需要创建一个模板,您可以填写该模板以适应演示文稿中的更改,而与内容无关。
Perl 的HTML::Template将有助于填补空白。
下面有一个原始的 HTML 示例。要做到这一点,请阅读分页媒体。
<!DOCTYPE HTML>
<html>
<head>
<title>Test</title>
<link id="screen-reset" rel="stylesheet" type="text/css"
href="http://yui.yahooapis.com/3.0.0/build/cssreset/reset-min.css"
media="screen">
<link id="print-reset" rel="stylesheet" type="text/css"
href="http://yui.yahooapis.com/3.0.0/build/cssreset/reset-min.css"
media="print">
<style type="text/css" media="print,screen">
html { width:8.5in; font-size:16px; font-family:Arial; }
body { margin: 0 auto; }
@page {margin:1in }
.page { page-break-after:always}
.title { background: #911; height:1in; }
.title h1 {
color:#fff;
background:transparent;
display:inline-block;
font-size:1.75em;
font-weight:bold;
height:1in;
line-height:0.5in;
position:relative;
top:0.125in;
left:0.125in;
text-decoration:underline;
text-transform:uppercase;
vertical-align:middle;
width:75%;
}
.title h2 {
background:#fff;
border:solid 1px #000;
color:#000;
font-size:0.75em;
height:0.75in;
position:relative; top:0.125; left:0.125in; display:inline-block;
text-align:center;
vertical-align:middle;
width:1in;
}
.category {
background:#bbb;
color:#fff;
font-size:1.25em;
font-weight:bold;
height:0.5in;
padding:1%;
width:98%;
text-transform:uppercase;
}
</style>
</head>
<body>
<div class="page">
<div class="title">
<h1>Job Instruction Breakdown Sheet</h1>
<h2>Revision Code</h2>
</div>
<h2 class="category">
13 - Attic Critical Detail: Flue, Combustion Vents & Chimneys
</h2>
</div>
<div class="page">
<div class="title">
<h1>Some other Sheet</h1>
<h2>Revision Code</h2>
</div>
<h2 class="category">
14 - Other Details
</h2>
</div>
</body>
</html>
使用浏览器的打印预览功能(您可能必须选择特定的浏览器来生成输出)并设置“打印背景图像和颜色”或您喜欢的浏览器中调用的任何选项。