Git Product home page Git Product logo

Comments (14)

travs avatar travs commented on May 30, 2024

Hi @harshbhatt, thanks for the report. Can you tell me what version of markdown-pdf you are running?
You can find this information by going to Settings>Packages and searching for the package.

Also, what operating system and version are you using?

from markdown-pdf.

harshbhatt avatar harshbhatt commented on May 30, 2024

Hi @travs, I am using version 1.2.4, running on Windows 7 64-bit (SP1).

from markdown-pdf.

travs avatar travs commented on May 30, 2024

@harshbhatt
I believe I have found the source of the problem. Try updating markdown-pdf and let me know if it works!

from markdown-pdf.

harshbhatt avatar harshbhatt commented on May 30, 2024

@travs,
Just updated it and gave it a shot. Got the same error:

Error: html-pdf: PDF generation timeout. Phantom.js script did not exit.
If the error is a timeout, try running the command again. c:\Users\Harsh\.atom\packages\markdown-pdf\lib\markdown-pdf.js:120
Converted successfully. Output in f:\Google Drive\EdgeBotix\Documents\docs\SenSing\Readme.pdf c:\Users\Harsh\.atom\packages\markdown-pdf\lib\markdown-pdf.js:123

Updated to version 1.2.5

from markdown-pdf.

travs avatar travs commented on May 30, 2024

We have had an issue like this before, and it ended up being resolved with this.

Can you try running some html through html-pdf on the command line, and let me know the results?
The script and html in this comment should be sufficient.

Also, could you try doing npm view html-pdf version on the command line. I just want to make sure you're using 0.3.0, which resulted in a fix for the aforementioned issue.

Thanks for your patience @harshbhatt

Update: also, if the pdf is particularly large, you can fix a longer timeout in the configuration, but that very well may not be the problem.

from markdown-pdf.

harshbhatt avatar harshbhatt commented on May 30, 2024

I see. I ran the script using the .html file in that post. Same error.
screenshot 2014-12-09 23 12 01

I am using version 0.3.0.

Thanks for all the help!

from markdown-pdf.

travs avatar travs commented on May 30, 2024

Alright, I'll poke the issue in node-html-pdf and see if we can resolve this. 😀

from markdown-pdf.

jespow avatar jespow commented on May 30, 2024

I'm also having this problem with 1.2.5 on OSX. The file is ~624k

Error: html-pdf: PDF generation timeout. Phantom.js script did not exit. If the error is a timeout, try running the command again.

from markdown-pdf.

travs avatar travs commented on May 30, 2024

@jespow
That seems like a large markdown file; did you try running with a longer timeout? (set this in configs for the package)

from markdown-pdf.

travs avatar travs commented on May 30, 2024

I found this error occurred when I had the file tree selected instead of the actual editor window.

If this is happening to you, make sure you have your editor selected then try the command again.

Will implement a fix for this specific instance of the problem.

from markdown-pdf.

LaSanta avatar LaSanta commented on May 30, 2024

In the case that the markdown is large and phantomjs does not exit after that, adding global.gc() [GARBAGE COLLECTION] to the file and running it as node --expose-gc filename.js takes care of it...

from markdown-pdf.

travs avatar travs commented on May 30, 2024

@LaSanta Interesting... I am also interested to see whether updating phantomJS will do anything. I'm about to do that, so if anyone redownloads please update this issue with your findings

from markdown-pdf.

travs avatar travs commented on May 30, 2024

Ok, since we use a newer version of html-pdf, this is probably fixed. Closing for now.

from markdown-pdf.

9tor avatar 9tor commented on May 30, 2024

Hi I'm using command "html-pdf source.html destination.pdf" on node. It throw error
/usr/local/lib/node_modules/html-pdf/bin/index.js:30
if (err) throw err
^

Error: html-pdf: PDF generation timeout. Phantom.js script did not exit.
at ChildProcess. (/usr/local/lib/node_modules/html-pdf/lib/pdf.js:121:17)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
I'm using ubuntu 14.04.1 64bit. Node version 6.2.2

from markdown-pdf.

Related Issues (20)

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.