Remove embeddedFontsUsed from API.
This commit is contained in:
parent
cab5d7b96f
commit
ce9e9e6ff7
@ -213,13 +213,6 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
|
|||||||
get fingerprint() {
|
get fingerprint() {
|
||||||
return this.pdfInfo.fingerprint;
|
return this.pdfInfo.fingerprint;
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
* @return {boolean} true if embedded document fonts are in use. Will be
|
|
||||||
* set during rendering of the pages.
|
|
||||||
*/
|
|
||||||
get embeddedFontsUsed() {
|
|
||||||
return this.transport.embeddedFontsUsed;
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
* @param {number} pageNumber The page number to get. The first page is 1.
|
* @param {number} pageNumber The page number to get. The first page is 1.
|
||||||
* @return {Promise} A promise that is resolved with a {@link PDFPageProxy}
|
* @return {Promise} A promise that is resolved with a {@link PDFPageProxy}
|
||||||
@ -578,7 +571,6 @@ var WorkerTransport = (function WorkerTransportClosure() {
|
|||||||
|
|
||||||
this.pageCache = [];
|
this.pageCache = [];
|
||||||
this.pagePromises = [];
|
this.pagePromises = [];
|
||||||
this.embeddedFontsUsed = false;
|
|
||||||
this.downloadInfoPromise = new PDFJS.LegacyPromise();
|
this.downloadInfoPromise = new PDFJS.LegacyPromise();
|
||||||
this.passwordCallback = null;
|
this.passwordCallback = null;
|
||||||
|
|
||||||
|
@ -509,11 +509,6 @@ var PageView = function pageView(container, id, scale,
|
|||||||
textLayerDiv.dataset._scaleY = outputScale.sy;
|
textLayerDiv.dataset._scaleY = outputScale.sy;
|
||||||
}
|
}
|
||||||
|
|
||||||
//#if (FIREFOX || MOZCENTRAL)
|
|
||||||
// // Checking if document fonts are used only once
|
|
||||||
// var checkIfDocumentFontsUsed = !PDFView.pdfDocument.embeddedFontsUsed;
|
|
||||||
//#endif
|
|
||||||
|
|
||||||
// Rendering area
|
// Rendering area
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
@ -542,12 +537,6 @@ var PageView = function pageView(container, id, scale,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//#if (FIREFOX || MOZCENTRAL)
|
//#if (FIREFOX || MOZCENTRAL)
|
||||||
// if (checkIfDocumentFontsUsed && PDFView.pdfDocument.embeddedFontsUsed &&
|
|
||||||
// PDFJS.disableFontFace) {
|
|
||||||
// console.error(mozL10n.get('web_fonts_disabled', null,
|
|
||||||
// 'Web fonts are disabled: unable to use embedded PDF fonts.'));
|
|
||||||
// PDFView.fallback();
|
|
||||||
// }
|
|
||||||
// if (self.textLayer && self.textLayer.textDivs &&
|
// if (self.textLayer && self.textLayer.textDivs &&
|
||||||
// self.textLayer.textDivs.length > 0 &&
|
// self.textLayer.textDivs.length > 0 &&
|
||||||
// !PDFView.supportsDocumentColors) {
|
// !PDFView.supportsDocumentColors) {
|
||||||
|
@ -1674,6 +1674,8 @@ function webViewerLoad(evt) {
|
|||||||
//#if (FIREFOX || MOZCENTRAL)
|
//#if (FIREFOX || MOZCENTRAL)
|
||||||
//if (!PDFView.supportsDocumentFonts) {
|
//if (!PDFView.supportsDocumentFonts) {
|
||||||
// PDFJS.disableFontFace = true;
|
// PDFJS.disableFontFace = true;
|
||||||
|
// console.warn(mozL10n.get('web_fonts_disabled', null,
|
||||||
|
// 'Web fonts are disabled: unable to use embedded PDF fonts.'));
|
||||||
//}
|
//}
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user