Browse Source

Fixes examples comments.

Yury Delendik 11 years ago
parent
commit
88d5fa0fc3
  1. 2
      examples/components/simpleviewer.html
  2. 9
      examples/components/simpleviewer.js
  3. 5
      examples/learning/helloworld.html
  4. 5
      examples/learning/prevnext.html

2
examples/components/simpleviewer.html

@ -29,7 +29,7 @@ limitations under the License.
} }
</style> </style>
<link rel="stylesheet" href="../../build/components/pdf_viewer.css"/> <link rel="stylesheet" href="../../build/components/pdf_viewer.css">
<!-- for legacy browsers --> <!-- for legacy browsers -->
<script src="../../build/components/compatibility.js"></script> <script src="../../build/components/compatibility.js"></script>

9
examples/components/simpleviewer.js

@ -16,16 +16,17 @@
'use strict'; 'use strict';
if (!PDFJS.PDFViewer || !PDFJS.getDocument) { if (!PDFJS.PDFViewer || !PDFJS.getDocument) {
alert('Please built the library and components using\n' + alert('Please build the library and components using\n' +
' `node make generic components`'); ' `node make generic components`');
} }
// If pdf.js must be execute via eval or pdf.worker.js is located at the // In cases when the pdf.worker.js is located at the different folder than the
// different location than pdf.js, specify workerSrc. // pdf.js's one, or the pdf.js is executed via eval(), the workerSrc property
// shall be specified.
// //
// PDFJS.workerSrc = '../../build/pdf.worker.js'; // PDFJS.workerSrc = '../../build/pdf.worker.js';
// Some PDFs need external cmaps // Some PDFs need external cmaps.
// //
// PDFJS.cMapUrl = '../../external/bcmaps/'; // PDFJS.cMapUrl = '../../external/bcmaps/';
// PDFJS.cMapPacked = true; // PDFJS.cMapPacked = true;

5
examples/learning/helloworld.html

@ -30,8 +30,9 @@
// PDFJS.disableWorker = true; // PDFJS.disableWorker = true;
// //
// If pdf.js must be execute via eval or pdf.worker.js is located at the // In cases when the pdf.worker.js is located at the different folder than the
// different location than pdf.js, specify workerSrc. // pdf.js's one, or the pdf.js is executed via eval(), the workerSrc property
// shall be specified.
// //
// PDFJS.workerSrc = '../../build/pdf.worker.js'; // PDFJS.workerSrc = '../../build/pdf.worker.js';

5
examples/learning/prevnext.html

@ -40,8 +40,9 @@
// PDFJS.disableWorker = true; // PDFJS.disableWorker = true;
// //
// If pdf.js must be execute via eval or pdf.worker.js is located at the // In cases when the pdf.worker.js is located at the different folder than the
// different location than pdf.js, specify workerSrc. // pdf.js's one, or the pdf.js is executed via eval(), the workerSrc property
// shall be specified.
// //
// PDFJS.workerSrc = '../../build/pdf.worker.js'; // PDFJS.workerSrc = '../../build/pdf.worker.js';

Loading…
Cancel
Save