Skip to content

Commit

Permalink
更新pdf文档工具
Browse files Browse the repository at this point in the history
  • Loading branch information
GL committed Feb 5, 2023
1 parent 700c347 commit 91f928a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/images2pdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ i=150;width=2560;height=2048; \
-background black \
-density ${i}x${i} \
-units PixelsPerInch \
-resize ${width}x${height} \
-resize ${width}x * \
-gravity center \
-extent ${width}x${height} \
-extent ${width}x * \
../output/游戏开发技术-少些重复,多些创意.pdf
20 changes: 20 additions & 0 deletions tools/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

i=150;width=2560;height=2048; \
convert \
../exports/0.前言.png \
\
../exports/1.基础能力.png \
../exports/1.1.编程语言.png \
../exports/1.1.1.编程语言共通概念.png \
../exports/1.1.2.C++语言.png \
\
-compress jpeg \
-quality 100 \
-background black \
-density ${i}x${i} \
-units PixelsPerInch \
-resize ${width}x * \
-gravity center \
-extent ${width}x * \
../output/test.pdf

0 comments on commit 91f928a

Please sign in to comment.