Jonas Jenwald
d53fa1884b
Simplify a couple of preprocessor tags in viewer.js
10 years ago
Jonas Jenwald
bb16475070
Use the |shadow| function from src/shared/util.js in viewer.js
10 years ago
Tim van der Meij
4c6ca1c78f
Remove DownloadManager dependency
...
We can pass it in using the options object. Note that that this also avoids creating a DownloadManager object for each separate link (instead, having only one is enough).
10 years ago
Tim van der Meij
733882ac25
Refactor PDFAttachmentView to be more class-like and to separate functionality into methods
10 years ago
Tim van der Meij
609e2a30e9
Rename DocumentAttachmentsView to PDFAttachmentView
10 years ago
Tim van der Meij
2c19d99a2e
Rename document_attachments_view.js to pdf_attachment_view.js
10 years ago
Tim van der Meij
ea1d37eb0d
Refactor PDFAttachmentView to be more class-like and to separate functionality into methods
10 years ago
Tim van der Meij
b17da309ed
Rename DocumentOutlineView to PDFOutlineView
10 years ago
Tim van der Meij
3eeb571425
Rename document_outline_view.js to pdf_outline_view.js
10 years ago
fkaelberer
d3022e1e70
Update thumbnail images only when sidebar is visible
10 years ago
fkaelberer
047d61ed1f
Update thumbnail style only when sidebar is visible
10 years ago
Jonas Jenwald
c55dcf19a0
Move PDFThumbnailViewer to its own file
10 years ago
Jonas Jenwald
af6170ffd0
Attempt to display the File size quicker in the Document Properties dialog (PR 5554 followup)
10 years ago
Yury Delendik
d52289d8fd
Fixes B2G file open sequence.
10 years ago
Jonas Jenwald
3f061cef86
Add a |textlayerrendered| event
10 years ago
Yury Delendik
3a61edfcae
Refactors getDocument and adds PDFDataRangeTransport.
10 years ago
Jonas Jenwald
5aad040735
Fix handling of "Fit" zoom values in setHash (issue 5581)
10 years ago
Yury Delendik
22c62685b0
Removes Stats dependency from PDFPageView.
10 years ago
Yury Delendik
fe4ac86781
Removes PDFPageSource
10 years ago
Yury Delendik
f68678086d
Simple restructuring PageView into PDFPageView
10 years ago
Jonas Jenwald
6078901962
Prevent a "TypeError: pdfViewer is null" when the viewer loads (PR 5413 followup)
...
Currently if you manage to e.g. open the console (with <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>K</kbd>) before the viewer is initialized, the following will be printed in the console: `TypeError: pdfViewer is null`.
This doesn't cause any actual errors, but nevertheless it seems like something we should avoid.
Followup to PR 5413.
11 years ago
Jonas Jenwald
2505c8613b
Allow localization of the placement of percent signs in the zoom box
11 years ago
Jonas Jenwald
a1f4bff4f3
Disable zooming in Presentation Mode
11 years ago
Tim van der Meij
b215af30d3
Require destinations when they are needed and do not fetch all of them in advance
11 years ago
Jonas Jenwald
ecbb39f983
Fix loadingBar hiding when disableAutoFetch is enabled (issue 3590)
11 years ago
Jonas Jenwald
cfeb4c1019
Small refactoring of the loadingBar hiding code
11 years ago
Jonas Jenwald
a429e88c3b
Fix inconsistencies in the preference names used by PDFViewerApplication
...
Since `preferenceSidebarViewOnLoad` is an enumeration value, it seems better to initialize it with the default one instead of a boolean.
`preferencesPdfBugEnabled` uses a superfluous "s", which is a typo I made when I introduced it.
11 years ago
Jonas Jenwald
b9ef80e167
Add a page loading indicator to the page number input
11 years ago
Yury Delendik
5e0b2d383f
Fixes enabling pdfBug
11 years ago
Yury Delendik
374b94381d
Moves scrollPageIntoView to the PDFViewer.
11 years ago
Yury Delendik
44779f14b0
Renames and refactors PDFView to PDFViewerApplication.
11 years ago
Yury Delendik
a89bba35b2
Adds types definitions (jsdoc) for the PDFViewer code.
11 years ago
Yury Delendik
3773972dce
Marks some private methods in PDFViewer and PDFThumbnailViewer
...
Conflicts:
web/pdf_viewer.js
11 years ago
Yury Delendik
a1eca2084d
Moves constants to avoid dependency on PDFView
11 years ago
Yury Delendik
f1851c6393
Removes any usage of PDFView in the PageView
11 years ago
Yury Delendik
fbd7eedce8
Removes PresentationMode dependency from PDFViewer
11 years ago
Yury Delendik
a06a974f78
Moves rendering queue logic from PDFView
11 years ago
Yury Delendik
7642c39734
Moves pdfDocument.getPage/getTextContent requests out of PDFView
11 years ago
Yury Delendik
7af8748151
Moves viewer code into PDFViewer and some code from PageView.
11 years ago
Yury Delendik
3bce14761a
Moves thumbs logic into PDFThumbnailViewer.
11 years ago
Yury Delendik
bfefadb87c
Moves watchScroll and getVisibleElements from PDFView
11 years ago
Yury Delendik
c3f191a27c
Implement streaming using moz-chunk-arraybuffer
11 years ago
Manuel Padrón Martínez
293d566f67
Changed to lowercase everywhere the hashParams is compared
11 years ago
Manuel Padrón Martínez
4623f20221
Lowerize the params to allow case sensitive
11 years ago
Jonas Jenwald
ed5fc43510
Add |UnexpectedResponseException| to fix the exception handling when file loading fails because the server responds with a non 404 status message
11 years ago
sangm
f4ccb1b61c
Bug 1031612 - In PDF Viewer, the buggy XMP title "Untitled" overrides the document info title
11 years ago
Manuel Casas Barrado
f40fa1ac2a
Bug 1054643 - [B2G][PDF Viewer]PDF Viewer title is shown as blob:...
11 years ago
Jonas Jenwald
2701edc7c6
Change `getDocumentError` in web/viewer.js to use `instanceof` instead of the exception name
11 years ago
Jonas Jenwald
ca027ebfdb
Fix the exception propagation when rejecting workerReadyCapability
...
Currently when an exception is thrown, we try to reject `workerReadyCapability` with multiple arguments in src/core/api.js. This obviously doesn't work, hence this patch changes that to instead reject with the exception object as is.
In src/core/worker.js the exception is currently (unncessarily) wrapped in an object, so this patch also simplifies that to directly send the exception object instead.
11 years ago
Chris Peterson
81d5bd86ea
Replace magic scale value 0 with UNKNOWN_SCALE
11 years ago