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 ?
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: