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...")
|
print("[DentaQuest step2] Generating PDF of patient detail page...")
|
||||||
|
|
||||||
pdf_options = {
|
pdf_options = {
|
||||||
"landscape": False,
|
"landscape": True,
|
||||||
"displayHeaderFooter": False,
|
"displayHeaderFooter": False,
|
||||||
"printBackground": True,
|
"printBackground": True,
|
||||||
"preferCSSPageSize": True,
|
"preferCSSPageSize": False,
|
||||||
"paperWidth": 8.5, # Letter size in inches
|
"paperWidth": 11,
|
||||||
"paperHeight": 11,
|
"paperHeight": 8.5,
|
||||||
"marginTop": 0.4,
|
"marginTop": 0.3,
|
||||||
"marginBottom": 0.4,
|
"marginBottom": 0.3,
|
||||||
"marginLeft": 0.4,
|
"marginLeft": 0.3,
|
||||||
"marginRight": 0.4,
|
"marginRight": 0.3,
|
||||||
"scale": 0.9, # Slightly scale down to fit content
|
"scale": 0.7,
|
||||||
}
|
}
|
||||||
|
|
||||||
result = self.driver.execute_cdp_cmd("Page.printToPDF", pdf_options)
|
result = self.driver.execute_cdp_cmd("Page.printToPDF", pdf_options)
|
||||||
|
|||||||
Reference in New Issue
Block a user