streamlet-examples/pdftotext
branchv_0
changeset 49 ab48ad4ecb91
parent 45 f466b4c7d9b1
child 50 22ed5647b235
equal deleted inserted replaced
48:26a8b1a14889 49:ab48ad4ecb91
    18 
    18 
    19 # This streamlet provides a single attribute: plain text content of given PDF file. It calls the tool pdftotext.
    19 # This streamlet provides a single attribute: plain text content of given PDF file. It calls the tool pdftotext.
    20 # n.b. the plain text content must fit into memory and shell variable and command-line argument (it usually will)
    20 # n.b. the plain text content must fit into memory and shell variable and command-line argument (it usually will)
    21 
    21 
    22 
    22 
    23 . "$(dirname $0)/streamlet-common.sh"
    23 . "$(dirname "$0")/streamlet-common.sh"
    24 
    24 
    25 processMessage_WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA() {
    25 processMessage_WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA() {
    26 	send OUTPUT_ATTRIBUTE_METADATA "${outputAttributeAliases[0]-pdftotext}"    "string"
    26 	send OUTPUT_ATTRIBUTE_METADATA "${outputAttributeAliases[0]-pdftotext}"    "string"
    27 	send WAITING_FOR_INPUT_ATTRIBUTES
    27 	send WAITING_FOR_INPUT_ATTRIBUTES
    28 }
    28 }