From 2dc58ae142cc7c6f5820f4816dc6a5757eb114fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 3 Aug 2023 15:05:26 +0200 Subject: [PATCH] Pdf readme --- pdf/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdf/README.md b/pdf/README.md index 038ecbf..a6502ef 100644 --- a/pdf/README.md +++ b/pdf/README.md @@ -7,7 +7,6 @@ Setup ----- * Install Adobe Acrobat Pro DC. * Copy headers and footers from `pdf/acrobat/` folder to `/Users//Library/Preferences/Adobe/Acrobat/DC/HeaderFooter/`. -* Change date in header and footer element of `web/template.html`. * Run `./parse.js` and commit changes. @@ -16,7 +15,8 @@ Printing to PDF ### Normal PDF * Open `index.html` in text editor and first remove element `


` before the `

Libraries

`. * Then replace the index and footer with contents of `pdf/index_for_pdf.html` file and save. -* Disable internet connection and open the file in Chrome with 'Cache killer' extension enabled. +* Disable internet connection and open the file in Chromium version 108.0.5328.0 (later versions will render the site incorrectly after index is added) with 'Cache killer' extension enabled. +* Right click on the border of the site and select inspect. Select `` element under 'Elements' tab and change top margin from 16 to 5 in 'Styles' tab. * Change brightness of comments by right clicking on one of them and selecting inspect. Then click on the rectangle that represents color and toggle the color space to HSLA by clicking on the button with two vertical arrows. Change lightness (L) percentage to 77%. * Change the brightness of text to 13%. * Select 'Print...' with destination 'Save as PDF', paper size 'A4', 'Default' margins (top 10mm, right 9.5mm, bottom 8mm and left 10mm), 'Default' scale and no headers and footers and save (the document should be 51 pages long with last page empty). @@ -26,9 +26,9 @@ Printing to PDF * Run `./parse.js` again. * Change all links in text to normal text and add a page number in brackets like that: '(p. )' by running './pdf/remove_links.py' (Links can be found with this regex: `.*a href.*`). * Open `index.html` in text editor and first remove element `


` before the `

Libraries

`. -* Then replace the index and footer with contents of `pdf/index_for_pdf_print.html` file. -* Save. -* Disable internet connection and open the file in Chrome with 'Cache killer' extension enabled. +* Then replace the index and footer with contents of `pdf/index_for_pdf_print.html` file and save. +* Disable internet connection and open the file in Chromium version 108.0.5328.0 (later versions will render the site incorrectly after index is added) with 'Cache killer' extension enabled. +* Right click on the border of the site and select inspect. Select `` element under 'Elements' tab and change top margin from 16 to 5 in 'Styles' tab. * Change brightness of elements by right clicking on them and selecting inspect. Then click on the rectangle that represents color and toggle the color space to HSLA by clicking on the button with two vertical arrows. * Change lightness (L) percentage to: * 0% for the text.