Download the PHP package jianhuawang/laravel-pdf-to-image without Composer

On this page you can find all versions of the php package jianhuawang/laravel-pdf-to-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-pdf-to-image

laravel-pdf-to-image

Convert pdf files to images for Laravel.

Laravel 框架下的 PDF 转图片工具包,

本包提供了Laravel 把pdf文件转换为图片的功能, 同时基于Laravel Storage 对生成的图片进行存储和管理。

功能列表:

  1. 按页转换PDF文件为图片,每页生成1张图片
  2. Convert every page of PDF fiel to one image.
  3. 保存到指定的存储空间
  4. Save images to disk of Storage
  5. 支持云存储(测试中)
  6. Save image to cloud disk.(Developing)
  7. 支持定时任务后台转换图片(开发中)
  8. Convert PDF file to images by cron task.(Developing)

依赖 Package dependencies

必须安装扩展包,You must install package imagick, 参考信息 more info: http://php.net/manual/en/book.imagick.php http://php.net/manual/en/imagick.setup.php

"ext-imagick" : "*",
"intervention/image": "^2.0",
"illuminate/support": "5.*"

执行 run: php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"
then: you will find a new file image.php in folder config. Change " 'driver' => 'gd' " to " 'driver' => 'imagick' "

安装Installation:

composer require jianhuawang/laravel-pdf-to-image:^0.4

Laravel >= 5.5, after install nothing left to do.
Laravel <5.5

Add a provider in providers array in config/app.php:
JianhuaWang\PdfToImage\PdfToImageMaker::class,
 Add a aliase in aliases array:
'PdfToImage'=>JianhuaWang\PdfToImage\PdfToImageFacade::class,

用法Usage:

  1. Following code will read pdf file on (project root) + /storage/app/test.pdf, and convert first page to image, the image will be saved on (project root) + /storage/app/(current date)/(seconds).jpg $pdfFileNameWithPath='test.pdf';     $converter=new JianhuaWang\PdfToImage\PdfToImageMaker($pdfFileNameWithPath); $converter->saveImage();// Default action is converting all pages to images.
  2. The following codes has same function with above.

    use PdfToImage; PdfToImage::pdfFile('test.pdf')->saveImage();


All versions of laravel-pdf-to-image with dependencies

PHP Build Version
Package Version
Requires ext-imagick Version *
intervention/image Version ^2.0
illuminate/support Version 5.*|6.*|7.*|8.*|9.*|10.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jianhuawang/laravel-pdf-to-image contains the following files

Loading the files please wait ....