Browse Source

Updated pdf instructions

pull/52/head
Jure Šorn 5 years ago
parent
commit
202afa5023
1 changed files with 3 additions and 3 deletions
  1. 6
      pdf/how_to_create_pdf.md

6
pdf/how_to_create_pdf.md

@ -5,7 +5,7 @@ PDF file can also be purchased here: https://transactions.sendowl.com/products/7
Setup Setup
----- -----
* Install Adobe Acrobat Pro DC. * Install Adobe Acrobat Pro DC.
* Copy headers and footers from 'web/Adobe/' folder to '/Users/<username>/Library/Preferences/Adobe/Acrobat/DC/HeaderFooter/'.
* Copy headers and footers from 'pdf/Adobe/' folder to `/Users/<username>/Library/Preferences/Adobe/Acrobat/DC/HeaderFooter/`.
* Change date in header and footer element of 'web/template.html'. * Change date in header and footer element of 'web/template.html'.
* Run `./parse.js` and commit changes. * Run `./parse.js` and commit changes.
@ -13,14 +13,14 @@ 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 footer and last three '<br>' elements with contents of 'web/index_for_pdf.html' file and save.
* Then replace the footer and last three '<br>' elements with contents of 'pdf/index_for_pdf.html' file and save.
* Open 'index.html' in Chrome and select 'Print...'. * Open 'index.html' in Chrome and select 'Print...'.
* Select destination 'Save as PDF', paper size 'A4', margins and scale 'Default' and no headers and footers and save. * Select destination 'Save as PDF', paper size 'A4', margins and scale 'Default' and no headers and footers and save.
### PDF optimized for laser color printing ### PDF optimized for laser color printing
* Run `./parse.js` again. * Run `./parse.js` again.
* 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 footer and last three '<br>' elements with contents of 'web/index_for_pdf_print.html' file and save.
* Then replace the footer and last three '<br>' elements with contents of 'pdf/index_for_pdf_print.html' file and save.
* Change all links in text to normal text. They can be found with this regex: '<strong>.*a href.*</strong>'. * Change all links in text to normal text. They can be found with this regex: '<strong>.*a href.*</strong>'.
* Open 'index.html' in Chrome. * Open 'index.html' in Chrome.
* 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.

Loading…
Cancel
Save