fix: DentaQuest/Tufts eligibility PDF — switch to landscape to capture all columns

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ff
2026-06-19 20:30:47 -04:00
parent 9f0e2514b0
commit e081f32648

View File

@@ -690,17 +690,17 @@ class AutomationDentaQuestEligibilityCheck:
print("[DentaQuest step2] Generating PDF of patient detail page...")
pdf_options = {
"landscape": False,
"landscape": True,
"displayHeaderFooter": False,
"printBackground": True,
"preferCSSPageSize": True,
"paperWidth": 8.5, # Letter size in inches
"paperHeight": 11,
"marginTop": 0.4,
"marginBottom": 0.4,
"marginLeft": 0.4,
"marginRight": 0.4,
"scale": 0.9, # Slightly scale down to fit content
"preferCSSPageSize": False,
"paperWidth": 11,
"paperHeight": 8.5,
"marginTop": 0.3,
"marginBottom": 0.3,
"marginLeft": 0.3,
"marginRight": 0.3,
"scale": 0.7,
}
result = self.driver.execute_cdp_cmd("Page.printToPDF", pdf_options)