GithubHelp home page GithubHelp logo

poppler-php's People

Contributors

avonnadozie avatar hiraro avatar ncjoes avatar videni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

poppler-php's Issues

How to return plain text?

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.

Upload it to linux

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.

Unexpected 'DEFAULT' (T_DEFAULT)

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');

Support for Laravel 6

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?

isSet issue

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');

Outputting JPG files to a variable

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.

Is PdfToText functional?

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. ๐Ÿ˜„

PdfDetach is not working

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,

Invalid type error for integer DPI resolution

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.