clippings/phantom-pdf
Phantom PDF
Installation
Install via composer
$ composer global require clippings/phantom-pdf
Usage
$pdf = new PdfGenerator();
// Set a writable path for temporary files
$pdf->setStoragePath('storage/path');
// Saves the PDF as a file
$pdf->saveFromView($html, 'filename.pdf');
Use setBinaryPath('path') to use another version of PhantomJS.
Customizing the conversion script
If you want to use another script to execute with PhantomJS, this it how you do it.
$pdf->useScript('path/to/script');
return $pdf->saveFromView('view');
Credits
Forked from the great https://github.com/danielboendergaard/phantom-pdf package
Copyright (c) 2015, Clippings Ltd. Refactored by Ivan Kerin as part of clippings.com
Related Packages
antking/phantom-pdf
A Package for generating PDF files using PhantomJS, which fork from danielboende...
1,997
0
anam/phantommagick
PhantomMagick provides a simple API to ease the process of converting HTML to PD...
465,770
160
aspose/pdf-sdk-php
Aspose.PDF Cloud is a REST API for creating and editing PDF files. It can also b...
30,070
8
.net
annotation
api
aspose
aspose.pdf
aspose.pdf-cloud
aspose.total-cloud
bmp
circle-annotation
cloud
convert
convert-pdf
converter
create-pdf
csharp
doc
doc-to-pdf
docx
docx-to-pdf
dotnet
emf
epub
epub-to-pdf
extract-image
fdf
fetch-text
gif
html
html-to-pdf
jpeg
line-annotation
markdown
markdown-to-pdf
md
md-to-pdf
mht
mht-to-pdf
mobixml
ocr-layers
pcl
pcl-to-pdf
pdf
pdf-attachment
pdf-bookmark
pdf-document
pdf-form-fields
pdf-image
pdf-link
pdf-ocr
pdf-page
pdf-text
pdf-to-doc
pdf-to-docx
pdf-to-epub
pdf-to-html
pdf-to-image
pdf-to-mobixml
pdf-to-pdfa
pdf-to-pptx
pdf-to-svg
pdf-to-tex
pdf-to-tiff
pdf-to-xfa
pdf-to-xls
pdf-to-xml
pdf-to-xps
pdfa3
png
postscript
postscript-to-pdf
pptx
ps
ps-to-pdf
replace-image
replace-text
rest
square-annotation
squiggly-annotation
stamp
svg
svg-to-pdf
tex
tex-to-pdf
text
tiff
underline-annotation
web-to-pdf
xfdf
xls
xlsx
xml
xml-to-pdf
xps
xps-to-pdf
xsif-to-pdf
xslfo



