Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
AbstractPdf
n/a
0 / 0
100.00% covered (success)
100.00%
3 / 3
3
n/a
0 / 0
 importFromFile
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 writeToFile
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 outputToHttp
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
<?php
/**
 * Pop PHP Framework (http://www.popphp.org/)
 *
 * @link       https://github.com/popphp/popphp-framework
 * @author     Nick Sagona, III <dev@nolainteractive.com>
 * @copyright  Copyright (c) 2009-2018 NOLA Interactive, LLC. (http://www.nolainteractive.com)
 * @license    http://www.popphp.org/license     New BSD License
 */
/**
 * @namespace
 */
namespace Pop\Pdf;
/**
 * Abstract Pdf class
 *
 * @category   Pop
 * @package    Pop\Pdf
 * @author     Nick Sagona, III <dev@nolainteractive.com>
 * @copyright  Copyright (c) 2009-2018 NOLA Interactive, LLC. (http://www.nolainteractive.com)
 * @license    http://www.popphp.org/license     New BSD License
 * @version    3.1.0
 */
abstract class AbstractPdf implements PdfInterface
{
    /**
     * Import from an existing PDF file
     *
     * @param  string $file
     * @param  mixed  $pages
     * @return Document
     */
    abstract public function importFromFile($file, $pages = null);
    /**
     * Write document to file
     *
     * @param  AbstractDocument $document
     * @param  string           $filename
     * @return void
     */
    abstract public function writeToFile(AbstractDocument $document, $filename);
    /**
     * Output to HTTP response
     *
     * @param  AbstractDocument $document
     * @param  string           $filename
     * @param  boolean          $forceDownload
     * @return string
     */
    abstract public function outputToHttp(AbstractDocument $document, $filename = 'pop.pdf', $forceDownload = false);
}