Updated Debugging pdf.js (markdown)
parent
a7a417b792
commit
5ce6ca39c3
@ -1,8 +1,11 @@
|
|||||||
## Enabling
|
## Enabling
|
||||||
As a safety precaution the debugging tools for the extension and the version of PDF.js bundled with Firefox will require the user to set/create a boolean preference in `about:config`:
|
As a safety precaution the debugging tools/parameters are disabled, and user shall enabled them for the generic viewer, the extension and the version of PDF.js bundled with Firefox (the debugging tools will be enabled ).
|
||||||
|
|
||||||
* Extension version: `extensions.uriloader@pdf.js.pdfBugEnabled` setting (boolean `true`)
|
* Extension version: set/create a `extensions.uriloader@pdf.js.pdfBugEnabled` setting as a boolean `true` in 'about:config'
|
||||||
* Mozilla Central (Firefox) version: `pdfjs.pdfBugEnabled` setting (boolean `true`)
|
* Mozilla Central (Firefox) version: set/create a `pdfjs.pdfBugEnabled` setting as a boolean `true` in 'about:config'
|
||||||
|
* Generic viewer: execute `Preferences.set('pdfBugEnabled', true);` in the JavaScript console
|
||||||
|
|
||||||
|
The debugging tools/parameters are always enabled for non-production code.
|
||||||
|
|
||||||
## URL Parameters
|
## URL Parameters
|
||||||
PDF.js has several special URL parameters to alter how PDF.js works and to enable debugging tools. All of these parameters go into the hash section of the URL (after the # symbol) and follow a query string syntax (e.g. #param1=value1¶m2=value2). Note: since all of these parameters are in the hash section, you have to refresh the page after adding them.
|
PDF.js has several special URL parameters to alter how PDF.js works and to enable debugging tools. All of these parameters go into the hash section of the URL (after the # symbol) and follow a query string syntax (e.g. #param1=value1¶m2=value2). Note: since all of these parameters are in the hash section, you have to refresh the page after adding them.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user