从PHP页面进行原始打印,将纸张送入新页面

从PHP页面进行原始打印,将纸张送入新页面,php,printing,Php,Printing,不知道如何使用上述命令 上述代码打印打印机写入($handle,“\t\t\t PADIYUR SARVODAYA SANGH”);这一行然后转到新页,然后开始打印其他行 请帮我完成此操作您需要“启动”文档,然后在需要时创建新页面(不要忘记“结束”),然后结束文档 printer_start_page($handle); printer_end_page($handle); printer_end_doc($handle); 请看我的更新代码,我已经按照你说的做了。但是它打印这个(打印

不知道如何使用上述命令

上述代码打印打印机写入($handle,“\t\t\t PADIYUR SARVODAYA SANGH”);这一行然后转到新页,然后开始打印其他行


请帮我完成此操作

您需要“启动”文档,然后在需要时创建新页面(不要忘记“结束”),然后结束文档

    printer_start_page($handle);
printer_end_page($handle);
printer_end_doc($handle);

请看我的更新代码,我已经按照你说的做了。但是它打印这个(打印机写入($handle,“\t\t\t PADIYUR SARVODAYA SANGH”)),然后转到新页面(12英寸!!!?),然后从这个(打印机写入($handle,“\t\t\t丝绸陈列室A/C,PADIYUR”)行打印。还请注意,它没有打印第二行,我们只有一个页面,因为它是一个计费应用程序
    printer_start_page($handle);
printer_end_page($handle);
printer_end_doc($handle);
printer_start_doc($handle, "Document name");

printer_start_page($handle); // Start page 1
// here goes the content of page 1 via printer_write
printer_end_page($handle); // Close page 1

printer_start_page($handle); // Start page 2
// here goes the content of page 2 via printer_write
printer_end_page($handle); // Close page 2

printer_end_doc($handle);