Hi,

the TextToPDF function worked without problems from 2.0.24 (the first version, 
i used) to 2.0.27.
I use command-line only.

Here is a test:

#!/bin/bash

jar=/usr/share/java/pdfbox-app.jar # adjust

text_in='hello'

java -jar $jar TextToPDF test.pdf <(echo "$text_in") 2>/dev/null
text_out=$(java -jar $jar ExtractText test.pdf >(cat) 2>/dev/null)

echo -e "text_in : $text_in\ntext_out: $text_out"

if [ "$text_in" != "$text_out" ]; then
  echo 'uat failed'
  exit 1
fi

echo 'uat passed'

Kind regards
Michael

Hinweise zur Datensicherheit und zur Vertraulichkeit von E-Mails finden Sie 
hier: 
https://www.universa.de/e-mail-kommunikation

Informationen zum Datenschutz und zu den Betroffenenrechten können Sie 
nachlesen unter: 
https://www.universa.de/datenschutz

Reply via email to