oBrowser PDF

Doug Easterbrook doug at artsman.com
Thu Jan 26 23:41:41 UTC 2023


hi Xavier


oBrowser is built out of chromium embedded framework (typically called CEF for short)

in config.json in the studio folder, there is a section for oBrowser, and withoin that a section for cefSwitches


in my example have none



    "obrowser": {
        "cefSwitches": [

        ],
        "clearCacheWhenLoaded": true,
        "clearLocalStorageWhenClearingCache": false,
        "defaultHtmlcontrolsFolderInDataFolder": false,
        "htmlcontrolsFolder": "",
        "locale": "en-GB",
        "logSeverity": 99,
        "messageTimeout": 60,
        "remoteDebuggingPort": 5989,
        "useLayeredViewsMacOS": false,
        "useOmnisTraceLogForConsole": true
    },





however, I was trying to do some cross site stuff and when talking to Omnis support, they gave me some settings to try (per below)
           "allow-universal-access-from-files",
           "allow-insecure-localhost"
           "allow-loopback-in-peer-connection",
           "allow-running-insecure-content"


so, I might suggest you start looking for CEF switches, of which I’ve given some samples.    I didn’t do an extensive gooogle search, but this seemed ot show the code for some

https://chromium.googlesource.com/chromium/src/+/32352ad08ee673a4d43e8593ce988b224f6482d3/chrome/common/chrome_switches.cc




the other think that strikes me is the option in the oBrowser section above


 "locale": "en-GB",

and a google search of that yeilded this web site where the person talks about german.   https://magpcss.org/ceforum/viewtopic.php?f=6&t=17672



I have not tried any of this.        However, its what I’d start looking at since I know oBrowser is a wrapper on Chromium embedded and it responds to some of the config parameters consistently with chromium embedded.


hope that gives you a place to start.



Doug Easterbrook
Arts Management Systems Ltd.
mailto:doug at artsman.com
http://www.artsman.com
Phone (403) 650-1978

> On Jan 26, 2023, at 7:38 AM, IT <it at plastipol.com> wrote:
> 
> Hi,
> 
> I’m using oBrowser to show PDF documents successfully for desktop. The only shortcoming is that I’m unable to control the the default aspect.
> 
> For example there is a menu ‘More Actions’ with text in English.
> 
> How I tell to oBrowser to use Spanish?
> 
> Regards
> 
> x
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list