diff --git a/apps/SeleniumService/selenium_DentaQuest_eligibilityCheckWorker.py b/apps/SeleniumService/selenium_DentaQuest_eligibilityCheckWorker.py index 510e4410..e331988f 100644 --- a/apps/SeleniumService/selenium_DentaQuest_eligibilityCheckWorker.py +++ b/apps/SeleniumService/selenium_DentaQuest_eligibilityCheckWorker.py @@ -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)