Browse Source

PDF.js version 1.3.114 - See mozilla/pdf.js@9228e1ffcf04ee5f66fba000ca476eb074d2df8e

master v1.3.114
Pdf Bot 9 years ago
parent
commit
6a0903fc1a
  1. 2
      bower.json
  2. 4
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json
  6. 60
      web/pdf_viewer.js

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.3.112", "version": "1.3.114",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

4
build/pdf.combined.js

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.112'; PDFJS.version = '1.3.114';
PDFJS.build = 'e45e7d0'; PDFJS.build = '9228e1f';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

4
build/pdf.js

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.112'; PDFJS.version = '1.3.114';
PDFJS.build = 'e45e7d0'; PDFJS.build = '9228e1f';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

4
build/pdf.worker.js vendored

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.112'; PDFJS.version = '1.3.114';
PDFJS.build = 'e45e7d0'; PDFJS.build = '9228e1f';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.3.112", "version": "1.3.114",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

60
web/pdf_viewer.js

@ -14,8 +14,8 @@
*/ */
/*jshint globalstrict: false */ /*jshint globalstrict: false */
/* globals PDFJS, PDFViewer, PDFPageView, TextLayerBuilder, PDFLinkService, /* globals PDFJS, PDFViewer, PDFPageView, TextLayerBuilder, PDFLinkService,
DefaultTextLayerFactory, AnnotationsLayerBuilder, PDFHistory, DefaultTextLayerFactory, AnnotationLayerBuilder, PDFHistory,
DefaultAnnotationsLayerFactory, getFileName, ProgressBar */ DefaultAnnotationLayerFactory, getFileName, ProgressBar */
// Initializing PDFJS global object (if still undefined) // Initializing PDFJS global object (if still undefined)
if (typeof PDFJS === 'undefined') { if (typeof PDFJS === 'undefined') {
@ -896,7 +896,7 @@ var TEXT_LAYER_RENDER_DELAY = 200; // ms
* @property {PageViewport} defaultViewport - The page viewport. * @property {PageViewport} defaultViewport - The page viewport.
* @property {PDFRenderingQueue} renderingQueue - The rendering queue object. * @property {PDFRenderingQueue} renderingQueue - The rendering queue object.
* @property {IPDFTextLayerFactory} textLayerFactory * @property {IPDFTextLayerFactory} textLayerFactory
* @property {IPDFAnnotationsLayerFactory} annotationsLayerFactory * @property {IPDFAnnotationLayerFactory} annotationLayerFactory
*/ */
/** /**
@ -917,7 +917,7 @@ var PDFPageView = (function PDFPageViewClosure() {
var defaultViewport = options.defaultViewport; var defaultViewport = options.defaultViewport;
var renderingQueue = options.renderingQueue; var renderingQueue = options.renderingQueue;
var textLayerFactory = options.textLayerFactory; var textLayerFactory = options.textLayerFactory;
var annotationsLayerFactory = options.annotationsLayerFactory; var annotationLayerFactory = options.annotationLayerFactory;
this.id = id; this.id = id;
this.renderingId = 'page' + id; this.renderingId = 'page' + id;
@ -930,7 +930,7 @@ var PDFPageView = (function PDFPageViewClosure() {
this.renderingQueue = renderingQueue; this.renderingQueue = renderingQueue;
this.textLayerFactory = textLayerFactory; this.textLayerFactory = textLayerFactory;
this.annotationsLayerFactory = annotationsLayerFactory; this.annotationLayerFactory = annotationLayerFactory;
this.renderingState = RenderingStates.INITIAL; this.renderingState = RenderingStates.INITIAL;
this.resume = null; this.resume = null;
@ -1358,10 +1358,10 @@ var PDFPageView = (function PDFPageViewClosure() {
} }
); );
if (this.annotationsLayerFactory) { if (this.annotationLayerFactory) {
if (!this.annotationLayer) { if (!this.annotationLayer) {
this.annotationLayer = this.annotationsLayerFactory. this.annotationLayer = this.annotationLayerFactory.
createAnnotationsLayerBuilder(div, this.pdfPage); createAnnotationLayerBuilder(div, this.pdfPage);
} }
this.annotationLayer.render(this.viewport, 'display'); this.annotationLayer.render(this.viewport, 'display');
} }
@ -1766,7 +1766,7 @@ DefaultTextLayerFactory.prototype = {
/** /**
* @typedef {Object} AnnotationsLayerBuilderOptions * @typedef {Object} AnnotationLayerBuilderOptions
* @property {HTMLDivElement} pageDiv * @property {HTMLDivElement} pageDiv
* @property {PDFPage} pdfPage * @property {PDFPage} pdfPage
* @property {IPDFLinkService} linkService * @property {IPDFLinkService} linkService
@ -1775,12 +1775,12 @@ DefaultTextLayerFactory.prototype = {
/** /**
* @class * @class
*/ */
var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() { var AnnotationLayerBuilder = (function AnnotationLayerBuilderClosure() {
/** /**
* @param {AnnotationsLayerBuilderOptions} options * @param {AnnotationLayerBuilderOptions} options
* @constructs AnnotationsLayerBuilder * @constructs AnnotationLayerBuilder
*/ */
function AnnotationsLayerBuilder(options) { function AnnotationLayerBuilder(options) {
this.pageDiv = options.pageDiv; this.pageDiv = options.pageDiv;
this.pdfPage = options.pdfPage; this.pdfPage = options.pdfPage;
this.linkService = options.linkService; this.linkService = options.linkService;
@ -1788,14 +1788,14 @@ var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
this.div = null; this.div = null;
} }
AnnotationsLayerBuilder.prototype = AnnotationLayerBuilder.prototype =
/** @lends AnnotationsLayerBuilder.prototype */ { /** @lends AnnotationLayerBuilder.prototype */ {
/** /**
* @param {PageViewport} viewport * @param {PageViewport} viewport
* @param {string} intent (default value is 'display') * @param {string} intent (default value is 'display')
*/ */
render: function AnnotationsLayerBuilder_render(viewport, intent) { render: function AnnotationLayerBuilder_render(viewport, intent) {
var self = this; var self = this;
var parameters = { var parameters = {
intent: (intent === undefined ? 'display' : intent), intent: (intent === undefined ? 'display' : intent),
@ -1828,7 +1828,7 @@ var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
}); });
}, },
hide: function AnnotationsLayerBuilder_hide() { hide: function AnnotationLayerBuilder_hide() {
if (!this.div) { if (!this.div) {
return; return;
} }
@ -1836,22 +1836,22 @@ var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
} }
}; };
return AnnotationsLayerBuilder; return AnnotationLayerBuilder;
})(); })();
/** /**
* @constructor * @constructor
* @implements IPDFAnnotationsLayerFactory * @implements IPDFAnnotationLayerFactory
*/ */
function DefaultAnnotationsLayerFactory() {} function DefaultAnnotationLayerFactory() {}
DefaultAnnotationsLayerFactory.prototype = { DefaultAnnotationLayerFactory.prototype = {
/** /**
* @param {HTMLDivElement} pageDiv * @param {HTMLDivElement} pageDiv
* @param {PDFPage} pdfPage * @param {PDFPage} pdfPage
* @returns {AnnotationsLayerBuilder} * @returns {AnnotationLayerBuilder}
*/ */
createAnnotationsLayerBuilder: function (pageDiv, pdfPage) { createAnnotationLayerBuilder: function (pageDiv, pdfPage) {
return new AnnotationsLayerBuilder({ return new AnnotationLayerBuilder({
pageDiv: pageDiv, pageDiv: pageDiv,
pdfPage: pdfPage, pdfPage: pdfPage,
linkService: new SimpleLinkService(), linkService: new SimpleLinkService(),
@ -2119,7 +2119,7 @@ var PDFViewer = (function pdfViewer() {
defaultViewport: viewport.clone(), defaultViewport: viewport.clone(),
renderingQueue: this.renderingQueue, renderingQueue: this.renderingQueue,
textLayerFactory: textLayerFactory, textLayerFactory: textLayerFactory,
annotationsLayerFactory: this annotationLayerFactory: this
}); });
bindOnAfterAndBeforeDraw(pageView); bindOnAfterAndBeforeDraw(pageView);
this._pages.push(pageView); this._pages.push(pageView);
@ -2576,10 +2576,10 @@ var PDFViewer = (function pdfViewer() {
/** /**
* @param {HTMLDivElement} pageDiv * @param {HTMLDivElement} pageDiv
* @param {PDFPage} pdfPage * @param {PDFPage} pdfPage
* @returns {AnnotationsLayerBuilder} * @returns {AnnotationLayerBuilder}
*/ */
createAnnotationsLayerBuilder: function (pageDiv, pdfPage) { createAnnotationLayerBuilder: function (pageDiv, pdfPage) {
return new AnnotationsLayerBuilder({ return new AnnotationLayerBuilder({
pageDiv: pageDiv, pageDiv: pageDiv,
pdfPage: pdfPage, pdfPage: pdfPage,
linkService: this.linkService linkService: this.linkService
@ -3041,8 +3041,8 @@ var PDFHistory = (function () {
PDFJS.PDFLinkService = PDFLinkService; PDFJS.PDFLinkService = PDFLinkService;
PDFJS.TextLayerBuilder = TextLayerBuilder; PDFJS.TextLayerBuilder = TextLayerBuilder;
PDFJS.DefaultTextLayerFactory = DefaultTextLayerFactory; PDFJS.DefaultTextLayerFactory = DefaultTextLayerFactory;
PDFJS.AnnotationsLayerBuilder = AnnotationsLayerBuilder; PDFJS.AnnotationLayerBuilder = AnnotationLayerBuilder;
PDFJS.DefaultAnnotationsLayerFactory = DefaultAnnotationsLayerFactory; PDFJS.DefaultAnnotationLayerFactory = DefaultAnnotationLayerFactory;
PDFJS.PDFHistory = PDFHistory; PDFJS.PDFHistory = PDFHistory;
PDFJS.getFileName = getFileName; PDFJS.getFileName = getFileName;

Loading…
Cancel
Save