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 Leraystated

— first workflow

Tuesday, 6th December 2016 - 09:49

 

gijssong

— 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

 

gijstweeted

— 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

 

gijssong

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

Thursday, 8th December 2016 - 17:17

 

gijsironized

— First pdf generation using headless browser

Monday, 12th December 2016 - 17:19

 

gijsrendered

— Tiny cleaning

Tuesday, 13th December 2016 - 12:50

 

Alex Leraygave away

— poc for running it as a service

Wednesday, 14th December 2016 - 17:36

 

Alex Leraysaid

— Example usage for the web service

Wednesday, 14th December 2016 - 17:41

 

Alex Leraydivulged

— Run phantomjs from python

Thursday, 15th December 2016 - 11:23

 

Alex Leraylet out

— Django app to generate the HTML files

Thursday, 15th December 2016 - 22:30

 

Alex Lerayunwraped

— requirements

Thursday, 15th December 2016 - 23:22

 

gijssong

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

Friday, 16th December 2016 - 00:13

 

Alex Leraypublished

— Celery integration

Friday, 16th December 2016 - 14:40

 

Alex Lerayuttered

— task status url

Friday, 16th December 2016 - 14:56

 

Alex Leraytalked

— 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 Lerayrevealed

— A setting to specify ospkit path

Tuesday, 14th February 2017 - 10:02

 

Alex Leraypeached

— Fix indentation error in settings

Tuesday, 14th February 2017 - 10:11

 

Alex Leraywhispered

— Fix settings

Tuesday, 14th February 2017 - 10:14

 

Alex Lerayuttered

— uniaue pdf name + fiddle

Tuesday, 14th February 2017 - 12:01

 

Alex Lerayexpressed

— celerw script

Tuesday, 14th February 2017 - 12:03

 

Alex Leraylet the cat out of the bag

— Fix generated pdf paths

Tuesday, 14th February 2017 - 12:11

 

Alex Lerayrendered

— Rets Framework + moved fiddle fiddles

Thursday, 16th February 2017 - 22:45

 

Alex Lerayrevealed

— proto fiddle more or less working

Tuesday, 28th February 2017 - 18:12

 

Alex Lerayargued

— caches the story so it loads faster

Tuesday, 28th March 2017 - 11:08

 

Alex Leraybring out

— cleaning

Monday, 12th June 2017 - 15:16

 

Alex Leraypublished

— Force UTF-8 for scrapped HTML

Wednesday, 14th June 2017 - 15:47

 

Alex Leraydiscovered

— Externalized html2print stylesheet + test content

Wednesday, 14th June 2017 - 15:49

 

Gijsbabbled out

— Simple multi column support

Monday, 12th June 2017 - 19:10

 

Alex Leraytweeted

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

Wednesday, 14th June 2017 - 21:58

 

Alex Lerayverbalised

— Cleaning and simplifying

Thursday, 15th June 2017 - 09:12

 

Alex Lerayshouted

— Started a doc and the generate views takes JSON now

Friday, 16th June 2017 - 15:38

 

Gijs de Heijtalked

— Started on running headers, page footers and page numbering

Saturday, 17th June 2017 - 12:56

 

Gijs de Heijsong

— Documentation on the variables

Saturday, 17th June 2017 - 16:37

 

Gijs de Heijrevealed

— Documentation

Saturday, 17th June 2017 - 16:41

 

Alex Lerayargued

— marionettejs to the rescue. Wip.

Monday, 19th June 2017 - 01:20

 

Alex Leraytweeted

— more functionnal fiddle

Monday, 19th June 2017 - 12:16

 

Gijs de Heijlet on

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

Monday, 19th June 2017 - 18:28

 

Alex Leraydivulged

— Fix hard-coded url

Tuesday, 20th June 2017 - 00:09

 

Alex Leraygave away

— externalized underscore templates

Tuesday, 20th June 2017 - 11:39

 

Alex Leraygave away

— PDF/HTML switch

Tuesday, 20th June 2017 - 12:32

 

Alex Lerayclaimed

— create view and some other fixes

Tuesday, 20th June 2017 - 13:02