Skip to content

Commit

Permalink
example how to include pdfjslib to render document. Not yet displayin…
Browse files Browse the repository at this point in the history
…g pdf, because url has to be replaced & canvas correctly selected.
  • Loading branch information
georgmaisser committed Oct 11, 2023
1 parent f2fdf98 commit 53d36d8
Show file tree
Hide file tree
Showing 11 changed files with 58,443 additions and 38 deletions.
3 changes: 3 additions & 0 deletions amd/build/pdf.worker.entry.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions amd/build/pdf.worker.entry.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions amd/build/pdf.worker.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions amd/build/pdf.worker.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions amd/build/pdf.worker.min.js.map

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions amd/build/pdfembed.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/pdfembed.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions amd/src/pdf.worker.entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* Copyright 2022 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

(typeof window !== "undefined"
? window
: {}
).pdfjsWorker = require("./pdf.worker.js");
Loading

0 comments on commit 53d36d8

Please sign in to comment.