GroupDocs.Viewer for Java 26.3 現已推出。此小幅更新加入了投影片佔位符的渲染選項,並修復了影響 PDF、PowerPoint、Excel、Word 以及影像轉換的多項錯誤。
What’s new in this release
- GroupDocs.Viewer for Java 26.3 (25.12 → 26.3)
| 鍵 | 類別 | 摘要 |
|---|---|---|
| VIEWERNET‑5551 | 新功能 | 新增在投影片的頁首與頁尾渲染佔位符的選項 |
| VIEWERNET‑5550 | 錯誤 | 在 PowerPoint 頁尾新增的內容在渲染為所有輸出格式時不可見 |
| VIEWERNET‑5530 | 錯誤 | 將 DOCX 轉換為 PDF 時,阿拉伯字體渲染不正確 |
| VIEWERNET‑5408 | 錯誤 | PDF 轉 HTML 的渲染速度緩慢 |
| VIEWERNET‑4964 | 錯誤 | 套用自訂 DefaultFontName 時,將 PDF 儲存為 HTML 產生文字錯亂 |
| VIEWERNET‑4941 | 錯誤 | Windows Server 2019 上偶發的字元渲染錯誤 |
| VIEWERNET‑5024 | 錯誤 | PDF 轉 HTML:文字未正確轉換 |
| VIEWERNET‑5514 | 錯誤 | 在連續呼叫試算表格式系列時,明確頁碼的處理不正確 |
| VIEWERNET‑5513 | 錯誤 | 試用模式下,明確指定頁碼超出試用限制,導致 WordProcessing 文件產生無效 |
| VIEWERNET‑5480 | 錯誤 | PDF 渲染完全失效 |
| VIEWERNET‑5515 | 錯誤 | 在 Linux 上使用跨平台檢視器時,TIFF 渲染拋出例外 |
| VIEWERNET‑4540 | 錯誤 | PDF 檔案顯示不正確,字母變形且行列錯位 |
| VIEWERNET‑5516 | 錯誤 | 在授權模式下,傳入超過文件總頁數的頁碼時,WordProcessing 轉 PDF 的檢視產生無效 |
| VIEWERNET‑5577 | 改進 | 實作在郵件正文中偵測並包裹原始 URI 的功能 |
| VIEWERNET‑5550 | 錯誤 | 在 PowerPoint 頁尾新增的內容在渲染為所有輸出格式時不可見(從 v25.11 重新開啟) |
| VIEWERNET‑5241 | 錯誤 | 將 PDF 轉換為 HTML 時,數字、日期時間與金額的格式化出錯 |
| VIEWERNET‑4709 | 錯誤 | PDF 轉 HTML:整個產生的檔案變成連結 |
| VIEWERNET‑5568 | 錯誤 | 電子郵件正文中的超連結無法點擊 |
| VIEWERJAVA‑4048 | 錯誤 | XLSX 轉 HTML:未對列號套用自動調整 |
| VIEWERJAVA‑4058 | 錯誤 | Docker 上因缺少 LOCALAPPDATA 而導致字體解析時拋出 NullPointerException |
| VIEWERJAVA‑4060 | 增強 | Excel 渲染轉換為 JPG(或 PNG)時,文字解析度低於 PDF |
Public API changes
Added
com.groupdocs.viewer.options.PresentationOptions.isRenderHeaderFooterPlaceholders() 布林屬性 (VIEWERNET‑5551)
Removed
無
New Features
- 在 SpreadsheetOptions 類別中新增
HorizontalResolution與VerticalResolution屬性,允許使用者在將試算表渲染為 PNG 與 JPEG 格式時控制輸出影像解析度(DPI)。
Code Example
Path pageFilePathFormat = Paths.get("page_{0}.png");
PngViewOptions viewOptions = new PngViewOptions(pageFilePathFormat);
viewOptions.getSpreadsheetOptions().setHorizontalResolution(300);
viewOptions.getSpreadsheetOptions().setVerticalResolution(300);
try (Viewer viewer = new Viewer("sample.xlsx")) {
viewer.view(viewOptions);
}
How to get the update
在您的 pom.xml(或 Gradle 中的等效條目)中加入以下相依性以使用 26.3 版:
<dependency>
<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-viewer</artifactId>
<version>26.3</version>
</dependency>
Direct download
或者,從官方發行頁面下載已編譯的 JAR 檔案:
https://releases.groupdocs.com/viewer/java/