streamlet-examples/pdfinfo
branchv_0
changeset 49 ab48ad4ecb91
parent 45 f466b4c7d9b1
child 50 22ed5647b235
equal deleted inserted replaced
48:26a8b1a14889 49:ab48ad4ecb91
    20 # With no options it returns just number of pages (or 0 if the file is not a PDF).
    20 # With no options it returns just number of pages (or 0 if the file is not a PDF).
    21 # Specific attributes can be selected using options – e.g. --option 'attribute' 'Author'
    21 # Specific attributes can be selected using options – e.g. --option 'attribute' 'Author'
    22 # List of available attributes can be obtained by directly calling the pdfinfo command on a PDF file.
    22 # List of available attributes can be obtained by directly calling the pdfinfo command on a PDF file.
    23 
    23 
    24 
    24 
    25 . "$(dirname $0)/streamlet-common.sh"
    25 . "$(dirname "$0")/streamlet-common.sh"
    26 
    26 
    27 processMessage_WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA() {
    27 processMessage_WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA() {
    28 	pdfFields=()
    28 	pdfFields=()
    29 
    29 
    30 	for (( i=0; i<${#optionNames[@]}; i++)); do
    30 	for (( i=0; i<${#optionNames[@]}; i++)); do