[ https://issues.apache.org/jira/browse/PDFBOX-4663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr closed PDFBOX-4663. ----------------------------------- Resolution: Cannot Reproduce Closing this. I was going through old issues. I don't see in my mail program that I ever received a file or had any mail with "navdeep". It's still possible that I did and have deleted or lost it. You can still comment or reopen. > Bad characters in PDF > --------------------- > > Key: PDFBOX-4663 > URL: https://issues.apache.org/jira/browse/PDFBOX-4663 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 2.0.15 > Environment: Open JDK 11.0.4.11.1 > Reporter: Navdeep > Priority: Major > Attachments: PastedGraphic-1-4.png > > > Our application uses PDFBox 2.0.15 for PDF processing. We have recently > upgrade PDFBox version and Java 8. Now, we are using Open JDK 11.0.4.11.1. > The application flow is when we receive the PDF, we add the blank page in the > end of the PDF and save it. (This is simple use case). > We have observed two times this issue in last one month, The text of the PDF > get change to alphanumeric numbers as shown in the attached picture. > > Kindly assist. > > Here is the sample code that we are using - > String fileName = "84413_196751_0.pdf"; > PDDocument pdDocument = PDDocument._load_(*new* File(fileName)); > File file = *new* File(fileName); > *try* { > // Add Page into PDF > PDPage newPage = *new* PDPage(); > pdDocument.addPage(newPage); > File preparedFile = DocumentUtil._getPreparedFile_(*new* File(fileName)); > pdDocument.save(preparedFile); > } *catch* (Exception e) { > System.*_out_*.println("Error in preparing document "); > } -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org