preferences_schema.json 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. {
  2. "type": "object",
  3. "properties": {
  4. "viewerCssTheme": {
  5. "title": "Theme",
  6. "description": "The theme to use.\n0 = Use system theme.\n1 = Light theme.\n2 = Dark theme.",
  7. "type": "integer",
  8. "enum": [
  9. 0,
  10. 1,
  11. 2
  12. ],
  13. "default": 2
  14. },
  15. "showPreviousViewOnLoad": {
  16. "description": "DEPRECATED. Set viewOnLoad to 1 to disable showing the last page/position on load.",
  17. "type": "boolean",
  18. "default": true
  19. },
  20. "viewOnLoad": {
  21. "title": "View position on load",
  22. "description": "The position in the document upon load.\n -1 = Default (uses OpenAction if available, otherwise equal to `viewOnLoad = 0`).\n 0 = The last viewed page/position.\n 1 = The initial page/position.",
  23. "type": "integer",
  24. "enum": [
  25. -1,
  26. 0,
  27. 1
  28. ],
  29. "default": 0
  30. },
  31. "defaultZoomDelay": {
  32. "title": "Default zoom delay",
  33. "description": "Delay (in ms) to wait before redrawing the canvas.",
  34. "type": "integer",
  35. "default": 400
  36. },
  37. "defaultZoomValue": {
  38. "title": "Default zoom level",
  39. "description": "Default zoom level of the viewer. Accepted values: 'auto', 'page-actual', 'page-width', 'page-height', 'page-fit', or a zoom level in percents.",
  40. "type": "string",
  41. "pattern": "|auto|page-actual|page-width|page-height|page-fit|[0-9]+\\.?[0-9]*(,[0-9]+\\.?[0-9]*){0,2}",
  42. "default": ""
  43. },
  44. "sidebarViewOnLoad": {
  45. "title": "Sidebar state on load",
  46. "description": "Controls the state of the sidebar upon load.\n -1 = Default (uses PageMode if available, otherwise the last position if available/enabled).\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.",
  47. "type": "integer",
  48. "enum": [
  49. -1,
  50. 0,
  51. 1,
  52. 2,
  53. 3
  54. ],
  55. "default": -1
  56. },
  57. "enableHandToolOnLoad": {
  58. "description": "DEPRECATED. Set cursorToolOnLoad to 1 to enable the hand tool by default.",
  59. "type": "boolean",
  60. "default": false
  61. },
  62. "cursorToolOnLoad": {
  63. "title": "Cursor tool on load",
  64. "description": "The cursor tool that is enabled upon load.\n 0 = Text selection tool.\n 1 = Hand tool.",
  65. "type": "integer",
  66. "enum": [
  67. 0,
  68. 1
  69. ],
  70. "default": 0
  71. },
  72. "pdfBugEnabled": {
  73. "title": "Enable debugging tools",
  74. "description": "Whether to enable debugging tools.",
  75. "type": "boolean",
  76. "default": false
  77. },
  78. "enableScripting": {
  79. "title": "Enable active content (JavaScript) in PDFs",
  80. "type": "boolean",
  81. "description": "Whether to allow execution of active content (JavaScript) by PDF files.",
  82. "default": false
  83. },
  84. "disableRange": {
  85. "title": "Disable range requests",
  86. "description": "Whether to disable range requests (not recommended).",
  87. "type": "boolean",
  88. "default": false
  89. },
  90. "disableStream": {
  91. "title": "Disable streaming for requests",
  92. "description": "Whether to disable streaming for requests (not recommended).",
  93. "type": "boolean",
  94. "default": false
  95. },
  96. "disableAutoFetch": {
  97. "type": "boolean",
  98. "default": false
  99. },
  100. "disableFontFace": {
  101. "title": "Disable @font-face",
  102. "description": "Whether to disable @font-face and fall back to canvas rendering (this is more resource-intensive).",
  103. "type": "boolean",
  104. "default": false
  105. },
  106. "disableTextLayer": {
  107. "description": "DEPRECATED. Set textLayerMode to 0 to disable the text selection layer by default.",
  108. "type": "boolean",
  109. "default": false
  110. },
  111. "textLayerMode": {
  112. "title": "Text layer mode",
  113. "description": "Controls if the text layer is enabled, and the selection mode that is used.\n 0 = Disabled.\n 1 = Enabled.",
  114. "type": "integer",
  115. "enum": [
  116. 0,
  117. 1
  118. ],
  119. "default": 1
  120. },
  121. "useOnlyCssZoom": {
  122. "type": "boolean",
  123. "default": false
  124. },
  125. "externalLinkTarget": {
  126. "title": "External links target window",
  127. "description": "Controls how external links will be opened.\n 0 = default.\n 1 = replaces current window.\n 2 = new window/tab.\n 3 = parent.\n 4 = in top window.",
  128. "type": "integer",
  129. "enum": [
  130. 0,
  131. 1,
  132. 2,
  133. 3,
  134. 4
  135. ],
  136. "default": 0
  137. },
  138. "disablePageLabels": {
  139. "type": "boolean",
  140. "default": false
  141. },
  142. "disablePageMode": {
  143. "description": "DEPRECATED.",
  144. "type": "boolean",
  145. "default": false
  146. },
  147. "disableTelemetry": {
  148. "title": "Disable telemetry",
  149. "type": "boolean",
  150. "description": "Whether to prevent the extension from reporting the extension and browser version to the extension developers.",
  151. "default": false
  152. },
  153. "annotationMode": {
  154. "type": "integer",
  155. "enum": [
  156. 0,
  157. 1,
  158. 2,
  159. 3
  160. ],
  161. "default": 2
  162. },
  163. "annotationEditorMode": {
  164. "type": "integer",
  165. "enum": [
  166. -1,
  167. 0,
  168. 3,
  169. 15
  170. ],
  171. "default": 0
  172. },
  173. "enablePermissions": {
  174. "type": "boolean",
  175. "default": false
  176. },
  177. "enableXfa": {
  178. "type": "boolean",
  179. "default": true
  180. },
  181. "historyUpdateUrl": {
  182. "type": "boolean",
  183. "default": false
  184. },
  185. "ignoreDestinationZoom": {
  186. "title": "Ignore the zoom argument in destinations",
  187. "description": "When enabled it will maintain the currently active zoom level, rather than letting the PDF document modify it, when navigating to internal destinations.",
  188. "type": "boolean",
  189. "default": false
  190. },
  191. "enablePrintAutoRotate": {
  192. "title": "Automatically rotate printed pages",
  193. "description": "When enabled, landscape pages are rotated when printed.",
  194. "type": "boolean",
  195. "default": true
  196. },
  197. "scrollModeOnLoad": {
  198. "title": "Scroll mode on load",
  199. "description": "Controls how the viewer scrolls upon load.\n -1 = Default (uses the last position if available/enabled).\n 3 = Page scrolling.\n 0 = Vertical scrolling.\n 1 = Horizontal scrolling.\n 2 = Wrapped scrolling.",
  200. "type": "integer",
  201. "enum": [
  202. -1,
  203. 0,
  204. 1,
  205. 2,
  206. 3
  207. ],
  208. "default": -1
  209. },
  210. "spreadModeOnLoad": {
  211. "title": "Spread mode on load",
  212. "description": "Whether the viewer should join pages into spreads upon load.\n -1 = Default (uses the last position if available/enabled).\n 0 = No spreads.\n 1 = Odd spreads.\n 2 = Even spreads.",
  213. "type": "integer",
  214. "enum": [
  215. -1,
  216. 0,
  217. 1,
  218. 2
  219. ],
  220. "default": -1
  221. },
  222. "forcePageColors": {
  223. "description": "When enabled, the pdf rendering will use the high contrast mode colors",
  224. "type": "boolean",
  225. "default": false
  226. },
  227. "pageColorsBackground": {
  228. "description": "The color is a string as defined in CSS. Its goal is to help improve readability in high contrast mode",
  229. "type": "string",
  230. "default": "Canvas"
  231. },
  232. "pageColorsForeground": {
  233. "description": "The color is a string as defined in CSS. Its goal is to help improve readability in high contrast mode",
  234. "type": "string",
  235. "default": "CanvasText"
  236. }
  237. }
  238. }