2013-11-22 11:10:43 -08:00
|
|
|
|
<!DOCTYPE html>
|
2012-08-31 15:48:21 -07:00
|
|
|
|
<!--
|
|
|
|
|
Copyright 2012 Mozilla Foundation
|
|
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
2014-03-10 13:03:35 -07:00
|
|
|
|
|
2015-06-30 00:33:25 -07:00
|
|
|
|
Adobe CMap resources are covered by their own copyright but the same license:
|
|
|
|
|
|
|
|
|
|
Copyright 1990-2015 Adobe Systems Incorporated.
|
|
|
|
|
|
|
|
|
|
See https://github.com/adobe-type-tools/cmap-resources
|
2012-08-31 15:48:21 -07:00
|
|
|
|
-->
|
2018-01-19 22:05:50 +01:00
|
|
|
|
<html dir="ltr" mozdisallowselectionprint>
|
2012-04-11 16:12:51 -07:00
|
|
|
|
<head>
|
2012-04-30 21:55:21 -05:00
|
|
|
|
<meta charset="utf-8">
|
2012-05-23 16:50:54 -05:00
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
2013-07-16 00:13:05 +02:00
|
|
|
|
<!--#if GENERIC || CHROME-->
|
|
|
|
|
<meta name="google" content="notranslate">
|
|
|
|
|
<!--#endif-->
|
2012-04-18 15:02:49 -04:00
|
|
|
|
<title>PDF.js viewer</title>
|
2012-08-01 11:29:13 -07:00
|
|
|
|
|
2020-01-08 13:57:31 +01:00
|
|
|
|
<!--#if MOZCENTRAL-->
|
2012-08-01 11:29:13 -07:00
|
|
|
|
<!--#include viewer-snippet-firefox-extension.html-->
|
2023-03-18 17:17:46 +01:00
|
|
|
|
<!--#elif CHROME-->
|
[CRX] Show nicely formatted URL in omnibox
Before commit:
chrome-extension://EXTENSIONID/content/web/viewer.html?file=http%3A%2F%2Fexample.com%2Ffile.pdf
After commit:
chrome-extension://EXTENSIONID/http://example/file.pdf
Technical details:
- The extension's background page uses the webRequest API to intercept
requests for <extension host>/<real path to pdf>, and redirect it to
the viewer's URL.
- viewer.js uses history.replaceState to rewrite the URL, so that it's
easier for users to recognize and copy-paste URLs.
- The fake paths /http:, /https:, /file:, etc. have been added to the
web_accessible_resources section of the manifest file, in order to
avoid seeing chrome-extension://invalid/ instead of the actual URL
when using history back/forward to navigate from/to the PDF viewer.
- Since the relative path resolving doesn't work because relative URLs
are inaccurate, a <base> tag has been added. This method has already
been proven to work in the Firefox add-on.
Notes:
- This commit has been cherry-picked from crx-using-streams-api.
- Need to merge https://github.com/mozilla/pdf.js/pull/3582 to deal with
a bug in Chrome <=30
- In Chrome, getting the contents of a FTP file is not possible, so
there's no support for FTP files, even though the extension router
recognizes the ftp: scheme.
2013-08-15 22:47:30 +02:00
|
|
|
|
<!--#include viewer-snippet-chrome-extension.html-->
|
2023-03-18 17:17:46 +01:00
|
|
|
|
<!--#else-->
|
|
|
|
|
<!--#include viewer-snippet.html-->
|
2012-08-01 11:29:13 -07:00
|
|
|
|
<!--#endif-->
|
2012-04-11 16:12:51 -07:00
|
|
|
|
|
2023-03-13 16:56:42 +01:00
|
|
|
|
<!--#if MOZCENTRAL-->
|
|
|
|
|
<!--<link rel="stylesheet" href="resource://pdf.js/web/viewer.css">-->
|
2023-10-13 16:23:17 +02:00
|
|
|
|
<!--<link rel="localization" href="toolkit/pdfviewer/viewer.ftl"/>-->
|
2023-03-13 16:56:42 +01:00
|
|
|
|
<!--#else-->
|
2016-02-14 13:23:34 +01:00
|
|
|
|
<link rel="stylesheet" href="viewer.css">
|
2023-03-13 16:56:42 +01:00
|
|
|
|
<!--#endif-->
|
|
|
|
|
|
2023-03-18 17:17:46 +01:00
|
|
|
|
<!--#if MOZCENTRAL-->
|
[api-major] Output JavaScript modules in the builds (issue 10317)
At this point in time all browsers, and also Node.js, support standard `import`/`export` statements and we can now finally consider outputting modern JavaScript modules in the builds.[1]
In order for this to work we can *only* use proper `import`/`export` statements throughout the main code-base, and (as expected) our Node.js support made this much more complicated since both the official builds and the GitHub Actions-based tests must keep working.[2]
One remaining issue is that the `pdf.scripting.js` file cannot be built as a JavaScript module, since doing so breaks PDF scripting.
Note that my initial goal was to try and split these changes into a couple of commits, however that unfortunately didn't really work since it turned out to be difficult for smaller patches to work correctly and pass (all) tests that way.[3]
This is a classic case of every change requiring a couple of other changes, with each of those changes requiring further changes in turn and the size/scope quickly increasing as a result.
One possible "issue" with these changes is that we'll now only output JavaScript modules in the builds, which could perhaps be a problem with older tools. However it unfortunately seems far too complicated/time-consuming for us to attempt to support both the old and modern module formats, hence the alternative would be to do "nothing" here and just keep our "old" builds.[4]
---
[1] The final blocker was module support in workers in Firefox, which was implemented in Firefox 114; please see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#browser_compatibility
[2] It's probably possible to further improve/simplify especially the Node.js-specific code, but it does appear to work as-is.
[3] Having partially "broken" patches, that fail tests, as part of the commit history is *really not* a good idea in general.
[4] Outputting JavaScript modules was first requested almost five years ago, see issue 10317, and nowadays there *should* be much better support for JavaScript modules in various tools.
2023-09-28 13:00:10 +02:00
|
|
|
|
<!--<script src="resource://pdf.js/web/viewer.mjs" type="module"></script>-->
|
2023-09-28 10:07:26 +02:00
|
|
|
|
<!--#elif !MOZCENTRAL-->
|
[api-major] Output JavaScript modules in the builds (issue 10317)
At this point in time all browsers, and also Node.js, support standard `import`/`export` statements and we can now finally consider outputting modern JavaScript modules in the builds.[1]
In order for this to work we can *only* use proper `import`/`export` statements throughout the main code-base, and (as expected) our Node.js support made this much more complicated since both the official builds and the GitHub Actions-based tests must keep working.[2]
One remaining issue is that the `pdf.scripting.js` file cannot be built as a JavaScript module, since doing so breaks PDF scripting.
Note that my initial goal was to try and split these changes into a couple of commits, however that unfortunately didn't really work since it turned out to be difficult for smaller patches to work correctly and pass (all) tests that way.[3]
This is a classic case of every change requiring a couple of other changes, with each of those changes requiring further changes in turn and the size/scope quickly increasing as a result.
One possible "issue" with these changes is that we'll now only output JavaScript modules in the builds, which could perhaps be a problem with older tools. However it unfortunately seems far too complicated/time-consuming for us to attempt to support both the old and modern module formats, hence the alternative would be to do "nothing" here and just keep our "old" builds.[4]
---
[1] The final blocker was module support in workers in Firefox, which was implemented in Firefox 114; please see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#browser_compatibility
[2] It's probably possible to further improve/simplify especially the Node.js-specific code, but it does appear to work as-is.
[3] Having partially "broken" patches, that fail tests, as part of the commit history is *really not* a good idea in general.
[4] Outputting JavaScript modules was first requested almost five years ago, see issue 10317, and nowadays there *should* be much better support for JavaScript modules in various tools.
2023-09-28 13:00:10 +02:00
|
|
|
|
<!--<script src="viewer.mjs" type="module"></script>-->
|
2023-03-19 12:42:22 +01:00
|
|
|
|
<!--#elif /* Development mode. */-->
|
2023-10-13 16:23:17 +02:00
|
|
|
|
<link rel="resource" type="application/l10n" href="locale/locale.json">
|
2012-08-01 11:29:13 -07:00
|
|
|
|
|
2022-04-02 13:00:25 +02:00
|
|
|
|
<script type="importmap">
|
2020-05-19 18:00:23 +02:00
|
|
|
|
{
|
|
|
|
|
"imports": {
|
|
|
|
|
"pdfjs/": "../src/",
|
|
|
|
|
"pdfjs-lib": "../src/pdf.js",
|
2022-07-06 23:02:53 +02:00
|
|
|
|
"pdfjs-web/": "./",
|
2023-02-04 13:55:12 +01:00
|
|
|
|
|
2023-10-13 16:23:17 +02:00
|
|
|
|
"fluent-bundle": "../node_modules/@fluent/bundle/esm/index.js",
|
|
|
|
|
"fluent-dom": "../node_modules/@fluent/dom/esm/index.js",
|
|
|
|
|
"cached-iterable": "../node_modules/cached-iterable/src/index.mjs",
|
|
|
|
|
|
2024-11-01 12:34:39 +01:00
|
|
|
|
"display-cmap_reader_factory": "../src/display/cmap_reader_factory.js",
|
|
|
|
|
"display-standard_fontdata_factory": "../src/display/standard_fontdata_factory.js",
|
2025-01-15 20:20:11 +01:00
|
|
|
|
"display-wasm_factory": "../src/display/wasm_factory.js",
|
2023-07-13 11:58:16 +02:00
|
|
|
|
"display-fetch_stream": "../src/display/fetch_stream.js",
|
|
|
|
|
"display-network": "../src/display/network.js",
|
|
|
|
|
"display-node_stream": "../src/display/stubs.js",
|
|
|
|
|
"display-node_utils": "../src/display/stubs.js",
|
|
|
|
|
|
2023-09-21 12:51:34 +02:00
|
|
|
|
"web-alt_text_manager": "./alt_text_manager.js",
|
2023-02-04 13:55:12 +01:00
|
|
|
|
"web-annotation_editor_params": "./annotation_editor_params.js",
|
2024-01-26 11:50:25 +01:00
|
|
|
|
"web-download_manager": "./download_manager.js",
|
2024-01-26 14:31:42 +01:00
|
|
|
|
"web-external_services": "./genericcom.js",
|
2024-07-24 09:34:32 +02:00
|
|
|
|
"web-new_alt_text_manager": "./new_alt_text_manager.js",
|
2024-01-30 18:32:35 +01:00
|
|
|
|
"web-null_l10n": "./genericl10n.js",
|
2023-02-04 13:55:12 +01:00
|
|
|
|
"web-pdf_attachment_viewer": "./pdf_attachment_viewer.js",
|
|
|
|
|
"web-pdf_cursor_tools": "./pdf_cursor_tools.js",
|
|
|
|
|
"web-pdf_document_properties": "./pdf_document_properties.js",
|
|
|
|
|
"web-pdf_find_bar": "./pdf_find_bar.js",
|
|
|
|
|
"web-pdf_layer_viewer": "./pdf_layer_viewer.js",
|
|
|
|
|
"web-pdf_outline_viewer": "./pdf_outline_viewer.js",
|
|
|
|
|
"web-pdf_presentation_mode": "./pdf_presentation_mode.js",
|
|
|
|
|
"web-pdf_sidebar": "./pdf_sidebar.js",
|
|
|
|
|
"web-pdf_thumbnail_viewer": "./pdf_thumbnail_viewer.js",
|
2024-01-26 12:04:54 +01:00
|
|
|
|
"web-preferences": "./genericcom.js",
|
2023-02-05 16:13:18 +01:00
|
|
|
|
"web-print_service": "./pdf_print_service.js",
|
2023-02-04 13:55:12 +01:00
|
|
|
|
"web-secondary_toolbar": "./secondary_toolbar.js",
|
2025-02-03 18:30:42 +01:00
|
|
|
|
"web-signature_manager": "./signature_manager.js",
|
2023-02-04 13:55:12 +01:00
|
|
|
|
"web-toolbar": "./toolbar.js"
|
2020-05-19 18:00:23 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
2022-04-02 13:00:25 +02:00
|
|
|
|
<script src="viewer.js" type="module"></script>
|
2012-08-01 11:29:13 -07:00
|
|
|
|
<!--#endif-->
|
2012-04-11 16:12:51 -07:00
|
|
|
|
</head>
|
2011-05-26 16:02:52 +02:00
|
|
|
|
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<body tabindex="0">
|
2014-08-17 00:22:05 +02:00
|
|
|
|
<div id="outerContainer">
|
2011-07-28 19:48:05 +02:00
|
|
|
|
|
2012-04-25 13:46:17 -07:00
|
|
|
|
<div id="sidebarContainer">
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div id="toolbarSidebar" class="toolbarHorizontalGroup">
|
Add support for finding/highlighting the outlineItem, corresponding to the currently visible page, in the sidebar (issue 7557, bug 1253820, bug 1499050)
This implementation is inspired by the behaviour in (recent versions of) Adobe Reader, since it leads to reasonably simple and straightforward code as far as I'm concerned.
*Specifically:* We'll only consider *one* destination per page when finding/highlighting the current outline item, which is similar to e.g. Adobe Reader, and we choose the *first* outline item at the *lowest* level of the outline tree.
Given that this functionality requires not only parsing of the `outline`, but looking up *all* of the destinations in the document, this feature can when initialized have a non-trivial performance overhead for larger PDF documents.
In an attempt to reduce the performance impact, the following steps are taken here:
- The "find current outline item"-functionality will only be enabled once *one* page has rendered and *all* the pages have been loaded[1], to prevent it interfering with data regular fetching/parsing early on during document loading and viewer initialization.
- With the exception of a couple of small and simple `eventBus`-listeners, in `PDFOutlineViewer`, this new functionality is initialized *lazily* the first time that the user clicks on the `currentOutlineItem`-button.
- The entire "find current outline item"-functionality is disabled when `disableAutoFetch = true` is set, since it can easily lead to the setting becoming essentially pointless[2] by triggering *a lot* of data fetching from a relatively minor viewer-feature.
- Fetch the destinations *individually*, since that's generally more efficient than using `PDFDocumentProxy.getDestinations` to fetch them all at once. Despite making the overall parsing code *more* asynchronous, and leading to a lot more main/worker-thread message passing, in practice this seems faster for larger documents.
Finally, we'll now always highlight an outline item that the user manually clicked on, since only highlighting when the new "find current outline item"-functionality is used seemed inconsistent.
---
[1] Keep in mind that the `outline` itself already isn't fetched/parsed until at least *one* page has been rendered in the viewer.
[2] And also quite slow, since it can take a fair amount of time to fetch all of the necessary `destinations` data when `disableAutoFetch = true` is set.
2020-12-25 12:57:43 +01:00
|
|
|
|
<div id="toolbarSidebarLeft">
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div id="sidebarViewButtons" class="toolbarHorizontalGroup toggled" role="radiogroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="viewThumbnail" class="toolbarButton toggled" type="button" tabindex="0" data-l10n-id="pdfjs-thumbs-button" role="radio" aria-checked="true" aria-controls="thumbnailView">
|
|
|
|
|
<span data-l10n-id="pdfjs-thumbs-button-label"></span>
|
Add support for finding/highlighting the outlineItem, corresponding to the currently visible page, in the sidebar (issue 7557, bug 1253820, bug 1499050)
This implementation is inspired by the behaviour in (recent versions of) Adobe Reader, since it leads to reasonably simple and straightforward code as far as I'm concerned.
*Specifically:* We'll only consider *one* destination per page when finding/highlighting the current outline item, which is similar to e.g. Adobe Reader, and we choose the *first* outline item at the *lowest* level of the outline tree.
Given that this functionality requires not only parsing of the `outline`, but looking up *all* of the destinations in the document, this feature can when initialized have a non-trivial performance overhead for larger PDF documents.
In an attempt to reduce the performance impact, the following steps are taken here:
- The "find current outline item"-functionality will only be enabled once *one* page has rendered and *all* the pages have been loaded[1], to prevent it interfering with data regular fetching/parsing early on during document loading and viewer initialization.
- With the exception of a couple of small and simple `eventBus`-listeners, in `PDFOutlineViewer`, this new functionality is initialized *lazily* the first time that the user clicks on the `currentOutlineItem`-button.
- The entire "find current outline item"-functionality is disabled when `disableAutoFetch = true` is set, since it can easily lead to the setting becoming essentially pointless[2] by triggering *a lot* of data fetching from a relatively minor viewer-feature.
- Fetch the destinations *individually*, since that's generally more efficient than using `PDFDocumentProxy.getDestinations` to fetch them all at once. Despite making the overall parsing code *more* asynchronous, and leading to a lot more main/worker-thread message passing, in practice this seems faster for larger documents.
Finally, we'll now always highlight an outline item that the user manually clicked on, since only highlighting when the new "find current outline item"-functionality is used seemed inconsistent.
---
[1] Keep in mind that the `outline` itself already isn't fetched/parsed until at least *one* page has been rendered in the viewer.
[2] And also quite slow, since it can take a fair amount of time to fetch all of the necessary `destinations` data when `disableAutoFetch = true` is set.
2020-12-25 12:57:43 +01:00
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="viewOutline" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-document-outline-button" role="radio" aria-checked="false" aria-controls="outlineView">
|
|
|
|
|
<span data-l10n-id="pdfjs-document-outline-button-label"></span>
|
Add support for finding/highlighting the outlineItem, corresponding to the currently visible page, in the sidebar (issue 7557, bug 1253820, bug 1499050)
This implementation is inspired by the behaviour in (recent versions of) Adobe Reader, since it leads to reasonably simple and straightforward code as far as I'm concerned.
*Specifically:* We'll only consider *one* destination per page when finding/highlighting the current outline item, which is similar to e.g. Adobe Reader, and we choose the *first* outline item at the *lowest* level of the outline tree.
Given that this functionality requires not only parsing of the `outline`, but looking up *all* of the destinations in the document, this feature can when initialized have a non-trivial performance overhead for larger PDF documents.
In an attempt to reduce the performance impact, the following steps are taken here:
- The "find current outline item"-functionality will only be enabled once *one* page has rendered and *all* the pages have been loaded[1], to prevent it interfering with data regular fetching/parsing early on during document loading and viewer initialization.
- With the exception of a couple of small and simple `eventBus`-listeners, in `PDFOutlineViewer`, this new functionality is initialized *lazily* the first time that the user clicks on the `currentOutlineItem`-button.
- The entire "find current outline item"-functionality is disabled when `disableAutoFetch = true` is set, since it can easily lead to the setting becoming essentially pointless[2] by triggering *a lot* of data fetching from a relatively minor viewer-feature.
- Fetch the destinations *individually*, since that's generally more efficient than using `PDFDocumentProxy.getDestinations` to fetch them all at once. Despite making the overall parsing code *more* asynchronous, and leading to a lot more main/worker-thread message passing, in practice this seems faster for larger documents.
Finally, we'll now always highlight an outline item that the user manually clicked on, since only highlighting when the new "find current outline item"-functionality is used seemed inconsistent.
---
[1] Keep in mind that the `outline` itself already isn't fetched/parsed until at least *one* page has been rendered in the viewer.
[2] And also quite slow, since it can take a fair amount of time to fetch all of the necessary `destinations` data when `disableAutoFetch = true` is set.
2020-12-25 12:57:43 +01:00
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="viewAttachments" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-attachments-button" role="radio" aria-checked="false" aria-controls="attachmentsView">
|
|
|
|
|
<span data-l10n-id="pdfjs-attachments-button-label"></span>
|
Add support for finding/highlighting the outlineItem, corresponding to the currently visible page, in the sidebar (issue 7557, bug 1253820, bug 1499050)
This implementation is inspired by the behaviour in (recent versions of) Adobe Reader, since it leads to reasonably simple and straightforward code as far as I'm concerned.
*Specifically:* We'll only consider *one* destination per page when finding/highlighting the current outline item, which is similar to e.g. Adobe Reader, and we choose the *first* outline item at the *lowest* level of the outline tree.
Given that this functionality requires not only parsing of the `outline`, but looking up *all* of the destinations in the document, this feature can when initialized have a non-trivial performance overhead for larger PDF documents.
In an attempt to reduce the performance impact, the following steps are taken here:
- The "find current outline item"-functionality will only be enabled once *one* page has rendered and *all* the pages have been loaded[1], to prevent it interfering with data regular fetching/parsing early on during document loading and viewer initialization.
- With the exception of a couple of small and simple `eventBus`-listeners, in `PDFOutlineViewer`, this new functionality is initialized *lazily* the first time that the user clicks on the `currentOutlineItem`-button.
- The entire "find current outline item"-functionality is disabled when `disableAutoFetch = true` is set, since it can easily lead to the setting becoming essentially pointless[2] by triggering *a lot* of data fetching from a relatively minor viewer-feature.
- Fetch the destinations *individually*, since that's generally more efficient than using `PDFDocumentProxy.getDestinations` to fetch them all at once. Despite making the overall parsing code *more* asynchronous, and leading to a lot more main/worker-thread message passing, in practice this seems faster for larger documents.
Finally, we'll now always highlight an outline item that the user manually clicked on, since only highlighting when the new "find current outline item"-functionality is used seemed inconsistent.
---
[1] Keep in mind that the `outline` itself already isn't fetched/parsed until at least *one* page has been rendered in the viewer.
[2] And also quite slow, since it can take a fair amount of time to fetch all of the necessary `destinations` data when `disableAutoFetch = true` is set.
2020-12-25 12:57:43 +01:00
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="viewLayers" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-layers-button" role="radio" aria-checked="false" aria-controls="layersView">
|
|
|
|
|
<span data-l10n-id="pdfjs-layers-button-label"></span>
|
Add support for finding/highlighting the outlineItem, corresponding to the currently visible page, in the sidebar (issue 7557, bug 1253820, bug 1499050)
This implementation is inspired by the behaviour in (recent versions of) Adobe Reader, since it leads to reasonably simple and straightforward code as far as I'm concerned.
*Specifically:* We'll only consider *one* destination per page when finding/highlighting the current outline item, which is similar to e.g. Adobe Reader, and we choose the *first* outline item at the *lowest* level of the outline tree.
Given that this functionality requires not only parsing of the `outline`, but looking up *all* of the destinations in the document, this feature can when initialized have a non-trivial performance overhead for larger PDF documents.
In an attempt to reduce the performance impact, the following steps are taken here:
- The "find current outline item"-functionality will only be enabled once *one* page has rendered and *all* the pages have been loaded[1], to prevent it interfering with data regular fetching/parsing early on during document loading and viewer initialization.
- With the exception of a couple of small and simple `eventBus`-listeners, in `PDFOutlineViewer`, this new functionality is initialized *lazily* the first time that the user clicks on the `currentOutlineItem`-button.
- The entire "find current outline item"-functionality is disabled when `disableAutoFetch = true` is set, since it can easily lead to the setting becoming essentially pointless[2] by triggering *a lot* of data fetching from a relatively minor viewer-feature.
- Fetch the destinations *individually*, since that's generally more efficient than using `PDFDocumentProxy.getDestinations` to fetch them all at once. Despite making the overall parsing code *more* asynchronous, and leading to a lot more main/worker-thread message passing, in practice this seems faster for larger documents.
Finally, we'll now always highlight an outline item that the user manually clicked on, since only highlighting when the new "find current outline item"-functionality is used seemed inconsistent.
---
[1] Keep in mind that the `outline` itself already isn't fetched/parsed until at least *one* page has been rendered in the viewer.
[2] And also quite slow, since it can take a fair amount of time to fetch all of the necessary `destinations` data when `disableAutoFetch = true` is set.
2020-12-25 12:57:43 +01:00
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="toolbarSidebarRight">
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div id="outlineOptionsContainer" class="toolbarHorizontalGroup">
|
Add support for finding/highlighting the outlineItem, corresponding to the currently visible page, in the sidebar (issue 7557, bug 1253820, bug 1499050)
This implementation is inspired by the behaviour in (recent versions of) Adobe Reader, since it leads to reasonably simple and straightforward code as far as I'm concerned.
*Specifically:* We'll only consider *one* destination per page when finding/highlighting the current outline item, which is similar to e.g. Adobe Reader, and we choose the *first* outline item at the *lowest* level of the outline tree.
Given that this functionality requires not only parsing of the `outline`, but looking up *all* of the destinations in the document, this feature can when initialized have a non-trivial performance overhead for larger PDF documents.
In an attempt to reduce the performance impact, the following steps are taken here:
- The "find current outline item"-functionality will only be enabled once *one* page has rendered and *all* the pages have been loaded[1], to prevent it interfering with data regular fetching/parsing early on during document loading and viewer initialization.
- With the exception of a couple of small and simple `eventBus`-listeners, in `PDFOutlineViewer`, this new functionality is initialized *lazily* the first time that the user clicks on the `currentOutlineItem`-button.
- The entire "find current outline item"-functionality is disabled when `disableAutoFetch = true` is set, since it can easily lead to the setting becoming essentially pointless[2] by triggering *a lot* of data fetching from a relatively minor viewer-feature.
- Fetch the destinations *individually*, since that's generally more efficient than using `PDFDocumentProxy.getDestinations` to fetch them all at once. Despite making the overall parsing code *more* asynchronous, and leading to a lot more main/worker-thread message passing, in practice this seems faster for larger documents.
Finally, we'll now always highlight an outline item that the user manually clicked on, since only highlighting when the new "find current outline item"-functionality is used seemed inconsistent.
---
[1] Keep in mind that the `outline` itself already isn't fetched/parsed until at least *one* page has been rendered in the viewer.
[2] And also quite slow, since it can take a fair amount of time to fetch all of the necessary `destinations` data when `disableAutoFetch = true` is set.
2020-12-25 12:57:43 +01:00
|
|
|
|
<div class="verticalToolbarSeparator"></div>
|
|
|
|
|
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="currentOutlineItem" class="toolbarButton" type="button" disabled="disabled" tabindex="0" data-l10n-id="pdfjs-current-outline-item-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-current-outline-item-button-label"></span>
|
Add support for finding/highlighting the outlineItem, corresponding to the currently visible page, in the sidebar (issue 7557, bug 1253820, bug 1499050)
This implementation is inspired by the behaviour in (recent versions of) Adobe Reader, since it leads to reasonably simple and straightforward code as far as I'm concerned.
*Specifically:* We'll only consider *one* destination per page when finding/highlighting the current outline item, which is similar to e.g. Adobe Reader, and we choose the *first* outline item at the *lowest* level of the outline tree.
Given that this functionality requires not only parsing of the `outline`, but looking up *all* of the destinations in the document, this feature can when initialized have a non-trivial performance overhead for larger PDF documents.
In an attempt to reduce the performance impact, the following steps are taken here:
- The "find current outline item"-functionality will only be enabled once *one* page has rendered and *all* the pages have been loaded[1], to prevent it interfering with data regular fetching/parsing early on during document loading and viewer initialization.
- With the exception of a couple of small and simple `eventBus`-listeners, in `PDFOutlineViewer`, this new functionality is initialized *lazily* the first time that the user clicks on the `currentOutlineItem`-button.
- The entire "find current outline item"-functionality is disabled when `disableAutoFetch = true` is set, since it can easily lead to the setting becoming essentially pointless[2] by triggering *a lot* of data fetching from a relatively minor viewer-feature.
- Fetch the destinations *individually*, since that's generally more efficient than using `PDFDocumentProxy.getDestinations` to fetch them all at once. Despite making the overall parsing code *more* asynchronous, and leading to a lot more main/worker-thread message passing, in practice this seems faster for larger documents.
Finally, we'll now always highlight an outline item that the user manually clicked on, since only highlighting when the new "find current outline item"-functionality is used seemed inconsistent.
---
[1] Keep in mind that the `outline` itself already isn't fetched/parsed until at least *one* page has been rendered in the viewer.
[2] And also quite slow, since it can take a fair amount of time to fetch all of the necessary `destinations` data when `disableAutoFetch = true` is set.
2020-12-25 12:57:43 +01:00
|
|
|
|
</button>
|
|
|
|
|
</div>
|
2012-10-29 14:35:07 -07:00
|
|
|
|
</div>
|
2011-07-28 19:48:05 +02:00
|
|
|
|
</div>
|
2012-04-25 11:34:28 -07:00
|
|
|
|
<div id="sidebarContent">
|
|
|
|
|
<div id="thumbnailView">
|
2012-04-11 16:12:51 -07:00
|
|
|
|
</div>
|
2012-04-25 11:34:28 -07:00
|
|
|
|
<div id="outlineView" class="hidden">
|
2012-04-11 16:12:51 -07:00
|
|
|
|
</div>
|
2014-03-18 16:32:47 -04:00
|
|
|
|
<div id="attachmentsView" class="hidden">
|
|
|
|
|
</div>
|
[api-minor] Add support for toggling of Optional Content in the viewer (issue 12096)
*Besides, obviously, adding viewer support:* This patch attempts to improve the general API for Optional Content Groups slightly, by adding a couple of new methods for interacting with the (more complex) data structures of `OptionalContentConfig`-instances. (Thus allowing us to mark some of the data as "private", given that it probably shouldn't be manipulated directly.)
By utilizing not just the "raw" Optional Content Groups, but the data from the `/Order` array when available, we can thus display the Layers in a proper tree-structure with collapsible headings for PDF documents that utilizes that feature.
Note that it's possible to reset all Optional Content Groups to their default visibility state, simply by double-clicking on the Layers-button in the sidebar.
(Currently that's indicated in the Layers-button tooltip, which is obviously easy to overlook, however it's probably the best we can do for now without adding more buttons, or even a dropdown-toolbar, to the sidebar.)
Also, the current Layers-button icons are a little rough around the edges, quite literally, but given that the viewer will soon have its UI modernized anyway they hopefully suffice in the meantime.
To give users *full* control of the visibility of the various Optional Content Groups, even those which according to the `/Order` array should not (by default) be toggleable in the UI, this patch will place those under a *custom* heading which:
- Is collapsed by default, and placed at the bottom of the Layers-tree, to be a bit less obtrusive.
- Uses a slightly different formatting, compared to the "regular" headings.
- Is localizable.
Finally, note that the thumbnails are *purposely* always rendered with all Optional Content Groups at their default visibility state, since that seems the most useful and it's also consistent with other viewers.
To ensure that this works as intended, we'll thus disable the `PDFThumbnailView.setImage` functionality when the Optional Content Groups have been changed in the viewer. (This obviously means that we'll re-render thumbnails instead of using the rendered pages. However, this situation ought to be rare enough for this to not really be a problem.)
2020-08-06 21:01:03 +02:00
|
|
|
|
<div id="layersView" class="hidden">
|
|
|
|
|
</div>
|
2011-08-21 21:05:10 -05:00
|
|
|
|
</div>
|
2020-09-09 13:29:44 +02:00
|
|
|
|
<div id="sidebarResizer"></div>
|
2012-04-25 11:34:28 -07:00
|
|
|
|
</div> <!-- sidebarContainer -->
|
|
|
|
|
|
|
|
|
|
<div id="mainContainer">
|
|
|
|
|
<div class="toolbar">
|
|
|
|
|
<div id="toolbarContainer">
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div id="toolbarViewer" class="toolbarHorizontalGroup">
|
|
|
|
|
<div id="toolbarViewerLeft" class="toolbarHorizontalGroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="sidebarToggleButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-toggle-sidebar-button" aria-expanded="false" aria-haspopup="true" aria-controls="sidebarContainer">
|
|
|
|
|
<span data-l10n-id="pdfjs-toggle-sidebar-button-label"></span>
|
2012-05-04 09:51:21 -05:00
|
|
|
|
</button>
|
2012-04-25 11:34:28 -07:00
|
|
|
|
<div class="toolbarButtonSpacer"></div>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div class="toolbarButtonWithContainer">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="viewFindButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-findbar-button" aria-expanded="false" aria-controls="findbar">
|
|
|
|
|
<span data-l10n-id="pdfjs-findbar-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
<div class="hidden doorHanger toolbarHorizontalGroup" id="findbar">
|
|
|
|
|
<div id="findInputContainer" class="toolbarHorizontalGroup">
|
|
|
|
|
<span class="loadingInput end toolbarHorizontalGroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<input id="findInput" class="toolbarField" tabindex="0" data-l10n-id="pdfjs-find-input" aria-invalid="false">
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</span>
|
|
|
|
|
<div class="toolbarHorizontalGroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="findPreviousButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-find-previous-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-find-previous-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
<div class="splitToolbarButtonSeparator"></div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="findNextButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-find-next-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-find-next-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="findbarOptionsOneContainer" class="toolbarHorizontalGroup">
|
|
|
|
|
<div class="toggleButton toolbarLabel">
|
|
|
|
|
<input type="checkbox" id="findHighlightAll" tabindex="0" />
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="findHighlightAll" data-l10n-id="pdfjs-find-highlight-checkbox"></label>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="toggleButton toolbarLabel">
|
|
|
|
|
<input type="checkbox" id="findMatchCase" tabindex="0" />
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="findMatchCase" data-l10n-id="pdfjs-find-match-case-checkbox-label"></label>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="findbarOptionsTwoContainer" class="toolbarHorizontalGroup">
|
|
|
|
|
<div class="toggleButton toolbarLabel">
|
|
|
|
|
<input type="checkbox" id="findMatchDiacritics" tabindex="0" />
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="findMatchDiacritics" data-l10n-id="pdfjs-find-match-diacritics-checkbox-label"></label>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="toggleButton toolbarLabel">
|
|
|
|
|
<input type="checkbox" id="findEntireWord" tabindex="0" />
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="findEntireWord" data-l10n-id="pdfjs-find-entire-word-checkbox-label"></label>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="findbarMessageContainer" class="toolbarHorizontalGroup" aria-live="polite">
|
|
|
|
|
<span id="findResultsCount" class="toolbarLabel"></span>
|
|
|
|
|
<span id="findMsg" class="toolbarLabel"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div> <!-- findbar -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="toolbarHorizontalGroup hiddenSmallView">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button class="toolbarButton" type="button" id="previous" tabindex="0" data-l10n-id="pdfjs-previous-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-previous-button-label"></span>
|
2012-05-04 09:51:21 -05:00
|
|
|
|
</button>
|
2012-04-25 11:34:28 -07:00
|
|
|
|
<div class="splitToolbarButtonSeparator"></div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button class="toolbarButton" type="button" id="next" tabindex="0" data-l10n-id="pdfjs-next-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-next-button-label"></span>
|
2012-05-04 09:51:21 -05:00
|
|
|
|
</button>
|
2012-04-25 11:34:28 -07:00
|
|
|
|
</div>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div class="toolbarHorizontalGroup">
|
|
|
|
|
<span class="loadingInput start toolbarHorizontalGroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<input type="number" id="pageNumber" class="toolbarField" value="1" min="1" tabindex="0" data-l10n-id="pdfjs-page-input" autocomplete="off">
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</span>
|
|
|
|
|
<span id="numPages" class="toolbarLabel"></span>
|
[editor] Support disabling of editing when `pdfjs.enablePermissions` is set (issue 15049)
For encrypted PDF documents without the required permissions set, this patch adds support for disabling of Annotation-editing. However, please note that it also requires that the `pdfjs.enablePermissions` preference is set to `true` (since PDF document permissions could be seen as user hostile).[1]
As I started looking at the issue, it soon became clear that *only* trying to fix the issue without slightly re-factor the surrounding code would be somewhat difficult.
The following is an overview of the changes in this patch; sorry about the size/scope of this!
- Use a new `AnnotationEditorUIManager`-instance *for each* PDF document opened in the GENERIC viewer, to prevent user-added Annotations from "leaking" from one document into the next.
- Re-factor the `BaseViewer.#initializePermissions`-method, to simplify handling of temporarily disabled modes (e.g. for both Annotation-rendering and Annotation-editing).
- When editing is enabled, let the Editor-buttons be `disabled` until the document has loaded. This way we avoid the buttons becoming clickable temporarily, for PDF documents that use permissions.
- Slightly re-factor how the Editor-buttons are shown/hidden in the viewer, and reset the toolbar-state when a new PDF document is opened.
- Flip the order of the Editor-buttons and the pre-exising toolbarButtons in the "toolbarViewerRight"-div. (To help reduce the size, a little bit, for the PR that adds new Editor-toolbars.)
- Enable editing by default in the development viewer, i.e. `gulp server`, since having to (repeatedly) do that manually becomes annoying after a while.
- Finally, support disabling of editing when `pdfjs.enablePermissions` is set; fixes issue 15049.
---
[1] Either manually with `about:config`, or using e.g. a [Group Policy](https://github.com/mozilla/policy-templates).
2022-06-20 18:08:41 +02:00
|
|
|
|
</div>
|
2012-04-25 11:34:28 -07:00
|
|
|
|
</div>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div id="toolbarViewerMiddle" class="toolbarHorizontalGroup">
|
|
|
|
|
<div class="toolbarHorizontalGroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="zoomOutButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-zoom-out-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-zoom-out-button-label"></span>
|
2016-11-03 16:56:57 +01:00
|
|
|
|
</button>
|
|
|
|
|
<div class="splitToolbarButtonSeparator"></div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="zoomInButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-zoom-in-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-zoom-in-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2012-04-25 11:34:28 -07:00
|
|
|
|
</div>
|
2016-11-03 16:56:57 +01:00
|
|
|
|
<span id="scaleSelectContainer" class="dropdownToolbarButton">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<select id="scaleSelect" tabindex="0" data-l10n-id="pdfjs-zoom-select">
|
|
|
|
|
<option id="pageAutoOption" value="auto" selected="selected" data-l10n-id="pdfjs-page-scale-auto"></option>
|
|
|
|
|
<option id="pageActualOption" value="page-actual" data-l10n-id="pdfjs-page-scale-actual"></option>
|
|
|
|
|
<option id="pageFitOption" value="page-fit" data-l10n-id="pdfjs-page-scale-fit"></option>
|
|
|
|
|
<option id="pageWidthOption" value="page-width" data-l10n-id="pdfjs-page-scale-width"></option>
|
|
|
|
|
<option id="customScaleOption" value="custom" disabled="disabled" hidden="true" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 0 }'></option>
|
|
|
|
|
<option value="0.5" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 50 }'></option>
|
|
|
|
|
<option value="0.75" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 75 }'></option>
|
|
|
|
|
<option value="1" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 100 }'></option>
|
|
|
|
|
<option value="1.25" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 125 }'></option>
|
|
|
|
|
<option value="1.5" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 150 }'></option>
|
|
|
|
|
<option value="2" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 200 }'></option>
|
|
|
|
|
<option value="3" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 300 }'></option>
|
|
|
|
|
<option value="4" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 400 }'></option>
|
2016-11-03 16:56:57 +01:00
|
|
|
|
</select>
|
|
|
|
|
</span>
|
2012-04-25 11:34:28 -07:00
|
|
|
|
</div>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div id="toolbarViewerRight" class="toolbarHorizontalGroup">
|
|
|
|
|
<div id="editorModeButtons" class="toolbarHorizontalGroup" role="radiogroup">
|
2025-02-06 20:58:59 +01:00
|
|
|
|
<div id="editorSignature" class="toolbarButtonWithContainer" hidden="true">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="editorSignatureButton" class="toolbarButton" type="button" tabindex="0" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorSignatureParamsToolbar" data-l10n-id="pdfjs-editor-signature-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-editor-signature-button-label"></span>
|
2025-02-06 20:58:59 +01:00
|
|
|
|
</button>
|
|
|
|
|
<div class="editorParamsToolbar hidden doorHangerRight menu" id="editorSignatureParamsToolbar">
|
2025-03-13 10:01:31 +01:00
|
|
|
|
<div id="addSignatureDoorHanger" class="menuContainer" role="region" data-l10n-id="pdfjs-editor-add-signature-container">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="editorSignatureAddSignature" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-editor-signature-add-signature-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-editor-signature-add-signature-button-label" class="editorParamsLabel"></span>
|
2025-02-06 20:58:59 +01:00
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div id="editorHighlight" class="toolbarButtonWithContainer">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="editorHighlightButton" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorHighlightParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-highlight-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-editor-highlight-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
<div class="editorParamsToolbar hidden doorHangerRight" id="editorHighlightParamsToolbar">
|
|
|
|
|
<div id="highlightParamsToolbarContainer" class="editorParamsToolbarContainer">
|
|
|
|
|
<div id="editorHighlightColorPicker" class="colorPicker">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="highlightColorPickerLabel" class="editorParamsLabel" data-l10n-id="pdfjs-editor-highlight-colorpicker-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div id="editorHighlightThickness">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="editorFreeHighlightThickness" class="editorParamsLabel" data-l10n-id="pdfjs-editor-free-highlight-thickness-input"></label>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div class="thicknessPicker">
|
|
|
|
|
<input type="range" id="editorFreeHighlightThickness" class="editorParamsSlider" data-l10n-id="pdfjs-editor-free-highlight-thickness-title" value="12" min="8" max="24" step="1" tabindex="0">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="editorHighlightVisibility">
|
|
|
|
|
<div class="divider"></div>
|
|
|
|
|
<div class="toggler">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="editorHighlightShowAll" class="editorParamsLabel" data-l10n-id="pdfjs-editor-highlight-show-all-button-label"></label>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<button id="editorHighlightShowAll" class="toggle-button" type="button" data-l10n-id="pdfjs-editor-highlight-show-all-button" aria-pressed="true" tabindex="0"></button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="editorFreeText" class="toolbarButtonWithContainer">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="editorFreeTextButton" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorFreeTextParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-free-text-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-editor-free-text-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
<div class="editorParamsToolbar hidden doorHangerRight" id="editorFreeTextParamsToolbar">
|
|
|
|
|
<div class="editorParamsToolbarContainer">
|
|
|
|
|
<div class="editorParamsSetter">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="editorFreeTextColor" class="editorParamsLabel" data-l10n-id="pdfjs-editor-free-text-color-input"></label>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<input type="color" id="editorFreeTextColor" class="editorParamsColor" tabindex="0">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editorParamsSetter">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="editorFreeTextFontSize" class="editorParamsLabel" data-l10n-id="pdfjs-editor-free-text-size-input"></label>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<input type="range" id="editorFreeTextFontSize" class="editorParamsSlider" value="10" min="5" max="100" step="1" tabindex="0">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="editorInk" class="toolbarButtonWithContainer">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="editorInkButton" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorInkParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-ink-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-editor-ink-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
<div class="editorParamsToolbar hidden doorHangerRight" id="editorInkParamsToolbar">
|
|
|
|
|
<div class="editorParamsToolbarContainer">
|
|
|
|
|
<div class="editorParamsSetter">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="editorInkColor" class="editorParamsLabel" data-l10n-id="pdfjs-editor-ink-color-input"></label>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<input type="color" id="editorInkColor" class="editorParamsColor" tabindex="0">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editorParamsSetter">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="editorInkThickness" class="editorParamsLabel" data-l10n-id="pdfjs-editor-ink-thickness-input"></label>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<input type="range" id="editorInkThickness" class="editorParamsSlider" value="1" min="1" max="20" step="1" tabindex="0">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editorParamsSetter">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="editorInkOpacity" class="editorParamsLabel" data-l10n-id="pdfjs-editor-ink-opacity-input"></label>
|
2024-11-20 22:26:38 +01:00
|
|
|
|
<input type="range" id="editorInkOpacity" class="editorParamsSlider" value="1" min="0.05" max="1" step="0.05" tabindex="0">
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="editorStamp" class="toolbarButtonWithContainer">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="editorStampButton" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorStampParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-stamp-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-editor-stamp-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2024-09-24 15:37:42 +02:00
|
|
|
|
<div class="editorParamsToolbar hidden doorHangerRight menu" id="editorStampParamsToolbar">
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div class="menuContainer">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="editorStampAddImage" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-editor-stamp-add-image-button">
|
|
|
|
|
<span class="editorParamsLabel" data-l10n-id="pdfjs-editor-stamp-add-image-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2025-01-17 18:04:34 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="editorModeSeparator" class="verticalToolbarSeparator"></div>
|
|
|
|
|
|
|
|
|
|
<div class="toolbarHorizontalGroup hiddenMediumView">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="printButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-print-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-print-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="downloadButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-save-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-save-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="verticalToolbarSeparator hiddenMediumView"></div>
|
|
|
|
|
|
|
|
|
|
<div id="secondaryToolbarToggle" class="toolbarButtonWithContainer">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="secondaryToolbarToggleButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-tools-button" aria-expanded="false" aria-haspopup="true" aria-controls="secondaryToolbar">
|
|
|
|
|
<span data-l10n-id="pdfjs-tools-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2024-09-24 15:37:42 +02:00
|
|
|
|
<div id="secondaryToolbar" class="hidden doorHangerRight menu">
|
2024-07-01 22:37:48 +02:00
|
|
|
|
<div id="secondaryToolbarButtonContainer" class="menuContainer">
|
|
|
|
|
<!--#if GENERIC-->
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="secondaryOpenFile" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-open-file-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-open-file-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
<!--#endif-->
|
|
|
|
|
|
|
|
|
|
<div class="visibleMediumView">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="secondaryPrint" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-print-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-print-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="secondaryDownload" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-save-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-save-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<!--#if !GENERIC-->
|
|
|
|
|
<!-- <div class="horizontalToolbarSeparator"></div>-->
|
|
|
|
|
<!--#endif-->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--#if GENERIC-->
|
|
|
|
|
<div class="horizontalToolbarSeparator"></div>
|
|
|
|
|
<!--#endif-->
|
|
|
|
|
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="presentationMode" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-presentation-mode-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-presentation-mode-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<a href="#" id="viewBookmark" class="toolbarButton labeled" tabindex="0" data-l10n-id="pdfjs-bookmark-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-bookmark-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<div id="viewBookmarkSeparator" class="horizontalToolbarSeparator"></div>
|
|
|
|
|
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="firstPage" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-first-page-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-first-page-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="lastPage" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-last-page-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-last-page-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<div class="horizontalToolbarSeparator"></div>
|
|
|
|
|
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="pageRotateCw" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-page-rotate-cw-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-page-rotate-cw-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="pageRotateCcw" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-page-rotate-ccw-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-page-rotate-ccw-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<div class="horizontalToolbarSeparator"></div>
|
|
|
|
|
|
|
|
|
|
<div id="cursorToolButtons" role="radiogroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="cursorSelectTool" class="toolbarButton labeled toggled" type="button" tabindex="0" data-l10n-id="pdfjs-cursor-text-select-tool-button" role="radio" aria-checked="true">
|
|
|
|
|
<span data-l10n-id="pdfjs-cursor-text-select-tool-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="cursorHandTool" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-cursor-hand-tool-button" role="radio" aria-checked="false">
|
|
|
|
|
<span data-l10n-id="pdfjs-cursor-hand-tool-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="horizontalToolbarSeparator"></div>
|
|
|
|
|
|
|
|
|
|
<div id="scrollModeButtons" role="radiogroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="scrollPage" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-scroll-page-button" role="radio" aria-checked="false">
|
|
|
|
|
<span data-l10n-id="pdfjs-scroll-page-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="scrollVertical" class="toolbarButton labeled toggled" type="button" tabindex="0" data-l10n-id="pdfjs-scroll-vertical-button" role="radio" aria-checked="true">
|
|
|
|
|
<span data-l10n-id="pdfjs-scroll-vertical-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="scrollHorizontal" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-scroll-horizontal-button" role="radio" aria-checked="false">
|
|
|
|
|
<span data-l10n-id="pdfjs-scroll-horizontal-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="scrollWrapped" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-scroll-wrapped-button" role="radio" aria-checked="false">
|
|
|
|
|
<span data-l10n-id="pdfjs-scroll-wrapped-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="horizontalToolbarSeparator"></div>
|
|
|
|
|
|
|
|
|
|
<div id="spreadModeButtons" role="radiogroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="spreadNone" class="toolbarButton labeled toggled" type="button" tabindex="0" data-l10n-id="pdfjs-spread-none-button" role="radio" aria-checked="true">
|
|
|
|
|
<span data-l10n-id="pdfjs-spread-none-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="spreadOdd" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-spread-odd-button" role="radio" aria-checked="false">
|
|
|
|
|
<span data-l10n-id="pdfjs-spread-odd-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="spreadEven" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-spread-even-button" role="radio" aria-checked="false">
|
|
|
|
|
<span data-l10n-id="pdfjs-spread-even-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="imageAltTextSettingsSeparator" class="horizontalToolbarSeparator hidden"></div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="imageAltTextSettings" type="button" class="toolbarButton labeled hidden" tabindex="0" data-l10n-id="pdfjs-image-alt-text-settings-button" aria-controls="altTextSettingsDialog">
|
|
|
|
|
<span data-l10n-id="pdfjs-image-alt-text-settings-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<div class="horizontalToolbarSeparator"></div>
|
|
|
|
|
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="documentProperties" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-document-properties-button" aria-controls="documentPropertiesDialog">
|
|
|
|
|
<span data-l10n-id="pdfjs-document-properties-button-label"></span>
|
2024-07-01 22:37:48 +02:00
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div> <!-- secondaryToolbar -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2012-04-25 11:34:28 -07:00
|
|
|
|
</div>
|
2013-02-06 15:19:29 -08:00
|
|
|
|
<div id="loadingBar">
|
|
|
|
|
<div class="progress">
|
|
|
|
|
<div class="glimmer">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2011-12-11 19:38:20 -06:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2011-05-26 16:02:52 +02:00
|
|
|
|
|
2013-07-06 15:37:03 +02:00
|
|
|
|
<div id="viewerContainer" tabindex="0">
|
2014-09-30 10:48:29 -05:00
|
|
|
|
<div id="viewer" class="pdfViewer"></div>
|
2011-07-28 19:48:05 +02:00
|
|
|
|
</div>
|
2012-04-25 11:34:28 -07:00
|
|
|
|
</div> <!-- mainContainer -->
|
2011-10-28 14:32:36 +02:00
|
|
|
|
|
2022-03-25 14:10:13 +01:00
|
|
|
|
<div id="dialogContainer">
|
|
|
|
|
<dialog id="passwordDialog">
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="password" id="passwordText" data-l10n-id="pdfjs-password-label"></label>
|
2014-01-22 00:07:07 +01:00
|
|
|
|
</div>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
<div class="row">
|
|
|
|
|
<input type="password" id="password" class="toolbarField">
|
2013-09-24 17:46:54 +02:00
|
|
|
|
</div>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
<div class="buttonRow">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="passwordCancel" class="dialogButton" type="button"><span data-l10n-id="pdfjs-password-cancel-button"></span></button>
|
|
|
|
|
<button id="passwordSubmit" class="dialogButton" type="button"><span data-l10n-id="pdfjs-password-ok-button"></span></button>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
</dialog>
|
|
|
|
|
<dialog id="documentPropertiesDialog">
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="fileNameLabel" data-l10n-id="pdfjs-document-properties-file-name"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="fileNameField" aria-labelledby="fileNameLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="fileSizeLabel" data-l10n-id="pdfjs-document-properties-file-size"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="fileSizeField" aria-labelledby="fileSizeLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="titleLabel" data-l10n-id="pdfjs-document-properties-title"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="titleField" aria-labelledby="titleLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="authorLabel" data-l10n-id="pdfjs-document-properties-author"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="authorField" aria-labelledby="authorLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="subjectLabel" data-l10n-id="pdfjs-document-properties-subject"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="subjectField" aria-labelledby="subjectLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="keywordsLabel" data-l10n-id="pdfjs-document-properties-keywords"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="keywordsField" aria-labelledby="keywordsLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="creationDateLabel" data-l10n-id="pdfjs-document-properties-creation-date"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="creationDateField" aria-labelledby="creationDateLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="modificationDateLabel" data-l10n-id="pdfjs-document-properties-modification-date"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="modificationDateField" aria-labelledby="modificationDateLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="creatorLabel" data-l10n-id="pdfjs-document-properties-creator"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="creatorField" aria-labelledby="creatorLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="producerLabel" data-l10n-id="pdfjs-document-properties-producer"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="producerField" aria-labelledby="producerLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="versionLabel" data-l10n-id="pdfjs-document-properties-version"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="versionField" aria-labelledby="versionLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="pageCountLabel" data-l10n-id="pdfjs-document-properties-page-count"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="pageCountField" aria-labelledby="pageCountLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="pageSizeLabel" data-l10n-id="pdfjs-document-properties-page-size"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="pageSizeField" aria-labelledby="pageSizeLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="linearizedLabel" data-l10n-id="pdfjs-document-properties-linearized"></span>
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<p id="linearizedField" aria-labelledby="linearizedLabel">-</p>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="buttonRow">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="documentPropertiesClose" class="dialogButton" type="button"><span data-l10n-id="pdfjs-document-properties-close-button"></span></button>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
</dialog>
|
2024-05-27 12:38:31 +02:00
|
|
|
|
<dialog class="dialog altText" id="altTextDialog" aria-labelledby="dialogLabel" aria-describedby="dialogDescription">
|
|
|
|
|
<div id="altTextContainer" class="mainContainer">
|
2023-09-15 14:06:50 +02:00
|
|
|
|
<div id="overallDescription">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="dialogLabel" data-l10n-id="pdfjs-editor-alt-text-dialog-label" class="title"></span>
|
|
|
|
|
<span id="dialogDescription" data-l10n-id="pdfjs-editor-alt-text-dialog-description"></span>
|
2023-09-15 14:06:50 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div id="addDescription">
|
|
|
|
|
<div class="radio">
|
|
|
|
|
<div class="radioButton">
|
2023-09-20 10:45:26 +02:00
|
|
|
|
<input type="radio" id="descriptionButton" name="altTextOption" tabindex="0" aria-describedby="descriptionAreaLabel" checked>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="descriptionButton" data-l10n-id="pdfjs-editor-alt-text-add-description-label"></label>
|
2023-09-15 14:06:50 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="radioLabel">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="descriptionAreaLabel" data-l10n-id="pdfjs-editor-alt-text-add-description-description"></span>
|
2023-09-15 14:06:50 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="descriptionArea">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<textarea id="descriptionTextarea" aria-labelledby="descriptionAreaLabel" data-l10n-id="pdfjs-editor-alt-text-textarea" tabindex="0"></textarea>
|
2023-09-15 14:06:50 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="markAsDecorative">
|
|
|
|
|
<div class="radio">
|
|
|
|
|
<div class="radioButton">
|
2023-09-20 10:45:26 +02:00
|
|
|
|
<input type="radio" id="decorativeButton" name="altTextOption" aria-describedby="decorativeLabel">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="decorativeButton" data-l10n-id="pdfjs-editor-alt-text-mark-decorative-label"></label>
|
2023-09-15 14:06:50 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="radioLabel">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="decorativeLabel" data-l10n-id="pdfjs-editor-alt-text-mark-decorative-description"></span>
|
2023-09-15 14:06:50 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="buttons">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="altTextCancel" class="secondaryButton" type="button" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-cancel-button"></span></button>
|
|
|
|
|
<button id="altTextSave" class="primaryButton" type="button" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-save-button"></span></button>
|
2023-09-15 14:06:50 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</dialog>
|
2024-07-24 09:34:32 +02:00
|
|
|
|
<dialog class="dialog newAltText" id="newAltTextDialog" aria-labelledby="newAltTextTitle" aria-describedby="newAltTextDescription" tabindex="0">
|
|
|
|
|
<div id="newAltTextContainer" class="mainContainer">
|
|
|
|
|
<div class="title">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="newAltTextTitle" data-l10n-id="pdfjs-editor-new-alt-text-dialog-edit-label" role="sectionhead" tabindex="0"></span>
|
2024-07-24 09:34:32 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div id="mainContent">
|
|
|
|
|
<div id="descriptionAndSettings">
|
|
|
|
|
<div id="descriptionInstruction">
|
|
|
|
|
<div id="newAltTextDescriptionContainer">
|
|
|
|
|
<div class="altTextSpinner" role="status" aria-live="polite"></div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<textarea id="newAltTextDescriptionTextarea" aria-labelledby="descriptionAreaLabel" data-l10n-id="pdfjs-editor-new-alt-text-textarea" tabindex="0"></textarea>
|
2024-07-24 09:34:32 +02:00
|
|
|
|
</div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="newAltTextDescription" role="note" data-l10n-id="pdfjs-editor-new-alt-text-description"></span>
|
|
|
|
|
<div id="newAltTextDisclaimer" role="note"><div><span data-l10n-id="pdfjs-editor-new-alt-text-disclaimer1"></span> <a href="https://support.mozilla.org/en-US/kb/pdf-alt-text" target="_blank" rel="noopener noreferrer" id="newAltTextLearnMore" data-l10n-id="pdfjs-editor-new-alt-text-disclaimer-learn-more-url" tabindex="0"></a></div></div>
|
2024-07-24 09:34:32 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div id="newAltTextCreateAutomatically" class="toggler">
|
2024-07-30 18:35:12 +02:00
|
|
|
|
<button id="newAltTextCreateAutomaticallyButton" class="toggle-button" type="button" aria-pressed="true" tabindex="0"></button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="newAltTextCreateAutomaticallyButton" class="togglerLabel" data-l10n-id="pdfjs-editor-new-alt-text-create-automatically-button-label"></label>
|
2024-07-24 09:34:32 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div id="newAltTextDownloadModel" class="hidden">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="newAltTextDownloadModelDescription" data-l10n-id="pdfjs-editor-new-alt-text-ai-model-downloading-progress" aria-valuemin="0" data-l10n-args='{ "totalSize": 0, "downloadedSize": 0 }'></span>
|
2024-07-24 09:34:32 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="newAltTextImagePreview"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="newAltTextError" class="messageBar">
|
|
|
|
|
<div>
|
|
|
|
|
<div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span class="title" data-l10n-id="pdfjs-editor-new-alt-text-error-title"></span>
|
|
|
|
|
<span class="description" data-l10n-id="pdfjs-editor-new-alt-text-error-description"></span>
|
2024-07-24 09:34:32 +02:00
|
|
|
|
</div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="newAltTextCloseButton" class="closeButton" type="button" tabindex="0"><span data-l10n-id="pdfjs-editor-new-alt-text-error-close-button"></span></button>
|
2024-07-24 09:34:32 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="newAltTextButtons" class="dialogButtonsGroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="newAltTextCancel" type="button" class="secondaryButton hidden" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-cancel-button"></span></button>
|
|
|
|
|
<button id="newAltTextNotNow" type="button" class="secondaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-new-alt-text-not-now-button"></span></button>
|
|
|
|
|
<button id="newAltTextSave" type="button" class="primaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-save-button"></span></button>
|
2024-07-24 09:34:32 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</dialog>
|
|
|
|
|
|
2024-08-01 15:29:01 +02:00
|
|
|
|
<dialog class="dialog" id="altTextSettingsDialog" aria-labelledby="altTextSettingsTitle">
|
|
|
|
|
<div id="altTextSettingsContainer" class="mainContainer">
|
|
|
|
|
<div class="title">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="altTextSettingsTitle" data-l10n-id="pdfjs-editor-alt-text-settings-dialog-label" role="sectionhead" tabindex="0" class="title"></span>
|
2024-08-01 15:29:01 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div id="automaticAltText">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span data-l10n-id="pdfjs-editor-alt-text-settings-automatic-title"></span>
|
2024-08-01 15:29:01 +02:00
|
|
|
|
<div id="automaticSettings">
|
|
|
|
|
<div id="createModelSetting">
|
|
|
|
|
<div class="toggler">
|
|
|
|
|
<button id="createModelButton" type="button" class="toggle-button" aria-pressed="true" tabindex="0"></button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="createModelButton" class="togglerLabel" data-l10n-id="pdfjs-editor-alt-text-settings-create-model-button-label"></label>
|
2024-08-01 15:29:01 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div id="createModelDescription" class="description">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span data-l10n-id="pdfjs-editor-alt-text-settings-create-model-description"></span> <a href="https://support.mozilla.org/en-US/kb/pdf-alt-text" target="_blank" rel="noopener noreferrer" id="altTextSettingsLearnMore" data-l10n-id="pdfjs-editor-new-alt-text-disclaimer-learn-more-url" tabindex="0"></a>
|
2024-08-01 15:29:01 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="aiModelSettings">
|
|
|
|
|
<div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span data-l10n-id="pdfjs-editor-alt-text-settings-download-model-label" data-l10n-args='{ "totalSize": 180 }'></span>
|
2024-08-01 15:29:01 +02:00
|
|
|
|
<div id="aiModelDescription" class="description">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span data-l10n-id="pdfjs-editor-alt-text-settings-ai-model-description"></span>
|
2024-08-01 15:29:01 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="deleteModelButton" type="button" class="secondaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-settings-delete-model-button"></span></button>
|
|
|
|
|
<button id="downloadModelButton" type="button" class="secondaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-settings-download-model-button"></span></button>
|
2024-08-01 15:29:01 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="dialogSeparator"></div>
|
|
|
|
|
<div id="altTextEditor">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span data-l10n-id="pdfjs-editor-alt-text-settings-editor-title"></span>
|
2024-08-01 15:29:01 +02:00
|
|
|
|
<div id="showAltTextEditor">
|
|
|
|
|
<div class="toggler">
|
|
|
|
|
<button id="showAltTextDialogButton" type="button" class="toggle-button" aria-pressed="true" tabindex="0"></button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="showAltTextDialogButton" class="togglerLabel" data-l10n-id="pdfjs-editor-alt-text-settings-show-dialog-button-label"></label>
|
2024-08-01 15:29:01 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div id="showAltTextDialogDescription" class="description">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span data-l10n-id="pdfjs-editor-alt-text-settings-show-dialog-description"></span>
|
2024-08-01 15:29:01 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="buttons" class="dialogButtonsGroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="altTextSettingsCloseButton" type="button" class="primaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-settings-close-button"></span></button>
|
2024-08-01 15:29:01 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</dialog>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
|
2025-02-13 21:15:27 +01:00
|
|
|
|
<dialog class="dialog signatureDialog" id="addSignatureDialog" aria-labelledby="addSignatureDialogLabel">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="addSignatureDialogLabel" data-l10n-id="pdfjs-editor-add-signature-dialog-label"></span>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
<div id="addSignatureContainer" class="mainContainer">
|
|
|
|
|
<div class="title">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span role="sectionhead" data-l10n-id="pdfjs-editor-add-signature-dialog-title" tabindex="0"></span>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div role="tablist" id="addSignatureOptions">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="addSignatureTypeButton" type="button" role="tab" aria-selected="true" aria-controls="addSignatureTypeContainer" data-l10n-id="pdfjs-editor-add-signature-type-button" tabindex="0"></button>
|
|
|
|
|
<button id="addSignatureDrawButton" type="button" role="tab" aria-selected="false" aria-controls="addSignatureDrawContainer" data-l10n-id="pdfjs-editor-add-signature-draw-button" tabindex="0"></button>
|
|
|
|
|
<button id="addSignatureImageButton" type="button" role="tab" aria-selected="false" aria-controls="addSignatureImageContainer" data-l10n-id="pdfjs-editor-add-signature-image-button" tabindex="-1"></button>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div id="addSignatureActionContainer" data-selected="type">
|
|
|
|
|
<div id="addSignatureTypeContainer" role="tabpanel" aria-labelledby="addSignatureTypeContainer">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<input id="addSignatureTypeInput" type="text" data-l10n-id="pdfjs-editor-add-signature-type-input" tabindex="0"></input>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div id="addSignatureDrawContainer" role="tabpanel" aria-labelledby="addSignatureDrawButton" tabindex="-1">
|
|
|
|
|
<svg id="addSignatureDraw" xmlns="http://www.w3.org/2000/svg" aria-labelledby="addSignatureDrawPlaceholder"></svg>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="addSignatureDrawPlaceholder" data-l10n-id="pdfjs-editor-add-signature-draw-placeholder"></span>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
<div id="thickness">
|
|
|
|
|
<div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="addSignatureDrawThickness" data-l10n-id="pdfjs-editor-add-signature-draw-thickness-range-label"></label>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
<input type="range" id="addSignatureDrawThickness" min="1" max="5" step="1" value="1" data-l10n-id="pdfjs-editor-add-signature-draw-thickness-range" data-l10n-args='{ "thickness": 1 }' tabindex="0">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="addSignatureImageContainer" role="tabpanel" aria-labelledby="addSignatureImageButton" tabindex="-1">
|
|
|
|
|
<svg id="addSignatureImage" xmlns="http://www.w3.org/2000/svg" aria-labelledby="addSignatureImagePlaceholder"></svg>
|
|
|
|
|
<div id="addSignatureImagePlaceholder">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span data-l10n-id="pdfjs-editor-add-signature-image-placeholder"></span>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
<label id="addSignatureImageBrowse" for="addSignatureFilePicker" tabindex="0">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<a data-l10n-id="pdfjs-editor-add-signature-image-browse-link"></a>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
</label>
|
|
|
|
|
<input id="addSignatureFilePicker" type="file"></input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-03-10 16:50:38 +01:00
|
|
|
|
<div id="addSignatureControls">
|
2025-02-03 18:30:42 +01:00
|
|
|
|
<div id="horizontalContainer">
|
|
|
|
|
<div id="addSignatureDescriptionContainer">
|
2025-03-19 11:19:47 +01:00
|
|
|
|
<label for="addSignatureDescInput" data-l10n-id="pdfjs-editor-add-signature-description-label"></label>
|
2025-02-13 21:15:27 +01:00
|
|
|
|
<span id="addSignatureDescription" class="inputWithClearButton">
|
2025-03-19 11:19:47 +01:00
|
|
|
|
<input id="addSignatureDescInput" type="text" data-l10n-id="pdfjs-editor-add-signature-description-input" tabindex="0"></input>
|
2025-02-13 21:15:27 +01:00
|
|
|
|
<button class="clearInputButton" type="button" tabindex="0" aria-hidden="true"></button>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="clearSignatureButton" type="button" data-l10n-id="pdfjs-editor-add-signature-clear-button" tabindex="0"><span data-l10n-id="pdfjs-editor-add-signature-clear-button-label"></span></button>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div id="addSignatureSaveContainer">
|
2025-03-10 16:50:38 +01:00
|
|
|
|
<input type="checkbox" id="addSignatureSaveCheckbox" checked="true"></input>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<label for="addSignatureSaveCheckbox" data-l10n-id="pdfjs-editor-add-signature-save-checkbox"></label>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
<span></span>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="addSignatureSaveWarning" data-l10n-id="pdfjs-editor-add-signature-save-warning-message"></span>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="addSignatureError" hidden="true" class="messageBar">
|
|
|
|
|
<div>
|
|
|
|
|
<div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span class="title" data-l10n-id="pdfjs-editor-add-signature-image-upload-error-title"></span>
|
|
|
|
|
<span class="description" data-l10n-id="pdfjs-editor-add-signature-image-upload-error-description"></span>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
</div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="addSignatureErrorCloseButton" class="closeButton" type="button" tabindex="0"><span data-l10n-id="pdfjs-editor-add-signature-error-close-button"></span></button>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-02-13 21:15:27 +01:00
|
|
|
|
<div class="dialogButtonsGroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="addSignatureCancelButton" type="button" class="secondaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-add-signature-cancel-button"></span></button>
|
|
|
|
|
<button id="addSignatureAddButton" type="button" class="primaryButton" disabled tabindex="0"><span data-l10n-id="pdfjs-editor-add-signature-add-button"></span></button>
|
2025-02-03 18:30:42 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</dialog>
|
|
|
|
|
|
2025-02-13 21:15:27 +01:00
|
|
|
|
<dialog class="dialog signatureDialog" id="editSignatureDescriptionDialog" aria-labelledby="editSignatureDescriptionTitle">
|
|
|
|
|
<div id="editSignatureDescriptionContainer" class="mainContainer">
|
|
|
|
|
<div class="title">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span id="editSignatureDescriptionTitle" role="sectionhead" data-l10n-id="pdfjs-editor-edit-signature-dialog-title" tabindex="0"></span>
|
2025-02-13 21:15:27 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div id="editSignatureDescriptionAndView">
|
|
|
|
|
<div id="editSignatureDescriptionContainer">
|
2025-03-19 11:19:47 +01:00
|
|
|
|
<label for="editSignatureDescInput" data-l10n-id="pdfjs-editor-add-signature-description-label"></label>
|
2025-02-13 21:15:27 +01:00
|
|
|
|
<span id="editSignatureDescription" class="inputWithClearButton">
|
2025-03-19 11:19:47 +01:00
|
|
|
|
<input id="editSignatureDescInput" type="text" data-l10n-id="pdfjs-editor-add-signature-description-input" tabindex="0"></input>
|
2025-02-13 21:15:27 +01:00
|
|
|
|
<button class="clearInputButton" type="button" tabindex="0" aria-hidden="true"></button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<svg id="editSignatureView" xmlns="http://www.w3.org/2000/svg"></svg>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="dialogButtonsGroup">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="editSignatureCancelButton" type="button" class="secondaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-add-signature-cancel-button"></span></button>
|
|
|
|
|
<button id="editSignatureUpdateButton" type="button" class="primaryButton" disabled tabindex="0"><span data-l10n-id="pdfjs-editor-edit-signature-update-button"></span></button>
|
2025-02-13 21:15:27 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</dialog>
|
|
|
|
|
|
2020-01-08 13:57:31 +01:00
|
|
|
|
<!--#if !MOZCENTRAL-->
|
2022-03-25 14:10:28 +01:00
|
|
|
|
<dialog id="printServiceDialog" style="min-width: 200px;">
|
2022-03-25 14:10:13 +01:00
|
|
|
|
<div class="row">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<span data-l10n-id="pdfjs-print-progress-message"></span>
|
2016-10-08 07:36:55 -05:00
|
|
|
|
</div>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
<div class="row">
|
|
|
|
|
<progress value="0" max="100"></progress>
|
2023-10-13 16:23:17 +02:00
|
|
|
|
<span data-l10n-id="pdfjs-print-progress-percent" data-l10n-args='{ "progress": 0 }' class="relative-progress">0%</span>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="buttonRow">
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="printCancel" class="dialogButton" type="button"><span data-l10n-id="pdfjs-print-progress-close-button"></span></button>
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div>
|
|
|
|
|
</dialog>
|
2016-10-08 07:36:55 -05:00
|
|
|
|
<!--#endif-->
|
2015-07-18 17:11:33 +02:00
|
|
|
|
<!--#if CHROME-->
|
|
|
|
|
<!--#include viewer-snippet-chrome-overlays.html-->
|
|
|
|
|
<!--#endif-->
|
2022-03-25 14:10:13 +01:00
|
|
|
|
</div> <!-- dialogContainer -->
|
2013-09-24 17:46:54 +02:00
|
|
|
|
|
2024-10-22 13:23:47 +05:30
|
|
|
|
<div id="editorUndoBar" class="messageBar" role="status" aria-labelledby="editorUndoBarMessage" tabindex="-1" hidden>
|
|
|
|
|
<div>
|
|
|
|
|
<div>
|
|
|
|
|
<span id="editorUndoBarMessage" class="description"></span>
|
|
|
|
|
</div>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="editorUndoBarUndoButton" class="undoButton" type="button" tabindex="0" data-l10n-id="pdfjs-editor-undo-bar-undo-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-editor-undo-bar-undo-button-label"></span>
|
2024-10-22 13:23:47 +05:30
|
|
|
|
</button>
|
2025-03-13 17:19:40 +01:00
|
|
|
|
<button id="editorUndoBarCloseButton" class="closeButton" type="button" tabindex="0" data-l10n-id="pdfjs-editor-undo-bar-close-button">
|
|
|
|
|
<span data-l10n-id="pdfjs-editor-undo-bar-close-button-label"></span>
|
2024-10-22 13:23:47 +05:30
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div> <!-- editorUndoBar -->
|
|
|
|
|
|
2012-04-12 16:29:15 -07:00
|
|
|
|
</div> <!-- outerContainer -->
|
2012-06-28 09:50:25 -07:00
|
|
|
|
<div id="printContainer"></div>
|
2011-05-26 16:02:52 +02:00
|
|
|
|
</body>
|
2011-05-04 19:32:59 -05:00
|
|
|
|
</html>
|