mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #5693 from collinanderson/whitespace
cleaned whitespace
This commit is contained in:
commit
00ee6bd6b6
89 changed files with 56 additions and 126 deletions
|
@ -19,9 +19,9 @@
|
|||
|
||||
/* This class implements the QM Coder decoding as defined in
|
||||
* JPEG 2000 Part I Final Committee Draft Version 1.0
|
||||
* Annex C.3 Arithmetic decoding procedure
|
||||
* Annex C.3 Arithmetic decoding procedure
|
||||
* available at http://www.jpeg.org/public/fcd15444-1.pdf
|
||||
*
|
||||
*
|
||||
* The arithmetic decoder is used in conjunction with context models to decode
|
||||
* JPEG2000 and JBIG2 streams.
|
||||
*/
|
||||
|
|
|
@ -424,4 +424,3 @@ var bidi = PDFJS.bidi = (function bidiClosure() {
|
|||
|
||||
return bidi;
|
||||
})();
|
||||
|
||||
|
|
|
@ -116,4 +116,3 @@ var ExpertSubsetCharset = [
|
|||
'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
|
||||
'periodinferior', 'commainferior'
|
||||
];
|
||||
|
||||
|
|
|
@ -560,4 +560,3 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
|
|||
|
||||
return ChunkedStreamManager;
|
||||
})();
|
||||
|
||||
|
|
|
@ -530,4 +530,3 @@ var PDFDocument = (function PDFDocumentClosure() {
|
|||
|
||||
return PDFDocument;
|
||||
})();
|
||||
|
||||
|
|
|
@ -710,4 +710,3 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {
|
|||
}
|
||||
};
|
||||
})();
|
||||
|
||||
|
|
|
@ -2213,4 +2213,3 @@ var JpxImage = (function JpxImageClosure() {
|
|||
|
||||
return JpxImage;
|
||||
})();
|
||||
|
||||
|
|
|
@ -2958,4 +2958,3 @@ var Metrics = {
|
|||
'a191': 918
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -274,4 +274,3 @@ var NetworkManager = (function NetworkManagerClosure() {
|
|||
|
||||
return NetworkManager;
|
||||
})();
|
||||
|
||||
|
|
|
@ -555,7 +555,7 @@ var Catalog = (function CatalogClosure() {
|
|||
var isPrintAction = (isName(objType) && objType.name === 'Action' &&
|
||||
isName(actionType) && actionType.name === 'Named' &&
|
||||
isName(action) && action.name === 'Print');
|
||||
|
||||
|
||||
if (isPrintAction) {
|
||||
javaScript.push('print(true);');
|
||||
}
|
||||
|
@ -1411,7 +1411,7 @@ var NameTree = (function NameTreeClosure() {
|
|||
warn('Search depth limit for named destionations has been reached.');
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
var kids = kidsOrNames.get('Kids');
|
||||
if (!isArray(kids)) {
|
||||
return null;
|
||||
|
@ -1466,10 +1466,10 @@ var NameTree = (function NameTreeClosure() {
|
|||
})();
|
||||
|
||||
/**
|
||||
* "A PDF file can refer to the contents of another file by using a File
|
||||
* "A PDF file can refer to the contents of another file by using a File
|
||||
* Specification (PDF 1.1)", see the spec (7.11) for more details.
|
||||
* NOTE: Only embedded files are supported (as part of the attachments support)
|
||||
* TODO: support the 'URL' file system (with caching if !/V), portable
|
||||
* TODO: support the 'URL' file system (with caching if !/V), portable
|
||||
* collections attributes and related files (/RF)
|
||||
*/
|
||||
var FileSpec = (function FileSpecClosure() {
|
||||
|
|
|
@ -222,4 +222,3 @@ var NetworkPdfManager = (function NetworkPdfManagerClosure() {
|
|||
|
||||
return NetworkPdfManager;
|
||||
})();
|
||||
|
||||
|
|
|
@ -153,7 +153,7 @@ PDFJS.verbosity = (PDFJS.verbosity === undefined ?
|
|||
PDFJS.VERBOSITY_LEVELS.warnings : PDFJS.verbosity);
|
||||
|
||||
/**
|
||||
* The maximum supported canvas size in total pixels e.g. width * height.
|
||||
* The maximum supported canvas size in total pixels e.g. width * height.
|
||||
* The default value is 4096 * 4096. Use -1 for no limit.
|
||||
* @var {number}
|
||||
*/
|
||||
|
@ -608,7 +608,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
|
|||
* rendering call the function that is the first argument
|
||||
* to the callback.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* PDF page operator list.
|
||||
*
|
||||
|
|
|
@ -2149,4 +2149,3 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
|
||||
return CanvasGraphics;
|
||||
})();
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFJS, shadow, isWorker, assert, warn, bytesToString, string32,
|
||||
/* globals PDFJS, shadow, isWorker, assert, warn, bytesToString, string32,
|
||||
globalScope, FontFace, Promise */
|
||||
|
||||
'use strict';
|
||||
|
|
|
@ -252,7 +252,7 @@ var SVGExtraState = (function SVGExtraStateClosure() {
|
|||
this.lineJoin = '';
|
||||
this.lineCap = '';
|
||||
this.miterLimit = 0;
|
||||
|
||||
|
||||
this.dashArray = [];
|
||||
this.dashPhase = 0;
|
||||
|
||||
|
@ -479,7 +479,7 @@ var SVGGraphics = (function SVGGraphicsClosure() {
|
|||
}
|
||||
return opListToTree(opList);
|
||||
},
|
||||
|
||||
|
||||
executeOpTree: function SVGGraphics_executeOpTree(opTree) {
|
||||
var opTreeLen = opTree.length;
|
||||
for(var x = 0; x < opTreeLen; x++) {
|
||||
|
|
|
@ -311,4 +311,3 @@ var CFFDictPrivateDataMap = {
|
|||
operand: 0
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -431,4 +431,3 @@ function writeToFile(aBytes, aFilePath) {
|
|||
bos.writeByteArray(aBytes, aBytes.length);
|
||||
stream.close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue