---
# System prepended metadata

title: microproject-print-cards-from-slack

---

# microproject-print-cards-from-slack


- 100px in the PDF tool is 1.375"or 11/8
- 2*72 x 3.5*72
- 144 x 252

## steps

- open modal to get search terms?
- styling preferences?
- get tasks 
    - last 10 for now?
    - or up to 100?
- generate pdf
- upload pdf to slack


## features

- randomize font
- select font
- conform to 2x3.5 or else have card conform to text
- continute text on next card



## layout experiments

[this post is useful](https://pspdfkit.com/blog/2019/generate-pdf-invoices-pdfkit-nodejs/) on layout. must work through it.


## may as well print hackmd too

- hackmd api: https://hackmd.io/@hackmd-api/developer-portal/https%3A%2F%2Fhackmd.io%2F%40hackmd-api%2Fuser-notes-api#Create-a-note
- 

## try other things

- https://pdf-lib.js.org/
- puppeteer: https://dev.to/damcosset/generate-a-pdf-from-html-and-back-on-the-front-5ff5
- jspdf: https://rawgit.com/MrRio/jsPDF/master/docs/index.html
- [solving the youtube embed problem](https://stackoverflow.com/questions/58084276/make-embedded-youtube-video-thumbnail-printable-media-print)
- 