2017-25 © Pedro Peláez
 

library skeleton-file-pdf

Tigron PDF utilities

image

tigron/skeleton-file-pdf

Tigron PDF utilities

  • Thursday, March 22, 2018
  • by tigron
  • Repository
  • 3 Watchers
  • 0 Stars
  • 107 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 2 % Grown

The README.md

skeleton-file-pdf

Description

This library adds PDF edit functionality for Skeleton\File\File objects, (*1)

Installation

Installation via composer:, (*2)

composer require tigron/skeleton-file-pdf

Howto

Get a PDF, (*3)

$file = \Skeleton\File\File::get_by_id(1);

Check if the file is a PDF, (*4)

if (!$file->is_pdf()) {
    return;
}

Count the number of pages in the PDF, (*5)

$page_count = $file->count_pages();

Extract all pages from a PDF, (*6)

$pages = $file->extract_pages();

Merge different PDF documents into 1 PDF, (*7)

$new_pdf = \Skeleton\File\Pdf\Pdf::merge('new_document.pdf', array_reverse($pages));

Append a page to the PDF, (*8)

$new_pdf->append(array_shift($pages));

Rotate the pages of a PDF document (degrees clockwise), (*9)

$pdf->rotate(90)

The Versions

22/03 2018

dev-master

9999999-dev

Tigron PDF utilities

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

22/03 2018

v0.2.2

0.2.2.0

Tigron PDF utilities

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

09/11 2017

v0.2.1

0.2.1.0

Tigron PDF utilities

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

18/08 2016

0.2.0

0.2.0.0

Tigron PDF utilities

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

14/06 2016

v0.1.0

0.1.0.0

Tigron PDF utilities

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

22/04 2016

0.0.2

0.0.2.0

Tigron PDF utilities

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

21/04 2016