[logseq-plugin-git:commit] 2025-09-08T09:35:23.573Z

This commit is contained in:
YuanHui
2025-09-08 17:35:23 +08:00
parent 1c25911301
commit c70062d6f7
1256 changed files with 65938 additions and 45736 deletions

View File

@@ -1,42 +1,42 @@
- [[苏州杭州旅游]]
- briss #pdf编辑
- [Releases · mbaeuerle/Briss-2.0 (github.com)](https://github.com/mbaeuerle/Briss-2.0)\
- 分割pdf裁剪空白
- **briss**
添加pdf --> preview --> crop
- **mupdf**
`mutool poster -x 2 input.pdf output.pdf`
- pdftk #pdf编辑
- 合并pdf
- `sudo pacman -S pdftk`
- `pdftk *.pdf cat output merged.pdf`
- OCRmyPDF #pdf编辑
- OCR转换pdf文件
- `sudo pacman -S ocrmypdf tesseract-data-chi_sim tesseract-data-chi_tra tesseract-data-eng`
- ocrmypdf -l chi_sim+eng input.pdf output.pdf
- ImageMagick #pdf编辑
- 模拟扫描pdf
- `convert -density 150 input.pdf -colorspace gray +noise Gaussian -rotate -0.5 -depth 2 scanned.pdf`
- [Make a pdf look scanned using ImageMagick (github.com)](https://gist.github.com/andyrbell/25c8632e15d17c83a54602f6acde2724?permalink_comment_id=3206269)
- Ghostscript #pdf编辑
- 压缩pdf
- `sudo pacman -S ghostscript`
- `gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf`
- `sDEVICE=pdfwrite`设置输出设备为pdfwrite即写入到一个PDF文件你可以在终端中输入`gs -h` 查看所有支持的输出设备);
- `-dCompatibilityLevel=1.4` 设置输出 [PDF 版本](https://sspai.com/post/47092) 1.4
- `-dNOPAUSE` 参数表示页与页之间不暂停;
- `-dQUIET` 参数表示抑制标准输出中的注释信息;
- `-dBATCH`参数使Ghostscript在处理命令行上指定的所有文件后退出
- `-dPDFSETTINGS=/ebook`参数控制输出的PDF适用于电子书`/ebook`其分辨率限制在150 DPI这也是影响压缩比率的主要参数。其他一些[可选项](https://sspai.com/link?target=https%3A%2F%2Faskubuntu.com%2Fa%2F256449)包括:
- `/screen`:类似于 [Acrobat Distiller](https://sspai.com/link?target=https%3A%2F%2Fhelpx.adobe.com%2Facrobat%2Fusing%2Fcreating-pdfs-acrobat-distiller.html) (X版本之前)中的Screen Optimized设置分辨率为72 DPI
- `/printer`类似于Acrobat Distiller中的Print Optimized设置分辨率为300 DPI
- `/prepress`类似于Acrobat Distiller中的Prepress Optimized设置分辨率为300 DPI。
- `ps2pdf -dPDFSETTINGS=/ebook input.pdf output.pdf`
- [ryanhanwu/How-To-Ask-Questions-The-Smart-Way: 本文原文由知名 Hacker Eric S. Raymond 所撰寫,教你如何正確的提出技術問題並獲得你滿意的答案。 (github.com)](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/tree/main)
- fast-syntax-highlighting #zsh配置文件
id:: 64844eb4-e9d1-4d00-9a5c-7227c805b39a
- ```
git clone https://github.com/z-shell/F-Sy-H.git \
${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/F-Sy-H
```
- [[苏州杭州旅游]]
- briss #pdf编辑
- [Releases · mbaeuerle/Briss-2.0 (github.com)](https://github.com/mbaeuerle/Briss-2.0)\
- 分割pdf裁剪空白
- **briss**
添加pdf --> preview --> crop
- **mupdf**
`mutool poster -x 2 input.pdf output.pdf`
- pdftk #pdf编辑
- 合并pdf
- `sudo pacman -S pdftk`
- `pdftk *.pdf cat output merged.pdf`
- OCRmyPDF #pdf编辑
- OCR转换pdf文件
- `sudo pacman -S ocrmypdf tesseract-data-chi_sim tesseract-data-chi_tra tesseract-data-eng`
- ocrmypdf -l chi_sim+eng input.pdf output.pdf
- ImageMagick #pdf编辑
- 模拟扫描pdf
- `convert -density 150 input.pdf -colorspace gray +noise Gaussian -rotate -0.5 -depth 2 scanned.pdf`
- [Make a pdf look scanned using ImageMagick (github.com)](https://gist.github.com/andyrbell/25c8632e15d17c83a54602f6acde2724?permalink_comment_id=3206269)
- Ghostscript #pdf编辑
- 压缩pdf
- `sudo pacman -S ghostscript`
- `gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf`
- `sDEVICE=pdfwrite`设置输出设备为pdfwrite即写入到一个PDF文件你可以在终端中输入`gs -h` 查看所有支持的输出设备);
- `-dCompatibilityLevel=1.4` 设置输出 [PDF 版本](https://sspai.com/post/47092) 1.4
- `-dNOPAUSE` 参数表示页与页之间不暂停;
- `-dQUIET` 参数表示抑制标准输出中的注释信息;
- `-dBATCH`参数使Ghostscript在处理命令行上指定的所有文件后退出
- `-dPDFSETTINGS=/ebook`参数控制输出的PDF适用于电子书`/ebook`其分辨率限制在150 DPI这也是影响压缩比率的主要参数。其他一些[可选项](https://sspai.com/link?target=https%3A%2F%2Faskubuntu.com%2Fa%2F256449)包括:
- `/screen`:类似于 [Acrobat Distiller](https://sspai.com/link?target=https%3A%2F%2Fhelpx.adobe.com%2Facrobat%2Fusing%2Fcreating-pdfs-acrobat-distiller.html) (X版本之前)中的Screen Optimized设置分辨率为72 DPI
- `/printer`类似于Acrobat Distiller中的Print Optimized设置分辨率为300 DPI
- `/prepress`类似于Acrobat Distiller中的Prepress Optimized设置分辨率为300 DPI。
- `ps2pdf -dPDFSETTINGS=/ebook input.pdf output.pdf`
- [ryanhanwu/How-To-Ask-Questions-The-Smart-Way: 本文原文由知名 Hacker Eric S. Raymond 所撰寫,教你如何正確的提出技術問題並獲得你滿意的答案。 (github.com)](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/tree/main)
- fast-syntax-highlighting #zsh配置文件
id:: 64844eb4-e9d1-4d00-9a5c-7227c805b39a
- ```
git clone https://github.com/z-shell/F-Sy-H.git \
${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/F-Sy-H
```
- add `F-Sy-H` to plugin list in `.zshrc` file