mardi 19 janvier 2021

I want to covert pdf to text but spatie/pdf-to-text is not working, it is showing error

<?php 
require_once 'vendor/autoload.php';

use Spatie\PdfToText\Pdf;
$path= "C:\xampp\htdocs\ccc\public\ebutifier\pdf";
echo Pdf::getText('simple.pdf', $path);

Error =

The command "sample_1611078320.pdf C:\xampp\htdocs\ccc\public\ebutifier\pdf -" failed. Exit Code: 1(General error) Working directory: C:\xampp\htdocs\ccc\public Output: ================ Error Output: ================ 'sample_1611078320.pdf' is not recognized as an internal or external command, operable program or batch file.

<?php 
require_once 'vendor/autoload.php';

use Spatie\PdfToText\Pdf;
$path= "C:\xampp\htdocs\ccc\public\ebutifier\pdf";
echo Pdf::getText($path, 'simple.pdf');

Error => Could not read sample_1611078773.pdf



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire