#!/usr/bin/env texlua --*-Lua-*- -- $Id$ -- Copyright (C) 2008-2022 Reinhard Kotucha. -- You may freely use, modify and/or distribute this file. doc = { invocation = '[options] []', synopsis = 'Create a PDF file for FastWebView.', details = [=[ can be either a PS, EPS, or PDF file. A single hyphen (-) denotes stdin. is required if is a PDF file or input is read from stdin. Please note that PDF versions newer than 1.4 don't support FastWebView any more. Thus we set -dCompatibilityLevel=1.4 ]=]} default_outfile_ext = '.pdf' dofile(arg[0]:match('(.*[/\\])')..'tlgs-common') local command = {gsname()} addto(command, '-dFastWebView=true', '-sDEVICE=pdfwrite', '-dCompatibilityLevel=1.4', '-o'..file.output, options, '-f', file.input) execute(command) -- Local Variables: -- mode: Lua -- lua-indent-level: 2 -- indent-tabs-mode: nil -- coding: utf-8-unix -- End: -- vim:set tabstop=2 expandtab: