TJkrusinski / NodePDF

Down and dirty PDF rendering in Node.js with PhantomJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Error: Conversion failed with exit of 4294967295]

shrirammano opened this issue · comments

Hi,

When I use nodepdf in a seperate nodejs project, it is working fine, whereas if I use it in a Nodejs project with express framework, I am getting the below error:

[Error: Conversion failed with exit of 4294967295]

I couldn't trace the reason for the error. I am not sure if am doing something wrong!

Thanks!

@shrirammano Express shouldn't have anything that prevents this from working. I have used it in apps that use express. There may be other dependencies that prevent this from working properly?

@TJkrusinski Thanks for the reply. I couldn't see any dependency issues or any other error except
[Error: Conversion failed with exit of 4294967295]
I tried finding if anything else is preventing this from working, but I couldn't find any. Whenever I run my service, the same error is coming up and the PDF isn't getting generated.

The error is being console logged when the error is printed in render method

Can you provide the following:

  • OS version
  • Node version
  • PhantomJS version
  • NodePDF version

Hi,

Please find below the details:
OS version: OS X Yosemite 10.10.5
Node version: 5.3.0
NodePDF: 1.2.1
Phantomjs: 0.8.4

Thanks!

The problem is: nodepdf cannot find phantomjs.exe but it still return true and pdf creation code is executed which causes it to throw error.

iam using windows 32 bit, and placed my phantomjs.exe in my project root as well as in nodepdf node_module folder.

This problem also seen when there are multiple phantomjs binary are fetched by command 'where phantomjs'.

After solving this problem, now it is throwing error code 1 (which according to phantomjs is request failed error).

Now i don't know how to solve this issue, can you guide me?