Comments (4)
I had planned to add this feature for a long time since it is good Unix tool practice to read from stdin. However, due to a bug in a the NSUrlConnection class, supporting reading from stdin in a natural way was not possible.
The good news is, that I have tried, whether this bug in NSUrlConnection still exists and a quick test revealed that the problem has probably been fixed in a recent OS X upgrade.
Could you please check, whether the following command works? If so, I will revise the command line interface to read from stdin if no --input argument is specified.
$ Markdown.pl test.md | wkpdf --input file:///dev/stdin --output test.pdf
from wkpdf.
it works using --source
instead of --input
. In a similar vein, I think it would be nice to be able to easily direct output to stdout, maybe like wget
does? In other words, maybe alias --output
with -O
, and make -O-
or maybe -O --
redirect to stdout?
from wkpdf.
I have just released an update to wkpdf which reads from stdin if no --source argument is specified.
Unfortunately, it seems that the Cocoa printing libraries do not like printing to stdout. Hence, if wkpdf should support saving to stdout, a workaround needs to be implemented. Basically its no big deal, I just need to find some time to do this. Hence for the moment I will add this to the issue tracker as feature request.
If this feature is important/urgent for you, contributions are welcome.
from wkpdf.
Printing to stdout is not urgent, just wanted to suggest it. Thanks for the help with stdin!
from wkpdf.
Related Issues (20)
- add sample pdfs HOT 3
- wkpdf is broken in Mountain Lion (CFURLGetFSRef was passed this URL which has no scheme) HOT 1
- How to build wkpdf? HOT 2
- wkpdf crashs when running in sandbox HOT 5
- wkpdf doesn't work in Lion HOT 2
- Cannot load RubyCocoa library HOT 19
- Source file from disk HOT 4
- User stylesheet not accepted HOT 1
- Shrink to fit HOT 10
- generate PDFs with outlines/bookmarks HOT 1
- Background color missing when --no-paginate set HOT 3
- Error when using an user script HOT 1
- gem install error HOT 1
- Support for Mac OS 10.9 Mavericks HOT 16
- Nice ! How about Homebrew formula ? HOT 2
- nvd3 svg charts with wkhtmltoimage HOT 1
- Port wkpdf to Swift or Objective-C
- Why can't I install this??? HOT 7
- `require': cannot load such file -- rdoc/usage (LoadError) HOT 2
- Please un-yank the gem HOT 1
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 wkpdf.