Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleaned whitespace #5693

Merged
merged 1 commit into from
Feb 28, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,3 @@
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

2 changes: 0 additions & 2 deletions docs/contents/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,3 @@ var viewport = page.getViewport(1);
var scale = desiredWidth / viewport.width;
var scaledViewport = page.getViewport(scale);
```


1 change: 0 additions & 1 deletion examples/acroforms/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,3 @@ PDFJS.getDocument(pdfWithFormsPath).then(function getPdfForm(pdf) {
renderPage(viewer, pdf, pageNumber++, pageRenderingComplete);
});
});

2 changes: 1 addition & 1 deletion examples/acroforms/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// Specify the PDF with AcroForm here
var pdfWithFormsPath = '../../test/pdfs/f1040.pdf';
</script>

<style>
.pdfpage { position:relative; top: 0; left: 0; border: solid 1px black; margin: 10px; }
.pdfpage > canvas { position: absolute; top: 0; left: 0; }
Expand Down
1 change: 0 additions & 1 deletion examples/components/pageviewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@
<script src="pageviewer.js"></script>
</body>
</html>

1 change: 0 additions & 1 deletion examples/components/simpleviewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@
<script src="simpleviewer.js"></script>
</body>
</html>

3 changes: 1 addition & 2 deletions examples/helloworld/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## "Hello World" overview

This example is a minimalistic application of the pdf.js project. The file
This example is a minimalistic application of the pdf.js project. The file
`helloworld.pdf` is from the GNUpdf project (see [Introduction to PDF at
GNUpdf] (http://gnupdf.org/Introduction_to_PDF)), and contains a simple and
human-readable PDF.
Expand All @@ -15,4 +15,3 @@ how to make basic calls to `pdf.js`.
## Additional resources

+ [GNUpdf - Introduction to PDF](http://gnupdf.org/Introduction_to_PDF)

1 change: 0 additions & 1 deletion examples/helloworld/hello.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ PDFJS.getDocument('helloworld.pdf').then(function(pdf) {
page.render(renderContext);
});
});

3 changes: 1 addition & 2 deletions examples/node/domstubs.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ DOMElement.prototype = {
return newNode;
},
}

global.document = {
childNodes : [],

Expand All @@ -138,4 +138,3 @@ global.document = {
return elObject;
},
};

5 changes: 2 additions & 3 deletions examples/node/pdf2svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ PDFJS.getDocument(data).then(function (doc) {
var viewport = page.getViewport(1.0 /* scale */);
console.log('Size: ' + viewport.width + 'x' + viewport.height);
console.log();

return page.getOperatorList().then(function (opList) {
var svgGfx = new PDFJS.SVGGraphics(page.commonObjs, page.objs);
svgGfx.embedFonts = true;
Expand All @@ -74,7 +74,7 @@ PDFJS.getDocument(data).then(function (doc) {
});
})
};

for (var i = 1; i <= numPages; i++) {
lastPromise = lastPromise.then(loadPage.bind(null, i));
}
Expand All @@ -84,4 +84,3 @@ PDFJS.getDocument(data).then(function (doc) {
}, function (err) {
console.error('Error: ' + err);
});

3 changes: 1 addition & 2 deletions examples/svgviewer/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PDFJS.getDocument(url).then(function(pdf) {
// For testing only.
var MAX_NUM_PAGES = 50;
var ii = Math.min(MAX_NUM_PAGES, numPages);

var promise = Promise.resolve();
for (var i = 1; i <= ii; i++) {
var anchor = document.createElement('a');
Expand Down Expand Up @@ -56,4 +56,3 @@ PDFJS.getDocument(url).then(function(pdf) {
}.bind(null, i, anchor));
}
});

1 change: 0 additions & 1 deletion extensions/b2g/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,3 @@ <h1 id="activityTitle"></h1>
<!-- END STUBS -->
</body>
</html>

1 change: 0 additions & 1 deletion extensions/firefox/README.mozilla
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
This is the pdf.js project output, https://github.com/mozilla/pdf.js

Current extension version is: PDFJSSCRIPT_VERSION

1 change: 0 additions & 1 deletion extensions/firefox/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,3 @@ function install(aData, aReason) {

function uninstall(aData, aReason) {
}

4 changes: 2 additions & 2 deletions extensions/firefox/content/PdfJs.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ let PdfJs = {
PdfjsChromeUtils.notifyChildOfSettingsChange();
}
},

/**
* pdf.js is only enabled if it is both selected as the pdf viewer and if the
* pdf.js is only enabled if it is both selected as the pdf viewer and if the
* global switch enabling it is true.
* @return {boolean} Wether or not it's enabled.
*/
Expand Down
2 changes: 1 addition & 1 deletion extensions/firefox/content/PdfStreamConverter.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ FindEventManager.prototype.handleEvent = function(e) {
forward.initCustomEvent(e.type, true, true, detail);
// Due to restrictions with cpow use, we can't dispatch
// dom events with an urgent message on the stack. So bounce
// this off the main thread to make it async.
// this off the main thread to make it async.
Services.tm.mainThread.dispatch(function () {
contentWindow.dispatchEvent(forward);
}, Ci.nsIThread.DISPATCH_NORMAL);
Expand Down
3 changes: 1 addition & 2 deletions extensions/firefox/tools/l10n.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
// Arabic, Hebrew, Farsi, Pashto, Urdu
var rtlList = ['ar', 'he', 'fa', 'ps', 'ur'];

// use the short language code for "full" codes like 'ar-sa' (issue 5440)
// use the short language code for "full" codes like 'ar-sa' (issue 5440)
var shortCode = gLanguage.split('-')[0];

return (rtlList.indexOf(shortCode) >= 0) ? 'rtl' : 'ltr';
Expand All @@ -134,4 +134,3 @@
translate: translateFragment
};
})(this);

2 changes: 1 addition & 1 deletion l10n/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Most of the files in this folder (except for the `en-US` folder and the
`metadata.inc` files) have been imported from the Firefox Aurora branch,
which is located at https://mxr.mozilla.org/l10n-mozilla-aurora/source.
Some of the files are licensed under the MPL license. You can obtain a
Some of the files are licensed under the MPL license. You can obtain a
copy of the license at http://mozilla.org/MPL/2.0.
1 change: 0 additions & 1 deletion l10n/ar/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>يستخدم HTML5 لعرض ملفات PDF مباشره من خلال Firefox.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/bn-BD/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>ফায়ারফক্স এ সরাসরি পিডিএফ দেখানোর জন্যে HTML5 ব্যাবহার করে।</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/cs/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Používá HTML5 pro zobrazení PDF souborů přímo ve Firefoxu.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/cy/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Yn defnyddio HTML5 i arddangos ffeiliau PDF yn uniongyrchol yn Firefox.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/da/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Benytter HTML5 til at vise PDF-filer direkte i Firefox.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/de/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Nutzt HTML5, um PDFs direkt in Firefox anzuzeigen.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/el/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Χρήση HTML5 για εμφάνιση αρχείων PDF κατευθείαν μέσα στο Firefox.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/en-US/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Uses HTML5 to display PDF files directly in Firefox.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/fa/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>از اچ‌تی‌ام‌ال۵ برای نمایش پرونده‌های پی‌دی‌اف به‌صورت مستقیم در فایرفاکس استفاده می‌کند.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/fi/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Näyttää PDF tiedostot suoraan Firefox:ssa HTML5:n avulla.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/he/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>הצגת קבצי PDF ישירות ב־Firefox באמצעות HTML5.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/it/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Usa HTML5 per visualizzare i file PDF direttamente in Firefox.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/ja/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>HTML5を使用して、Firefoxで直接PDFファイルを表示します。</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/ko/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Firefox가 PDF 파일을 HTML5를 이용하여 직접 보여줍니다.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/lt/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>PDF bylos vaizduojamos tiesiogiai, naudojant HTML5 Firefox naršyklėje.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/nl/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Gebruikt HTML5 om PDF-bestanden direct in Firefox te openen.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/pl/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Używa HTML5 do wyświetlania plików PDF bezpośrednio w Firefoksie.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/pt-BR/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Aprensenta PDFs no browser usando a tecnologia HTML5.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/ro/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Afișează fișierele PDF direct în Firefox.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/ru/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Показывает файлы PDF непосредственно в Firefox используя HTML5.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/sr/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Користи ХТМЛ5 да би приказао ПДФ датотеке директно у Фајерфоксу.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/tr/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Firefox içerisinde PDFleri göstermek için HTML5 kullanır.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/vi/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>Dùng HTML5 để hiện thị PDF trực tiếp trên FireFox.</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/zh-CN/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>使用 HTML5 来支持在 Firefox 中直接显示 PDF 文件。</em:description>
</Description>
</em:localized>

1 change: 0 additions & 1 deletion l10n/zh-TW/metadata.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
<em:description>利用 HTML5 技術在 Firefox 中直接顯示 PDF 格式檔案。</em:description>
</Description>
</em:localized>

4 changes: 2 additions & 2 deletions src/core/arithmetic_decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
1 change: 0 additions & 1 deletion src/core/bidi.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,3 @@ var bidi = PDFJS.bidi = (function bidiClosure() {

return bidi;
})();

1 change: 0 additions & 1 deletion src/core/charsets.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,3 @@ var ExpertSubsetCharset = [
'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
'periodinferior', 'commainferior'
];

1 change: 0 additions & 1 deletion src/core/chunked_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -560,4 +560,3 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {

return ChunkedStreamManager;
})();

1 change: 0 additions & 1 deletion src/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,4 +530,3 @@ var PDFDocument = (function PDFDocumentClosure() {

return PDFDocument;
})();

1 change: 0 additions & 1 deletion src/core/font_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,4 +710,3 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {
}
};
})();

1 change: 0 additions & 1 deletion src/core/jpx.js
Original file line number Diff line number Diff line change
Expand Up @@ -2213,4 +2213,3 @@ var JpxImage = (function JpxImageClosure() {

return JpxImage;
})();

1 change: 0 additions & 1 deletion src/core/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -2958,4 +2958,3 @@ var Metrics = {
'a191': 918
}
};

1 change: 0 additions & 1 deletion src/core/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,3 @@ var NetworkManager = (function NetworkManagerClosure() {

return NetworkManager;
})();

8 changes: 4 additions & 4 deletions src/core/obj.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);');
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion src/core/pdf_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,3 @@ var NetworkPdfManager = (function NetworkPdfManagerClosure() {

return NetworkPdfManager;
})();

4 changes: 2 additions & 2 deletions src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down Expand Up @@ -599,7 +599,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
* rendering call the function that is the first argument
* to the callback.
*/

/**
* PDF page operator list.
*
Expand Down
1 change: 0 additions & 1 deletion src/display/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -2149,4 +2149,3 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {

return CanvasGraphics;
})();

Loading