Option to prepend another PDF to the PnP PDF (think rules)
This commit is contained in:
parent
915521d94f
commit
00f441a3da
@ -95,6 +95,10 @@ module SVGGVS
|
|||||||
|
|
||||||
Pathname(context.session.pdf_target).parent.mkpath
|
Pathname(context.session.pdf_target).parent.mkpath
|
||||||
|
|
||||||
|
if context.session.prepend_pdf
|
||||||
|
pages.unshift context.session.prepend_pdf
|
||||||
|
end
|
||||||
|
|
||||||
system "gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=#{context.session.pdf_target} -dBATCH #{pages.join(" ")}"
|
system "gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=#{context.session.pdf_target} -dBATCH #{pages.join(" ")}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ module SVGGVS
|
|||||||
attr_accessor :svg_source, :svg_merged_target, :individual_files_path, :on_card_finished
|
attr_accessor :svg_source, :svg_merged_target, :individual_files_path, :on_card_finished
|
||||||
attr_accessor :png_files_path, :png_export_width, :pdf_card_size, :pdf_dpi
|
attr_accessor :png_files_path, :png_export_width, :pdf_card_size, :pdf_dpi
|
||||||
attr_accessor :pdf_target, :card_back, :card_size, :target, :post_read_data
|
attr_accessor :pdf_target, :card_back, :card_size, :target, :post_read_data
|
||||||
attr_accessor :card_sheet_identifier
|
attr_accessor :card_sheet_identifier, :prepend_pdf
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@index = 0
|
@index = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user