We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Landray RDM 91963 Convert Effect

源代码:
src.zip (4.4 KB)

原始文件:
使命、愿景、价值观、方针流程图Flow Chart of Mission, Vision, Values, Policies.pdf.zip (46.4 KB)

转换异常:
微信图片_20191218172642.png (35.6 KB)
8AAEEB7D-AB7C-428f-B53D-3B12E06B8B80.png (259.8 KB)

底部缺失,麻烦排查一下。

@hucq_landray_com_cn

我们使用Java 19.11的Aspose.PDF和以下简单代码片段测试了该方案。我们无法注意到您提到的问题。请确保使用最新版本的API,如果仍然遇到任何问题,请随时告诉我们。

Document pdfDocument = new Document(dataDir + "Flow Chart of Mission, Vision, Values, Policies.pdf");
for(Page page:pdfDocument.getPages()) {
   java.io.OutputStream imageStream = new java.io.FileOutputStream(dataDir + "Converted_Image_"+page.getNumber()+".png");
   com.aspose.pdf.devices.Resolution resolution = new com.aspose.pdf.devices.Resolution(300);
   com.aspose.pdf.devices.PngDevice pngDevice = new com.aspose.pdf.devices.PngDevice(resolution);
   pngDevice.process(page, imageStream);
   imageStream.close();
}

Converted_Image_2.png (280.7 KB)
Converted_Image_1.png (245.6 KB)