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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user