ncjoes / poppler-php Goto Github PK
View Code? Open in Web Editor NEWComprehensive PHP wrapper for Poppler-utils
License: MIT License
Comprehensive PHP wrapper for Poppler-utils
License: MIT License
Thanks for this library, going through the examples, but I didn't find how to return plain text, is this possible? Thank you for reading.
I get this error on linux VDS;
Fatal error: Uncaught NcJoes\PopplerPhp\Exceptions\PopplerPhpException: Poppler bin directory does not exist: /home/translabe.com/public_html/vendor/bin/poppler in /home/translabe.com/public_html/vendor/ncjoes/poppler-php/src/PopplerPhp/Config.php:73 Stack trace: #0 /home/translabe.com/public_html/index.php(14): NcJoes\PopplerPhp\Config::setBinDirectory() #1 {main} thrown in /home/translabe.com/public_html/vendor/ncjoes/poppler-php/src/PopplerPhp/Config.php on line 73
I can't create bin folder somehow. What should I do.
When trying to run on the browser, following error is coming
FatalErrorException in /var/www/html/proj10/vendor/ncjoes/poppler-php/src/PopplerPhp/PopplerUtil.php line 349: syntax error, unexpected 'DEFAULT' (T_DEFAULT)
I am using following code to set the directory. Is this the correct way? There was no poppler folder in "vendor/bin" directory. So i created it.
// set Poppler utils binary location
Config::setBinDirectory('/var/www/html/proj10/vendor/bin/poppler');
// set output directory
Config::setOutputDirectory('/var/www/html/proj10/storage/poppler-output');
Config::setBinDirectory("/home/nginx/ser/public/vendor/bin/poppler");
I see "poppler" missing inside bin folder of vendor even after composer update. kindly help me here.
The package requires illuminate/support: ^5.3, which is compatible with Laravel 5 but not with Laravel 6.
Could you add support for Laravel 6?
I have installed the component in laravel through composer.
When i am putting sample code and tried to run it gives the error as
FatalErrorException in /var/www/html/proj10/vendor/ncjoes/poppler-php/src/PopplerPhp/Config.php line 49: syntax error, unexpected 'isSet' (T_ISSET), expecting identifier (T_STRING)
Please suggest what i am doing wrong.
Config::setBinDirectory('/var/www/html/proj10/vendor/bin/poppler');
// set output directory
Config::setOutputDirectory('/var/www/html/proj10/storage/poppler-output');
Thank you for this code!! I am converting a pdf to jpg's. (I wish to resize the jpgs in memory and then re-assemble the pdf).
Using your Cairo class, is there any way I can write the jpg output to a variable? I tried:
$arrOutputJPG = $cairo1->generateJPG();
But that didn't work. JPG files were still created.
Any suggestions are appreciated.
If you prefer that I email you instead, let me know and I will delete this Issue.
I got PdfToHtml and PdfInfo to work, but I am just wondering if PdfToText currently does anything? I feel like I'm chasing my tail trying to get it to output text. ๐
It would be better to use the exec() function in order to be able to get output and return value separately.
Hi,
I guess there is no code written for pdf detach. if it exists please let me know. i want to implement that. i checked PdfDetach.php, there is no method implemented for it.
Thanks,
Here is my code,
$cairo = new \NcJoes\PopplerPhp\PdfToCairo($filepath);
$cairo->setResolution($resolution);
I am getting the following exception,
Unknown 'NcJoes\PopplerPhp\PdfToCairo' Option (or Invalid Type): -r=300 (integer)
Looking at the code, it seems I need to be using a double. However, using integers should be just as valid. In fact, probably more valid. I have never seen people use a decimal point when they express DPI values.
I find it really awkward to control the output of PdfToCairo
class.
There is a weird hard-coded 'test' subdirectory that is created,
poppler-php/src/PopplerPhp/PopplerUtil.php
Line 102 in 55c9614
It would be really nice to be able to get rid of that subdirectory completely.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.