├── .browserslistrc ├── .eslintrc.js ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── stale.yml ├── .gitignore ├── CHANGELOG.md ├── FAQ.md ├── LICENSE ├── README.md ├── babel.config.js ├── examples ├── lazy-loading │ ├── .gitignore │ ├── README.md │ ├── babel.config.js │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ └── sample.pdf │ └── src │ │ ├── App.vue │ │ ├── assets │ │ └── logo.png │ │ ├── components │ │ └── Loader.vue │ │ └── main.js ├── script-tag │ ├── README.md │ ├── index.html │ ├── package-lock.json │ ├── package.json │ └── sample.pdf ├── the-most-complete-example │ ├── .browserslistrc │ ├── .gitignore │ ├── README.md │ ├── babel.config.js │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ └── sample.pdf │ └── src │ │ ├── App.vue │ │ ├── assets │ │ └── logo.png │ │ ├── components │ │ └── Checkbox.vue │ │ ├── main.js │ │ ├── router │ │ └── index.js │ │ └── views │ │ ├── About.vue │ │ ├── Basic.vue │ │ ├── ColorCustomization.vue │ │ ├── IconsCustomization.vue │ │ ├── PdfjsInteraction.vue │ │ ├── Slots.vue │ │ ├── ThemeToggling.vue │ │ ├── ToolbarConfiguration.vue │ │ └── ToolbarCustomUI.vue └── typescript │ ├── .browserslistrc │ ├── .eslintrc.js │ ├── .gitignore │ ├── README.md │ ├── babel.config.js │ ├── package-lock.json │ ├── package.json │ ├── public │ ├── favicon.ico │ ├── index.html │ └── sample.pdf │ ├── src │ ├── App.vue │ ├── main.ts │ ├── shims-tsx.d.ts │ └── shims-vue.d.ts │ ├── tsconfig.json │ └── vue.config.js ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── index.html └── sample.pdf ├── readme ├── algorithm of theme apply.drawio ├── algorithm-of-theme-apply.jpg ├── config-legend.jpg ├── dialog-buttons.jpg ├── dialog-separator.jpg ├── error-more-info.jpg ├── error-wrapper.jpg ├── find-input-placeholder.jpg ├── find-message.jpg ├── find-results-count.jpg ├── horizontal-separator.jpg ├── loading-bar-color.jpg ├── loading-bar-secondary-color.jpg ├── not-found.jpg ├── sample.png ├── sidebar.jpg ├── thumbnail-border.jpg ├── toggleable-items.jpg ├── toolbar-field.jpg └── vertical-separator.jpg ├── src ├── app.vue ├── assets │ ├── icons │ │ ├── LICENSE.txt │ │ ├── README.txt │ │ ├── config.json │ │ ├── css │ │ │ ├── animation.css │ │ │ ├── pdf-codes.css │ │ │ ├── pdf-embedded.css │ │ │ ├── pdf-ie7-codes.css │ │ │ ├── pdf-ie7.css │ │ │ └── pdf.css │ │ ├── demo.html │ │ └── font │ │ │ ├── pdf.eot │ │ │ ├── pdf.svg │ │ │ ├── pdf.ttf │ │ │ ├── pdf.woff │ │ │ └── pdf.woff2 │ └── images │ │ ├── grab.cur │ │ ├── grabbing.cur │ │ ├── loading-icon.svg │ │ ├── shadow.png │ │ ├── treeitem-collapsed.png │ │ ├── treeitem-collapsed@2x.png │ │ ├── treeitem-expanded.png │ │ └── treeitem-expanded@2x.png ├── components │ ├── about-view.vue │ └── pdf-viewer.vue ├── main.ts ├── pdfjs-dist │ ├── CODE_OF_CONDUCT.md │ ├── LICENSE │ ├── README.md │ ├── bower.json │ ├── build │ │ ├── pdf.js │ │ ├── pdf.js.map │ │ ├── pdf.min.js │ │ ├── pdf.worker.entry.js │ │ ├── pdf.worker.js │ │ ├── pdf.worker.js.map │ │ └── pdf.worker.min.js │ ├── cmaps │ │ ├── 78-EUC-H.bcmap │ │ ├── 78-EUC-V.bcmap │ │ ├── 78-H.bcmap │ │ ├── 78-RKSJ-H.bcmap │ │ ├── 78-RKSJ-V.bcmap │ │ ├── 78-V.bcmap │ │ ├── 78ms-RKSJ-H.bcmap │ │ ├── 78ms-RKSJ-V.bcmap │ │ ├── 83pv-RKSJ-H.bcmap │ │ ├── 90ms-RKSJ-H.bcmap │ │ ├── 90ms-RKSJ-V.bcmap │ │ ├── 90msp-RKSJ-H.bcmap │ │ ├── 90msp-RKSJ-V.bcmap │ │ ├── 90pv-RKSJ-H.bcmap │ │ ├── 90pv-RKSJ-V.bcmap │ │ ├── Add-H.bcmap │ │ ├── Add-RKSJ-H.bcmap │ │ ├── Add-RKSJ-V.bcmap │ │ ├── Add-V.bcmap │ │ ├── Adobe-CNS1-0.bcmap │ │ ├── Adobe-CNS1-1.bcmap │ │ ├── Adobe-CNS1-2.bcmap │ │ ├── Adobe-CNS1-3.bcmap │ │ ├── Adobe-CNS1-4.bcmap │ │ ├── Adobe-CNS1-5.bcmap │ │ ├── Adobe-CNS1-6.bcmap │ │ ├── Adobe-CNS1-UCS2.bcmap │ │ ├── Adobe-GB1-0.bcmap │ │ ├── Adobe-GB1-1.bcmap │ │ ├── Adobe-GB1-2.bcmap │ │ ├── Adobe-GB1-3.bcmap │ │ ├── Adobe-GB1-4.bcmap │ │ ├── Adobe-GB1-5.bcmap │ │ ├── Adobe-GB1-UCS2.bcmap │ │ ├── Adobe-Japan1-0.bcmap │ │ ├── Adobe-Japan1-1.bcmap │ │ ├── Adobe-Japan1-2.bcmap │ │ ├── Adobe-Japan1-3.bcmap │ │ ├── Adobe-Japan1-4.bcmap │ │ ├── Adobe-Japan1-5.bcmap │ │ ├── Adobe-Japan1-6.bcmap │ │ ├── Adobe-Japan1-UCS2.bcmap │ │ ├── Adobe-Korea1-0.bcmap │ │ ├── Adobe-Korea1-1.bcmap │ │ ├── Adobe-Korea1-2.bcmap │ │ ├── Adobe-Korea1-UCS2.bcmap │ │ ├── B5-H.bcmap │ │ ├── B5-V.bcmap │ │ ├── B5pc-H.bcmap │ │ ├── B5pc-V.bcmap │ │ ├── CNS-EUC-H.bcmap │ │ ├── CNS-EUC-V.bcmap │ │ ├── CNS1-H.bcmap │ │ ├── CNS1-V.bcmap │ │ ├── CNS2-H.bcmap │ │ ├── CNS2-V.bcmap │ │ ├── ETHK-B5-H.bcmap │ │ ├── ETHK-B5-V.bcmap │ │ ├── ETen-B5-H.bcmap │ │ ├── ETen-B5-V.bcmap │ │ ├── ETenms-B5-H.bcmap │ │ ├── ETenms-B5-V.bcmap │ │ ├── EUC-H.bcmap │ │ ├── EUC-V.bcmap │ │ ├── Ext-H.bcmap │ │ ├── Ext-RKSJ-H.bcmap │ │ ├── Ext-RKSJ-V.bcmap │ │ ├── Ext-V.bcmap │ │ ├── GB-EUC-H.bcmap │ │ ├── GB-EUC-V.bcmap │ │ ├── GB-H.bcmap │ │ ├── GB-V.bcmap │ │ ├── GBK-EUC-H.bcmap │ │ ├── GBK-EUC-V.bcmap │ │ ├── GBK2K-H.bcmap │ │ ├── GBK2K-V.bcmap │ │ ├── GBKp-EUC-H.bcmap │ │ ├── GBKp-EUC-V.bcmap │ │ ├── GBT-EUC-H.bcmap │ │ ├── GBT-EUC-V.bcmap │ │ ├── GBT-H.bcmap │ │ ├── GBT-V.bcmap │ │ ├── GBTpc-EUC-H.bcmap │ │ ├── GBTpc-EUC-V.bcmap │ │ ├── GBpc-EUC-H.bcmap │ │ ├── GBpc-EUC-V.bcmap │ │ ├── H.bcmap │ │ ├── HKdla-B5-H.bcmap │ │ ├── HKdla-B5-V.bcmap │ │ ├── HKdlb-B5-H.bcmap │ │ ├── HKdlb-B5-V.bcmap │ │ ├── HKgccs-B5-H.bcmap │ │ ├── HKgccs-B5-V.bcmap │ │ ├── HKm314-B5-H.bcmap │ │ ├── HKm314-B5-V.bcmap │ │ ├── HKm471-B5-H.bcmap │ │ ├── HKm471-B5-V.bcmap │ │ ├── HKscs-B5-H.bcmap │ │ ├── HKscs-B5-V.bcmap │ │ ├── Hankaku.bcmap │ │ ├── Hiragana.bcmap │ │ ├── KSC-EUC-H.bcmap │ │ ├── KSC-EUC-V.bcmap │ │ ├── KSC-H.bcmap │ │ ├── KSC-Johab-H.bcmap │ │ ├── KSC-Johab-V.bcmap │ │ ├── KSC-V.bcmap │ │ ├── KSCms-UHC-H.bcmap │ │ ├── KSCms-UHC-HW-H.bcmap │ │ ├── KSCms-UHC-HW-V.bcmap │ │ ├── KSCms-UHC-V.bcmap │ │ ├── KSCpc-EUC-H.bcmap │ │ ├── KSCpc-EUC-V.bcmap │ │ ├── Katakana.bcmap │ │ ├── LICENSE │ │ ├── NWP-H.bcmap │ │ ├── NWP-V.bcmap │ │ ├── RKSJ-H.bcmap │ │ ├── RKSJ-V.bcmap │ │ ├── Roman.bcmap │ │ ├── UniCNS-UCS2-H.bcmap │ │ ├── UniCNS-UCS2-V.bcmap │ │ ├── UniCNS-UTF16-H.bcmap │ │ ├── UniCNS-UTF16-V.bcmap │ │ ├── UniCNS-UTF32-H.bcmap │ │ ├── UniCNS-UTF32-V.bcmap │ │ ├── UniCNS-UTF8-H.bcmap │ │ ├── UniCNS-UTF8-V.bcmap │ │ ├── UniGB-UCS2-H.bcmap │ │ ├── UniGB-UCS2-V.bcmap │ │ ├── UniGB-UTF16-H.bcmap │ │ ├── UniGB-UTF16-V.bcmap │ │ ├── UniGB-UTF32-H.bcmap │ │ ├── UniGB-UTF32-V.bcmap │ │ ├── UniGB-UTF8-H.bcmap │ │ ├── UniGB-UTF8-V.bcmap │ │ ├── UniJIS-UCS2-H.bcmap │ │ ├── UniJIS-UCS2-HW-H.bcmap │ │ ├── UniJIS-UCS2-HW-V.bcmap │ │ ├── UniJIS-UCS2-V.bcmap │ │ ├── UniJIS-UTF16-H.bcmap │ │ ├── UniJIS-UTF16-V.bcmap │ │ ├── UniJIS-UTF32-H.bcmap │ │ ├── UniJIS-UTF32-V.bcmap │ │ ├── UniJIS-UTF8-H.bcmap │ │ ├── UniJIS-UTF8-V.bcmap │ │ ├── UniJIS2004-UTF16-H.bcmap │ │ ├── UniJIS2004-UTF16-V.bcmap │ │ ├── UniJIS2004-UTF32-H.bcmap │ │ ├── UniJIS2004-UTF32-V.bcmap │ │ ├── UniJIS2004-UTF8-H.bcmap │ │ ├── UniJIS2004-UTF8-V.bcmap │ │ ├── UniJISPro-UCS2-HW-V.bcmap │ │ ├── UniJISPro-UCS2-V.bcmap │ │ ├── UniJISPro-UTF8-V.bcmap │ │ ├── UniJISX0213-UTF32-H.bcmap │ │ ├── UniJISX0213-UTF32-V.bcmap │ │ ├── UniJISX02132004-UTF32-H.bcmap │ │ ├── UniJISX02132004-UTF32-V.bcmap │ │ ├── UniKS-UCS2-H.bcmap │ │ ├── UniKS-UCS2-V.bcmap │ │ ├── UniKS-UTF16-H.bcmap │ │ ├── UniKS-UTF16-V.bcmap │ │ ├── UniKS-UTF32-H.bcmap │ │ ├── UniKS-UTF32-V.bcmap │ │ ├── UniKS-UTF8-H.bcmap │ │ ├── UniKS-UTF8-V.bcmap │ │ ├── V.bcmap │ │ └── WP-Symbol.bcmap │ ├── es5 │ │ ├── build │ │ │ ├── pdf.js │ │ │ ├── pdf.js.map │ │ │ ├── pdf.worker.entry.js │ │ │ ├── pdf.worker.js │ │ │ └── pdf.worker.js.map │ │ └── web │ │ │ ├── images │ │ │ ├── annotation-check.svg │ │ │ ├── annotation-comment.svg │ │ │ ├── annotation-help.svg │ │ │ ├── annotation-insert.svg │ │ │ ├── annotation-key.svg │ │ │ ├── annotation-newparagraph.svg │ │ │ ├── annotation-noicon.svg │ │ │ ├── annotation-note.svg │ │ │ ├── annotation-paragraph.svg │ │ │ ├── loading-icon.gif │ │ │ ├── shadow.png │ │ │ └── texture.png │ │ │ ├── pdf_viewer.css │ │ │ ├── pdf_viewer.js │ │ │ └── pdf_viewer.js.map │ ├── image_decoders │ │ ├── pdf.image_decoders.js │ │ ├── pdf.image_decoders.js.map │ │ └── pdf.image_decoders.min.js │ ├── lib │ │ ├── README.md │ │ ├── core │ │ │ ├── annotation.js │ │ │ ├── arithmetic_decoder.js │ │ │ ├── bidi.js │ │ │ ├── ccitt.js │ │ │ ├── ccitt_stream.js │ │ │ ├── cff_parser.js │ │ │ ├── charsets.js │ │ │ ├── chunked_stream.js │ │ │ ├── cmap.js │ │ │ ├── colorspace.js │ │ │ ├── core_utils.js │ │ │ ├── crypto.js │ │ │ ├── document.js │ │ │ ├── encodings.js │ │ │ ├── evaluator.js │ │ │ ├── font_renderer.js │ │ │ ├── fonts.js │ │ │ ├── function.js │ │ │ ├── glyphlist.js │ │ │ ├── image.js │ │ │ ├── image_utils.js │ │ │ ├── jbig2.js │ │ │ ├── jbig2_stream.js │ │ │ ├── jpeg_stream.js │ │ │ ├── jpg.js │ │ │ ├── jpx.js │ │ │ ├── jpx_stream.js │ │ │ ├── metrics.js │ │ │ ├── murmurhash3.js │ │ │ ├── obj.js │ │ │ ├── operator_list.js │ │ │ ├── parser.js │ │ │ ├── pattern.js │ │ │ ├── pdf_manager.js │ │ │ ├── primitives.js │ │ │ ├── ps_parser.js │ │ │ ├── standard_fonts.js │ │ │ ├── stream.js │ │ │ ├── type1_parser.js │ │ │ ├── unicode.js │ │ │ ├── worker.js │ │ │ └── worker_stream.js │ │ ├── display │ │ │ ├── annotation_layer.js │ │ │ ├── api.js │ │ │ ├── api_compatibility.js │ │ │ ├── canvas.js │ │ │ ├── content_disposition.js │ │ │ ├── display_utils.js │ │ │ ├── fetch_stream.js │ │ │ ├── font_loader.js │ │ │ ├── metadata.js │ │ │ ├── network.js │ │ │ ├── network_utils.js │ │ │ ├── node_stream.js │ │ │ ├── pattern_helper.js │ │ │ ├── svg.js │ │ │ ├── text_layer.js │ │ │ ├── transport_stream.js │ │ │ ├── webgl.js │ │ │ ├── worker_options.js │ │ │ └── xml_parser.js │ │ ├── examples │ │ │ └── node │ │ │ │ └── domstubs.js │ │ ├── external │ │ │ └── webL10n │ │ │ │ └── l10n.js │ │ ├── pdf.js │ │ ├── pdf.worker.js │ │ ├── shared │ │ │ ├── compatibility.js │ │ │ ├── is_node.js │ │ │ ├── message_handler.js │ │ │ └── util.js │ │ ├── test │ │ │ └── unit │ │ │ │ ├── annotation_spec.js │ │ │ │ ├── api_spec.js │ │ │ │ ├── bidi_spec.js │ │ │ │ ├── cff_parser_spec.js │ │ │ │ ├── clitests_helper.js │ │ │ │ ├── cmap_spec.js │ │ │ │ ├── colorspace_spec.js │ │ │ │ ├── core_utils_spec.js │ │ │ │ ├── crypto_spec.js │ │ │ │ ├── custom_spec.js │ │ │ │ ├── display_svg_spec.js │ │ │ │ ├── display_utils_spec.js │ │ │ │ ├── document_spec.js │ │ │ │ ├── encodings_spec.js │ │ │ │ ├── evaluator_spec.js │ │ │ │ ├── fetch_stream_spec.js │ │ │ │ ├── function_spec.js │ │ │ │ ├── jasmine-boot.js │ │ │ │ ├── message_handler_spec.js │ │ │ │ ├── metadata_spec.js │ │ │ │ ├── murmurhash3_spec.js │ │ │ │ ├── network_spec.js │ │ │ │ ├── network_utils_spec.js │ │ │ │ ├── node_stream_spec.js │ │ │ │ ├── parser_spec.js │ │ │ │ ├── pdf_find_controller_spec.js │ │ │ │ ├── pdf_find_utils_spec.js │ │ │ │ ├── pdf_history_spec.js │ │ │ │ ├── primitives_spec.js │ │ │ │ ├── stream_spec.js │ │ │ │ ├── test_utils.js │ │ │ │ ├── testreporter.js │ │ │ │ ├── type1_parser_spec.js │ │ │ │ ├── ui_utils_spec.js │ │ │ │ ├── unicode_spec.js │ │ │ │ └── util_spec.js │ │ └── web │ │ │ ├── annotation_layer_builder.js │ │ │ ├── app.js │ │ │ ├── app_options.js │ │ │ ├── base_viewer.js │ │ │ ├── chromecom.js │ │ │ ├── debugger.js │ │ │ ├── download_manager.js │ │ │ ├── firefox_print_service.js │ │ │ ├── firefoxcom.js │ │ │ ├── genericcom.js │ │ │ ├── genericl10n.js │ │ │ ├── grab_to_pan.js │ │ │ ├── interfaces.js │ │ │ ├── overlay_manager.js │ │ │ ├── password_prompt.js │ │ │ ├── pdf_attachment_viewer.js │ │ │ ├── pdf_cursor_tools.js │ │ │ ├── pdf_document_properties.js │ │ │ ├── pdf_find_bar.js │ │ │ ├── pdf_find_controller.js │ │ │ ├── pdf_find_utils.js │ │ │ ├── pdf_history.js │ │ │ ├── pdf_link_service.js │ │ │ ├── pdf_outline_viewer.js │ │ │ ├── pdf_page_view.js │ │ │ ├── pdf_presentation_mode.js │ │ │ ├── pdf_print_service.js │ │ │ ├── pdf_rendering_queue.js │ │ │ ├── pdf_sidebar.js │ │ │ ├── pdf_sidebar_resizer.js │ │ │ ├── pdf_single_page_viewer.js │ │ │ ├── pdf_thumbnail_view.js │ │ │ ├── pdf_thumbnail_viewer.js │ │ │ ├── pdf_viewer.component.js │ │ │ ├── pdf_viewer.js │ │ │ ├── preferences.js │ │ │ ├── secondary_toolbar.js │ │ │ ├── text_layer_builder.js │ │ │ ├── toolbar.js │ │ │ ├── ui_utils.js │ │ │ ├── view_history.js │ │ │ └── viewer_compatibility.js │ ├── package.json │ ├── web │ │ ├── images │ │ │ ├── annotation-check.svg │ │ │ ├── annotation-comment.svg │ │ │ ├── annotation-help.svg │ │ │ ├── annotation-insert.svg │ │ │ ├── annotation-key.svg │ │ │ ├── annotation-newparagraph.svg │ │ │ ├── annotation-noicon.svg │ │ │ ├── annotation-note.svg │ │ │ ├── annotation-paragraph.svg │ │ │ ├── loading-icon.gif │ │ │ ├── shadow.png │ │ │ └── texture.png │ │ ├── pdf_viewer.css │ │ ├── pdf_viewer.js │ │ └── pdf_viewer.js.map │ └── webpack.js ├── router │ └── index.ts ├── sass │ ├── annotation_layer_builder.scss │ ├── colors.scss │ ├── icons.scss │ ├── index.scss │ ├── pdf_viewer.scss │ ├── text_layer_builder.scss │ ├── variables.scss │ └── viewer.scss ├── shims-tsx.d.ts ├── shims-vue.d.ts ├── types │ └── index.ts ├── utils │ ├── constants.ts │ ├── locale.ts │ ├── pdf-config.ts │ └── toolbar-config.ts └── views │ ├── pdf-app.vue │ ├── sandbox-view.vue │ └── theme-toggling.vue ├── tsconfig.json ├── tsconfig.lib.json ├── vue.config.js └── webpack-icons.config.js /.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | not dead 4 | not ie 11 5 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | es2021: true 5 | }, 6 | extends: [ 7 | 'plugin:vue/vue3-essential', 8 | '@vue/standard', 9 | '@vue/typescript/recommended' 10 | ], 11 | parserOptions: { 12 | ecmaVersion: 2020 13 | }, 14 | rules: { 15 | 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 16 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 17 | '@typescript-eslint/ban-types': 'off', 18 | '@typescript-eslint/no-explicit-any': 'off' 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Please refer FAQ.md of the repo 4 | title: '' 5 | labels: bug 6 | assignees: sandanat 7 | 8 | --- 9 | 10 | Please provide a working example with a bug (git repo, [codesandbox](https://codesandbox.io/), source code at least, etc). 11 | It takes a lot of time to set up environment to confirm an issue. 12 | So I will resolve issues faster. 13 | 14 | #### Configuration: 15 | - Web browser and it`s version: 16 | - Operating system and it`s version: 17 | - vue-pdf-app version: 18 | 19 | #### Steps to reproduce the problem: 20 | 21 | #### What is the expected behavior? 22 | 23 | #### What went wrong? 24 | 25 | #### Attachments (screenshots, links, etc) 26 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: enhancement 6 | assignees: sandanat 7 | 8 | --- 9 | 10 | **Please describe a feature/problem.** 11 | 12 | **Describe the solution you'd like** 13 | 14 | **Describe alternatives you've considered** 15 | 16 | **Additional context** 17 | -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an issue becomes stale 2 | daysUntilStale: 60 3 | # Number of days of inactivity before a stale issue is closed 4 | daysUntilClose: 7 5 | # Issues with these labels will never be considered stale 6 | exemptLabels: 7 | - pinned 8 | - security 9 | # Label to use when marking an issue as stale 10 | staleLabel: stale 11 | # Comment to post when marking an issue as stale. Set to `false` to disable 12 | markComment: > 13 | This issue has been automatically marked as stale because it has not had 14 | recent activity. It will be closed if no further activity occurs. Thank you 15 | for your contributions. 16 | # Comment to post when closing a stale issue. Set to `false` to disable 17 | closeComment: false 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | pnpm-debug.log* 14 | 15 | # Editor directories and files 16 | .idea 17 | .vscode 18 | *.suo 19 | *.ntvs* 20 | *.njsproj 21 | *.sln 22 | *.sw? 23 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # v2.1.0 2 | 3 | ## Features 4 | 5 | 1. Toolbar custom UI 6 | 1. Introduced prop `fileName` 7 | 1. Introduced prop `pageScale` 8 | 1. Introduced prop `pageNumber` 9 | 10 | ## Bugs 11 | 12 | 1. The loading bar (progress bar) is displayed only for the first time - [b87b092](https://github.com/sandanat/vue-pdf-app/commit/b87b092676fa644305266fc5d91d6ef7d8e7b6c1), closes [#48](https://github.com/sandanat/vue-pdf-app/issues/48) 13 | 14 | # v2.0.0 15 | 16 | ## Features 17 | 18 | 1. ⚠️ **breaking** Added pdf-viewer icons customization. Refer [README.md](./README.md "README.md"). 19 | 1. Added pdf viewer color customization via custom css properties. 20 | 1. Added slots for toolbar and footer. 21 | 1. Added events `pages-rendered` and `after-created`. 22 | 1. Added light/dark theme with toggle. 23 | 1. Added `title` prop. 24 | 25 | ## Other 26 | 27 | 1. ⚠️ **breaking** Changed `v-bind:config` prop. Deleted `config.viewerContextMenu` and `config.toolbar.toolbarViewerRight.secondaryToolbarToggle`. Visibility of **secondaryToolbarToggle** depends from `config.secondaryToolbar`. Moved prop `config.findbar` into `config.toolbar.toolbarViewerLeft.findbar`. 28 | 1. ⚠️ **breaking** Renamed `v-bind:config` **toolbar.toolbarViewerMiddle.scaleSelectContatiner** prop to `toolbar.toolbarViewerMiddle.scaleSelectContainer`. 29 | 1. ⚠️ **breaking** Renamed lib from _pdf-viewer_ to _vue-pdf-app_. Use `window["vue-pdf-app"]` instead of `window["pdf-viewer"]` for script tag. 30 | 31 | # v1.0.2 32 | 33 | ## Bugs 34 | 35 | 1. #mainContainer min-width hides secondary toolbar button - [a0b09c4](https://github.com/sandanat/vue-pdf-app/pull/20/commits/a0b09c4b86632f0b816856534f3975a2c0817e62), [PR #20](https://github.com/sandanat/vue-pdf-app/pull/20). 36 | 37 | # v1.0.1 38 | 39 | ## Bugs 40 | 41 | 1. Pdf styles mutate global styles - [dc3c6ba](https://github.com/sandanat/vue-pdf-app/pull/13/commits/dc3c6ba7d9fde22753a9073c117628179e07e63e), closes [#11](https://github.com/sandanat/vue-pdf-app/issues/11). 42 | -------------------------------------------------------------------------------- /FAQ.md: -------------------------------------------------------------------------------- 1 | - [Can I use two pdf viewers on a page?](#can-i-use-two-pdf-viewers-on-a-page) 2 | - [Can I interract with Mozilla's pdfjs library outside the event handlers of pdf viewer?](#can-i-interract-with-mozilla's-pdfjs-library-outside-the-event-handlers-of-pdf-viewer) 3 | - [Can I use pdf viewer in a dialog?](#can-i-use-pdf-viewer-in-a-dialog) 4 | - [Can I set a default page scale when a pdf document is opening?](#can-i-set-a-default-page-scale-when-a-pdf-document-is-opening) 5 | - [Can I programmatically jump to the certain page when a pdf document is opening?](#can-i-programmatically-jump-to-the-certain-page-when-a-pdf-document-is-opening) 6 | 7 | Still have a question? Create an issue! 8 | 9 | # Can I use two pdf viewers on a page? 10 | 11 | It is impossible. The package repeats the structure of Mozilla's pdf viewer and internally it uses elements IDs to bind functionality. When two pdf viewers are used elements with equal IDs are created. That means that only the first pdf viewer can be operable. 12 | 13 | # Can I interract with Mozilla's pdfjs library outside the event handlers of pdf viewer? 14 | 15 | Yes. You can bind pdfjs lib to parent data through `v-on:after-created` event. Make it non-reactive as it is a huge object: 16 | 17 | ```vue 18 | 19 | 20 | 32 | ``` 33 | 34 | # Can I use pdf viewer in a dialog? 35 | 36 | It is possible in most cases. In case of troubles try to add `v-if` to pdf viewer: 37 | 38 | ```vue 39 | 40 | ``` 41 | 42 | # Can I set a default page scale when a pdf document is opening? 43 | 44 | ```vue 45 | 46 | 47 | 64 | ``` 65 | 66 | # Can I programmatically jump to the certain page when a pdf document is opening? 67 | 68 | ```vue 69 | 70 | 71 | 82 | ``` 83 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Andrey S. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /examples/lazy-loading/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | 6 | # local env files 7 | .env.local 8 | .env.*.local 9 | 10 | # Log files 11 | npm-debug.log* 12 | yarn-debug.log* 13 | yarn-error.log* 14 | pnpm-debug.log* 15 | 16 | # Editor directories and files 17 | .idea 18 | .vscode 19 | *.suo 20 | *.ntvs* 21 | *.njsproj 22 | *.sln 23 | *.sw? 24 | -------------------------------------------------------------------------------- /examples/lazy-loading/README.md: -------------------------------------------------------------------------------- 1 | # lazy-loading 2 | 3 | ## Project setup 4 | ``` 5 | npm install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | npm run serve 11 | ``` -------------------------------------------------------------------------------- /examples/lazy-loading/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /examples/lazy-loading/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lazy-loading", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve" 7 | }, 8 | "dependencies": { 9 | "core-js": "^3.6.5", 10 | "vue": "^2.6.11", 11 | "vue-pdf-app": "^2.0.0" 12 | }, 13 | "devDependencies": { 14 | "@vue/cli-plugin-babel": "~4.5.0", 15 | "@vue/cli-plugin-eslint": "~4.5.0", 16 | "@vue/cli-service": "~4.5.0", 17 | "babel-eslint": "^10.1.0", 18 | "eslint": "^6.7.2", 19 | "eslint-plugin-vue": "^6.2.2", 20 | "vue-template-compiler": "^2.6.11" 21 | }, 22 | "eslintConfig": { 23 | "root": true, 24 | "env": { 25 | "node": true 26 | }, 27 | "extends": [ 28 | "plugin:vue/essential", 29 | "eslint:recommended" 30 | ], 31 | "parserOptions": { 32 | "parser": "babel-eslint" 33 | }, 34 | "rules": {} 35 | }, 36 | "browserslist": [ 37 | "> 1%", 38 | "last 2 versions", 39 | "not dead" 40 | ] 41 | } 42 | -------------------------------------------------------------------------------- /examples/lazy-loading/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/examples/lazy-loading/public/favicon.ico -------------------------------------------------------------------------------- /examples/lazy-loading/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | <%= htmlWebpackPlugin.options.title %> 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /examples/lazy-loading/public/sample.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/examples/lazy-loading/public/sample.pdf -------------------------------------------------------------------------------- /examples/lazy-loading/src/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 26 | 27 | 43 | -------------------------------------------------------------------------------- /examples/lazy-loading/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/examples/lazy-loading/src/assets/logo.png -------------------------------------------------------------------------------- /examples/lazy-loading/src/components/Loader.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /examples/lazy-loading/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | 4 | Vue.config.productionTip = false 5 | 6 | new Vue({ 7 | render: h => h(App), 8 | }).$mount('#app') 9 | -------------------------------------------------------------------------------- /examples/script-tag/README.md: -------------------------------------------------------------------------------- 1 | # Launch project 2 | ``` 3 | npm i 4 | npm start 5 | ``` -------------------------------------------------------------------------------- /examples/script-tag/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Vue-pdf-app demo 8 | 10 | 11 | 12 | 19 | 20 | 21 | 22 |
23 | 24 |
25 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /examples/script-tag/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "script-tag", 3 | "version": "1.0.0", 4 | "description": "", 5 | "dependencies": {}, 6 | "devDependencies": { 7 | "live-server": "^1.2.1" 8 | }, 9 | "scripts": { 10 | "start": "live-server" 11 | }, 12 | "author": "", 13 | "license": "ISC" 14 | } 15 | -------------------------------------------------------------------------------- /examples/script-tag/sample.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/examples/script-tag/sample.pdf -------------------------------------------------------------------------------- /examples/the-most-complete-example/.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | not dead 4 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | 6 | # local env files 7 | .env.local 8 | .env.*.local 9 | 10 | # Log files 11 | npm-debug.log* 12 | yarn-debug.log* 13 | yarn-error.log* 14 | pnpm-debug.log* 15 | 16 | # Editor directories and files 17 | .idea 18 | .vscode 19 | *.suo 20 | *.ntvs* 21 | *.njsproj 22 | *.sln 23 | *.sw? 24 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/README.md: -------------------------------------------------------------------------------- 1 | # the-most-complete-example 2 | 3 | ## Project setup 4 | ``` 5 | npm install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | npm run serve 11 | ``` 12 | 13 | ### Compiles and minifies for production 14 | ``` 15 | npm run build 16 | ``` 17 | 18 | ### Customize configuration 19 | See [Configuration Reference](https://cli.vuejs.org/config/). 20 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "the-most-complete-example", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve" 7 | }, 8 | "dependencies": { 9 | "@fortawesome/fontawesome-free": "^5.15.3", 10 | "@mdi/font": "^5.9.55", 11 | "bootstrap-icons": "^1.4.0", 12 | "core-js": "^3.6.5", 13 | "uuid": "^8.3.2", 14 | "vue": "^2.6.11", 15 | "vue-pdf-app": "^2.1.0", 16 | "vue-router": "^3.2.0" 17 | }, 18 | "devDependencies": { 19 | "@vue/cli-plugin-babel": "~4.5.0", 20 | "@vue/cli-plugin-router": "~4.5.0", 21 | "@vue/cli-service": "~4.5.0", 22 | "node-sass": "^4.12.0", 23 | "sass-loader": "^8.0.2", 24 | "vue-template-compiler": "^2.6.11" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/examples/the-most-complete-example/public/favicon.ico -------------------------------------------------------------------------------- /examples/the-most-complete-example/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | <%= htmlWebpackPlugin.options.title %> 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/public/sample.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/examples/the-most-complete-example/public/sample.pdf -------------------------------------------------------------------------------- /examples/the-most-complete-example/src/App.vue: -------------------------------------------------------------------------------- 1 | 21 | 22 | 48 | 49 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/examples/the-most-complete-example/src/assets/logo.png -------------------------------------------------------------------------------- /examples/the-most-complete-example/src/components/Checkbox.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 50 | 51 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/src/main.js: -------------------------------------------------------------------------------- 1 | import "vue-pdf-app/dist/icons/main.css"; 2 | import VuePdfApp from "vue-pdf-app"; 3 | 4 | import Vue from "vue"; 5 | import App from "./App.vue"; 6 | import router from "./router"; 7 | import Checkbox from "./components/Checkbox.vue"; 8 | 9 | Vue.config.productionTip = false; 10 | Vue.component("vue-pdf-app", VuePdfApp); 11 | Vue.component("check-box", Checkbox); 12 | 13 | new Vue({ 14 | router, 15 | render: (h) => h(App) 16 | }).$mount("#app"); 17 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | import VueRouter from "vue-router"; 3 | import Basic from "@/views/Basic.vue"; 4 | import Slots from "@/views/Slots.vue"; 5 | import PdfjsInteraction from "@/views/PdfjsInteraction.vue"; 6 | import ToolbarConfiguration from "@/views/ToolbarConfiguration.vue"; 7 | import ToolbarCustomUI from "@/views/ToolbarCustomUI.vue"; 8 | import ColorCustomization from "@/views/ColorCustomization.vue"; 9 | import IconsCustomization from "@/views/IconsCustomization.vue"; 10 | import ThemeToggling from "@/views/ThemeToggling.vue"; 11 | 12 | Vue.use(VueRouter); 13 | 14 | const routes = [ 15 | { 16 | path: "/", 17 | name: "basic", 18 | component: Basic 19 | }, 20 | { 21 | path: "/toolbar-configuration", 22 | name: "toolbar-configuration", 23 | component: ToolbarConfiguration 24 | }, 25 | { 26 | path: "/toolbar-custom-ui", 27 | name: "toolbar-custom-ui", 28 | component: ToolbarCustomUI 29 | }, 30 | { 31 | path: "/pdfjs-interaction", 32 | name: "pdfjs-interaction", 33 | component: PdfjsInteraction 34 | }, 35 | { 36 | path: "/slots", 37 | name: "slots", 38 | component: Slots 39 | }, 40 | { 41 | path: "/color-customization", 42 | name: "color-customization", 43 | component: ColorCustomization 44 | }, 45 | { 46 | path: "/icons-customization", 47 | name: "icons-customization", 48 | component: IconsCustomization 49 | }, 50 | { 51 | path: "/theme-toggling", 52 | name: "theme-toggling", 53 | component: ThemeToggling 54 | }, 55 | { 56 | path: "/about", 57 | name: "About", 58 | // route level code-splitting 59 | // this generates a separate chunk (about.[hash].js) for this route 60 | // which is lazy-loaded when the route is visited. 61 | component: () => 62 | import(/* webpackChunkName: "about" */ "../views/About.vue") 63 | } 64 | ]; 65 | 66 | const router = new VueRouter({ 67 | mode: "history", 68 | base: process.env.BASE_URL, 69 | routes 70 | }); 71 | 72 | export default router; 73 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/src/views/About.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/src/views/Basic.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/src/views/ColorCustomization.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | 13 | 78 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/src/views/IconsCustomization.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 22 | 23 | 103 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/src/views/PdfjsInteraction.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 58 | 59 | 70 | -------------------------------------------------------------------------------- /examples/the-most-complete-example/src/views/ThemeToggling.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 35 | 36 | -------------------------------------------------------------------------------- /examples/typescript/.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | not dead 4 | -------------------------------------------------------------------------------- /examples/typescript/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | node: true 5 | }, 6 | 'extends': [ 7 | 'plugin:vue/essential', 8 | 'eslint:recommended', 9 | '@vue/typescript/recommended' 10 | ], 11 | parserOptions: { 12 | ecmaVersion: 2020 13 | }, 14 | rules: { 15 | 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 16 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off' 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/typescript/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | 6 | # local env files 7 | .env.local 8 | .env.*.local 9 | 10 | # Log files 11 | npm-debug.log* 12 | yarn-debug.log* 13 | yarn-error.log* 14 | pnpm-debug.log* 15 | 16 | # Editor directories and files 17 | .idea 18 | .vscode 19 | *.suo 20 | *.ntvs* 21 | *.njsproj 22 | *.sln 23 | *.sw? 24 | -------------------------------------------------------------------------------- /examples/typescript/README.md: -------------------------------------------------------------------------------- 1 | # typescript 2 | 3 | ## Project setup 4 | ``` 5 | npm install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | npm run serve 11 | ``` -------------------------------------------------------------------------------- /examples/typescript/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /examples/typescript/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "typescript", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve" 7 | }, 8 | "dependencies": { 9 | "core-js": "^3.6.5", 10 | "vue": "^2.6.11", 11 | "vue-class-component": "^7.2.3", 12 | "vue-pdf-app": "^2.0.0", 13 | "vue-property-decorator": "^8.4.2" 14 | }, 15 | "devDependencies": { 16 | "@typescript-eslint/eslint-plugin": "^2.33.0", 17 | "@typescript-eslint/parser": "^2.33.0", 18 | "@vue/cli-plugin-babel": "~4.5.0", 19 | "@vue/cli-plugin-eslint": "~4.5.0", 20 | "@vue/cli-plugin-typescript": "~4.5.0", 21 | "@vue/cli-service": "~4.5.0", 22 | "@vue/eslint-config-typescript": "^5.0.2", 23 | "eslint": "^6.7.2", 24 | "eslint-plugin-vue": "^6.2.2", 25 | "typescript": "~3.9.3", 26 | "vue-template-compiler": "^2.6.11" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/typescript/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/examples/typescript/public/favicon.ico -------------------------------------------------------------------------------- /examples/typescript/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | <%= htmlWebpackPlugin.options.title %> 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /examples/typescript/public/sample.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/examples/typescript/public/sample.pdf -------------------------------------------------------------------------------- /examples/typescript/src/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | 20 | 31 | -------------------------------------------------------------------------------- /examples/typescript/src/main.ts: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | 4 | Vue.config.productionTip = false 5 | 6 | new Vue({ 7 | render: h => h(App), 8 | }).$mount('#app') 9 | -------------------------------------------------------------------------------- /examples/typescript/src/shims-tsx.d.ts: -------------------------------------------------------------------------------- 1 | import Vue, { VNode } from 'vue' 2 | 3 | declare global { 4 | namespace JSX { 5 | // tslint:disable no-empty-interface 6 | interface Element extends VNode {} 7 | // tslint:disable no-empty-interface 8 | interface ElementClass extends Vue {} 9 | interface IntrinsicElements { 10 | [elem: string]: any; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /examples/typescript/src/shims-vue.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | import Vue from 'vue' 3 | export default Vue 4 | } 5 | -------------------------------------------------------------------------------- /examples/typescript/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "esnext", 4 | "module": "esnext", 5 | "strict": true, 6 | "jsx": "preserve", 7 | "importHelpers": true, 8 | "moduleResolution": "node", 9 | "experimentalDecorators": true, 10 | "skipLibCheck": true, 11 | "esModuleInterop": true, 12 | "allowSyntheticDefaultImports": true, 13 | "sourceMap": true, 14 | "baseUrl": ".", 15 | "types": [ 16 | "webpack-env" 17 | ], 18 | "paths": { 19 | "@/*": [ 20 | "src/*" 21 | ] 22 | }, 23 | "lib": [ 24 | "esnext", 25 | "dom", 26 | "dom.iterable", 27 | "scripthost" 28 | ] 29 | }, 30 | "include": [ 31 | "src/**/*.ts", 32 | "src/**/*.tsx", 33 | "src/**/*.vue", 34 | "tests/**/*.ts", 35 | "tests/**/*.tsx" 36 | ], 37 | "exclude": [ 38 | "node_modules" 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /examples/typescript/vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | lintOnSave: false 3 | } 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue3-pdf-app", 3 | "version": "1.0.3", 4 | "description": "Vue 3 PDF viewer", 5 | "main": "dist/vue3-pdf-app.umd.js", 6 | "unpkg": "dist/vue3-pdf-app.umd.min.js", 7 | "types": "./dist/types/components/pdf-viewer.vue.d.ts", 8 | "repository": { 9 | "type": "git", 10 | "url": "git+https://github.com/stellR42/vue3-pdf-app" 11 | }, 12 | "files": [ 13 | "dist" 14 | ], 15 | "keywords": [ 16 | "vue", 17 | "vuejs", 18 | "pdfjs", 19 | "pdf", 20 | "viewer" 21 | ], 22 | "author": "stellR42", 23 | "license": "MIT", 24 | "bugs": { 25 | "url": "https://github.com/stellR42/vue3-pdf-app/issues" 26 | }, 27 | "homepage": "https://github.com/stellR42/vue3-pdf-app#readme", 28 | "scripts": { 29 | "serve": "vue-cli-service serve", 30 | "build": "vue-cli-service build", 31 | "build:lib": "vue-cli-service build --target lib src/components/pdf-viewer.vue && npm run build:types", 32 | "build:icons": "webpack --config webpack-icons.config.js", 33 | "build:types": "vue-tsc --build tsconfig.lib.json", 34 | "build:npm": "npm run build:lib & npm run build:icons", 35 | "lint": "vue-cli-service lint" 36 | }, 37 | "dependencies": {}, 38 | "peerDependencies": { 39 | "vue": "^3.0.0" 40 | }, 41 | "devDependencies": { 42 | "@mdi/font": "^7.0.96", 43 | "@types/pdfjs-dist": "^2.10.378", 44 | "@typescript-eslint/eslint-plugin": "^5.4.0", 45 | "@typescript-eslint/parser": "^5.4.0", 46 | "@vue/cli-plugin-babel": "~5.0.0", 47 | "@vue/cli-plugin-eslint": "~5.0.0", 48 | "@vue/cli-plugin-router": "~5.0.0", 49 | "@vue/cli-plugin-typescript": "~5.0.0", 50 | "@vue/cli-service": "~5.0.0", 51 | "@vue/eslint-config-standard": "^6.1.0", 52 | "@vue/eslint-config-typescript": "^9.1.0", 53 | "core-js": "^3.8.3", 54 | "eslint": "^7.32.0", 55 | "eslint-plugin-import": "^2.25.3", 56 | "eslint-plugin-node": "^11.1.0", 57 | "eslint-plugin-promise": "^5.1.0", 58 | "eslint-plugin-vue": "^8.0.3", 59 | "mini-css-extract-plugin": "^2.6.1", 60 | "sass": "^1.55.0", 61 | "sass-loader": "^13.1.0", 62 | "svg-url-loader": "^8.0.0", 63 | "typescript": "~4.5.5", 64 | "vue-router": "^4.0.3", 65 | "vue-tsc": "^1.0.9", 66 | "webpack-cli": "^4.10.0" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | <%= htmlWebpackPlugin.options.title %> 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /public/sample.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/public/sample.pdf -------------------------------------------------------------------------------- /readme/algorithm of theme apply.drawio: -------------------------------------------------------------------------------- 1 | 7Vpbe9o4EP01PMIn+SLMYyBJ2222X7d0N8mjwDLWRrYcIW799SthGVvYIQSW0LTpS62RNLZmjs4cibTcQbL8IHAW/8lDwloOCJct97LlOBC6gfpPW1a5BUGQGyaChrmpYhjSH8TMLKwzGpKpseUmyTmTNLONY56mZCwtGxaCL+xhEWehZcjwhNQMwzFmdestDWWcWwOnW9o/EjqJizdD1Mt7ElwMNiuZxjjki4rJvWq5A8G5zJ+S5YAwHbwiLrefVrfs5gF9+OOv6SP+u//5+5d/2rmz65dM2SxBkFQe7HoUf3aSyTfkfXt8XHbR3e1KoML1HLOZidcXblYrV0UISagiappcyJhPeIrZVWntCz5LQ6JfBFSrHHPDeaaMUBn/JVKuDDzwTHJlimXCTG9EGRtwxsX6jS7xoQe0q6kU/IFUevoOAOue/Cv1p23l+ZkgmXFTPhNjsmMcMljFYkLkjgiWSFBbiPCESLFS8wRhWNK5/XHYYHmyGVfmSz2YlL0kfeAcySJLKu8qz/faVcc3rcul8bxurIpGqtZ7Vw7UzftqXzlt3bLmfSWCqoARYYxbaAEgwM1oAcDv/lRoQWdFi1/b7feKmpsQdINHqg5YWceMTlL1PFYR05noz4mQVBHthelIaBjmACNT+gOP1v508DNOU7lejN9v+Zc6gTyVVpqsTa0dk6UVC1MdjNOSk6sJ3LFD6hE37tug4wQmLHsnwXj7qpdVcQW9jmdP4lE0VXDYztvmM/ZK5S68VTLZchBTgeiHdK4eJ/pRxiQhOkhCbWzTrd5WGdEwiU41GjIyphFVJPHEtC3IiJgno5ladX8RU0mGGV7vloWSFDaINjUUGBRc44Qyvdk/EjYnGk+mw7APdJqgl2/0op6vHatX0nSiWqhsfV8TWturU8YIhmHUSBkQdN0e2SxyX4aoYfZJyEHXYNcIKlhgeVHKEwiMLa5IkwCciBfcdxGwq7jvQevOWWkdniNZh4mA8EJLetVMeUpyyzXVy22q6wjgHuw2AcC57KLXA8ARiW0uFW7PpgCn53W6vco/3/aY4884OaqYNAPI+w11wW6S1rrACbpWlgrQHKsT/A7cdtwB7gmUwy5K260cGFf5G0ou9OFaxxQ9zvQxtz+fkXYWRm2cZW0jL4qud4VxmMJoQPV+9PUkeNEWu3h1gbGxxdbdx6kURv3g8VYUxqHn1lMXJmdPZQKPPXE2kxgMbIz54HVLVvB2JE8zfuAz+Pn5pNC+iDvvFUf9LPPLS5ngOSWDAPJsweH8P0qm1wka/Z5exTj7qJjBcGiJl0yQiIhpe6zT0p6Oj9IvsyxTFPKuX06gXzzfQtXmtFTVL93XvCDpnaXaHFg53t4hG77W7XkzjTm+jTff29Iy+QJOpmXqd7kXWcb0wswJawt7LyGQo2kgiiJnPG6CR4hGyEcnpAF366LUbboodRp4AJ2KB2A9VUPC9K/WDgixeChTlteEkSjqwUivKyQRnjH52yZ0k6xioxU/SJ0goapZ/jKf79Ty7xvcq/8A -------------------------------------------------------------------------------- /readme/algorithm-of-theme-apply.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/algorithm-of-theme-apply.jpg -------------------------------------------------------------------------------- /readme/config-legend.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/config-legend.jpg -------------------------------------------------------------------------------- /readme/dialog-buttons.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/dialog-buttons.jpg -------------------------------------------------------------------------------- /readme/dialog-separator.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/dialog-separator.jpg -------------------------------------------------------------------------------- /readme/error-more-info.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/error-more-info.jpg -------------------------------------------------------------------------------- /readme/error-wrapper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/error-wrapper.jpg -------------------------------------------------------------------------------- /readme/find-input-placeholder.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/find-input-placeholder.jpg -------------------------------------------------------------------------------- /readme/find-message.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/find-message.jpg -------------------------------------------------------------------------------- /readme/find-results-count.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/find-results-count.jpg -------------------------------------------------------------------------------- /readme/horizontal-separator.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/horizontal-separator.jpg -------------------------------------------------------------------------------- /readme/loading-bar-color.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/loading-bar-color.jpg -------------------------------------------------------------------------------- /readme/loading-bar-secondary-color.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/loading-bar-secondary-color.jpg -------------------------------------------------------------------------------- /readme/not-found.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/not-found.jpg -------------------------------------------------------------------------------- /readme/sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/sample.png -------------------------------------------------------------------------------- /readme/sidebar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/sidebar.jpg -------------------------------------------------------------------------------- /readme/thumbnail-border.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/thumbnail-border.jpg -------------------------------------------------------------------------------- /readme/toggleable-items.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/toggleable-items.jpg -------------------------------------------------------------------------------- /readme/toolbar-field.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/toolbar-field.jpg -------------------------------------------------------------------------------- /readme/vertical-separator.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/readme/vertical-separator.jpg -------------------------------------------------------------------------------- /src/app.vue: -------------------------------------------------------------------------------- 1 | 15 | 16 | 33 | 34 | 62 | -------------------------------------------------------------------------------- /src/assets/icons/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Font license info 2 | 3 | 4 | ## Font Awesome 5 | 6 | Copyright (C) 2016 by Dave Gandy 7 | 8 | Author: Dave Gandy 9 | License: SIL () 10 | Homepage: http://fortawesome.github.com/Font-Awesome/ 11 | 12 | 13 | ## Fontelico 14 | 15 | Copyright (C) 2012 by Fontello project 16 | 17 | Author: Crowdsourced, for Fontello project 18 | License: SIL (http://scripts.sil.org/OFL) 19 | Homepage: http://fontello.com 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/assets/icons/README.txt: -------------------------------------------------------------------------------- 1 | This webfont is generated by https://fontello.com open source project. 2 | 3 | 4 | ================================================================================ 5 | Please, note, that you should obey original font licenses, used to make this 6 | webfont pack. Details available in LICENSE.txt file. 7 | 8 | - Usually, it's enough to publish content of LICENSE.txt file somewhere on your 9 | site in "About" section. 10 | 11 | - If your project is open-source, usually, it will be ok to make LICENSE.txt 12 | file publicly available in your repository. 13 | 14 | - Fonts, used in Fontello, don't require a clickable link on your site. 15 | But any kind of additional authors crediting is welcome. 16 | ================================================================================ 17 | 18 | 19 | Comments on archive content 20 | --------------------------- 21 | 22 | - /font/* - fonts in different formats 23 | 24 | - /css/* - different kinds of css, for all situations. Should be ok with 25 | twitter bootstrap. Also, you can skip style and assign icon classes 26 | directly to text elements, if you don't mind about IE7. 27 | 28 | - demo.html - demo file, to show your webfont content 29 | 30 | - LICENSE.txt - license info about source fonts, used to build your one. 31 | 32 | - config.json - keeps your settings. You can import it back into fontello 33 | anytime, to continue your work 34 | 35 | 36 | Why so many CSS files ? 37 | ----------------------- 38 | 39 | Because we like to fit all your needs :) 40 | 41 | - basic file, .css - is usually enough, it contains @font-face 42 | and character code definitions 43 | 44 | - *-ie7.css - if you need IE7 support, but still don't wish to put char codes 45 | directly into html 46 | 47 | - *-codes.css and *-ie7-codes.css - if you like to use your own @font-face 48 | rules, but still wish to benefit from css generation. That can be very 49 | convenient for automated asset build systems. When you need to update font - 50 | no need to manually edit files, just override old version with archive 51 | content. See fontello source code for examples. 52 | 53 | - *-embedded.css - basic css file, but with embedded WOFF font, to avoid 54 | CORS issues in Firefox and IE9+, when fonts are hosted on the separate domain. 55 | We strongly recommend to resolve this issue by `Access-Control-Allow-Origin` 56 | server headers. But if you ok with dirty hack - this file is for you. Note, 57 | that data url moved to separate @font-face to avoid problems with 5 | 6 | 8 | 10 | 11 | 12 | 14 | 16 | 17 | 18 | 20 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/assets/images/shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/assets/images/shadow.png -------------------------------------------------------------------------------- /src/assets/images/treeitem-collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/assets/images/treeitem-collapsed.png -------------------------------------------------------------------------------- /src/assets/images/treeitem-collapsed@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/assets/images/treeitem-collapsed@2x.png -------------------------------------------------------------------------------- /src/assets/images/treeitem-expanded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/assets/images/treeitem-expanded.png -------------------------------------------------------------------------------- /src/assets/images/treeitem-expanded@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/assets/images/treeitem-expanded@2x.png -------------------------------------------------------------------------------- /src/components/about-view.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import { createApp } from 'vue' 2 | import App from './app.vue' 3 | import router from '@/router' 4 | 5 | createApp(App).use(router).mount('#app') 6 | -------------------------------------------------------------------------------- /src/pdfjs-dist/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Community Participation Guidelines 2 | 3 | This repository is governed by Mozilla's code of conduct and etiquette guidelines. 4 | For more details, please read the 5 | [Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/). 6 | 7 | ## How to Report 8 | For more information on how to report violations of the Community Participation Guidelines, please read our '[How to Report](https://www.mozilla.org/about/governance/policies/participation/reporting/)' page. 9 | 10 | 16 | -------------------------------------------------------------------------------- /src/pdfjs-dist/README.md: -------------------------------------------------------------------------------- 1 | # PDF.js 2 | 3 | PDF.js is a Portable Document Format (PDF) library that is built with HTML5. 4 | Our goal is to create a general-purpose, web standards-based platform for 5 | parsing and rendering PDFs. 6 | 7 | This is a pre-built version of the PDF.js source code. It is automatically 8 | generated by the build scripts. 9 | 10 | For usage with older browsers/environments, without support for modern features 11 | such as e.g. `async`/`await`, `Promise`, and `ReadableStream`, 12 | please refer to the `es5` folder. 13 | 14 | See https://github.com/mozilla/pdf.js for learning and contributing. 15 | -------------------------------------------------------------------------------- /src/pdfjs-dist/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pdfjs-dist", 3 | "version": "2.4.456", 4 | "main": [ 5 | "build/pdf.js", 6 | "build/pdf.worker.js" 7 | ], 8 | "ignore": [], 9 | "keywords": [ 10 | "Mozilla", 11 | "pdf", 12 | "pdf.js" 13 | ] 14 | } -------------------------------------------------------------------------------- /src/pdfjs-dist/build/pdf.worker.entry.js: -------------------------------------------------------------------------------- 1 | /* Copyright 2020 Mozilla Foundation 2 | * 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | */ 15 | 16 | (typeof window !== "undefined" 17 | ? window 18 | : {} 19 | ).pdfjsWorker = require("./pdf.worker.js"); 20 | -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/78-EUC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/78-EUC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/78-EUC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/78-EUC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/78-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/78-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/78-RKSJ-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/78-RKSJ-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/78-RKSJ-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/78-RKSJ-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/78-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/78-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/78ms-RKSJ-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/78ms-RKSJ-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/78ms-RKSJ-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/78ms-RKSJ-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/83pv-RKSJ-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/83pv-RKSJ-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/90ms-RKSJ-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/90ms-RKSJ-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/90ms-RKSJ-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/90ms-RKSJ-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/90msp-RKSJ-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/90msp-RKSJ-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/90msp-RKSJ-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/90msp-RKSJ-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/90pv-RKSJ-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/90pv-RKSJ-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/90pv-RKSJ-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/90pv-RKSJ-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Add-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Add-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Add-RKSJ-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Add-RKSJ-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Add-RKSJ-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Add-RKSJ-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Add-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Add-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-CNS1-0.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-CNS1-0.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-CNS1-1.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-CNS1-1.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-CNS1-2.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-CNS1-2.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-CNS1-3.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-CNS1-3.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-CNS1-4.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-CNS1-4.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-CNS1-5.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-CNS1-5.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-CNS1-6.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-CNS1-6.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-CNS1-UCS2.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-CNS1-UCS2.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-GB1-0.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-GB1-0.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-GB1-1.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-GB1-1.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-GB1-2.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-GB1-2.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-GB1-3.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-GB1-3.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-GB1-4.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-GB1-4.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-GB1-5.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-GB1-5.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-GB1-UCS2.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-GB1-UCS2.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Japan1-0.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Japan1-0.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Japan1-1.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Japan1-1.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Japan1-2.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Japan1-2.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Japan1-3.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Japan1-3.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Japan1-4.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Japan1-4.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Japan1-5.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Japan1-5.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Japan1-6.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Japan1-6.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Japan1-UCS2.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Japan1-UCS2.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Korea1-0.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Korea1-0.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Korea1-1.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Korea1-1.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Korea1-2.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Korea1-2.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Adobe-Korea1-UCS2.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Adobe-Korea1-UCS2.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/B5-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/B5-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/B5-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/B5-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/B5pc-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/B5pc-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/B5pc-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/B5pc-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/CNS-EUC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/CNS-EUC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/CNS-EUC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/CNS-EUC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/CNS1-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/CNS1-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/CNS1-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/CNS1-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/CNS2-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/CNS2-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/CNS2-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/CNS2-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/ETHK-B5-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/ETHK-B5-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/ETHK-B5-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/ETHK-B5-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/ETen-B5-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/ETen-B5-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/ETen-B5-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/ETen-B5-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/ETenms-B5-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/ETenms-B5-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/ETenms-B5-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/ETenms-B5-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/EUC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/EUC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/EUC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/EUC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Ext-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Ext-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Ext-RKSJ-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Ext-RKSJ-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Ext-RKSJ-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Ext-RKSJ-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Ext-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Ext-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GB-EUC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GB-EUC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GB-EUC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GB-EUC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GB-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GB-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GB-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GB-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBK-EUC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBK-EUC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBK-EUC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBK-EUC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBK2K-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBK2K-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBK2K-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBK2K-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBKp-EUC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBKp-EUC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBKp-EUC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBKp-EUC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBT-EUC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBT-EUC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBT-EUC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBT-EUC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBT-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBT-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBT-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBT-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBTpc-EUC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBTpc-EUC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBTpc-EUC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBTpc-EUC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBpc-EUC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBpc-EUC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/GBpc-EUC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/GBpc-EUC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKdla-B5-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKdla-B5-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKdla-B5-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKdla-B5-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKdlb-B5-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKdlb-B5-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKdlb-B5-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKdlb-B5-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKgccs-B5-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKgccs-B5-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKgccs-B5-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKgccs-B5-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKm314-B5-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKm314-B5-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKm314-B5-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKm314-B5-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKm471-B5-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKm471-B5-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKm471-B5-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKm471-B5-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKscs-B5-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKscs-B5-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/HKscs-B5-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/HKscs-B5-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Hankaku.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Hankaku.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Hiragana.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Hiragana.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSC-EUC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSC-EUC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSC-EUC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSC-EUC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSC-Johab-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSC-Johab-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSC-Johab-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSC-Johab-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSCms-UHC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSCms-UHC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSCms-UHC-HW-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSCms-UHC-HW-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSCms-UHC-HW-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSCms-UHC-HW-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSCms-UHC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSCms-UHC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSCpc-EUC-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSCpc-EUC-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/KSCpc-EUC-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/KSCpc-EUC-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Katakana.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Katakana.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/LICENSE: -------------------------------------------------------------------------------- 1 | %%Copyright: ----------------------------------------------------------- 2 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 3 | %%Copyright: All rights reserved. 4 | %%Copyright: 5 | %%Copyright: Redistribution and use in source and binary forms, with or 6 | %%Copyright: without modification, are permitted provided that the 7 | %%Copyright: following conditions are met: 8 | %%Copyright: 9 | %%Copyright: Redistributions of source code must retain the above 10 | %%Copyright: copyright notice, this list of conditions and the following 11 | %%Copyright: disclaimer. 12 | %%Copyright: 13 | %%Copyright: Redistributions in binary form must reproduce the above 14 | %%Copyright: copyright notice, this list of conditions and the following 15 | %%Copyright: disclaimer in the documentation and/or other materials 16 | %%Copyright: provided with the distribution. 17 | %%Copyright: 18 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 19 | %%Copyright: of its contributors may be used to endorse or promote 20 | %%Copyright: products derived from this software without specific prior 21 | %%Copyright: written permission. 22 | %%Copyright: 23 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 24 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 25 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 26 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 27 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 28 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 29 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 30 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 31 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 34 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 35 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 | %%Copyright: ----------------------------------------------------------- 37 | -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/NWP-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/NWP-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/NWP-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/NWP-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/RKSJ-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/RKSJ-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/RKSJ-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/RKSJ-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/Roman.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/Roman.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniCNS-UCS2-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniCNS-UCS2-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniCNS-UCS2-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniCNS-UCS2-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniCNS-UTF16-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniCNS-UTF16-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniCNS-UTF16-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniCNS-UTF16-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniCNS-UTF32-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniCNS-UTF32-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniCNS-UTF32-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniCNS-UTF32-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniCNS-UTF8-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniCNS-UTF8-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniCNS-UTF8-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniCNS-UTF8-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniGB-UCS2-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniGB-UCS2-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniGB-UCS2-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniGB-UCS2-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniGB-UTF16-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniGB-UTF16-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniGB-UTF16-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniGB-UTF16-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniGB-UTF32-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniGB-UTF32-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniGB-UTF32-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniGB-UTF32-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniGB-UTF8-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniGB-UTF8-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniGB-UTF8-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniGB-UTF8-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS-UCS2-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS-UCS2-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS-UCS2-HW-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS-UCS2-HW-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS-UCS2-HW-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS-UCS2-HW-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS-UCS2-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS-UCS2-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS-UTF16-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS-UTF16-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS-UTF16-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS-UTF16-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS-UTF32-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS-UTF32-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS-UTF32-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS-UTF32-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS-UTF8-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS-UTF8-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS-UTF8-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS-UTF8-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS2004-UTF16-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS2004-UTF16-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS2004-UTF16-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS2004-UTF16-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS2004-UTF32-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS2004-UTF32-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS2004-UTF32-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS2004-UTF32-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS2004-UTF8-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS2004-UTF8-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJIS2004-UTF8-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJIS2004-UTF8-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJISPro-UCS2-HW-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJISPro-UCS2-HW-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJISPro-UCS2-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJISPro-UCS2-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJISPro-UTF8-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJISPro-UTF8-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJISX0213-UTF32-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJISX0213-UTF32-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJISX0213-UTF32-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJISX0213-UTF32-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJISX02132004-UTF32-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJISX02132004-UTF32-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniJISX02132004-UTF32-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniJISX02132004-UTF32-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniKS-UCS2-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniKS-UCS2-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniKS-UCS2-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniKS-UCS2-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniKS-UTF16-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniKS-UTF16-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniKS-UTF16-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniKS-UTF16-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniKS-UTF32-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniKS-UTF32-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniKS-UTF32-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniKS-UTF32-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniKS-UTF8-H.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniKS-UTF8-H.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/UniKS-UTF8-V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/UniKS-UTF8-V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/V.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/V.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/cmaps/WP-Symbol.bcmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/cmaps/WP-Symbol.bcmap -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/build/pdf.worker.entry.js: -------------------------------------------------------------------------------- 1 | /* Copyright 2020 Mozilla Foundation 2 | * 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | */ 15 | 16 | (typeof window !== "undefined" 17 | ? window 18 | : {} 19 | ).pdfjsWorker = require("./pdf.worker.js"); 20 | -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/annotation-check.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/annotation-comment.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 13 | 16 | 17 | -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/annotation-help.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 16 | 18 | 21 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/annotation-insert.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/annotation-key.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/annotation-newparagraph.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/annotation-noicon.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/annotation-note.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 14 | 21 | 28 | 35 | 42 | 43 | -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/annotation-paragraph.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 13 | 16 | 17 | -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/loading-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/es5/web/images/loading-icon.gif -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/es5/web/images/shadow.png -------------------------------------------------------------------------------- /src/pdfjs-dist/es5/web/images/texture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/es5/web/images/texture.png -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/README.md: -------------------------------------------------------------------------------- 1 | It's *very highly* recommended to *not* use these files, but rather use the 2 | pre-built library as found in e.g. the `/build`, `/web`, and `/image_decoders` 3 | folders in the root of this repository. 4 | 5 | Please note that the "lib" build target exists mostly to enable unit-testing in 6 | Node.js/Travis, and that you'll need to handle e.g. any Node.js dependencies 7 | yourself if using the files in this folder. 8 | -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/core/ccitt_stream.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.CCITTFaxStream = void 0; 28 | 29 | var _primitives = require("./primitives.js"); 30 | 31 | var _ccitt = require("./ccitt.js"); 32 | 33 | var _stream = require("./stream.js"); 34 | 35 | var CCITTFaxStream = function CCITTFaxStreamClosure() { 36 | function CCITTFaxStream(str, maybeLength, params) { 37 | this.str = str; 38 | this.dict = str.dict; 39 | 40 | if (!(0, _primitives.isDict)(params)) { 41 | params = _primitives.Dict.empty; 42 | } 43 | 44 | const source = { 45 | next() { 46 | return str.getByte(); 47 | } 48 | 49 | }; 50 | this.ccittFaxDecoder = new _ccitt.CCITTFaxDecoder(source, { 51 | K: params.get("K"), 52 | EndOfLine: params.get("EndOfLine"), 53 | EncodedByteAlign: params.get("EncodedByteAlign"), 54 | Columns: params.get("Columns"), 55 | Rows: params.get("Rows"), 56 | EndOfBlock: params.get("EndOfBlock"), 57 | BlackIs1: params.get("BlackIs1") 58 | }); 59 | 60 | _stream.DecodeStream.call(this, maybeLength); 61 | } 62 | 63 | CCITTFaxStream.prototype = Object.create(_stream.DecodeStream.prototype); 64 | 65 | CCITTFaxStream.prototype.readBlock = function () { 66 | while (!this.eof) { 67 | const c = this.ccittFaxDecoder.readNextChar(); 68 | 69 | if (c === -1) { 70 | this.eof = true; 71 | return; 72 | } 73 | 74 | this.ensureBuffer(this.bufferLength + 1); 75 | this.buffer[this.bufferLength++] = c; 76 | } 77 | }; 78 | 79 | return CCITTFaxStream; 80 | }(); 81 | 82 | exports.CCITTFaxStream = CCITTFaxStream; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/core/image_utils.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.NativeImageDecoder = void 0; 28 | 29 | var _colorspace = require("./colorspace.js"); 30 | 31 | var _jpeg_stream = require("./jpeg_stream.js"); 32 | 33 | var _stream = require("./stream.js"); 34 | 35 | class NativeImageDecoder { 36 | constructor({ 37 | xref, 38 | resources, 39 | handler, 40 | forceDataSchema = false, 41 | pdfFunctionFactory 42 | }) { 43 | this.xref = xref; 44 | this.resources = resources; 45 | this.handler = handler; 46 | this.forceDataSchema = forceDataSchema; 47 | this.pdfFunctionFactory = pdfFunctionFactory; 48 | } 49 | 50 | canDecode(image) { 51 | return image instanceof _jpeg_stream.JpegStream && NativeImageDecoder.isDecodable(image, this.xref, this.resources, this.pdfFunctionFactory) && image.maybeValidDimensions; 52 | } 53 | 54 | decode(image) { 55 | const dict = image.dict; 56 | let colorSpace = dict.get("ColorSpace", "CS"); 57 | colorSpace = _colorspace.ColorSpace.parse(colorSpace, this.xref, this.resources, this.pdfFunctionFactory); 58 | return this.handler.sendWithPromise("JpegDecode", [image.getIR(this.forceDataSchema), colorSpace.numComps]).then(function ({ 59 | data, 60 | width, 61 | height 62 | }) { 63 | return new _stream.Stream(data, 0, data.length, dict); 64 | }); 65 | } 66 | 67 | static isSupported(image, xref, res, pdfFunctionFactory) { 68 | const dict = image.dict; 69 | 70 | if (dict.has("DecodeParms") || dict.has("DP")) { 71 | return false; 72 | } 73 | 74 | const cs = _colorspace.ColorSpace.parse(dict.get("ColorSpace", "CS"), xref, res, pdfFunctionFactory); 75 | 76 | return (cs.name === "DeviceGray" || cs.name === "DeviceRGB") && cs.isDefaultDecode(dict.getArray("Decode", "D")); 77 | } 78 | 79 | static isDecodable(image, xref, res, pdfFunctionFactory) { 80 | const dict = image.dict; 81 | 82 | if (dict.has("DecodeParms") || dict.has("DP")) { 83 | return false; 84 | } 85 | 86 | const cs = _colorspace.ColorSpace.parse(dict.get("ColorSpace", "CS"), xref, res, pdfFunctionFactory); 87 | 88 | const bpc = dict.get("BitsPerComponent", "BPC") || 1; 89 | return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray("Decode", "D"), bpc); 90 | } 91 | 92 | } 93 | 94 | exports.NativeImageDecoder = NativeImageDecoder; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/core/jbig2_stream.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.Jbig2Stream = void 0; 28 | 29 | var _primitives = require("./primitives.js"); 30 | 31 | var _stream = require("./stream.js"); 32 | 33 | var _jbig = require("./jbig2.js"); 34 | 35 | var _util = require("../shared/util.js"); 36 | 37 | const Jbig2Stream = function Jbig2StreamClosure() { 38 | function Jbig2Stream(stream, maybeLength, dict, params) { 39 | this.stream = stream; 40 | this.maybeLength = maybeLength; 41 | this.dict = dict; 42 | this.params = params; 43 | 44 | _stream.DecodeStream.call(this, maybeLength); 45 | } 46 | 47 | Jbig2Stream.prototype = Object.create(_stream.DecodeStream.prototype); 48 | Object.defineProperty(Jbig2Stream.prototype, "bytes", { 49 | get() { 50 | return (0, _util.shadow)(this, "bytes", this.stream.getBytes(this.maybeLength)); 51 | }, 52 | 53 | configurable: true 54 | }); 55 | 56 | Jbig2Stream.prototype.ensureBuffer = function (requested) {}; 57 | 58 | Jbig2Stream.prototype.readBlock = function () { 59 | if (this.eof) { 60 | return; 61 | } 62 | 63 | const jbig2Image = new _jbig.Jbig2Image(); 64 | const chunks = []; 65 | 66 | if ((0, _primitives.isDict)(this.params)) { 67 | const globalsStream = this.params.get("JBIG2Globals"); 68 | 69 | if ((0, _primitives.isStream)(globalsStream)) { 70 | const globals = globalsStream.getBytes(); 71 | chunks.push({ 72 | data: globals, 73 | start: 0, 74 | end: globals.length 75 | }); 76 | } 77 | } 78 | 79 | chunks.push({ 80 | data: this.bytes, 81 | start: 0, 82 | end: this.bytes.length 83 | }); 84 | const data = jbig2Image.parseChunks(chunks); 85 | const dataLength = data.length; 86 | 87 | for (let i = 0; i < dataLength; i++) { 88 | data[i] ^= 0xff; 89 | } 90 | 91 | this.buffer = data; 92 | this.bufferLength = dataLength; 93 | this.eof = true; 94 | }; 95 | 96 | return Jbig2Stream; 97 | }(); 98 | 99 | exports.Jbig2Stream = Jbig2Stream; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/display/api_compatibility.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | const compatibilityParams = Object.create(null); 25 | { 26 | const { 27 | isNodeJS 28 | } = require("../shared/is_node.js"); 29 | 30 | const userAgent = typeof navigator !== "undefined" && navigator.userAgent || ""; 31 | const isIE = /Trident/.test(userAgent); 32 | const isIOSChrome = /CriOS/.test(userAgent); 33 | 34 | (function checkOnBlobSupport() { 35 | if (isIE || isIOSChrome) { 36 | compatibilityParams.disableCreateObjectURL = true; 37 | } 38 | })(); 39 | 40 | (function checkFontFaceAndImage() { 41 | if (isNodeJS) { 42 | compatibilityParams.disableFontFace = true; 43 | compatibilityParams.nativeImageDecoderSupport = "none"; 44 | } 45 | })(); 46 | } 47 | exports.apiCompatibilityParams = Object.freeze(compatibilityParams); -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/display/worker_options.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.GlobalWorkerOptions = void 0; 28 | const GlobalWorkerOptions = Object.create(null); 29 | exports.GlobalWorkerOptions = GlobalWorkerOptions; 30 | GlobalWorkerOptions.workerPort = GlobalWorkerOptions.workerPort === undefined ? null : GlobalWorkerOptions.workerPort; 31 | GlobalWorkerOptions.workerSrc = GlobalWorkerOptions.workerSrc === undefined ? "" : GlobalWorkerOptions.workerSrc; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/pdf.worker.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | const pdfjsVersion = '2.4.456'; 25 | const pdfjsBuild = '228a591c'; 26 | 27 | const pdfjsCoreWorker = require("./core/worker.js"); 28 | 29 | exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/shared/compatibility.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | ; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/shared/is_node.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.isNodeJS = void 0; 28 | const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions["nw"] && !process.versions["electron"]; 29 | exports.isNodeJS = isNodeJS; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/test/unit/bidi_spec.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | var _bidi = require("../../core/bidi.js"); 25 | 26 | describe("bidi", function () { 27 | it("should mark text as RTL if more than 30% of text is RTL", function () { 28 | var test = "\u0645\u0635\u0631 Egypt"; 29 | var result = "Egypt \u0631\u0635\u0645"; 30 | var bidiText = (0, _bidi.bidi)(test, -1, false); 31 | expect(bidiText.str).toEqual(result); 32 | expect(bidiText.dir).toEqual("rtl"); 33 | }); 34 | it("should mark text as LTR if less than 30% of text is RTL", function () { 35 | var test = "Egypt is known as \u0645\u0635\u0631 in Arabic."; 36 | var result = "Egypt is known as \u0631\u0635\u0645 in Arabic."; 37 | var bidiText = (0, _bidi.bidi)(test, -1, false); 38 | expect(bidiText.str).toEqual(result); 39 | expect(bidiText.dir).toEqual("ltr"); 40 | }); 41 | }); -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/test/unit/clitests_helper.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | var _util = require("../../shared/util.js"); 25 | 26 | var _is_node = require("../../shared/is_node.js"); 27 | 28 | var _node_stream = require("../../display/node_stream.js"); 29 | 30 | var _api = require("../../display/api.js"); 31 | 32 | if (!_is_node.isNodeJS) { 33 | throw new Error("The `gulp unittestcli` command can only be used in " + "Node.js environments."); 34 | } 35 | 36 | (0, _util.setVerbosityLevel)(_util.VerbosityLevel.ERRORS); 37 | (0, _api.setPDFNetworkStreamFactory)(function (params) { 38 | return new _node_stream.PDFNodeStream(params); 39 | }); -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/test/unit/document_spec.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | var _test_utils = require("./test_utils.js"); 25 | 26 | describe("document", function () { 27 | describe("Page", function () { 28 | it("should create correct objId using the idFactory", function () { 29 | const idFactory1 = (0, _test_utils.createIdFactory)(0); 30 | const idFactory2 = (0, _test_utils.createIdFactory)(1); 31 | expect(idFactory1.createObjId()).toEqual("p0_1"); 32 | expect(idFactory1.createObjId()).toEqual("p0_2"); 33 | expect(idFactory1.getDocId()).toEqual("g_d0"); 34 | expect(idFactory2.createObjId()).toEqual("p1_1"); 35 | expect(idFactory2.createObjId()).toEqual("p1_2"); 36 | expect(idFactory2.getDocId()).toEqual("g_d0"); 37 | expect(idFactory1.createObjId()).toEqual("p0_3"); 38 | expect(idFactory1.createObjId()).toEqual("p0_4"); 39 | expect(idFactory1.getDocId()).toEqual("g_d0"); 40 | }); 41 | }); 42 | }); -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/test/unit/encodings_spec.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | var _encodings = require("../../core/encodings.js"); 25 | 26 | describe("encodings", function () { 27 | describe("getEncoding", function () { 28 | it("fetches a valid array for known encoding names", function () { 29 | const knownEncodingNames = ["ExpertEncoding", "MacExpertEncoding", "MacRomanEncoding", "StandardEncoding", "SymbolSetEncoding", "WinAnsiEncoding", "ZapfDingbatsEncoding"]; 30 | 31 | for (const knownEncodingName of knownEncodingNames) { 32 | const encoding = (0, _encodings.getEncoding)(knownEncodingName); 33 | expect(Array.isArray(encoding)).toEqual(true); 34 | expect(encoding.length).toEqual(256); 35 | 36 | for (const item of encoding) { 37 | expect(typeof item).toEqual("string"); 38 | } 39 | } 40 | }); 41 | it("fetches `null` for unknown encoding names", function () { 42 | expect((0, _encodings.getEncoding)("FooBarEncoding")).toEqual(null); 43 | }); 44 | }); 45 | }); -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/test/unit/murmurhash3_spec.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | var _murmurhash = require("../../core/murmurhash3.js"); 25 | 26 | describe("MurmurHash3_64", function () { 27 | it("instantiates without seed", function () { 28 | var hash = new _murmurhash.MurmurHash3_64(); 29 | expect(hash).toEqual(jasmine.any(_murmurhash.MurmurHash3_64)); 30 | }); 31 | it("instantiates with seed", function () { 32 | var hash = new _murmurhash.MurmurHash3_64(1); 33 | expect(hash).toEqual(jasmine.any(_murmurhash.MurmurHash3_64)); 34 | }); 35 | var hexDigestExpected = "f61cfdbfdae0f65e"; 36 | var sourceText = "test"; 37 | var sourceCharCodes = [116, 101, 115, 116]; 38 | it("correctly generates a hash from a string", function () { 39 | var hash = new _murmurhash.MurmurHash3_64(); 40 | hash.update(sourceText); 41 | expect(hash.hexdigest()).toEqual(hexDigestExpected); 42 | }); 43 | it("correctly generates a hash from a Uint8Array", function () { 44 | var hash = new _murmurhash.MurmurHash3_64(); 45 | hash.update(new Uint8Array(sourceCharCodes)); 46 | expect(hash.hexdigest()).toEqual(hexDigestExpected); 47 | }); 48 | it("correctly generates a hash from a Uint32Array", function () { 49 | var hash = new _murmurhash.MurmurHash3_64(); 50 | hash.update(new Uint32Array(new Uint8Array(sourceCharCodes).buffer)); 51 | expect(hash.hexdigest()).toEqual(hexDigestExpected); 52 | }); 53 | it("changes the hash after update without seed", function () { 54 | var hash = new _murmurhash.MurmurHash3_64(); 55 | var hexdigest1, hexdigest2; 56 | hash.update(sourceText); 57 | hexdigest1 = hash.hexdigest(); 58 | hash.update(sourceText); 59 | hexdigest2 = hash.hexdigest(); 60 | expect(hexdigest1).not.toEqual(hexdigest2); 61 | }); 62 | it("changes the hash after update with seed", function () { 63 | var hash = new _murmurhash.MurmurHash3_64(1); 64 | var hexdigest1, hexdigest2; 65 | hash.update(sourceText); 66 | hexdigest1 = hash.hexdigest(); 67 | hash.update(sourceText); 68 | hexdigest2 = hash.hexdigest(); 69 | expect(hexdigest1).not.toEqual(hexdigest2); 70 | }); 71 | }); -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/test/unit/pdf_find_utils_spec.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | var _pdf_find_utils = require("../../web/pdf_find_utils.js"); 25 | 26 | describe("pdf_find_utils", function () { 27 | describe("getCharacterType", function () { 28 | it("gets expected character types", function () { 29 | const characters = { 30 | A: _pdf_find_utils.CharacterType.ALPHA_LETTER, 31 | a: _pdf_find_utils.CharacterType.ALPHA_LETTER, 32 | "0": _pdf_find_utils.CharacterType.ALPHA_LETTER, 33 | "5": _pdf_find_utils.CharacterType.ALPHA_LETTER, 34 | Ä: _pdf_find_utils.CharacterType.ALPHA_LETTER, 35 | ä: _pdf_find_utils.CharacterType.ALPHA_LETTER, 36 | _: _pdf_find_utils.CharacterType.ALPHA_LETTER, 37 | " ": _pdf_find_utils.CharacterType.SPACE, 38 | "\t": _pdf_find_utils.CharacterType.SPACE, 39 | "\r": _pdf_find_utils.CharacterType.SPACE, 40 | "\n": _pdf_find_utils.CharacterType.SPACE, 41 | "\xA0": _pdf_find_utils.CharacterType.SPACE, 42 | "-": _pdf_find_utils.CharacterType.PUNCT, 43 | ",": _pdf_find_utils.CharacterType.PUNCT, 44 | ".": _pdf_find_utils.CharacterType.PUNCT, 45 | ";": _pdf_find_utils.CharacterType.PUNCT, 46 | ":": _pdf_find_utils.CharacterType.PUNCT, 47 | "\u2122": _pdf_find_utils.CharacterType.ALPHA_LETTER, 48 | ล: _pdf_find_utils.CharacterType.THAI_LETTER, 49 | 䀀: _pdf_find_utils.CharacterType.HAN_LETTER, 50 | 縷: _pdf_find_utils.CharacterType.HAN_LETTER, 51 | ダ: _pdf_find_utils.CharacterType.KATAKANA_LETTER, 52 | ぐ: _pdf_find_utils.CharacterType.HIRAGANA_LETTER, 53 | タ: _pdf_find_utils.CharacterType.HALFWIDTH_KATAKANA_LETTER 54 | }; 55 | 56 | for (const character in characters) { 57 | const charCode = character.charCodeAt(0); 58 | const type = characters[character]; 59 | expect((0, _pdf_find_utils.getCharacterType)(charCode)).toEqual(type); 60 | } 61 | }); 62 | }); 63 | }); -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/test/unit/stream_spec.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | var _stream = require("../../core/stream.js"); 25 | 26 | var _primitives = require("../../core/primitives.js"); 27 | 28 | describe("stream", function () { 29 | beforeEach(function () { 30 | jasmine.addMatchers({ 31 | toMatchTypedArray(util, customEqualityTesters) { 32 | return { 33 | compare(actual, expected) { 34 | var result = {}; 35 | 36 | if (actual.length !== expected.length) { 37 | result.pass = false; 38 | result.message = "Array length: " + actual.length + ", expected: " + expected.length; 39 | return result; 40 | } 41 | 42 | result.pass = true; 43 | 44 | for (var i = 0, ii = expected.length; i < ii; i++) { 45 | var a = actual[i], 46 | b = expected[i]; 47 | 48 | if (a !== b) { 49 | result.pass = false; 50 | break; 51 | } 52 | } 53 | 54 | return result; 55 | } 56 | 57 | }; 58 | } 59 | 60 | }); 61 | }); 62 | describe("PredictorStream", function () { 63 | it("should decode simple predictor data", function () { 64 | var dict = new _primitives.Dict(); 65 | dict.set("Predictor", 12); 66 | dict.set("Colors", 1); 67 | dict.set("BitsPerComponent", 8); 68 | dict.set("Columns", 2); 69 | var input = new _stream.Stream(new Uint8Array([2, 100, 3, 2, 1, 255, 2, 1, 255]), 0, 9, dict); 70 | var predictor = new _stream.PredictorStream(input, 9, dict); 71 | var result = predictor.getBytes(6); 72 | expect(result).toMatchTypedArray(new Uint8Array([100, 3, 101, 2, 102, 1])); 73 | predictor.reset(); 74 | const clampedResult = predictor.getBytes(6, true); 75 | expect(clampedResult).toEqual(new Uint8ClampedArray([100, 3, 101, 2, 102, 1])); 76 | }); 77 | }); 78 | }); -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/test/unit/testreporter.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | var TestReporter = function (browser, appPath) { 25 | function send(action, json, cb) { 26 | var r = new XMLHttpRequest(); 27 | r.open("POST", action, true); 28 | r.setRequestHeader("Content-Type", "application/json"); 29 | 30 | r.onreadystatechange = function sendTaskResultOnreadystatechange(e) { 31 | if (r.readyState === 4) { 32 | if (r.status !== 200) { 33 | send(action, json, cb); 34 | } else { 35 | if (cb) { 36 | cb(); 37 | } 38 | } 39 | } 40 | }; 41 | 42 | json["browser"] = browser; 43 | r.send(JSON.stringify(json)); 44 | } 45 | 46 | function sendInfo(message) { 47 | send("/info", { 48 | message 49 | }); 50 | } 51 | 52 | function sendResult(status, description, error) { 53 | var message = { 54 | status, 55 | description 56 | }; 57 | 58 | if (typeof error !== "undefined") { 59 | message["error"] = error; 60 | } 61 | 62 | send("/submit_task_results", message); 63 | } 64 | 65 | function sendQuitRequest() { 66 | send("/tellMeToQuit?path=" + escape(appPath), {}); 67 | } 68 | 69 | this.now = function () { 70 | return new Date().getTime(); 71 | }; 72 | 73 | this.jasmineStarted = function (suiteInfo) { 74 | this.runnerStartTime = this.now(); 75 | sendInfo("Started tests for " + browser + "."); 76 | }; 77 | 78 | this.suiteStarted = function (result) {}; 79 | 80 | this.specStarted = function (result) {}; 81 | 82 | this.specDone = function (result) { 83 | if (result.failedExpectations.length === 0) { 84 | sendResult("TEST-PASSED", result.description); 85 | } else { 86 | var failedMessages = ""; 87 | var items = result.failedExpectations; 88 | 89 | for (var i = 0, ii = items.length; i < ii; i++) { 90 | failedMessages += items[i].message + " "; 91 | } 92 | 93 | sendResult("TEST-UNEXPECTED-FAIL", result.description, failedMessages); 94 | } 95 | }; 96 | 97 | this.suiteDone = function (result) {}; 98 | 99 | this.jasmineDone = function () { 100 | setTimeout(sendQuitRequest, 500); 101 | }; 102 | }; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/web/download_manager.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.DownloadManager = void 0; 28 | 29 | var _pdf = require("../pdf"); 30 | 31 | ; 32 | const DISABLE_CREATE_OBJECT_URL = _pdf.apiCompatibilityParams.disableCreateObjectURL || false; 33 | 34 | function download(blobUrl, filename) { 35 | const a = document.createElement("a"); 36 | 37 | if (!a.click) { 38 | throw new Error('DownloadManager: "a.click()" is not supported.'); 39 | } 40 | 41 | a.href = blobUrl; 42 | a.target = "_parent"; 43 | 44 | if ("download" in a) { 45 | a.download = filename; 46 | } 47 | 48 | (document.body || document.documentElement).appendChild(a); 49 | a.click(); 50 | a.remove(); 51 | } 52 | 53 | class DownloadManager { 54 | constructor({ 55 | disableCreateObjectURL = DISABLE_CREATE_OBJECT_URL 56 | }) { 57 | this.disableCreateObjectURL = disableCreateObjectURL; 58 | } 59 | 60 | downloadUrl(url, filename) { 61 | if (!(0, _pdf.createValidAbsoluteUrl)(url, "http://example.com")) { 62 | return; 63 | } 64 | 65 | download(url + "#pdfjs.action=download", filename); 66 | } 67 | 68 | downloadData(data, filename, contentType) { 69 | if (navigator.msSaveBlob) { 70 | navigator.msSaveBlob(new Blob([data], { 71 | type: contentType 72 | }), filename); 73 | return; 74 | } 75 | 76 | const blobUrl = (0, _pdf.createObjectURL)(data, contentType, this.disableCreateObjectURL); 77 | download(blobUrl, filename); 78 | } 79 | 80 | download(blob, url, filename) { 81 | if (navigator.msSaveBlob) { 82 | if (!navigator.msSaveBlob(blob, filename)) { 83 | this.downloadUrl(url, filename); 84 | } 85 | 86 | return; 87 | } 88 | 89 | if (this.disableCreateObjectURL) { 90 | this.downloadUrl(url, filename); 91 | return; 92 | } 93 | 94 | const blobUrl = URL.createObjectURL(blob); 95 | download(blobUrl, filename); 96 | } 97 | 98 | } 99 | 100 | exports.DownloadManager = DownloadManager; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/web/genericcom.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.GenericCom = void 0; 28 | 29 | var _app = require("./app.js"); 30 | 31 | var _preferences = require("./preferences.js"); 32 | 33 | var _download_manager = require("./download_manager.js"); 34 | 35 | var _genericl10n = require("./genericl10n.js"); 36 | 37 | ; 38 | const GenericCom = {}; 39 | exports.GenericCom = GenericCom; 40 | 41 | class GenericPreferences extends _preferences.BasePreferences { 42 | async _writeToStorage(prefObj) { 43 | localStorage.setItem("pdfjs.preferences", JSON.stringify(prefObj)); 44 | } 45 | 46 | async _readFromStorage(prefObj) { 47 | return JSON.parse(localStorage.getItem("pdfjs.preferences")); 48 | } 49 | 50 | } 51 | 52 | class GenericExternalServices extends _app.DefaultExternalServices { 53 | static createDownloadManager(options) { 54 | return new _download_manager.DownloadManager(options); 55 | } 56 | 57 | static createPreferences() { 58 | return new GenericPreferences(); 59 | } 60 | 61 | static createL10n({ 62 | locale = "en-US" 63 | }) { 64 | return new _genericl10n.GenericL10n(locale); 65 | } 66 | 67 | } 68 | 69 | _app.PDFViewerApplication.externalServices = GenericExternalServices; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/web/genericl10n.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.GenericL10n = void 0; 28 | 29 | require("../external/webL10n/l10n.js"); 30 | 31 | const webL10n = document.webL10n; 32 | 33 | class GenericL10n { 34 | constructor(lang) { 35 | this._lang = lang; 36 | this._ready = new Promise((resolve, reject) => { 37 | webL10n.setLanguage(lang, () => { 38 | resolve(webL10n); 39 | }); 40 | }); 41 | } 42 | 43 | async getLanguage() { 44 | const l10n = await this._ready; 45 | return l10n.getLanguage(); 46 | } 47 | 48 | async getDirection() { 49 | const l10n = await this._ready; 50 | return l10n.getDirection(); 51 | } 52 | 53 | async get(property, args, fallback) { 54 | const l10n = await this._ready; 55 | return l10n.get(property, args, fallback); 56 | } 57 | 58 | async translate(element) { 59 | const l10n = await this._ready; 60 | return l10n.translate(element); 61 | } 62 | 63 | } 64 | 65 | exports.GenericL10n = GenericL10n; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/web/interfaces.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.IL10n = exports.IPDFAnnotationLayerFactory = exports.IPDFTextLayerFactory = exports.IRenderableView = exports.IPDFHistory = exports.IPDFLinkService = void 0; 28 | 29 | class IPDFLinkService { 30 | get pagesCount() {} 31 | 32 | get page() {} 33 | 34 | set page(value) {} 35 | 36 | get rotation() {} 37 | 38 | set rotation(value) {} 39 | 40 | get externalLinkEnabled() {} 41 | 42 | set externalLinkEnabled(value) {} 43 | 44 | navigateTo(dest) {} 45 | 46 | getDestinationHash(dest) {} 47 | 48 | getAnchorUrl(hash) {} 49 | 50 | setHash(hash) {} 51 | 52 | executeNamedAction(action) {} 53 | 54 | cachePageRef(pageNum, pageRef) {} 55 | 56 | isPageVisible(pageNumber) {} 57 | 58 | } 59 | 60 | exports.IPDFLinkService = IPDFLinkService; 61 | 62 | class IPDFHistory { 63 | initialize({ 64 | fingerprint, 65 | resetHistory = false, 66 | updateUrl = false 67 | }) {} 68 | 69 | reset() {} 70 | 71 | push({ 72 | namedDest = null, 73 | explicitDest, 74 | pageNumber 75 | }) {} 76 | 77 | pushCurrentPosition() {} 78 | 79 | back() {} 80 | 81 | forward() {} 82 | 83 | } 84 | 85 | exports.IPDFHistory = IPDFHistory; 86 | 87 | class IRenderableView { 88 | get renderingId() {} 89 | 90 | get renderingState() {} 91 | 92 | draw() {} 93 | 94 | resume() {} 95 | 96 | } 97 | 98 | exports.IRenderableView = IRenderableView; 99 | 100 | class IPDFTextLayerFactory { 101 | createTextLayerBuilder(textLayerDiv, pageIndex, viewport, enhanceTextSelection = false, eventBus) {} 102 | 103 | } 104 | 105 | exports.IPDFTextLayerFactory = IPDFTextLayerFactory; 106 | 107 | class IPDFAnnotationLayerFactory { 108 | createAnnotationLayerBuilder(pageDiv, pdfPage, imageResourcesPath = "", renderInteractiveForms = false, l10n = undefined) {} 109 | 110 | } 111 | 112 | exports.IPDFAnnotationLayerFactory = IPDFAnnotationLayerFactory; 113 | 114 | class IL10n { 115 | async getLanguage() {} 116 | 117 | async getDirection() {} 118 | 119 | async get(key, args, fallback) {} 120 | 121 | async translate(element) {} 122 | 123 | } 124 | 125 | exports.IL10n = IL10n; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/web/password_prompt.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.PasswordPrompt = void 0; 28 | 29 | var _ui_utils = require("./ui_utils.js"); 30 | 31 | var _pdf = require("../pdf"); 32 | 33 | class PasswordPrompt { 34 | constructor(options, overlayManager, l10n = _ui_utils.NullL10n) { 35 | this.overlayName = options.overlayName; 36 | this.container = options.container; 37 | this.label = options.label; 38 | this.input = options.input; 39 | this.submitButton = options.submitButton; 40 | this.cancelButton = options.cancelButton; 41 | this.overlayManager = overlayManager; 42 | this.l10n = l10n; 43 | this.updateCallback = null; 44 | this.reason = null; 45 | this.submitButton.addEventListener("click", this.verify.bind(this)); 46 | this.cancelButton.addEventListener("click", this.close.bind(this)); 47 | this.input.addEventListener("keydown", e => { 48 | if (e.keyCode === 13) { 49 | this.verify(); 50 | } 51 | }); 52 | this.overlayManager.register(this.overlayName, this.container, this.close.bind(this), true); 53 | } 54 | 55 | open() { 56 | this.overlayManager.open(this.overlayName).then(() => { 57 | this.input.focus(); 58 | let promptString; 59 | 60 | if (this.reason === _pdf.PasswordResponses.INCORRECT_PASSWORD) { 61 | promptString = this.l10n.get("password_invalid", null, "Invalid password. Please try again."); 62 | } else { 63 | promptString = this.l10n.get("password_label", null, "Enter the password to open this PDF file."); 64 | } 65 | 66 | promptString.then(msg => { 67 | this.label.textContent = msg; 68 | }); 69 | }); 70 | } 71 | 72 | close() { 73 | this.overlayManager.close(this.overlayName).then(() => { 74 | this.input.value = ""; 75 | }); 76 | } 77 | 78 | verify() { 79 | const password = this.input.value; 80 | 81 | if (password && password.length > 0) { 82 | this.close(); 83 | this.updateCallback(password); 84 | } 85 | } 86 | 87 | setUpdateCallback(updateCallback, reason) { 88 | this.updateCallback = updateCallback; 89 | this.reason = reason; 90 | } 91 | 92 | } 93 | 94 | exports.PasswordPrompt = PasswordPrompt; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/web/pdf_viewer.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.PDFViewer = void 0; 28 | 29 | var _base_viewer = require("./base_viewer.js"); 30 | 31 | var _pdf = require("../pdf"); 32 | 33 | class PDFViewer extends _base_viewer.BaseViewer { 34 | get _setDocumentViewerElement() { 35 | return (0, _pdf.shadow)(this, "_setDocumentViewerElement", this.viewer); 36 | } 37 | 38 | _scrollIntoView({ 39 | pageDiv, 40 | pageSpot = null, 41 | pageNumber = null 42 | }) { 43 | if (!pageSpot && !this.isInPresentationMode) { 44 | const left = pageDiv.offsetLeft + pageDiv.clientLeft; 45 | const right = left + pageDiv.clientWidth; 46 | const { 47 | scrollLeft, 48 | clientWidth 49 | } = this.container; 50 | 51 | if (this._isScrollModeHorizontal || left < scrollLeft || right > scrollLeft + clientWidth) { 52 | pageSpot = { 53 | left: 0, 54 | top: 0 55 | }; 56 | } 57 | } 58 | 59 | super._scrollIntoView({ 60 | pageDiv, 61 | pageSpot, 62 | pageNumber 63 | }); 64 | } 65 | 66 | _getVisiblePages() { 67 | if (this.isInPresentationMode) { 68 | return this._getCurrentVisiblePage(); 69 | } 70 | 71 | return super._getVisiblePages(); 72 | } 73 | 74 | _updateHelper(visiblePages) { 75 | if (this.isInPresentationMode) { 76 | return; 77 | } 78 | 79 | let currentId = this._currentPageNumber; 80 | let stillFullyVisible = false; 81 | 82 | for (const page of visiblePages) { 83 | if (page.percent < 100) { 84 | break; 85 | } 86 | 87 | if (page.id === currentId) { 88 | stillFullyVisible = true; 89 | break; 90 | } 91 | } 92 | 93 | if (!stillFullyVisible) { 94 | currentId = visiblePages[0].id; 95 | } 96 | 97 | this._setCurrentPageNumber(currentId); 98 | } 99 | 100 | } 101 | 102 | exports.PDFViewer = PDFViewer; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/web/view_history.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | Object.defineProperty(exports, "__esModule", { 25 | value: true 26 | }); 27 | exports.ViewHistory = void 0; 28 | const DEFAULT_VIEW_HISTORY_CACHE_SIZE = 20; 29 | 30 | class ViewHistory { 31 | constructor(fingerprint, cacheSize = DEFAULT_VIEW_HISTORY_CACHE_SIZE) { 32 | this.fingerprint = fingerprint; 33 | this.cacheSize = cacheSize; 34 | this._initializedPromise = this._readFromStorage().then(databaseStr => { 35 | const database = JSON.parse(databaseStr || "{}"); 36 | 37 | if (!("files" in database)) { 38 | database.files = []; 39 | } else { 40 | while (database.files.length >= this.cacheSize) { 41 | database.files.shift(); 42 | } 43 | } 44 | 45 | let index = -1; 46 | 47 | for (let i = 0, length = database.files.length; i < length; i++) { 48 | const branch = database.files[i]; 49 | 50 | if (branch.fingerprint === this.fingerprint) { 51 | index = i; 52 | break; 53 | } 54 | } 55 | 56 | if (index === -1) { 57 | index = database.files.push({ 58 | fingerprint: this.fingerprint 59 | }) - 1; 60 | } 61 | 62 | this.file = database.files[index]; 63 | this.database = database; 64 | }); 65 | } 66 | 67 | async _writeToStorage() { 68 | const databaseStr = JSON.stringify(this.database); 69 | localStorage.setItem("pdfjs.history", databaseStr); 70 | } 71 | 72 | async _readFromStorage() { 73 | return localStorage.getItem("pdfjs.history"); 74 | } 75 | 76 | async set(name, val) { 77 | await this._initializedPromise; 78 | this.file[name] = val; 79 | return this._writeToStorage(); 80 | } 81 | 82 | async setMultiple(properties) { 83 | await this._initializedPromise; 84 | 85 | for (const name in properties) { 86 | this.file[name] = properties[name]; 87 | } 88 | 89 | return this._writeToStorage(); 90 | } 91 | 92 | async get(name, defaultValue) { 93 | await this._initializedPromise; 94 | const val = this.file[name]; 95 | return val !== undefined ? val : defaultValue; 96 | } 97 | 98 | async getMultiple(properties) { 99 | await this._initializedPromise; 100 | const values = Object.create(null); 101 | 102 | for (const name in properties) { 103 | const val = this.file[name]; 104 | values[name] = val !== undefined ? val : properties[name]; 105 | } 106 | 107 | return values; 108 | } 109 | 110 | } 111 | 112 | exports.ViewHistory = ViewHistory; -------------------------------------------------------------------------------- /src/pdfjs-dist/lib/web/viewer_compatibility.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @licstart The following is the entire license notice for the 3 | * Javascript code in this page 4 | * 5 | * Copyright 2020 Mozilla Foundation 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * 19 | * @licend The above is the entire license notice for the 20 | * Javascript code in this page 21 | */ 22 | "use strict"; 23 | 24 | const compatibilityParams = Object.create(null); 25 | { 26 | const userAgent = typeof navigator !== "undefined" && navigator.userAgent || ""; 27 | const platform = typeof navigator !== "undefined" && navigator.platform || ""; 28 | const maxTouchPoints = typeof navigator !== "undefined" && navigator.maxTouchPoints || 1; 29 | const isAndroid = /Android/.test(userAgent); 30 | const isIOS = /\b(iPad|iPhone|iPod)(?=;)/.test(userAgent) || platform === "MacIntel" && maxTouchPoints > 1; 31 | 32 | (function checkCanvasSizeLimitation() { 33 | if (isIOS || isAndroid) { 34 | compatibilityParams.maxCanvasPixels = 5242880; 35 | } 36 | })(); 37 | } 38 | exports.viewerCompatibilityParams = Object.freeze(compatibilityParams); -------------------------------------------------------------------------------- /src/pdfjs-dist/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "_from": "pdfjs-dist", 3 | "_id": "pdfjs-dist@2.4.456", 4 | "_inBundle": false, 5 | "_integrity": "sha512-yckJEHq3F48hcp6wStEpbN9McOj328Ib09UrBlGAKxvN2k+qYPN5iq6TH6jD1C0pso7zTep+g/CKsYgdrQd5QA==", 6 | "_location": "/pdfjs-dist", 7 | "_phantomChildren": {}, 8 | "_requested": { 9 | "type": "tag", 10 | "registry": true, 11 | "raw": "pdfjs-dist", 12 | "name": "pdfjs-dist", 13 | "escapedName": "pdfjs-dist", 14 | "rawSpec": "", 15 | "saveSpec": null, 16 | "fetchSpec": "latest" 17 | }, 18 | "_requiredBy": [ 19 | "#USER", 20 | "/" 21 | ], 22 | "_resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-2.4.456.tgz", 23 | "_shasum": "0eaad2906cda866bbb393e79a0e5b4e68bd75520", 24 | "_spec": "pdfjs-dist", 25 | "_where": "C:\\_my folder\\repos\\pdf-viewer", 26 | "browser": { 27 | "fs": false, 28 | "http": false, 29 | "https": false, 30 | "url": false, 31 | "zlib": false 32 | }, 33 | "bugs": { 34 | "url": "https://github.com/mozilla/pdf.js/issues" 35 | }, 36 | "bundleDependencies": false, 37 | "deprecated": false, 38 | "description": "Generic build of Mozilla's PDF.js library.", 39 | "format": "amd", 40 | "homepage": "http://mozilla.github.io/pdf.js/", 41 | "keywords": [ 42 | "Mozilla", 43 | "pdf", 44 | "pdf.js" 45 | ], 46 | "license": "Apache-2.0", 47 | "main": "build/pdf.js", 48 | "name": "pdfjs-dist", 49 | "repository": { 50 | "type": "git", 51 | "url": "git+https://github.com/mozilla/pdfjs-dist.git" 52 | }, 53 | "version": "2.4.456" 54 | } 55 | -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/annotation-check.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/annotation-comment.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 13 | 16 | 17 | -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/annotation-help.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 16 | 18 | 21 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/annotation-insert.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/annotation-key.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/annotation-newparagraph.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/annotation-noicon.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/annotation-note.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 14 | 21 | 28 | 35 | 42 | 43 | -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/annotation-paragraph.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 13 | 16 | 17 | -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/loading-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/web/images/loading-icon.gif -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/web/images/shadow.png -------------------------------------------------------------------------------- /src/pdfjs-dist/web/images/texture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellR42/vue3-pdf-app/7c8f8200fb499384428d3e679f5032fae959d53b/src/pdfjs-dist/web/images/texture.png -------------------------------------------------------------------------------- /src/pdfjs-dist/webpack.js: -------------------------------------------------------------------------------- 1 | /* Copyright 2020 Mozilla Foundation 2 | * 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | */ 15 | 16 | "use strict"; 17 | 18 | try { 19 | require.resolve("worker-loader"); 20 | } catch (ex) { 21 | throw new Error( 22 | "Cannot find the `worker-loader` package, please make sure that it's correctly installed." 23 | ); 24 | } 25 | 26 | var pdfjs = require("./build/pdf.js"); 27 | var PdfjsWorker = require("worker-loader!./build/pdf.worker.js"); 28 | 29 | if (typeof window !== "undefined" && "Worker" in window) { 30 | pdfjs.GlobalWorkerOptions.workerPort = new PdfjsWorker(); 31 | } 32 | 33 | module.exports = pdfjs; 34 | -------------------------------------------------------------------------------- /src/router/index.ts: -------------------------------------------------------------------------------- 1 | import { createRouter, createWebHistory } from 'vue-router' 2 | import PdfViewer from '@/views/pdf-app.vue' 3 | import ThemeToggling from '@/views/theme-toggling.vue' 4 | import About from '@/components/about-view.vue' 5 | import Sandbox from '@/views/sandbox-view.vue' 6 | 7 | export default createRouter({ 8 | history: createWebHistory(process.env.BASE_URL), 9 | routes: [ 10 | { 11 | path: '/', 12 | name: 'home', 13 | component: PdfViewer 14 | }, 15 | { 16 | path: '/theme-toggling', 17 | name: 'theme-togglingh', 18 | component: ThemeToggling 19 | }, 20 | { 21 | path: '/sandbox', 22 | name: 'sandbox', 23 | component: Sandbox 24 | }, 25 | { 26 | path: '/about', 27 | name: 'about', 28 | component: About 29 | } 30 | ] 31 | }) 32 | -------------------------------------------------------------------------------- /src/sass/index.scss: -------------------------------------------------------------------------------- 1 | @import "@/sass/text_layer_builder.scss"; 2 | @import "@/sass/annotation_layer_builder.scss"; 3 | @import "@/sass/pdf_viewer.scss"; 4 | @import "@/sass/viewer.scss"; -------------------------------------------------------------------------------- /src/sass/text_layer_builder.scss: -------------------------------------------------------------------------------- 1 | /* Copyright 2014 Mozilla Foundation 2 | * 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | */ 15 | 16 | .pdf-app .textLayer { 17 | position: absolute; 18 | left: 0; 19 | top: 0; 20 | right: 0; 21 | bottom: 0; 22 | overflow: hidden; 23 | opacity: 0.2; 24 | line-height: 1; 25 | } 26 | 27 | .pdf-app .textLayer > span { 28 | color: transparent; 29 | position: absolute; 30 | white-space: pre; 31 | cursor: text; 32 | transform-origin: 0% 0%; 33 | } 34 | 35 | .pdf-app .textLayer .highlight { 36 | margin: -1px; 37 | padding: 1px; 38 | background-color: rgba(180, 0, 170, 1); 39 | border-radius: 4px; 40 | } 41 | 42 | .pdf-app .textLayer .highlight.begin { 43 | border-radius: 4px 0px 0px 4px; 44 | } 45 | 46 | .pdf-app .textLayer .highlight.end { 47 | border-radius: 0px 4px 4px 0px; 48 | } 49 | 50 | .pdf-app .textLayer .highlight.middle { 51 | border-radius: 0px; 52 | } 53 | 54 | .pdf-app .textLayer .highlight.selected { 55 | background-color: rgba(0, 100, 0, 1); 56 | } 57 | 58 | .pdf-app .textLayer ::selection { 59 | background: rgba(0, 0, 255, 1); 60 | } 61 | 62 | .pdf-app .textLayer .endOfContent { 63 | display: block; 64 | position: absolute; 65 | left: 0px; 66 | top: 100%; 67 | right: 0px; 68 | bottom: 0px; 69 | z-index: -1; 70 | cursor: default; 71 | user-select: none; 72 | } 73 | 74 | .pdf-app .textLayer .endOfContent.active { 75 | top: 0px; 76 | } 77 | -------------------------------------------------------------------------------- /src/sass/variables.scss: -------------------------------------------------------------------------------- 1 | $pdf-sidebar-transition-duration: 200ms; 2 | $pdf-sidebar-transition-timing-function: ease; 3 | 4 | $pdf-app-background-color: rgb(29, 38, 54); 5 | $pdf-sidebar-content-color: rgba(36, 54, 78, 0.5); 6 | $pdf-toolbar-sidebar-color: rgb(36, 54, 78); 7 | $pdf-toolbar-color: rgb(36, 54, 78); 8 | $pdf-loading-bar-color: rgb(96, 108, 136); 9 | $pdf-loading-bar-secondary-color: rgb(17, 236, 229); 10 | $pdf-find-results-count-color: rgba(217, 217, 217, 1); 11 | $pdf-find-results-count-font-color: rgba(82, 82, 82, 1); 12 | $pdf-find-message-font-color: rgba(166, 183, 208, 1); 13 | $pdf-not-found-color: rgba(255, 102, 102, 1); 14 | $pdf-split-toolbar-button-separator-color: rgb(255, 255, 255); 15 | $pdf-toolbar-font-color: rgba(217, 217, 217, 1); 16 | $pdf-button-hover-font-color: rgb(17, 236, 229); 17 | $pdf-button-toggled-color: rgb(96, 108, 136); 18 | $pdf-horizontal-toolbar-separator-color: rgb(255, 255, 255); 19 | $pdf-input-color: rgb(96, 108, 136); 20 | $pdf-input-font-color: rgba(217, 217, 217, 1); 21 | $pdf-find-input-placeholder-font-color: rgb(17, 236, 229); 22 | $pdf-thumbnail-selection-ring-color: rgba(255, 255, 255, 0.15); 23 | $pdf-thumbnail-selection-ring-selected-color: rgba(255, 255, 255, 0.3); 24 | $pdf-error-wrapper-color: rgba(255, 85, 85, 1); 25 | $pdf-error-more-info-color: rgba(217, 217, 217, 1); 26 | $pdf-error-more-info-font-color: rgba(0, 0, 0, 1); 27 | $pdf-overlay-container-color: rgba(0, 0, 0, 0.2); 28 | $pdf-overlay-container-dialog-color: rgb(36, 54, 78); 29 | $pdf-overlay-container-dialog-font-color: rgba(217, 217, 217, 1); 30 | $pdf-overlay-container-dialog-separator-color: rgb(255, 255, 255); 31 | $pdf-dialog-button-color: rgb(96, 108, 136); 32 | $pdf-dialog-button-font-color: rgba(217, 217, 217, 1); 33 | 34 | // light theme 35 | $pdf-app-background-color-light: rgba(108, 117, 125, 0.3); 36 | $pdf-sidebar-content-color-light: rgb(108, 117, 125, 0.4); 37 | $pdf-toolbar-sidebar-color-light: rgba(108, 117, 125, 0.7); 38 | $pdf-toolbar-color-light: rgb(108, 117, 125); 39 | $pdf-loading-bar-color-light: rgb(63, 75, 91);; 40 | $pdf-loading-bar-secondary-color-light: rgb(141, 208, 255);; 41 | $pdf-find-results-count-color-light: rgb(63, 75, 91); 42 | $pdf-find-results-count-font-color-light: rgba(255, 255, 255, 0.87); 43 | $pdf-find-message-font-color-light: rgba(255, 255, 255, 0.87); 44 | $pdf-not-found-color-light: brown; 45 | $pdf-split-toolbar-button-separator-color-light: black; 46 | $pdf-toolbar-font-color-light: rgba(255, 255, 255, 0.87); 47 | $pdf-button-hover-font-color-light: rgb(141, 208, 255); 48 | $pdf-button-toggled-color-light: rgb(63, 75, 91); 49 | $pdf-horizontal-toolbar-separator-color-light: black; 50 | $pdf-input-color-light: rgb(63, 75, 91); 51 | $pdf-input-font-color-light: rgba(217, 217, 217, 1); 52 | $pdf-find-input-placeholder-font-color-light: rgb(141, 208, 255); 53 | $pdf-thumbnail-selection-ring-color-light: rgba(108, 117, 125, 0.7); 54 | $pdf-thumbnail-selection-ring-selected-color-light: rgb(63, 75, 91); 55 | $pdf-error-wrapper-color-light: rgba(255, 85, 85, 1); 56 | $pdf-error-more-info-color-light: rgba(217, 217, 217, 1); 57 | $pdf-error-more-info-font-color-light: rgba(0, 0, 0, 1); 58 | $pdf-overlay-container-color-light: rgba(108, 117, 125, 0.7); 59 | $pdf-overlay-container-dialog-color-light: rgb(108, 117, 125); 60 | $pdf-overlay-container-dialog-font-color-light: rgba(217, 217, 217, 1); 61 | $pdf-overlay-container-dialog-separator-color-light: black; 62 | $pdf-dialog-button-color-light: rgb(63, 75, 91);; 63 | $pdf-dialog-button-font-color-light: rgba(217, 217, 217, 1); 64 | -------------------------------------------------------------------------------- /src/shims-tsx.d.ts: -------------------------------------------------------------------------------- 1 | import Vue, { VNode } from 'vue' 2 | 3 | declare global { 4 | namespace JSX { 5 | // tslint:disable no-empty-interface 6 | interface Element extends VNode {} 7 | // tslint:disable no-empty-interface 8 | interface ElementClass extends Vue {} 9 | interface IntrinsicElements { 10 | [elem: string]: any; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/shims-vue.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | import Vue from 'vue' 3 | export default Vue 4 | } 5 | -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- 1 | export type ToolbarConfValue = boolean | ToolbarConfig | undefined; 2 | 3 | export interface ToolbarConfig { 4 | [key: string]: ToolbarConfValue; 5 | } 6 | 7 | export type Theme = "dark" | "light"; 8 | 9 | export type PageScale = 10 | | number 11 | | "page-actual" 12 | | "page-width" 13 | | "page-height" 14 | | "page-fit" 15 | | "auto"; 16 | 17 | export interface ToolbarIdConfig { 18 | cursorHandTool?: string; 19 | cursorSelectTool?: string; 20 | documentProperties?: string; 21 | download?: string; 22 | findbar?: string; 23 | findEntireWord?: string; 24 | findHighlightAll?: string; 25 | findInput?: string; 26 | findMatchCase?: string; 27 | findMessage?: string; 28 | findNext?: string; 29 | findPrevious?: string; 30 | findResultsCount?: string; 31 | firstPage?: string; 32 | lastPage?: string; 33 | nextPage?: string; 34 | numPages?: string; 35 | openFile?: string; 36 | pageNumber?: string; 37 | pageRotateCcw?: string; 38 | pageRotateCw?: string; 39 | presentationMode?: string; 40 | previousPage?: string; 41 | print?: string; 42 | scrollHorizontal?: string; 43 | scrollVertical?: string; 44 | scrollWrapped?: string; 45 | sidebarToggle?: string; 46 | spreadEven?: string; 47 | spreadNone?: string; 48 | spreadOdd?: string; 49 | toggleFindbar?: string; 50 | viewAttachments?: string; 51 | viewBookmark?: string; 52 | viewOutline?: string; 53 | viewThumbnail?: string; 54 | zoomIn?: string; 55 | zoomOut?: string; 56 | } 57 | -------------------------------------------------------------------------------- /src/utils/constants.ts: -------------------------------------------------------------------------------- 1 | export const PDF_FILE_INPUT_ID = "pdfFileInput"; -------------------------------------------------------------------------------- /src/utils/toolbar-config.ts: -------------------------------------------------------------------------------- 1 | import { ToolbarConfValue, ToolbarConfig } from "@/types"; 2 | 3 | export const toolbarConfig: ToolbarConfig = { 4 | sidebar: { 5 | viewThumbnail: true, 6 | viewOutline: true, 7 | viewAttachments: true 8 | }, 9 | secondaryToolbar: { 10 | secondaryPresentationMode: true, 11 | secondaryOpenFile: true, 12 | secondaryPrint: true, 13 | secondaryDownload: true, 14 | secondaryViewBookmark: true, 15 | firstPage: true, 16 | lastPage: true, 17 | pageRotateCw: true, 18 | pageRotateCcw: true, 19 | cursorSelectTool: true, 20 | cursorHandTool: true, 21 | scrollVertical: true, 22 | scrollHorizontal: true, 23 | scrollWrapped: true, 24 | spreadNone: true, 25 | spreadOdd: true, 26 | spreadEven: true, 27 | documentProperties: true 28 | }, 29 | toolbar: { 30 | toolbarViewerLeft: { 31 | findbar: true, 32 | previous: true, 33 | next: true, 34 | pageNumber: true 35 | }, 36 | toolbarViewerRight: { 37 | presentationMode: true, 38 | openFile: true, 39 | print: true, 40 | download: true, 41 | viewBookmark: true 42 | }, 43 | toolbarViewerMiddle: { 44 | zoomOut: true, 45 | zoomIn: true, 46 | scaleSelectContainer: true 47 | } 48 | }, 49 | errorWrapper: true 50 | }; 51 | 52 | export const getToolbarConfigValue = ( 53 | config: ToolbarConfig, 54 | path: string 55 | ): ToolbarConfValue => { 56 | const props = path.split("."); 57 | let currValue = config[props[0]]; 58 | 59 | for (let i = 1; i < props.length; i++) { 60 | if (typeof currValue === "object") { 61 | currValue = currValue[props[i]]; 62 | } else break; 63 | } 64 | return currValue; 65 | }; 66 | -------------------------------------------------------------------------------- /src/views/pdf-app.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 54 | 55 | 71 | -------------------------------------------------------------------------------- /src/views/theme-toggling.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 34 | 35 | 68 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "esnext", 4 | "module": "esnext", 5 | "strict": false, 6 | "noImplicitAny": false, 7 | "jsx": "preserve", 8 | "moduleResolution": "node", 9 | "skipLibCheck": true, 10 | "esModuleInterop": true, 11 | "allowSyntheticDefaultImports": true, 12 | "forceConsistentCasingInFileNames": true, 13 | "useDefineForClassFields": true, 14 | "sourceMap": true, 15 | "baseUrl": ".", 16 | "types": [ 17 | "webpack-env" 18 | ], 19 | "paths": { 20 | "@/*": [ 21 | "src/*" 22 | ] 23 | }, 24 | "lib": [ 25 | "esnext", 26 | "dom", 27 | "dom.iterable", 28 | "scripthost" 29 | ] 30 | }, 31 | "include": [ 32 | "src/**/*.ts", 33 | "src/**/*.tsx", 34 | "src/**/*.vue", 35 | "tests/**/*.ts", 36 | "tests/**/*.tsx" 37 | ], 38 | "exclude": [ 39 | "node_modules" 40 | ] 41 | } 42 | -------------------------------------------------------------------------------- /tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "dist/types", 5 | "declaration": true, 6 | "declarationMap": true, 7 | "emitDeclarationOnly": true 8 | }, 9 | "include": [ 10 | "src/components/pdf-viewer.vue" 11 | ] 12 | } -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | const { defineConfig } = require('@vue/cli-service') 2 | module.exports = defineConfig({ 3 | lintOnSave: false, 4 | css: { extract: false }, 5 | transpileDependencies: ['pdfjs-dist'], 6 | configureWebpack: { 7 | // plugins: [new BundleAnalyzerPlugin()], 8 | module: { 9 | rules: [ 10 | { 11 | test: /\.(cur)$/, 12 | use: ['file-loader'] 13 | } 14 | ] 15 | } 16 | }, 17 | chainWebpack: (config) => { 18 | const svgRule = config.module.rule('svg') 19 | svgRule.uses.clear() 20 | svgRule.use().loader('svg-url-loader') 21 | } 22 | }) 23 | -------------------------------------------------------------------------------- /webpack-icons.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path') 2 | const MiniCssExtractPlugin = require('mini-css-extract-plugin') 3 | 4 | module.exports = { 5 | entry: './src/sass/icons.scss', 6 | mode: 'production', 7 | output: { 8 | path: path.resolve(__dirname, 'dist/icons') 9 | }, 10 | module: { 11 | rules: [ 12 | { 13 | test: /\.scss$/, 14 | use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'] 15 | }, 16 | { 17 | test: /\.(woff|woff2|eot|ttf|otf|svg)$/i, 18 | type: 'asset/resource', 19 | dependency: { not: ['url'] } 20 | } 21 | ] 22 | }, 23 | plugins: [new MiniCssExtractPlugin()] 24 | } 25 | --------------------------------------------------------------------------------