Comments (8)
Hi,
could you try to print phantomjs output somewhere
var conversion = require("phantom-html-to-pdf")(); conversion({ html: "<h1>Hello World</h1>" }, function(err, pdf) { //print phantomjs output console.log(pdf.logs); console.log(pdf.numberOfPages); pdf.stream.pipe(res); });
from phantom-html-to-pdf.
I added the above logging....
res.log was empty.
converter({html: html, paperSize: { orientation: 'landscape' }}, (err, pdf) => {
log.debug({logs: pdf.logs}, "pdf logs");
log.debug({pages: pdf.numberOfPages}, "pdf number of pages");
pdf.stream.pipe(res);
})
[2016-05-05T15:02:41.038Z] DEBUG: okdj-app/70305 on stravinsky.local: pdf logs (logtype=services)
[2016-05-05T15:02:41.039Z] DEBUG: okdj-app/70305 on stravinsky.local: pdf number of pages (logtype=services, pages=1)
from phantom-html-to-pdf.
That is strange. The pdf.logs
should be an array with at least 1 item. I double checked it and it is like that. I was using console.log..
Can you share your html?
from phantom-html-to-pdf.
We experienced a similar issue. Could you provide any update on that?
from phantom-html-to-pdf.
@demsey2 Can you share the html on which it is breaking? We are using this component very heavily in jsreport without experiencing it.
Did you try using the latest release 0.4.2?
from phantom-html-to-pdf.
@pofider we use Flatdoc to generate html on fly from makrdown files, from time to time our doc file doesn't contain any images, I am going to try 0.4.2 and let you know
from phantom-html-to-pdf.
@demsey2 Maybe you can also try to increase resourceTimeout #7 (comment)
from phantom-html-to-pdf.
Closing due to inactivity. There was a very low resource loading timeout (1000ms) in one of the release which could cause missing images. This should be increased now. If you have further problem with images, please reopen.
from phantom-html-to-pdf.
Related Issues (20)
- Blurred, overlapping text when generating a PDF HOT 1
- PDF image not shown and format issue HOT 1
- Module not found: Can't resolve 'cluster' in... HOT 1
- Table Header HOT 1
- "file" argument must be a non-empty string HOT 3
- is this repo dead HOT 1
- phantomjs in electron
- occasionally I get "phantom manager could not start all workers" error HOT 4
- error occurs in electron (workerErrors) HOT 1
- Local Language Support
- fix footer
- Background color with gradient isn't working when generating via Mobile
- No support for phantom debug option
- No support for specifying TLS version
- Error: spawn EACCES HOT 5
- Cant render chinese character HOT 2
- How to do the page break in the pdf? HOT 1
- This library doesn't seem to support OnResourceRequested HOT 1
- Custom Headers is not working
- Update lodash version
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 phantom-html-to-pdf.