After doing replacement on the 4th page like this:
textFragment.setText(replacementValue);
Document opened in Acrobat Reader with exception about missing font “Can not find or create font ‘RORTWP+Arial’”.
Origin file: medical_history.pdf
File after replacement: result_medical_history_1427.pdf
Exception in Acrobat Reader: missing_font.jpg
missing_font.jpg (40.6 KB)
result_medical_history_1427.pdf (219.6 KB)
medical_history.pdf (220.3 KB)