You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
muse-dl/src/pdftk.cr

18 lines
336 B

require "process"
module Muse::Dl
class Pdftk
PDFTK_BINARY_NAME = "pdftk"
@binary : String | Nil
getter :binary
def initialize
@binary = Process.find_executable(Pdftk::PDFTK_BINARY_NAME)
if !@binary
puts "Could not find pdftk binary, exiting"
Process.exit(1)
end
end
end
end