Giter Site home page Giter Site logo

pdf2png's People

Contributors

jcreager avatar thnew 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

Watchers

 avatar  avatar  avatar  avatar

pdf2png's Issues

[ERR_INVALID_CALLBACK]: Callback must be a function

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at makeCallback (fs.js:137:11)
    at Object.unlink (fs.js:936:14)
    at C:\[DIR]\node_modules\pdf2png-mp2\lib\pdf2png.js:53:6
    at ChildProcess.exithandler (child_process.js:280:7)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

I can't currently use this library because of that problem. Is there any solution ?

Thank you !

Azure Function app support

I have confirmed with Microsoft that their Windows sandbox blocks the use of pdf2png and other PDF related libraries. I've tested my app in both v1 and v2 of Azure Functions.
See the references here to the restrictions
https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#unsupported-frameworks
and some references to PDF things that violate these restrictions.

You say pdf2png was tested in Azure. Can you tell me how you deployed it to Azure? Also, any idea what in pdf2png might be violating? Microsoft didn't tell me exactly what pdf2png violates.

I'd really like to get it working in my Azure Function, without have to move to my own VM that would remove the sandbox restriction.

Any ideas?

Thanks,
Donnie

base64 is not allowed and input big binary buffer is not allowed,too

base64 is not allowed and input big binary buffer is not allowed,too
Hi, I am a chinese boy, and my english is wrong, so, first of all, I want to say sorry.
I am a beginner of nodejs, when I use your module, I found:

  1. if I use pdf base64, it is error.
  2. if I user a small binary buffer, it is success, but if I use a big binary buffer (amost 6MB), it is error,and the error is "fs: Error: EBUSY: resource busy or locked, unlink".

GPL Ghostscript 9.52: Unrecoverable error

Any ideas on what might be causing this error?
Something went wrong: Error reading pdf: Error: Command failed: gs -q -dNODISPLAY -c "(/Users/donniekerr/Documents/work/pdf2png/pdf2png/input/W-4-KERR.pdf) (r) file runpdfbegin pdfpagecount = quit"
[5/15/20 4:06:53 PM] GPL Ghostscript 9.52: Unrecoverable error, exit code 1

Space in File Path

Hi,

It's working fine in case of Path : C:\Users\Test\Image\1\sample_image.png
But when I am passing Path: C:\Users\Test\Image\1\sample image.png
it is not working. So when there is space in a folder name or file name it is not working.

Can you please suggest how to resolve this issue.

Got Workaround by copping files.

Regards,
Kalpan

ghostScript update

First of all great work with this npm, thank you very much @thnew . As me(@matex1024) and my friend(@eduardomourar) use this library from time to time but we don't want to fork this project or create new project based on that one, it's better to maintain this one then create clones.
For the issue reason I just want say there is new version of ghostScript that has few important changes for out project. We tested changes of new ghostScript just please add as contributors.
Thanks and Best Regars
MatAng

Error spanw ENOENT

I'm using this locally (and then pushing it out to production); however, I was caught with this error:

{
  success: false,
  error: 'Error converting pdf to png: Error: spawn ENOENT'
}

Any ideas on how to fix it?

More than one page

Is it possible to convert a multiple page pdf file into pngs? For example a 3 site pdf would create "test(1).png", "test(2).png" and "test(3).png".

So far I was only be able to convert the first page of a pdf file.

Iterating PDF file

How to convert nth page of a pdf file to png image?
which I mean.
I converted a PDF file which holds 8 pages in it, but resulted by converting only first page of a pdf file to a png image, but I need a whole.

Thanks in advance.

Possible to use on heroku?

I got this working on the local machine (windows). I'm having trouble getting it to run by replacing the path when deploying to heroku. Any tips?

multiple pages

Your examples don't show multiple images like the other mp fork does. Will this one work if I use their multiple page example code?

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.