#!/bin/bash
#########################################################################
# html2pdf                                                              #
# script for converting an HTML document to pdf on command line         #
# Fred Radeff (aka FR), fradeff@akademia.ch, radeff.red                 #
# created: May 2017                                                     #
# required: athenapdf, docker                                           #               
# Copyright (c) 2017 Fred Radeff                                        #
#                                                                       #
# This program is free software: you can redistribute it and/or modify  #
# it under the terms of the GNU General Public License as published by  #
# the Free Software Foundation, version 3.                              #
#                                                                       #
# This program is distributed in the hope that it will be useful, but   #
# WITHOUT ANY WARRANTY.                                                 #
# See the GNU General Public License for more details:                  #
# https://www.gnu.org/licenses/gpl.html                                 #
#########################################################################
 
echo "what it the url of the HTML document you want to convert?"
read html
#echo "output directory (eg. /home/radeff/Bureau)"
#read repertoire
sudo docker run --rm -v $(pwd):/converted/ arachnysdocker/athenapdf athenapdf $h
tml
ls -alFrt *.pdf
  • info/h2tml2pdf.txt
  • Dernière modification: 2018/07/18 09:45
  • par radeff