Aspose.CSS for Java brings modern CSS layout to HTML rendering from Java: flexbox, grid and document flow, rendered to PDF documents and PNG images inside your own process. Page size, margins, orientation and breaks are set with CSS; fonts, images and stylesheets load from files, streams or your own resource handler. Screen-layout geometry is measured against Chromium on selected Web Platform Tests layout suites, and the compatibility report is published with each release. Aspose.CSS for Java is in development; the .NET release ships first, with Python, Java, C++ and TypeScript following on the same engine design.
Aspose.CSS for Java Features
Browser-designed documents: the CSS layouts your team designs in the browser, carried into application output
CSS flexbox layouts
CSS grid layouts
Document flow: block, inline and table layout
HTML to PDF
HTML to PNG
PDF page setup: size, margins and orientation with CSS @page
Page breaks: forced and avoided breaks, widows and orphans
Fonts and text: system and embedded fonts, fallback, shaping and bidirectional text
Resources from files, streams or your own handler
In-process rendering: no browser to install, automate, update or secure
Chromium compatibility report published with each release
Designed in the Browser, Delivered as a Document
Your team already creates layouts in HTML and CSS and reviews the result in a browser. Aspose.CSS for Java brings that layout into the PDF documents and PNG previews generated by your Java application, so the template approved on screen is the one you deliver, without a browser process in your deployment.
Measured Against Chromium
CSS fidelity is measured for this engine rather than inferred from a feature list. Screen-layout geometry is compared test by test with Chromium on selected Web Platform Tests layout suites, and each release includes a documented compatibility report covering the test scope, tolerance, results and known differences.