·
1 commit
to refs/heads/main
since this release
BabelDOC v0.6.4
Highlights
- Added a unified per-page raster pixel budget for layout detection, improving
memory use and stability on PDFs whose declared page size is far larger than
the real physical size (for example, scanned documents whose pixel dimensions
were written into the page box as points). Such pages previously forced very
large layout-detection renders that could exhaust memory; BabelDOC now caps the
render at a fixed pixel budget and lowers the render DPI when needed, while
preserving layout coordinate semantics. The budget is applied to local layout
detection and scanned-file detection.
为布局识别引入统一的单页光栅像素预算,改善“声明页面尺寸远大于真实物理尺寸”的
PDF(例如把扫描像素数当作 pt 写进页面框的扫描件)的内存占用与稳定性。这类页面
此前会迫使布局识别渲染出极大的位图、可能耗尽内存;现在 BabelDOC 会把渲染限制在
固定像素预算内,必要时降低渲染 DPI,同时保持布局坐标语义不变。该预算应用于本地
布局识别与扫描件检测。 - Fixed line spacing for mixed Latin/CJK translated text. On lines whose glyph
bounding boxes were unusually short (common in all-Latin lines), the following
CJK line could overlap the previous line; BabelDOC now enforces a font-size
based minimum line advance so translated paragraphs no longer collide.
修复了混合 Latin/CJK 译文的行距。此前在字形包围盒异常偏矮的行(常见于全 Latin
行)上,下一行 CJK 可能与上一行重叠;现在 BabelDOC 按字号施加行进距离的下限,
译文段落不再互相重叠。
Compatibility Notes
- This release is primarily a stability and layout-robustness update for the
v0.6 line. The mixed Latin/CJK line-spacing fix changes the vertical layout of
affected translated pages; those documents will produce different (corrected)
output after upgrading. Layout coordinate semantics are otherwise unchanged.
本版本主要是针对 v0.6 线的稳定性与布局健壮性更新。混合 Latin/CJK 行距修复会
改变受影响译文页的纵向排版,这类文档升级后会生成不同(修正后)的输出;除此之外
布局坐标语义保持不变。
Changes
- No changes