Skip to content

epyphite/html2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML2PDF

Cover

OS Ubuntu Dependencies for Chrome Browser

sudo apt-get install -y libatk-bridge2.0-0 libgtk-3.0



sudo apt-get install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

sudo apt-get install libgdm-dev libnss3-dev libgbm-dev


A Tool to get URLS from different sources and convert them into a PDF representation. This tool uses chrome in its latest version.

Use ./install.sh to get the latest version.

Basic usage

Get the binary from releases, unzip and install the only dependency

cd /temp/

curl https://github.com/epyphite/html2pdf/releases/download/0.1-alpha/linux-dist.tar.gz

tar zxvf linux-dist.tar.gz

cd linux

ls

drwxr-xr-x 2 0 0 4,0K jul  3 13:46 bin
-rw-r--r-- 1 0 0  740 jul  3 13:47 install.sh
-rw-r--r-- 1 0 0  195 jul  3 13:47 sample.cfg

bash install.sh

bin/html2pdf --url [URL]

Building

A makefile has been added to ease the way feel free to contribute, among perks int he make file

To build the binary

make build/html2pdf-linux 

To Create a copy config files and packages

make package

If you have token for github, the builds are done with release.sh but you can issue.

make distribute