Browse Source

Pdf readme

pull/164/head
Jure Šorn 1 year ago
parent
commit
2dc58ae142
1 changed files with 5 additions and 5 deletions
  1. 10
      pdf/README.md

10
pdf/README.md

@ -7,7 +7,6 @@ Setup
----- -----
* Install Adobe Acrobat Pro DC. * Install Adobe Acrobat Pro DC.
* Copy headers and footers from `pdf/acrobat/` folder to `/Users/<username>/Library/Preferences/Adobe/Acrobat/DC/HeaderFooter/`. * Copy headers and footers from `pdf/acrobat/` folder to `/Users/<username>/Library/Preferences/Adobe/Acrobat/DC/HeaderFooter/`.
* Change date in header and footer element of `web/template.html`.
* Run `./parse.js` and commit changes. * Run `./parse.js` and commit changes.
@ -16,7 +15,8 @@ Printing to PDF
### Normal PDF ### Normal PDF
* Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`. * Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`.
* Then replace the index and footer with contents of `pdf/index_for_pdf.html` file and save. * 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 `<body>` 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 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%. * 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). * 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. * Run `./parse.js` again.
* Change all links in text to normal text and add a page number in brackets like that: '(p. <page_num>)' by running './pdf/remove_links.py' (Links can be found with this regex: `<strong>.*a href.*</strong>`). * Change all links in text to normal text and add a page number in brackets like that: '(p. <page_num>)' by running './pdf/remove_links.py' (Links can be found with this regex: `<strong>.*a href.*</strong>`).
* Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`. * Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`.
* 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 `<body>` 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 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: * Change lightness (L) percentage to:
* 0% for the text. * 0% for the text.

Loading…
Cancel
Save