Download the PHP package mabujo/pdf-helper without Composer
On this page you can find all versions of the php package mabujo/pdf-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package pdf-helper
Ari / PdfHelper
Utilities for working with ZendPdf:
- Text Measurement
- Text wrapping into lines at closest length or specified characters
Sample Usage
<?php
use ZendPdf\PdfDocument;
use ZendPdf\Page;
use ZendPdf\Font;
use ZendPdf\Color\GrayScale;
use Ari\PdfHelper\Paragraph;
$pdf = new PdfDocument();
$page = new Page(Page::SIZE_A4);
$font = Font::fontWithName(Font::FONT_HELVETICA);
$gray = new GrayScale( 0.8 );
$page->setFont( $font, 8 );
$para = new Paragraph( $page, 2 /* line spacing */ );
$para->setDebug( true );
$para->setDebugLineColor( $gray );
$para->draw( $reallyLongTextUnicode, // default encoding assumes UTF-8
20 /* x position */,
780 /* y position */,
240 /* paragraph width */ );
// You can customise the character encoding
$para->setStringFnByte( 'ISO-8859-1' );
$para->setStringFnMultiByte( 'UTF-16BE' );
// You can get the number of lines
$para->getLineCount();
// And the total height in points
$para->getHeight();
// ---
$pdf->pages[] = $page;
header('Content-Type: application/pdf');
echo $pdf->render();
All versions of pdf-helper with dependencies
PHP Build Version
Package Version
Requires
zendframework/zendpdf Version
>=2.0.2
The package mabujo/pdf-helper contains the following files
Loading the files please wait ....