Comments (5)
Yes, this feature is missing. We are having plans to implement it in the short time frame, however we didn't discuss the implementation details yet.
Feel free to fork and try to add some evaluations you need before printing.
https://github.com/pofider/phantom-html-to-pdf/blob/master/lib/scripts/conversionScriptPart.js#L79
from phantom-html-to-pdf.
I have working support for this when just running a single phantom server: #14
I've not updated conversionScriptPart.js
(when is this used?) or standaloneScript.js
(currently unclear on best way to return an error). It feels like the 3 files should be refactored and DRYed up...
Any tips for how to return an error in standaloneScript.js
?
from phantom-html-to-pdf.
conversionScriptPart.js
(and serverScriptPart.js
, standaloneScriptPart.js
) are used in prepareScripts.js
which is executed in npm postinstall hook.
don't need to return an error in standaloneScriptPart.js
(well, if you really need that just throw new Error()
) because this file will be running inside a child process, if it has an error it will reported in the callback of childProcess.execFile
from phantom-html-to-pdf.
@PaddyMann the feature is complete 😄
from phantom-html-to-pdf.
Had a quick play and it works great - thank you kindly sir :)
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.