Compare commits

...

2 Commits

Author SHA1 Message Date
giomba 9b6850a16c Add useful web-related commands. 2022-12-09 20:39:28 +01:00
giomba 74170f6e1c Add useful PDF editing commands. 2022-12-09 20:39:16 +01:00
2 changed files with 19 additions and 0 deletions

9
pdf.md
View File

@ -6,3 +6,12 @@
### Remove password
```pdftk input.pdf input_pw <password> output output.pdf```
### Extract PDF from signed P7M
```openssl smime -verify -noverify -in input.pdf.p7m -inform DER -out output.pdf```
### Remove images from PDF
```cpdf -draft input.pdf -o out.pdf```
### Increase contrast, compress and make PDF from JPEGs
```convert -quality 30 -brightness-contrast -5x10 -density 150 src/input-*.jpeg -compress jpeg output.pdf```

10
web.md Normal file
View File

@ -0,0 +1,10 @@
# Web
### HTML2TEXT
```html2text -nobs -style pretty <INPUT URI>```
If no input URI is provided, then reads from stdin.
### Mirror Website
```wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.org```