fpdf库的包装/克隆,用于与Composer一起使用,并增加了一些增强功能

v3.2.2 2024-09-02 14:30 UTC

This package is auto-updated.

Last update: 2024-09-02 14:31:17 UTC


README

Build Status Latest Stable Version PHP Version License

FPDF

本仓库是针对流行的FPDF库的包装(带有少量增强)。有关使用方法的更多信息,请参阅FPDF首页

它还包括一个名为fpdfprotection的类,该类扩展了fpdf并为PDF文件设置了一些基本保护。

使用Composer安装

$ composer require emscherland/fpdf

使用方法(不带保护的fpdf)

在您想使用该类的php文件中

$pdf = new \Emscherland\Fpdf\Fpdf();

有关使用方法,请参阅FPDF文档。

使用方法(带保护的fpdf)

在您想使用该类的php文件中

$pdf = new \Emscherland\Fpdf\FpdfProtection();

有关使用方法,请参阅FPDF文档。

设置密码和保护级别(示例数据)

$permission=array('print', 'modify', 'copy', 'annot-forms');
$user_pass='geheim';
$owner_pass='strenggeheim';

$pdf->SetProtection($permission,$user_pass,$owner_pass);

请选择您自己的密码。:-)

FPDF许可证

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software to use, copy, modify, distribute, sublicense, and/or sell
copies of the software, and to permit persons to whom the software is furnished
to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.

fpdfprotection许可证

You may use and modify this software as you wish as stated in original FPDF package.