Renders an Axion report as a PDF using Playwright's headless Chromium browser.
Variant of ObjTextReportpdf — functionally identical, kept for backwards compatibility.
Replaces the legacy weasyprint + requests approach. The previous UseUrl=0 mode
(which fetched raw HTML with requests and passed it to weasyprint as a string) is no
longer needed: Playwright always fetches the URL directly with a full browser context.
processor = ObjProcessText()
# Generate PDF only
filename = processor.Process("my_report", "param1^param2")
# Generate PDF + PNG preview
filename = processor.BuildPage("my_report", "param1^param2")
^ delimited)report_name^param1^param2^...^password
Password (position 9) encrypts the PDF output via PyPDF2.
pip install playwright
playwright install chromium
cythonize -3 -a -i ObjTextReportpdfLocal.py
Updated : 2025-10-02