how to print silent mode in chrome with os linux - google-chrome

i tried enabled PDF compositor service for printing has not succeeded Us PDF compositor service for printing
When enabled, use PDF compositor service to composite and generate PDF files for printing. When site isolation is enabled, disabling this will not stop using PDF compositor service since the service is required for printing out-of-process iframes correctly. – Mac, Windows, Linux, Chrome OS, Android

Related

Kiosk or 'Receipt' Printing in Chrome OS/Chrome OS Flex

We have an application we currently run in Chrome browser on Ubuntu and Windows using PrintNode. We'd like to run our application ChromeOS to move away from Linux and Windows, but our the printing of our app requires no user interaction. It appears Chrome browser on Chrome OS forces a Print Dialog/Prompt to the user to confirm the print job. Does anyone know how to suppress this? In the past on Windows/Linux we've leveraged "--kiosk-printing" in Chrome through properties of the desktop shortcut, but this doesn't appear to be possible in the browser in ChromeOS.
Does anyone have an ideas on how to bypass the print dialog in ChromeOS?

Can extensions be run on Chrome OS in kiosk mode?

Google is deprecating Chrome apps in favor of Progressive Web Apps (PWA) or Chrome extensions. This leaves extensions as the only way to access Chrome device APIs. I'm looking for a way for my PWA to run along with a Chrome extension in kiosk mode but I'm not sure if it's possible.
The reason I need my PWA to access Chrome device APIs is to get a unique identifier per device to decide which content to display.
As per chromeos.dev: "Previously, Chrome Apps had extra functionality available to them in kiosk mode that is not currently supported by web apps alone. You can continue to use some of this functionality by deploying an extension with your kiosk web application."
Source: https://chromeos.dev/en/education/connecting-an-extension-from-a-kiosk-pwa
It only talks about sending a message from PWA to extension in order to execute a chrome API (like restart) but doesn't talk about how to send information back from extension to PWA. We are also stuck in the same boat- looking for a unique identifier so as to throw content on the chromebox running the PWA. Currently we use chrome.enterprise.deviceAttributes to get serial number and directory device ID in kiosk mode and would need the same once we migrate to PWA. Any luck on this?

How can I use chrome.enterprise.platformKeys on a Chrome extension for Chrome OS?

I've been trying to generate a custom client certificate on Chrome OS for things like VPN.
No matter what I do, I keep getting that chrome.enterprise.platformKeys is undefined.
I've been creating test extensions in Developer mode on my managed Chrome OS machine. I see on the documentation page here it says:
Note: This API is only for extensions pre-installed by policy.
How can I properly use this API, if I want to test apps in Developer mode?

Setting cookies to chrome running in headless mode

I am planning to use chrome.exe to take a png snapshot of a web page.
The web page has references to js files that are served by an application server. Application server needs session cookies to authrize and server the pages.
I could not find any options to pass cookies to chrome.ext.
I have searched in google, but most suggestions are pointing to use selenium web driver. Making use of selenium web driver for chrome is making me choose compatible versions only. I have to frequently update the driver if the chrome version changes. It is not acceptable for my use case.
Executing the command mentioned below using java process builder.
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe " -headless -hide-scrollbars -disable-gpu -screenshot=C:\Users\abc\Desktop\tmp\file1.png C:/Users/abc/test.html
I need a way to pass cookies without using any third party libraries (webdriver, puppeteer etc..)

Saving files is not enabled in hosted mode. Please inspect using chrome://inspect

Testing Samsung TV, and am trying to save the data as HAR in Tizen web developr tool, however, receiving an error message when trying. What may I need to change in the settings (?) to enable saving files?
Saving files is not enabled in hosted mode. Please inspect using chrome://inspect