Skip to content

Commit

Permalink
cleaned whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
collinanderson committed Feb 2, 2015
1 parent 294c4a8 commit 0c8b2ba
Show file tree
Hide file tree
Showing 108 changed files with 69 additions and 155 deletions.
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>

8 changes: 4 additions & 4 deletions l10n/ast/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ page_scale_actual = Tamañu actual
loading_error_indicator = Fallu
loading_error = Hebo un fallu al cargar el PDF.
printing_not_supported = Avisu: Imprentar nun tien sofitu téunicu completu nesti navegador.
presentation_mode_label =
presentation_mode.title =
page_rotate_cw.label =
page_rotate_ccw.label =
presentation_mode_label =
presentation_mode.title =
page_rotate_cw.label =
page_rotate_ccw.label =
last_page.label = Dir a la cabera páxina
invalid_file_error = Ficheru PDF inválidu o corruptu.
first_page.label = Dir a la primer páxina
Expand Down
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>

8 changes: 3 additions & 5 deletions l10n/csb/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ zoom_in_label=Wiôlgòsc
zoom.title=Wiôlgòsc
print.title=Drëkùjë
print_label=Drëkùjë
presentation_mode.title=Przéńdzë w trib prezentacje
presentation_mode_label=Trib prezentacje
presentation_mode.title=Przéńdzë w trib prezentacje
presentation_mode_label=Trib prezentacje
open_file.title=Òtemkni lopk
open_file_label=Òtemkni
download.title=Zladënk
Expand Down Expand Up @@ -103,7 +103,7 @@ loading_error=Pòkôza sã fela przë wczëtiwanim PDFù.
# Some common types are e.g.: "Check", "Text", "Comment", "Note"

request_password=PDF je zabezpieczony parolą:
printing_not_supported = Òstrzéga: przezérnik nie je do kùńca wspieróny przez drëkôrze
printing_not_supported = Òstrzéga: przezérnik nie je do kùńca wspieróny przez drëkôrze

# Context menu
page_rotate_cw.label=Òbkrãcë w prawò
Expand All @@ -130,5 +130,3 @@ text_annotation_type.alt=[Adnotacjô {{type}}]

tools.title=Tools
first_page_label=Go to First Page


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/chrome.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
unsupported_feature=Αυτό το έγγραφο PDF μπορεί να μην εμφανιστεί σωστά
open_with_different_viewer=Άνοιγμα με διαφορετική εφαρμογή
open_with_different_viewer.accessKey=δ

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/el/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,3 @@ document_colors_disabled=Δεν επιτρέπεται στα έγγραφα PDF

invalid_password=Μη έγκυρος κωδικός.
text_annotation_type.alt=[{{type}} Annotation]

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>

2 changes: 1 addition & 1 deletion l10n/gl/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
document_properties_title=Título:
document_properties_author=Autor:
document_properties_subject=Asunto:
document_properties_subject=Asunto:
document_properties_keywords=Palabras clave:
document_properties_creation_date=Data de creación:
document_properties_modification_date=Data de modificación:
Expand Down
2 changes: 0 additions & 2 deletions l10n/gu-IN/chrome.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ unsupported_feature=આ PDF દસ્તાવેજને યોગ્ય ર
open_with_different_viewer=વિવિધ દર્શક સાથે ખોલો
open_with_different_viewer.accessKey=o
unsupported_feature_forms=આ PDF દસ્તાવેજ ફોર્મને સમાવે છે. ફોર્મ ક્ષેત્રની ભરવાનું આધારભૂત નથી.


1 change: 0 additions & 1 deletion l10n/gu-IN/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,3 @@ tools_label=સાધનો

document_properties_version=PDF આવૃત્તિ:
document_properties.title=દસ્તાવેજ ગુણધર્મો…

1 change: 0 additions & 1 deletion l10n/he/chrome.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ unsupported_feature=יתכן שמסמך PDF זה לא יוצג כראוי.
unsupported_feature_forms=מסמך PDF זה מכיל טפסים. מילוי שדות בטפסים אינו נתמך.
open_with_different_viewer=פתיחה בתכנית צפייה שונה
open_with_different_viewer.accessKey=פ

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>

3 changes: 1 addition & 2 deletions l10n/lv/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ next_label=Nākamā
page_label=Lapa:
page_of=no {{pageCount}}

zoom_out.title=Attālināt
zoom_out.title=Attālināt
zoom_out_label=Attālināt
zoom_in.title=Pietuvināt
zoom_in_label=Pietuvināt
Expand Down Expand Up @@ -157,4 +157,3 @@ printing_not_supported=Uzmanību: Drukāšana no šī pārlūka darbojas tikai d
web_fonts_disabled=Tīmekļa fonti nav aktivizēti: Nevar iegult PDF fontus.
printing_not_ready=Uzmanību: PDF nav pilnībā ielādēts drukāšanai.
document_colors_disabled=PDF dokumentiem nav atļauts izmantot pašiem savas krāsas: „Atļaut lapām izvēlēties pašām savas krāsas“ ir deaktivēts pārlūkā.

1 change: 0 additions & 1 deletion l10n/mn/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,3 @@ loading_error_indicator=Алдаа
# "{{type}}" will be replaced with an annotation type from a list defined in
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
# Some common types are e.g.: "Check", "Text", "Comment", "Note"

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>

2 changes: 1 addition & 1 deletion l10n/nl/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ page_scale_actual=Werkelijke grootte
loading_error_indicator=Fout
loading_error=Er is een fout opgetreden bij het laden van de PDF.
invalid_file_error=Ongeldig of beschadigd PDF-bestand.
missing_file_error=PDF-bestand ontbreekt.
missing_file_error=PDF-bestand ontbreekt.
unexpected_response_error=Onverwacht serverantwoord.

# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
Expand Down
1 change: 0 additions & 1 deletion l10n/pa-IN/chrome.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ unsupported_feature=ਇਹ PDF ਡੌਕੂਮੈਂਟ ਸ਼ਾਇਦ ਠੀਕ
unsupported_feature_forms=ਇਹ PDF ਦਸਤਾਵੇਜ਼ ਵਿੱਚ ਫਾਰਮ ਹਨ। ਫਾਰਮ ਖੇਤਰਾਂ ਨੂੰ ਭਰਨਾ ਸਹਾਇਕ ਨਹੀਂ ਹੈ।
open_with_different_viewer=ਵੱਖਰੇ ਦਰਸ਼ਕ ਨਾਲ ਖੋਲ੍ਹੋ
open_with_different_viewer.accessKey=o

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/ta-LK/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ find_next.title=இந்த சொற்றொடரின் அடுத்
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
password_ok=ஆம்

1 change: 0 additions & 1 deletion l10n/tl/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,3 @@ loading_error=May maling nangyari habang kinakarga ang PDF.
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
password_ok=OK

1 change: 0 additions & 1 deletion l10n/tn/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ loading_error_indicator=Phoso
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
password_ok=Siame
password_cancel=Khansela

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>

Loading

0 comments on commit 0c8b2ba

Please sign in to comment.