(I have not yet obtained sufficient information from our user.)
Hi,
When I convert a PDF to PNG with embedded fonts, probably PostScript(Type 1) fonts, the text is misaligned.
The PDF was probably created by "PDF reDirect" and probably has Type 1 fonts.
I have attached screenshots.
I am asking the user if I can upload the PDF to this forum.
01_pdf: Part of the PDF
02_to_png: Created PNG
03_pdf_properties: Properties of the PDF
04_font: Font of the text shown in 01_pdf (copied and pasted from AcrobatReader to MS Word)
Code:
BufferedImage image = srcDocument.saveAsImage(i, PdfImageType.Bitmap, 300, 300);
ImageIO.write(image, "PNG", pngPath.toFile());
OS:
Amazon Linux 2