[GH-ISSUE #573] How can I export command output to file.md or even file.svg? #305

Closed
opened 2026-02-25 20:33:17 +03:00 by kerem · 1 comment
Owner

Originally created by @DragonSerW on GitHub (Sep 17, 2023).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/573

Hello guys! )
I use figlet to export text as file.nfo:

[dragonserw@fedora ~]$ figlet DragonSerW | tee -a ./DragonSerW.nfo
 ____                              ____          __        __
|  _ \ _ __ __ _  __ _  ___  _ __ / ___|  ___ _ _\ \      / /
| | | | '__/ _` |/ _` |/ _ \| '_ \\___ \ / _ \ '__\ \ /\ / / 
| |_| | | | (_| | (_| | (_) | | | |___) |  __/ |   \ V  V /  
|____/|_|  \__,_|\__, |\___/|_| |_|____/ \___|_|    \_/\_/   
                 |___/                                       
[dragonserw@fedora ~]$ 

My question is:
I need that formatted text as output file.svg or file.pdf.
Can asciinema do such thing? ;-))
For now I save bash output to file.md and then I print it with Document Viewer (to .pdf and to .svg).

Originally created by @DragonSerW on GitHub (Sep 17, 2023). Original GitHub issue: https://github.com/asciinema/asciinema/issues/573 Hello guys! ) I use `figlet` to export text as file.nfo: ``` [dragonserw@fedora ~]$ figlet DragonSerW | tee -a ./DragonSerW.nfo ____ ____ __ __ | _ \ _ __ __ _ __ _ ___ _ __ / ___| ___ _ _\ \ / / | | | | '__/ _` |/ _` |/ _ \| '_ \\___ \ / _ \ '__\ \ /\ / / | |_| | | | (_| | (_| | (_) | | | |___) | __/ | \ V V / |____/|_| \__,_|\__, |\___/|_| |_|____/ \___|_| \_/\_/ |___/ [dragonserw@fedora ~]$ ``` My question is: I need that formatted text as output file.svg or file.pdf. Can asciinema do such thing? ;-)) For now I save bash output to file.md and then I print it with Document Viewer (to .pdf and to .svg).
kerem closed this issue 2026-02-25 20:33:17 +03:00
Author
Owner

@ku1ik commented on GitHub (Oct 18, 2023):

Hey! asciinema doesn't produce .md nor .pdf files as it's primary use case is animated output. Checkout pandoc, there may be simple way to convert any text file (or output) into PDF with it.

<!-- gh-comment-id:1768316036 --> @ku1ik commented on GitHub (Oct 18, 2023): Hey! asciinema doesn't produce `.md` nor `.pdf` files as it's primary use case is animated output. Checkout pandoc, there may be simple way to convert any text file (or output) into PDF with it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#305
No description provided.