Module: Vivlio::Starter::CLI::PdfCommands
- Defined in:
- lib/vivlio/starter/cli/pdf.rb
Overview
Module: PDF 生成・圧縮・表示ロジック
提供機能:
- execute_pdf: Vivliostyle CLI による PDF 生成
- execute_pdf_compress: Ghostscript による PDF 圧縮
- execute_open_pdf: macOS Preview.app で PDF を開く
Samovar CLI コマンドから純粋な Hash オプションを受け取る。
Defined Under Namespace
Classes: PdfCommandRunner, PdfCompressor, PdfOpener, PrintPdfCommandRunner, SingleDocDecider
Class Method Summary collapse
-
.execute_open_pdf(options, path = nil) ⇒ void
PDF を Preview.app で開く.
-
.execute_pdf(options, target_output = nil) ⇒ void
PDF 生成を実行する.
-
.execute_pdf_compress(options, input = nil, output = nil) ⇒ void
PDF 圧縮を実行する.
-
.execute_print_pdf(options, target_output = nil) ⇒ void
入稿用 PDF を生成する(–crop-marks –bleed 付き).
Class Method Details
.execute_open_pdf(options, path = nil) ⇒ void
This method returns an undefined value.
PDF を Preview.app で開く
53 54 55 |
# File 'lib/vivlio/starter/cli/pdf.rb', line 53 def execute_open_pdf(, path = nil) PdfOpener.new(, path).call end |
.execute_pdf(options, target_output = nil) ⇒ void
This method returns an undefined value.
PDF 生成を実行する
32 33 34 |
# File 'lib/vivlio/starter/cli/pdf.rb', line 32 def execute_pdf(, target_output = nil) PdfCommandRunner.new(, target_output).call end |
.execute_pdf_compress(options, input = nil, output = nil) ⇒ void
This method returns an undefined value.
PDF 圧縮を実行する
43 44 45 |
# File 'lib/vivlio/starter/cli/pdf.rb', line 43 def execute_pdf_compress(, input = nil, output = nil) PdfCompressor.new(, input, output).call end |
.execute_print_pdf(options, target_output = nil) ⇒ void
This method returns an undefined value.
入稿用 PDF を生成する(–crop-marks –bleed 付き)
62 63 64 |
# File 'lib/vivlio/starter/cli/pdf.rb', line 62 def execute_print_pdf(, target_output = nil) PrintPdfCommandRunner.new(, target_output).call end |