Aspose.CSS for Python: Browser-grade CSS Rendering to PDF and PNG

Aspose.CSS for Python Product Logo

Aspose.CSS for Python brings browser-grade CSS layout to PDF documents and PNG images from Python applications, inside your own process and without launching or automating a web browser. Design in HTML and CSS, check it in the browser, and ship the same layout from your code; CSS fidelity is measured against Chromium and published with each release.

Python HTML Rendering Topics

Scope and Compatibility

The initial release renders static HTML and CSS as PDF (CSS @page size, margins, orientation, page breaks, widows and orphans) or PNG. It does not run JavaScript, while margin boxes, running headers, tagged PDF, PDF/UA and PDF/A remain outside the initial scope; see Scope at Launch and the Chromium compatibility report on the family page.

Planned Python Conversion Workflow

In a typical conversion, you will provide an HTML source, configure rendering options for the target, and save the result as a PDF or image. Exact modules, class names, package identifiers, and method signatures will be documented after the public API is finalized.

Documentation preview: Aspose.CSS for Python is under development. Installation instructions, executable Python examples, API reference links, and release notes will be added when the public package and API are available.

Aspose.CSS for Python Resources