Skip to content

Upgrading from 1.0.1 to 1.1.0

Richard Jedlička edited this page Apr 2, 2015 · 1 revision

In 1.1.0 some methods of class PagePDF are deprecated. See the list here. You doesn't have to make any changes but it is recommended to use the new API, for compatibility with later versions.

Instructions for replacing the deprecated methods:

  • $page->pdf->thumbnail($width, $height) replace with the code
$image = $page->pdf->toImage();
$image->size($widht, $height);
  • isThumbnail($basename) replace with isImageOfThis($basename)

NOTE: There is certain incompatibility between these two methods. While isThumbnail returns TRUE for all the images generated from the PDF and also theirs derivatives (e.g. pdf.jpg, pdf.100x100.jpg), the isImageOfThis return TRUE only for the images generated directly from PDF (e.g. pdf.jpg). That doesn't change much, because you can use it in combination with Pageimage::isVariation.

  • removeThumbnails replace with removeImages
Clone this wiki locally