Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an --stdin option to read content from stdin #35

Closed
dagwieers opened this issue Feb 16, 2012 · 6 comments
Closed

Add an --stdin option to read content from stdin #35

dagwieers opened this issue Feb 16, 2012 · 6 comments

Comments

@dagwieers
Copy link
Member

Someone request to be able to pipe a document to standard input for doing conversions. Much like the --stdout option, we could implement an ---stdin option.

@jorangreef
Copy link

This would be a great help.

@dagwieers
Copy link
Member Author

I accept contributions ;-)

@hyper-space
Copy link

I second the motion. I'd do it myself by I'm a total hack at python and this one is over my head. Great job by the way!

@pataquets
Copy link
Contributor

There are 2 different PR with proposals for stdin. I'm +1 on this feature.
@dagwieers: Could you please provide feedback to allow further progress? Thus, interested people can focus on improving and testing. TIA.

@dagwieers
Copy link
Member Author

Yes, this one can be closed. Seems to work very well, I am pleased !

@TobiasJu
Copy link

Hey guys can you short explain how to use --stdin?
Because, when using stdin to pass a string for writing into a pdf, i get this error msg.:
unoconv -f pdf --output test.pdf --stdin <<< "This is a test."

Expected bytes object or ByteSequence, got <class 'str'> instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants