Steam as input in asciidoctor-pdf

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Steam as input in asciidoctor-pdf

reygiss
hi,
i'm in a situation where i need stream from a textarea to be used as input for the commandline without saving it to .adoc first. It's for security reason. Actually i need to save it first as .adocbefore getting the pdf stream as output ("-o - "options in command line). My question is : is there a way to replace .adoc input by a stream like in some native lnux command line ?
Reply | Threaded
Open this post in threaded view
|

Re: Steam as input in asciidoctor-pdf

mojavelinux
Administrator
Yes, both the asciidoctor command and the asciidoctor-pdf command support pipes and streams as input. You just set the filename to '-'.

echo 'hello world' | asciidoctor-pdf -o out.pdf -

Cheers,

-Dan

On Sun, Dec 10, 2017 at 1:10 AM, reygiss [via Asciidoctor :: Discussion] <[hidden email]> wrote:
hi,
i'm in a situation where i need stream from a textarea to be used as input for the commandline without saving it to .adoc first. It's for security reason. Actually i need to save it first as .adocbefore getting the pdf stream as output ("-o - "options in command line). My question is : is there a way to replace .adoc input by a stream like in some native lnux command line ?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Steam-as-input-in-asciidoctor-pdf-tp6070.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux