From 06eea573628cd155d74a7eb4ed09cbe4890be8b6 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sat, 24 Nov 2018 19:52:58 +0100 Subject: [PATCH] Updated Debugging pdf.js (markdown) --- Debugging-pdf.js.md => Debugging-PDF.js.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename Debugging-pdf.js.md => Debugging-PDF.js.md (93%) diff --git a/Debugging-pdf.js.md b/Debugging-PDF.js.md similarity index 93% rename from Debugging-pdf.js.md rename to Debugging-PDF.js.md index a18fa25..f86d866 100644 --- a/Debugging-pdf.js.md +++ b/Debugging-PDF.js.md @@ -1,11 +1,10 @@ ## Enabling -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. +As a safety precaution the debugging tools/parameters are disabled, and the user should enable them for the generic viewer and the version of PDF.js bundled with Firefox. -* Extension version: set/create a `extensions.uriloader@pdf.js.pdfBugEnabled` setting as a boolean `true` in 'about:config' +* Generic viewer: execute `PDFViewerApplication.preferences.set('pdfBugEnabled', true);` in the JavaScript console. * Mozilla Central (Firefox) version: set/create a `pdfjs.pdfBugEnabled` setting as a boolean `true` in 'about:config' -* Generic viewer: execute `PDFViewerApplication.preferences.set('pdfBugEnabled', true);` in the JavaScript console -The debugging tools/parameters are always enabled for non-production code. +The debugging tools/parameters are always enabled for non-production builds. ## 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.