-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from pionl/16-interface-version-check
Add interface for Ghostcript and move version check to device process
- Loading branch information
Showing
16 changed files
with
317 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php | ||
/** | ||
* This file is part of the Ghostscript package. | ||
* | ||
* @author Daniel Schröder <daniel.schroeder@gravitymedia.de> | ||
*/ | ||
|
||
namespace GravityMedia\Ghostscript; | ||
|
||
use GravityMedia\Ghostscript\Device\BoundingBoxInfo; | ||
use GravityMedia\Ghostscript\Device\Inkcov; | ||
use GravityMedia\Ghostscript\Device\NoDisplay; | ||
use GravityMedia\Ghostscript\Device\PdfInfo; | ||
use GravityMedia\Ghostscript\Device\PdfWrite; | ||
|
||
/** | ||
* @package GravityMedia\Ghostscript | ||
*/ | ||
interface GhostscriptInterface | ||
{ | ||
/** | ||
* Get option. | ||
* | ||
* @param string $name | ||
* @param mixed $default | ||
* | ||
* @return mixed | ||
*/ | ||
public function getOption($name, $default = null); | ||
|
||
/** | ||
* Get version. | ||
* | ||
* @return string | ||
* @throws \RuntimeException | ||
* | ||
*/ | ||
public function getVersion(); | ||
|
||
/** | ||
* Create PDF device object. | ||
* | ||
* @param null|string $outputFile | ||
* | ||
* @return PdfWrite | ||
*/ | ||
public function createPdfDevice($outputFile = null); | ||
|
||
/** | ||
* Create no display device object. | ||
* | ||
* @return NoDisplay | ||
*/ | ||
public function createNoDisplayDevice(); | ||
|
||
/** | ||
* Create PDF info device object. | ||
* | ||
* @param string $pdfInfoPath Path to toolbin/pdf_info.ps | ||
* | ||
* @return PdfInfo | ||
*/ | ||
public function createPdfInfoDevice($pdfInfoPath); | ||
|
||
/** | ||
* Create bounding box info device object. | ||
* | ||
* @return BoundingBoxInfo | ||
*/ | ||
public function createBoundingBoxInfoDevice(); | ||
|
||
/** | ||
* Create inkcov device object | ||
* | ||
* @return Inkcov | ||
*/ | ||
public function createInkcovDevice(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.