html2print
clone your own copy | download snapshot

About

Generating the doc

pip install -r requirements/dev.txt
cd docs
make html
  • html2pdf : generic service to generate pdf from any html page

  • publish : write css and add urls

http://localhost:8000/html2pdf/generate/ : front-end to generate a pdf from any webpage

sudo systemctl restart rabbitmq celery -A testproject worker -l info

@import url('http://meyerweb.com/eric/tools/css/reset/reset.css'); @import url('https://fonts.googleapis.com/css?family=Oswald');

:root { --page-width: 148.5mm; --page-height: 210mm;

--margin-top: 30mm;
--margin-right: 20mm;
--margin-bottom: 30mm;
--margin-left: 20mm;

--column-count: 2;
--column-gap: 9pt;

}

article { font-family: 'Oswald', sans-serif; font-size: 12pt; line-height: 1.25; color: brown; }

article header { text-align: center; margin-bottom: 1.25em; }

article .lead { text-align: left; font-size: 1.25em;

}

article .headline { font-size: 2em; }

article h2 { margin-top: 1.25em; position: relative; top: -.25em;

}

article p + p { text-indent: 3em; }

http://localhost:8000/static/samples/le-grand-robert.html

Snapshots | iceberg

No images in this repository’s iceberg at this time

Inside this repository

Log

 

Alex Leraytalked

— first workflow

Tuesday, 6th December 2016 - 09:49

 

gijsgave away

— Added example with automatized page inserting.
Fixed css path in sample example
Removed dependency on Modernizr. Modernizr file still in repo though.

Thursday, 8th December 2016 - 17:17

 

gijstalked

— Added example with automatized page inserting.
Fixed css pat in sample example
Removed dependency on Modernizr. Modernizr file still in repo though.

Thursday, 8th December 2016 - 17:15

 

gijsgave away

— Merge branch 'master' of gitlab.constantvzw.org:osp/work.villa-arson.pipeline

Thursday, 8th December 2016 - 17:17

 

gijsconfessed

— First pdf generation using headless browser

Monday, 12th December 2016 - 17:19

 

gijspeached

— Tiny cleaning

Tuesday, 13th December 2016 - 12:50

 

Alex Leraylet out

— poc for running it as a service

Wednesday, 14th December 2016 - 17:36

 

Alex Lerayrendered

— Example usage for the web service

Wednesday, 14th December 2016 - 17:41

 

Alex Leraytweeted

— Run phantomjs from python

Thursday, 15th December 2016 - 11:23

 

Alex Leraysaid

— Django app to generate the HTML files

Thursday, 15th December 2016 - 22:30

 

Alex Leraydeclared

— requirements

Thursday, 15th December 2016 - 23:22

 

gijsblabbed out

— Simplified CSS: variables might be too fancy for Phantom?

Friday, 16th December 2016 - 00:13

 

Alex Leraydiscovered

— Celery integration

Friday, 16th December 2016 - 14:40

 

Alex Leraytold

— task status url

Friday, 16th December 2016 - 14:56

 

Alex Leraystated

— A WIP xhr form that aims at returning the PDF link

Tuesday, 24th January 2017 - 21:06

 

Alex Leraywhispered

— prepare settings for deploy and gunicorn script

Tuesday, 14th February 2017 - 09:52

 

Alex Leraysaid

— A setting to specify ospkit path

Tuesday, 14th February 2017 - 10:02

 

Alex Leraybabbled out

— Fix indentation error in settings

Tuesday, 14th February 2017 - 10:11

 

Alex Lerayrendered

— Fix settings

Tuesday, 14th February 2017 - 10:14

 

Alex Leraybabbled

— uniaue pdf name + fiddle

Tuesday, 14th February 2017 - 12:01

 

Alex Lerayrendered

— celerw script

Tuesday, 14th February 2017 - 12:03

 

Alex Lerayadmitted

— Fix generated pdf paths

Tuesday, 14th February 2017 - 12:11

 

Alex Leraytattled

— Rets Framework + moved fiddle fiddles

Thursday, 16th February 2017 - 22:45

 

Alex Lerayironized

— proto fiddle more or less working

Tuesday, 28th February 2017 - 18:12

 

Alex Lerayrevealed

— caches the story so it loads faster

Tuesday, 28th March 2017 - 11:08

 

Alex Lerayadmitted

— cleaning

Monday, 12th June 2017 - 15:16

 

Alex Leraysang

— Force UTF-8 for scrapped HTML

Wednesday, 14th June 2017 - 15:47

 

Alex Leraywhispered

— Externalized html2print stylesheet + test content

Wednesday, 14th June 2017 - 15:49

 

Gijscried

— Simple multi column support

Monday, 12th June 2017 - 19:10

 

Alex Lerayadmitted

— Merge branch 'master' of gitlab.constantvzw.org:osp/villa-arson.html2print

Wednesday, 14th June 2017 - 21:58

 

Alex Lerayconfessed

— Cleaning and simplifying

Thursday, 15th June 2017 - 09:12

 

Alex Lerayunwrapped

— Started a doc and the generate views takes JSON now

Friday, 16th June 2017 - 15:38

 

Gijs de Heijwhistled

— Started on running headers, page footers and page numbering

Saturday, 17th June 2017 - 12:56

 

Gijs de Heijtold

— Documentation on the variables

Saturday, 17th June 2017 - 16:37

 

Gijs de Heijbabbled

— Documentation

Saturday, 17th June 2017 - 16:41

 

Alex Lerayexpressed

— marionettejs to the rescue. Wip.

Monday, 19th June 2017 - 01:20

 

Alex Lerayunwrapped

— more functionnal fiddle

Monday, 19th June 2017 - 12:16

 

Gijs de Heijcomplained

— Furthered interface. Decoding of request body on the server when it has bytes rather than a string

Monday, 19th June 2017 - 18:28

 

Alex Lerayexposed

— Fix hard-coded url

Tuesday, 20th June 2017 - 00:09

 

Alex Leraystated

— externalized underscore templates

Tuesday, 20th June 2017 - 11:39

 

Alex Leraytattled

— PDF/HTML switch

Tuesday, 20th June 2017 - 12:32

 

Alex Lerayunwrapped

— create view and some other fixes

Tuesday, 20th June 2017 - 13:02