+++++++++ Настройки опций chrome #31

Closed
opened 2 years ago by floidd · 3 comments
floidd commented 2 years ago (Migrated from gitlab.com)

print_settings = {
"recentDestinations": [{
"id": "Save as PDF",
"origin": "local",
"account": "",
}],
"selectedDestinationId": "Save as PDF",
"version": 2, # в chrome - это номер варинта "сохранить как PDF"
"isHeaderFooterEnabled": False, # хедеры HTML на странице
"isLandscapeEnabled": False # ориентация (True - альбомная)
}

prefs = {'printing.print_preview_sticky_settings.appState': json.dumps(print_settings),
"download.prompt_for_download": False,
"profile.default_content_setting_values.automatic_downloads": 1,
"download.default_directory": "Путь\к\папке\загрузки,
"savefile.default_directory": "Путь\к\папке\сохранения",
"download.directory_upgrade": True,
"safebrowsing.enabled": True}

options = Options()
options.add_experimental_option('prefs', prefs)
options.add_argument('--kiosk-printing')

print_settings = { "recentDestinations": [{ "id": "Save as PDF", "origin": "local", "account": "", }], "selectedDestinationId": "Save as PDF", "version": 2, # в chrome - это номер варинта "сохранить как PDF" "isHeaderFooterEnabled": False, # хедеры HTML на странице "isLandscapeEnabled": False # ориентация (True - альбомная) } prefs = {'printing.print_preview_sticky_settings.appState': json.dumps(print_settings), "download.prompt_for_download": False, "profile.default_content_setting_values.automatic_downloads": 1, "download.default_directory": "Путь\\к\\папке\\загрузки, "savefile.default_directory": "Путь\\к\\папке\\сохранения", "download.directory_upgrade": True, "safebrowsing.enabled": True} options = Options() options.add_experimental_option('prefs', prefs) options.add_argument('--kiosk-printing')
UnicodeLabs commented 1 year ago (Migrated from gitlab.com)

changed title from Настройки опций chrome to {++++++++++ +}Настройки опций chrome

changed title from **Настройки опций chrome** to **{++++++++++ +}Настройки опций chrome**
UnicodeLabs commented 1 year ago (Migrated from gitlab.com)

pyOpenRPA.Robot.UIWeb.BrowserChromeStart добавить флаг печати в PDF при инициализации. Директория к сохранению при инициализации...

Добавить UIWeb.PagePrint() - открыть окно печати (flag - сохранить как PDF)

pyOpenRPA.Robot.UIWeb.BrowserChromeStart добавить флаг печати в PDF при инициализации. Директория к сохранению при инициализации... Добавить UIWeb.PagePrint() - открыть окно печати (flag - сохранить как PDF)
floidd commented 1 year ago (Migrated from gitlab.com)

Готово

Готово
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: OPEN_RPA_PUBLIC/ORPA-pyOpenRPA#31
Loading…
There is no content yet.