杰表技术论坛 's Archiver

admin 发表于 2023-11-11 08:59

OFD格式文档如何打印?

<div class="_2rhmJa" style="box-sizing: border-box; line-height: 1.8; margin-bottom: 20px; word-break: break-word; position: relative; color: rgb(64, 64, 64); font-family: -apple-system, BlinkMacSystemFont, " apple="" color="" emoji",="" "segoe="" ui="" symbol",="" ui",="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "helvetica="" neue",="" helvetica,="" arial,="" sans-serif;="" font-size:="" 16px;"=""><p style="box-sizing: border-box; margin-bottom: 20px; word-break: break-word;">OFD是中国版的PDF标准。随着软件国产自主可控进程的不断加速,OFD标准越来越被业界所接受,如何在web应用中预览打印OFD文档,成为软件开发人员必须掌握的一项技术。</p><p style="box-sizing: border-box; margin-bottom: 20px; word-break: break-word;">一、打印OFD的两种方式</p><p style="box-sizing: border-box; margin-bottom: 20px; word-break: break-word;"><span style="box-sizing: border-box; font-weight: 600;">1. 浏览器打印命令打印:</span><br style="box-sizing: border-box;">使用 ofd.js,显示在浏览器中,然后,使用浏览器的打印菜单,来进行打印。<br style="box-sizing: border-box;">优点:<br style="box-sizing: border-box;">a. 软件免费<br style="box-sizing: border-box;">b. 可以与web应用紧密集成</p><p style="box-sizing: border-box; margin-bottom: 20px; word-break: break-word;">缺点:<br style="box-sizing: border-box;">a. 比较费程序员,要调试<br style="box-sizing: border-box;">b. 无法无弹窗打印,&nbsp;无法用程序控制输出打印机,纸张大小及方向,份数等<br style="box-sizing: border-box;">c. 无法导出PDF</p><p style="box-sizing: border-box; margin-bottom: 20px; word-break: break-word;"><span style="box-sizing: border-box; font-weight: 600;">2. 用web打印工具来打印</span><br style="box-sizing: border-box;">可以使用像杰表云打印的打印工具。<a href="https://links.jianshu.com/go?to=http%3A%2F%2Fprint.jatools.com%2Fdemos.htm%23ofd" target="_blank" style="box-sizing: border-box; color: rgb(6, 129, 208); text-decoration-line: none; background-color: transparent; outline: none; cursor: pointer; transition: color 0.3s ease 0s; touch-action: manipulation;">print.jatools.com</a></p><p style="box-sizing: border-box; margin-bottom: 20px; word-break: break-word;">优点:<br style="box-sizing: border-box;">a. 安装即用,不需要调试<br style="box-sizing: border-box;">b. 可无弹窗一键打印,释放操作人员工作压力。可控制输出打印机,纸张大小等<br style="box-sizing: border-box;">c. 可同时导出PDF<br style="box-sizing: border-box;"><br style="box-sizing: border-box;">缺点:<br style="box-sizing: border-box;">a. 打印工具不免费<br style="box-sizing: border-box;"><br style="box-sizing: border-box;">ODF打印在线示例:&nbsp;&nbsp;<a href="https://links.jianshu.com/go?to=https%3A%2F%2Fprint.jatools.com%2Fjcp%2F0.99%2Fofd.htm" target="_blank" style="box-sizing: border-box; color: rgb(6, 129, 208); text-decoration-line: none; background-color: transparent; outline: none; cursor: pointer; transition: color 0.3s ease 0s; touch-action: manipulation;">https://print.jatools.com/jcp/0.99/ofd.htm</a><br style="box-sizing: border-box;">代码如下:</p><p style="box-sizing: border-box; margin-bottom: 20px; word-break: break-word;"><img style="width:70%" src="http://print.jatools.com/image/ofdsource.jpg" border="0"><br></p><p style="box-sizing: border-box; margin-bottom: 20px; word-break: break-word;"><img  style="width:70%" src="http://print.jatools.com/image/ofd.jpg" border="0"><br></p></div><div style="box-sizing: border-box; color: rgb(64, 64, 64); font-family: -apple-system, BlinkMacSystemFont, " apple="" color="" emoji",="" "segoe="" ui="" symbol",="" ui",="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "helvetica="" neue",="" helvetica,="" arial,="" sans-serif;="" font-size:="" 16px;"=""></div><div class="_3y7CB9" style="box-sizing: border-box; display: flex; flex-direction: column; margin-bottom: 32px; font-size: 13px; color: rgb(150, 150, 150); line-height: 1.8; font-family: -apple-system, BlinkMacSystemFont, " apple="" color="" emoji",="" "segoe="" ui="" symbol",="" ui",="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "helvetica="" neue",="" helvetica,="" arial,="" sans-serif;"=""></div>

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.