2017 © Pedro Peláez
 

library tc-lib-pdf-encrypt

PHP library to encrypt data for PDF

image

tecnickcom/tc-lib-pdf-encrypt

PHP library to encrypt data for PDF

  • Saturday, June 23, 2018
  • by nicolaasuni
  • Repository
  • 3 Watchers
  • 3 Stars
  • 21,766 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 29 Versions
  • 16 % Grown

The README.md

tc-lib-pdf-encrypt

PHP library to encrypt data for PDF, (*1)

Latest Stable Version Build Coverage License Downloads, (*2)

Donate via PayPal Please consider supporting this project by making a donation via PayPal, (*3)

  • category Library
  • package \Com\Tecnick\Pdf\Encrypt
  • author Nicola Asuni info@tecnick.com
  • copyright 2011-2024 Nicola Asuni - Tecnick.com LTD
  • license http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
  • link https://github.com/tecnickcom/tc-lib-pdf-encrypt
  • SRC DOC https://tcpdf.org/docs/srcdoc/tc-lib-pdf-encrypt

Description

PHP library to encrypt data for PDF., (*4)

The initial source code has been derived from TCPDF., (*5)

OpenSSL 3

When using OpenSSL 3 some legacy providers are disabled by default. This will trigger the following error when executing the test:, (*6)

error:0308010C:digital envelope routines::unsupported

Legacy provider can be enabled by followign the instructions at: https://wiki.openssl.org/index.php/OpenSSL_3.0#Providers, (*7)

sudo nano /etc/ssl/openssl.cnf
   openssl_conf = openssl_init

   [openssl_init]
   providers = provider_sect

   [provider_sect]
   default = default_sect
   legacy = legacy_sect

   [default_sect]
   activate = 1

   [legacy_sect]
   activate = 1

An alternative OpenSSL configuration file is provided on and set by default in the Makefile. To overrride the custom OpenSSL configuration file set the following environment variable:, (*8)

export OPENSSL_CONF=/etc/ssl/openssl.cnf

Getting started

This library requires the openssl php extension., (*9)

First, you need to install all development dependencies using Composer:, (*10)

$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer

This project include a Makefile that allows you to test and build the project with simple commands. To see all available options:, (*11)

make help

To install all the development dependencies:, (*12)

make deps

Running all tests

Before committing the code, please check if it passes all tests using, (*13)

make qa

All artifacts are generated in the target directory., (*14)

Example

Examples are located in the example directory., (*15)

Start a development server (requires PHP 8.0+) using the command:, (*16)

make server

and point your browser to http://localhost:8000/index.php, (*17)

Installation

Create a composer.json in your projects root-directory:, (*18)

{
    "require": {
        "tecnickcom/tc-lib-pdf-encrypt": "^2.0"
    }
}

Or add to an existing project with:, (*19)

composer require tecnickcom/tc-lib-pdf-encrypt ^2.0

Packaging

This library is mainly intended to be used and included in other PHP projects using Composer. However, since some production environments dictates the installation of any application as RPM or DEB packages, this library includes make targets for building these packages (make rpm and make deb). The packages are generated under the target directory., (*20)

When this library is installed using an RPM or DEB package, you can use it your code by including the autoloader:, (*21)

require_once ('/usr/share/php/Com/Tecnick/Pdf/Encrypt/autoload.php');

Developer(s) Contact

The Versions

23/06 2018
23/06 2018

dev-develop

dev-develop http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.4
  • ext-date *
  • ext-hash *
  • ext-openssl *
  • ext-pcre *

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

23/06 2018
13/05 2018
13/05 2018
30/12 2017

1.5.4

1.5.4.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.4
  • ext-date *
  • ext-hash *
  • ext-openssl *
  • ext-pcre *

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

28/10 2017

1.5.3

1.5.3.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.4
  • ext-date *
  • ext-hash *
  • ext-openssl *
  • ext-pcre *

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

12/02 2017

1.5.2

1.5.2.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.4
  • ext-date *
  • ext-hash *
  • ext-openssl *
  • ext-pcre *
  • ext-posix *

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

12/02 2017

1.5.1

1.5.1.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.4
  • ext-date *
  • ext-hash *
  • ext-openssl *
  • ext-pcre *
  • ext-posix *

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

08/02 2017

1.5.0

1.5.0.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.4
  • ext-date *
  • ext-hash *
  • ext-openssl *
  • ext-pcre *
  • ext-posix *

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

05/02 2017

1.4.4

1.4.4.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.4
  • ext-date *
  • ext-hash *
  • ext-mcrypt *
  • ext-openssl *
  • ext-pcre *
  • ext-posix *

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

10/12 2015

1.1.6

1.1.6.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

GNU-LGPL v3

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

10/12 2015

1.1.5

1.1.5.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

GNU-LGPL v3

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

07/12 2015

1.1.4

1.1.4.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

GNU-LGPL v3

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

07/12 2015

1.1.3

1.1.3.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

GNU-LGPL v3

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

03/12 2015

1.1.2

1.1.2.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

GNU-LGPL v3

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

27/11 2015

1.1.1

1.1.1.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

GNU-LGPL v3

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

27/11 2015

1.1.0

1.1.0.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

GNU-LGPL v3

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

26/11 2015

1.0.3

1.0.3.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

GNU-LGPL v3

The Requires

  • php >=5.3.3

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

26/11 2015

1.0.2

1.0.2.0 http://www.tecnick.com

PHP library to encrypt data for PDF

  Sources   Download

GNU-LGPL v3

The Requires

  • php >=5.3.3

 

The Development Requires

encrypt encryption aes pdf rc4 tc-lib-pdf-encrypt

10/05 2015

1.0.1

1.0.1.0 http://www.tecnick.com

PHP library to decode PDF compression and encryption filters

  Sources   Download

GNU-LGPL v3

The Requires

  • php >=5.3.3

 

The Development Requires

filter encryption pdf compression tc-lib-pdf-filter

06/05 2015

1.0.0

1.0.0.0 http://www.tecnick.com

PHP library to decode PDF compression and encryption filters

  Sources   Download

GNU-LGPL v3

The Requires

  • php >=5.3.3

 

The Development Requires

filter encryption pdf compression tc-lib-pdf-filter