定制 neysi/directprint 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

neysi/directprint

Composer 安装命令:

composer require neysi/directprint

包简介

Easy and direct file print from PHP

README 文档

README

This library allows printing files directly from PHP. Avoid print dialog preview in the web browser. Linux and MacOS Compatible. CUPS Required.

Installation

Include the library

Composer

If you are using composer, then add neysi/directprint as a dependency:

composer require neysi/directprint

Manual

If you have no composer, download the code and include autoload.php

git clone https://github.com/neysi/directprint.git
<?php
require __DIR__ . '/vendor/neysi/directprint/autoload.php');

Methods

printFile($fileName,$printerName)

Print on the default printer:

$id =  DirectPrint::printFile('invoice.pdf') ;

Print on the Canon iP2800 Printer:

$id = DirectPrint::printFile('invoice.pdf','Canon_iP2800_series') ;

getDefaultPrinter()

$printerName =  DirectPrint::getDefaultPrinter() ;

getPrinters()

$printers =  DirectPrint::getPrinters() ;

activeJobs()

Displays print queue

cancelAllJobs()

Cancel all of the print queue

cancelJob($jobID)

Cancel a specific print job

统计信息

  • 总下载量: 8.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 21
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 3
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固