Generic build of PDF.js library.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
842 B

14 years ago
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
var PDF = {};
14 years ago
14 years ago
(function(globalScope) {
14 years ago
// Use strict in our context only - users might not want it
14 years ago
'use strict';
14 years ago
// Set this to true if you want to use workers.
var useWorker = false;
var console;
14 years ago
// Files are inserted below - see Makefile
14 years ago
/* INSERT_POINT */
14 years ago
// Worker-specific
if (typeof window !== 'undefined') {
console = window.console;
} else {
var consoleTimer = {};
console = workerConsole;
14 years ago
// Listen for messages from the main thread.
var handler = new MessageHandler('worker_processor', globalScope);
WorkerProcessorHandler.setup(handler);
}
14 years ago
// Expose API in global object
PDF.PDFDoc = PDFDoc;
PDF.getPdf = getPdf;
})(this);