承接 kibi/druckerwolke 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

kibi/druckerwolke

Composer 安装命令:

composer require kibi/druckerwolke

包简介

Druckerwolke is a PHP class for cloud printing PDF Documents using Druckerwolke.de

README 文档

README

Druckerwolke is a PHP class for cloud printing PDF Documents using Druckerwolke.de

Installation

with Composer

composer require kibi/druckerwolke

via require (download current release manually)

require_once('path/to/src/Druckerwolke.class.php');

Sample usage

$username = 'XXX';
$password = 'XXXXXXXXXX';
$api_key = 'XXXXXXXX-XXXX-MXXX-NXXX-XXXXXXXXXXXX';

$druckerwolke = Druckerwolke($username, $password, $api_key);

$printers = $druckerwolke->printers();

// SELECT THE PRINTER

$printer_id = $printers[0]->Id; //we are using the first printer

// UPLOAD A FILE USING $file_content OR $file_url

$pdfName = 'document.pdf';
$file_content = file_get_contents('path/to/document.pdf');
$file_url = 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf';

$data = [
	'FileName' => $pdfName,
	'MimeType' => 'application/pdf',
//	'FileDataUri' => $file_url, 
	'FileDataBase64' => base64_encode($file_content),
	'JobName' => 'Printing: '.$pdfName,
	'DocumentVersion' => 0,
	'InputQueueId' => $printer_id,
	'FileSize' => 0,
	'JobSettings' => [
		'PageOrientation' => 0
	],
	'AdditionalParameters' => []
];

$result = $druckerwolke->add_document($data);

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: mit
  • 更新时间: 2022-06-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固