streamlet-examples/pdfinfo
branchv_0
changeset 50 22ed5647b235
parent 49 ab48ad4ecb91
child 70 018e2609f5bb
equal deleted inserted replaced
49:ab48ad4ecb91 50:22ed5647b235
    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 "$(realpath "$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