diff --git a/mozilla/Pdf/web/pdf.tpl.php b/mozilla/Pdf/web/pdf.tpl.php index d9c1112..686bb8a 100755 --- a/mozilla/Pdf/web/pdf.tpl.php +++ b/mozilla/Pdf/web/pdf.tpl.php @@ -35,9 +35,45 @@ See https://github.com/adobe-type-tools/cmap-resources + + +
diff --git a/mozilla/Pdf/web/viewer.html b/mozilla/Pdf/web/viewer.html index d9c1112..686bb8a 100755 --- a/mozilla/Pdf/web/viewer.html +++ b/mozilla/Pdf/web/viewer.html @@ -35,9 +35,45 @@ See https://github.com/adobe-type-tools/cmap-resources + + +
diff --git a/mozilla/Pdf/web/viewer.js b/mozilla/Pdf/web/viewer.js index 981d6c7..3c7fd2a 100755 --- a/mozilla/Pdf/web/viewer.js +++ b/mozilla/Pdf/web/viewer.js @@ -906,6 +906,8 @@ const PDFViewerApplication = { loadingTask.onUnsupportedFeature = this.fallback.bind(this); return loadingTask.promise.then(pdfDocument => { this.load(pdfDocument); + document.getElementById('contentSpinner').style.display = 'none'; + document.getElementById('outerContainer').style.display = 'block'; }, exception => { if (loadingTask !== this.pdfLoadingTask) { return undefined; @@ -1278,7 +1280,7 @@ const PDFViewerApplication = { this.documentInfo = info; this.metadata = metadata; this.contentDispositionFilename = contentDispositionFilename; - console.log(`PDF ${pdfDocument.fingerprint} [${info.PDFFormatVersion} ` + `${(info.Producer || "-").trim()} / ${(info.Creator || "-").trim()}] ` + `(PDF.js: ${_pdfjsLib.version || "-"}` + `${this.pdfViewer.enableWebGL ? " [WebGL]" : ""})`); + let pdfTitle; const infoTitle = info && info.Title; diff --git a/tcpdf/include/tcpdf_static.php b/tcpdf/include/tcpdf_static.php index a118d05..ef96378 100755 --- a/tcpdf/include/tcpdf_static.php +++ b/tcpdf/include/tcpdf_static.php @@ -125,7 +125,7 @@ class TCPDF_STATIC { * @public static */ public static function getTCPDFProducer() { - return "\x54\x43\x50\x44\x46\x20".self::getTCPDFVersion()."\x20\x28\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x74\x63\x70\x64\x66\x2e\x6f\x72\x67\x29"; + return "\x3F "; // Don't show TCPDF version to hide from crawlers in case of vulnerabilities } /**