PHP 클래스 iio\libmergepdf\Merger

파일 보기 프로젝트 열기: iio/libmergepdf 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( FPDI $fpdi = null ) Constructor
addFinder ( Finder $finder ) : void Add files using symfony finder
addFromFile ( string $fname, iio\libmergepdf\Pages $pages = null, boolean $cleanup = false ) : void Add PDF from filesystem path
addIterator ( array | Traversable $iterator ) : void Add files using iterator
addRaw ( string $pdf, iio\libmergepdf\Pages $pages = null ) : void Add raw PDF from string
getTempDir ( ) : string Get directory path for temporary files
getTempFname ( ) : string Create temporary file and return name
merge ( ) : string Merges your provided PDFs and get raw string
setTempDir ( string $dirname ) : void Set directory path for temporary files

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( FPDI $fpdi = null )
$fpdi FPDI

addFinder() 공개 메소드

Add files using symfony finder
public addFinder ( Finder $finder ) : void
$finder Symfony\Component\Finder\Finder
리턴 void

addFromFile() 공개 메소드

Note that your PDFs are merged in the order that you add them
public addFromFile ( string $fname, iio\libmergepdf\Pages $pages = null, boolean $cleanup = false ) : void
$fname string Name of file to add
$pages iio\libmergepdf\Pages Pages to add from file
$cleanup boolean Flag if file should be deleted after merging
리턴 void

addIterator() 공개 메소드

Add files using iterator
public addIterator ( array | Traversable $iterator ) : void
$iterator array | Traversable
리턴 void

addRaw() 공개 메소드

Note that your PDFs are merged in the order that you add them
public addRaw ( string $pdf, iio\libmergepdf\Pages $pages = null ) : void
$pdf string
$pages iio\libmergepdf\Pages
리턴 void

getTempDir() 공개 메소드

Set path using setTempDir(), defaults to sys_get_temp_dir().
public getTempDir ( ) : string
리턴 string

getTempFname() 공개 메소드

Create temporary file and return name
public getTempFname ( ) : string
리턴 string

merge() 공개 메소드

Merges your provided PDFs and get raw string
public merge ( ) : string
리턴 string

setTempDir() 공개 메소드

Set directory path for temporary files
public setTempDir ( string $dirname ) : void
$dirname string
리턴 void