Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.30
-
None
Description
demo:
public static void main(String[] args) throws IOException, InterruptedException {
File file = new File("C:\\Users\\LYCIT\\Downloads
CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf");
final PDDocument load = PDDocument.load(file, MemoryUsageSetting.setupTempFileOnly()
.setTempDir(new File("D:\\fcs
test")));
PDFRenderer renderer = new PDFRenderer(load);
renderer.setSubsamplingAllowed(true);
int pageIndex = 0;
float scale = 2f;
BufferedImage bufferedImage = renderer.renderImage(pageIndex, scale, ImageType.RGB);
FileOutputStream fos = null;
try
finally {
if (fos != null)
}
Thread.sleep(6000000);
}
pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
garbled fonts:image0.jpg