[英]Preview PDF file in a HTML modal, then print to a paper size using PHP or JS
I need some php or javascript script first to display a PDF file in a HTML modal (client browser) and then to print a PDF file from html modal (client browser) to a standard paper size thermal printer whose dimensions (left, margin, top, bottom margin will be hardcoded)我需要一些 php 或 javascript 脚本首先在 HTML 模式(客户端浏览器)中显示 PDF 文件,然后将 PDF 文件从 html 模式(客户端浏览器)打印到标准纸张大小的热敏打印机,其尺寸(左侧、边距、顶部, 底部边距将被硬编码)
Output result is to print a receipt for restaurant order on a thermal printer or order receipt (PDF file) could also be sent to email.输出结果是在热敏打印机上打印餐厅订单收据,或者订单收据(PDF 文件)也可以发送到电子邮件。 I already have a script that generates order as a PDF file and save it on a server and attaches to a email then sent.
我已经有一个脚本,可以将订单生成为 PDF 文件并将其保存在服务器上,然后附加到电子邮件中然后发送。 I just need php or javascript script to display PDF file as a preview in a html modal and then to let client print the order receipt to a thermal printer.
我只需要 php 或 javascript 脚本以 html 模式将 PDF 文件显示为预览,然后让客户将订单收据打印到热敏打印机。
How can I achieve this?我怎样才能做到这一点?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.