Details
Description
While rotate attached pdf file, The Japanese characters cannot display in the output pdf file.
This problem can also occur when marge PDF files.
We suspect that this caused by the name of font type.
Environment
-------------------------------------------------
OS : Windows 7 (32bit)
jvm : 1.6
pdfbox: 1.8.5
-------------------------------------------------
Code to reproduce the problem
-------------------------------------------------
public static void main(String[] args) {
String filePath = "D:\\test
landscape.pdf";
String newPDFFile = "D:\\test
new_landscape.pdf";
try {
PDDocument rotatedDocument = PDDocument.load(filePath);
PDDocument document = new PDDocument();
int pageNumber = document.getNumberOfPages();
for (int i=0; i<pageNumber; i++)
rotatedDocument.save(newPDFFile);
document.close();
rotatedDocument.close();
} catch (Exception e)
}
-------------------------------------------------