xhtmlrenderer
解析HTML與XML,并應用CSS樣式,然后輸出成圖片,PDF(通過iText)等格式。
功能特性:
- 100% Java XML+CSS layout engine with native PDF, Swing, image rendering.
- Strong support for the CSS 2.1 specification including extensions to better support paged media.
- Good performance.
- Support for XHTML including forms.
- Arbitrary elements may be replaced with custom content.
- Limited support for dynamic effects (for example, the :hover pseudo-class and links)
- Some support for PDF specific features (for example, bookmarks and internal links). More coming soon.Limitations:
- Resource loading is single threaded and occurs inline with layout.
- Support for XHTML is weaker than XML+CSS (for example, not all XHTML presentational attributes are supported nor are X/HTML features like the <object> element).
- No support for legacy HTML (although there are several open source Java HTML cleaners of varying quality available).
- No support for incremental layout (applies to screen media only).
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!