Skip to content

Instantly share code, notes, and snippets.

@duccoder
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duccoder/c2fac267a81066806be1 to your computer and use it in GitHub Desktop.
Save duccoder/c2fac267a81066806be1 to your computer and use it in GitHub Desktop.
Use Slurpy Basic
<?php
use Shuble\Slurpy\Operation\OperationArgument\PageRange;
$inputs = array(
'/path/to/file1.pdf',
'/path/to/file2.pdf',
array(
'filepath' => '/path/to/file3.pdf',
'password' => 'pa$$word',
'start_page' => 1,
'end_page' => 'end',
'qualifier' => PageRange::QUALIFIER_ODD,
'rotation' => PageRange::ROTATION_EAST,
)
);
$output = '/path/to/output.pdf';
$slurpy = $factory->cat($inputs, $output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment