Debian Codegraph @

texmf-dist/doc/latex/graphicxpsd/test-gin-rule-psd.tex

raw
1 % #!rm -f tigerpsdfmt4* && ptex2pdf -l -u -ot '-shell-escape' -od '-v' test-gin-rule-psd
2 % #!rm -f tigerpsdfmt4* && xelatex -shell-escape test-gin-rule-psd
3 % #!rm -f tigerpsdfmt4* && pdflatex -shell-escape test-gin-rule-psd
4 %#!rm -f tigerpsdfmt4* && lualatex -shell-escape test-gin-rule-psd
5 \documentclass[luatex]{article}%%set driver as global option
6 \usepackage{graphicx}
7 \usepackage[%
8 magick,%imagemagick,graphicsmagick,%%same as the one; %%default: sips
9 % convert,%% old ImageMagick
10 cache=true,%%default: false
11 ]{graphicxpsd}
12 \listfiles
13
14 %% expl3の内部変数へアクセスし、テスト出力するためのヘルパーコマンド
15 \ExplSyntaxOn
16 \newcommand*{\ShowPsdCommand}{\tl_use:N \l__gfxpsd_psdtopdf_tl}
17 \newcommand*{\ShowCacheStatus}{\bool_if:NTF \l__gfxpsd_cache_bool { true } { false }}
18 \ExplSyntaxOff
19
20 \begin{document}
21 \begin{itemize}
22 \item PSD-to-PDF: \ShowPsdCommand
23
24 \item image cache: \ShowCacheStatus
25 \end{itemize}
26
27 %% $ file tigerpsdfmt.psd
28 %% tigerpsdfmt.psd: Adobe Photoshop Image, 550 x 568, RGBA, 4x 8-bit channels
29 \includegraphics{tigerpsdfmt.psd}
30 \end{document}
31
32 $ pdfinfo tigerpsdfmt4gfxpsd.pdf
33 Title: tigerpsdfmt4gfxpsd
34 Producer: /opt/homebrew/Cellar/imagemagick/7.0.7-15/share/doc/ImageMagick-7//index.html
35 CreationDate: Sat Jan 27 00:10:51 2018 JST
36 ModDate: Sat Jan 27 00:10:51 2018 JST
37 Tagged: no
38 UserProperties: no
39 Suspects: no
40 Form: none
41 JavaScript: no
42 Pages: 2
43 Encrypted: no
44 Page size: 99 x 102.24 pts
45 Page rot: 0
46 File size: 1052740 bytes
47 Optimized: no
48 PDF version: 1.4
49
50 $ pdfinfo tigerpsdfmt4gfxpsd.pdf
51 Producer: Mac OS X 10.13.4 Quartz PDFContext
52 CreationDate: Fri Jan 26 15:12:13 2018 JST
53 ModDate: Fri Jan 26 15:12:13 2018 JST
54 Tagged: no
55 UserProperties: no
56 Suspects: no
57 Form: none
58 JavaScript: no
59 Pages: 1
60 Encrypted: no
61 Page size: 99 x 102.24 pts
62 Page rot: 0
63 File size: 112882 bytes
64 Optimized: no
65 PDF version: 1.3