2017 © Pedro Peláez
 

library pdf-version-converter

PHP library for converting the version of PDF files (for compatibility purposes).

image

sztyup/pdf-version-converter

PHP library for converting the version of PDF files (for compatibility purposes).

  • Monday, July 10, 2017
  • by sztyup
  • Repository
  • 1 Watchers
  • 0 Stars
  • 350 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 18 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

PDF version converter

PHP library for converting the version of PDF files (for compatibility purposes)., (*1)

Build Status SensioLabsInsight Codacy Badge, (*2)

Requirements

  • PHP 5.3+
  • Ghostscript (gs command on Linux)

Installation

Run php composer.phar require xthiago/pdf-version-converter dev-master or add the follow lines to composer and run composer install:, (*3)

{
    "require": {
        "xthiago/pdf-version-converter": "dev-master"
    }
}

Usage

Guessing a version of PDF File:, (*4)

<?php
// import the namespaces
use Xthiago\PDFVersionConverter\Guesser\RegexGuesser;
// [..]

$guesser = new RegexGuesser();
echo $guesser->guess('/path/to/my/file.pdf'); // will print something like '1.4'

Converting file to a new PDF version:, (*5)

<?php
// import the namespaces
use Symfony\Component\Filesystem\Filesystem,
    Xthiago\PDFVersionConverter\Converter\GhostscriptConverterCommand,
    Xthiago\PDFVersionConverter\Converter\GhostscriptConverter
;

// [..]

$command = new GhostscriptConverterCommand();
$filesystem = new Filesystem();

$converter = new GhostscriptConverter($command, $filesystem);
$converter->convert('/path/to/my/file.pdf', '1.4');

Contributing

Is really simple add new implementation of guesser or converter , just implement GuessInterface or ConverterInterface., (*6)

Running unit tests

Run phpunit -c tests., (*7)

The Versions

10/07 2017

dev-master

9999999-dev

PHP library for converting the version of PDF files (for compatibility purposes).

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thiago Rodrigues

converter pdf version converter pdf version converter pdf version

10/07 2017

1.0.5

1.0.5.0

PHP library for converting the version of PDF files (for compatibility purposes).

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thiago Rodrigues

converter pdf version converter pdf version converter pdf version

23/04 2017

v1.0.4

1.0.4.0

PHP library for converting the version of PDF files (for compatibility purposes).

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thiago Rodrigues

converter pdf version converter pdf version converter pdf version

27/01 2017

v1.0.3

1.0.3.0

PHP library for converting the version of PDF files (for compatibility purposes).

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thiago Rodrigues

converter pdf version converter pdf version converter pdf version

07/01 2017

v1.0.2

1.0.2.0

PHP library for converting the version of PDF files (for compatibility purposes).

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thiago Rodrigues

converter pdf version converter pdf version converter pdf version

24/09 2016

v1.0.1

1.0.1.0

PHP library for converting the version of PDF files (for compatibility purposes).

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thiago Rodrigues

converter pdf version converter pdf version converter pdf version

16/02 2015

v1.0.0

1.0.0.0

PHP library for converting the version of PDF files (for compatibility purposes).

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thiago Rodrigues

converter pdf version converter pdf version converter pdf version

13/02 2015

v0.1.0

0.1.0.0

PHP library for converting the version of PDF files (for compatibility purposes).

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thiago Rodrigues