Comments (14)
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.
Hi @travs, I am using version 1.2.4, running on Windows 7 64-bit (SP1).
from markdown-pdf.
@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.
@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.
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.
I see. I ran the script using the .html file in that post. Same error.
I am using version 0.3.0.
Thanks for all the help!
from markdown-pdf.
Alright, I'll poke the issue in node-html-pdf
and see if we can resolve this. 😀
from markdown-pdf.
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.
@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.
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.
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.
@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.
Ok, since we use a newer version of html-pdf
, this is probably fixed. Closing for now.
from markdown-pdf.
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)
- the images path over length HOT 2
- Conversion fails with `Error: ENOENT: ...` HOT 2
- Unmaintained repository ? HOT 4
- Rewrite the project HOT 2
- Misleading error when trying to convert from a non-editor pane
- Custom user styles doesn't work HOT 3
- Lists with sub-lists do not export to pdf correctly HOT 1
- NBSP Shows Instead of Spaces HOT 2
- Not able to export to other formats than pdf
- Failed to activate the markdown-pdf package HOT 2
- Does not render footnotes (e.g. gitlab flavored markdown)
- Can't disable syntax highlighting in code blocks
- Cannot read property 'pre' of undefined
- How can i use markdown-pdf from the external command line?
- Uncaught Error: Cannot find module 'less'Require stack:- $ATOM_HOME/packages\markdown-pdf\lib\a...
- List numbering is not as expected
- Links to sections of the document do not work in the PDF
- Each line in markdown is written as a new line and not as a paragraph in the PDF
- Missing table element in convert precess
- Base 64 images in markdown are not displayed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdown-pdf.