İlk temizlik tamamlandı bir önceki projeden
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ImageController extends Controller
|
||||
{
|
||||
public function index() {
|
||||
$imgExt = new \Imagick();
|
||||
$imgExt->readImage(public_path('pdf-document.pdf'));
|
||||
$imgExt->writeImages('pdf_image_doc.jpg', true);
|
||||
|
||||
dd("Document has been converted");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user