Hi,
the question is, where does the char got lost, when creating the pdf or
when extracting the text?
Did you check the created pdf? Does it contain the whole text?
Andreas
Am 25.07.23 um 07:52 schrieb michael.a...@universa.de:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org