PHPackages                             arajcany/pre-press-tricks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. arajcany/pre-press-tricks

ActivePackage[Utility &amp; Helpers](/categories/utility)

arajcany/pre-press-tricks
=========================

Box of Tricks for common PrePress related tasks.

1.5.7(5mo ago)324732MITPHPPHP &gt;=8.2CI failing

Since Jun 6Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/arajcany/PrePressTricks)[ Packagist](https://packagist.org/packages/arajcany/pre-press-tricks)[ RSS](/packages/arajcany-pre-press-tricks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (31)Used By (2)

PrePress Tricks Library
=======================

[](#prepress-tricks-library)

Box of Tricks for common PrePress related tasks.

Table of Contents
-----------------

[](#table-of-contents)

- [Purpose](#purpose)
- [Installation](#installation)
- [Basic Usage](#basic-usage---xpif-ticket-maker)

Purpose
-------

[](#purpose)

If you have ever asked any of the following question, this collection of Classes might be for you.

Pages Class

- I need to scale this picture. At what percent will it fit inside this box?

Boxes Class

- How do clean up a range of pages to something readable e.g. '3,4,6,12,13,10-20,1,2,8' =&gt; '1-4,6,8,10-20'?

Ticketing Classes

- How do I generate an XPIF ticket for Xerox Printing Devices?

Installation
------------

[](#installation)

The recommended method of installation is via Composer.

```
{
  "require": {
    "php": ">=8.0",
    "arajcany/pre-press-tricks": ""
  }
}
```

Version compatibility

```
PHP 7.4 (last compatible version for PHP 7.4)
composer require arajcany/pre-press-tricks:^0.0.7

PHP 8.x
composer require arajcany/pre-press-tricks:^1.0.0

```

Basic Usage - XPIF Ticket Maker
-------------------------------

[](#basic-usage---xpif-ticket-maker)

### Example 1 - Base Ticket

[](#example-1---base-ticket)

```
