You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
escpos-php uses file paths in the form foo.php[0] to seek pages from PDF files, and is affected by a compatibility issue between HHVM/Imagick. See facebook/hhvm#4771
The result is that under HHVM, multi-page PDF files cannot be loaded with this driver (EscposIMage::loadPDF will throw Exception: exception 'ImagickException' with message 'Invalid filename provided'). Four tests give errors or fails when loading PDF's in this way.
Affected users can work around the issue limit themselves to singe-page PDF's, or rasterizing their images on the command-line and printing from a series of PNG files.
Rasterization can be done with convert.
Single-page PDF's can be loaded via new EscposImage("foo.pdf"). A multi-page PDF can be split up into several single-page PDF's with pdftk or qpdf.
The text was updated successfully, but these errors were encountered:
Attempted removing page-range feature, seems to be other issues with HHVM's Imagick, as the text is now being rasterized over a black background (black page except for images), while other environments render it on white.
See bf0175d - The output of print-from-pdf.php is attached in a zip file for later reference out.zip,
escpos-php uses file paths in the form
foo.php[0]
to seek pages from PDF files, and is affected by a compatibility issue between HHVM/Imagick. See facebook/hhvm#4771The result is that under HHVM, multi-page PDF files cannot be loaded with this driver (
EscposIMage::loadPDF
will throwException: exception 'ImagickException' with message 'Invalid filename provided'
). Four tests give errors or fails when loading PDF's in this way.Affected users can work around the issue limit themselves to singe-page PDF's, or rasterizing their images on the command-line and printing from a series of PNG files.
convert
.new EscposImage("foo.pdf")
. A multi-page PDF can be split up into several single-page PDF's withpdftk
orqpdf
.The text was updated successfully, but these errors were encountered: