-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Managed preferences for Chrome administrators
Implement support for managed preferences. This feature allows users (administrators) to easily change the default settings of the PDF Viewer for all Chrome or Chromium browsers within their organization. External resources for end users (administrators) - http://www.chromium.org/administrators/ - http://www.chromium.org/administrators/configuring-policy-for-extensions - http://www.chromium.org/administrators/windows-quick-start - http://www.chromium.org/administrators/mac-quick-start - http://www.chromium.org/administrators/linux-quick-start - http://www.chromium.org/administrators/policy-templates Administrators can read one of the previous links to learn more about creating policies. We want to auto-generate these templates, but there are no public tools for doing that. It will be added in the future, see: https://code.google.com/p/chromium/issues/detail?id=389061 Resources for PDF.js/extension developers - http://cs.chromium.org/file:policy_templates.json - https://developer.chrome.com/extensions/manifest/storage
- Loading branch information
Showing
4 changed files
with
114 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"showPreviousViewOnLoad": { | ||
"title": "Resume view on load", | ||
"description": "Whether to view PDF documents in the last page and position upon opening the viewer.", | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"defaultZoomValue": { | ||
"title": "Default zoom level", | ||
"description": "Default zoom level of the viewer. Accepted values: 'auto', 'page-actual', 'page-width', 'page-height', 'page-fit', or a zoom level in percents.", | ||
"type": "string", | ||
"pattern": "|auto|page-actual|page-width|page-height|page-fit|[0-9]+\\.?[0-9]*(,[0-9]+\\.?[0-9]*){0,2}", | ||
"default": "" | ||
}, | ||
"sidebarViewOnLoad": { | ||
"title": "Sidebar state on load", | ||
"description": "Controls the state of the sidebar upon load.\n 0 = do not show sidebar.\n 1 = show thumbnails in sidebar.\n 2 = show document outline in sidebar.\n 3 = Show attachments in sidebar.", | ||
"type": "integer", | ||
"enum": [ | ||
0, | ||
1, | ||
2, | ||
3 | ||
], | ||
"default": 0 | ||
}, | ||
"enableHandToolOnLoad": { | ||
"title": "Activate Hand tool by default", | ||
"description": "Whether to activate the hand tool by default.", | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"enableWebGL": { | ||
"title": "Enable WebGL", | ||
"description": "Whether to enable WebGL.", | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"disableRange": { | ||
"title": "Disable range requests", | ||
"description": "Whether to disable range requests (not recommended).", | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"disableAutoFetch": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"disableFontFace": { | ||
"title": "Disable @font-face", | ||
"description": "Whether to disable @font-face and fall back to canvas rendering (this is more resource-intensive).", | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"disableTextLayer": { | ||
"title": "Disable text selection layer", | ||
"description": "Whether to disable the text selection layer.", | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"useOnlyCssZoom": { | ||
"type": "boolean", | ||
"default": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters