An error occurs when converting PDF to image

When converting a PDF file to an image file, class com.aspose.pdf.internal.ms.System.lh: ‘x-windows-949’ is not a supported encoding
An error occurs.

Please tell me the solution

AsposePDF 24.2.jar

Use java 1.8

@P3PCHAIN
We are looking into it and will be sharing our feedback with you shortly.

@P3PCHAIN

Can you please share your sample PDF document and sample code snippet that you are using? We will test the scenario in our environment and address it accordingly.

File pdf = new File(pdfPath);
	AsposeUtils.setAsposeLic();

	pdfDocument = new Document(new FileInputStream(pdf));
	String imagePath = thumbnailPath + File.separator + k

D5GS73218-002.pdf (242.0 KB)

eDrawing.getMaster().getKeNumber() + “.png”;

	// PDF를 이미지로 변환합니다.
	FileOutputStream imageStream = new FileOutputStream(imagePath);
	// 페이지를 이미지로 저장합니다.
	Resolution resolution = new Resolution(300);
	PngDevice pngDevice = new PngDevice(resolution);
	pngDevice.process(pdfDocument.getPages().get_Item(1), imageStream);

	BufferedImage image = ImageIO.read(new File(imagePath));

	Page pdfPage = pdfDocument.getPages().get_Item(1);
	double pdfPageWidth = pdfPage.getPageInfo().getWidth();
	double pdfPageHeight = pdfPage.getPageInfo().getHeight();

	BufferedImage resizedImage = new BufferedImage((int) pdfPageWidth, (int) pdfPageHeight, image.getType());
	Graphics2D g = resizedImage.createGraphics();
	g.drawImage(image, 0, 0, (int) pdfPageWidth, (int) pdfPageHeight, null);
	g.dispose();

	// 크기가 변경된 이미지 파일을 저장합니다.
	FileOutputStream outputStream = new FileOutputStream(imagePath);
	ImageIO.write(resizedImage, "png", outputStream);
	outputStream.close();

SourtCode

@P3PCHAIN

We tested the scenario in our environment and could not replicate the issue. Attached is the generated output PDF for your kind reference. Can you please share your environment details like OS Name and Version, Application Type, etc? Also, please share if all Windows Fonts are installed in your system.
output.png (20.3 KB)

windows server 2016 standard, 64x

jjava version “1.8.0_202”
error.png (3.1 KB)

font.png (23.2 KB)

@P3PCHAIN

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-43683

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.