Can a variable be used in the pdftotext command to specify the page to convert without generating an error?
The following borrowed code works if I enter an actual number (e.g. 3) in the pdftotext command, but generates an error (shown below) using a KM variable.
Execute an AppleScript.kmactions (1.4 KB)
Error:
/var/folders/0q/dkk35gnd3pz4sppnxhphs2qw0000gn/T/Keyboard-Maestro-Script-06632F7C-E321-474A-8F06-5F1FCA30FE8A:630:651: execution error: pdftotext version 3.04
Copyright 1996-2014 Glyph & Cog, LLC
Usage: pdftotext [options] []
-f : first page to convert
-l : last page to convert
-layout : maintain original physical layout
-table : similar to -layout, but optimized for tables
-lineprinter : use strict fixed-pitch/height layout
-raw : keep strings in content stream order
-fixed : assume fixed-pitch (or tabular) text
-linespacing : fixed line spacing for LinePrinter mode
-clip : separate clipped text
-enc : output text encoding name
-eol : output end-of-line convention (unix, dos, or mac)
-nopgbrk : don't insert page breaks between pages
-opw : owner password (for encrypted files)
-upw : user password (for encrypted files)
-q : don't print any messages or errors
-cfg : configuration file to use in place of .xpdfrc
-v : print copyright and version info
-h : print usage information
-help : print usage information
--help : print usage information
-? : print usage information (99)