Simple bash script that allows you to easily convert a file into a PDF format using pandoc and view it with zathura.
- Converts files from all formats supported by pandoc to PDF to be viewed in zathura.
- Uses
pandocfor document conversion andzathurafor viewing the output PDF.
Make sure you have the following installed on your system:
-
Clone the repo:
git clone https://github.com/ydap1/2pdf.git cd 2pdf -
Make the script executable:
chmod +x 2pdf.sh
-
Copy the script to
/usr/local/binto make it globally accessible:sudo cp 2pdf.sh /usr/local/bin/2pdf
Now you can run the script by simply typing 2pdf <file> in your terminal.