import asyncio from playwright.async_api import async_playwright async def make_pdf(): async with async_playwright() as p: browser = await p.chromium.launch(headless=True, args=["--no-sandbox"]) page = await browser.new_page() content = """
Agricultural Subsidy Amendment 2026
This is a real, officially ingested document to test the GovBridge system.
The Ministry of Agriculture has allocated additional funding for memory and compute infrastructure in rural farming cooperatives.
By implementing this scheme, farmers will receive unprecedented access to digital agricultural markets.
Clause 4: The state of Rajasthan shall be the primary testing ground for this new agricultural framework.
""" await page.set_content(content) await page.pdf(path="test_gazette.pdf") await browser.close() if __name__ == "__main__": asyncio.run(make_pdf())