Jonas Jenwald
bb16475070
Use the |shadow| function from src/shared/util.js in viewer.js
10 years ago
Tim van der Meij
b72395d5ce
Determine filename only once and reduce code for _bindLink
10 years ago
Tim van der Meij
818b7fc306
Add JSDoc comments to PDFAttachmentView
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
f4dbc99483
Add JSDoc comments to PDFOutlineView
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
777d69b52e
Remove dead code from PDFThumbnailView
10 years ago
Jonas Jenwald
b7041f81f4
Enable cancelling of thumbnail drawing
...
This is useful if thumbnails are being rendered when the document is rotated, since it let us abort the current rendering.
10 years ago
Jonas Jenwald
878aa76c15
Refactor PDFThumbnailView to look more similar to PDFPageView
...
This includes an optimization to zero the height and width of existing thumbnail canvases, when they are removed and recreated during rotation of the document. (Credit goes to nnethercote, who initially found this in PR 4920.)
10 years ago
Jonas Jenwald
7f8f404536
Rename ThumbnailView to PDFThumbnailView and refactor it to be more class-like
10 years ago
Tim van der Meij
2524c4dee7
Remove obselete file from .gitignore
10 years ago
Jonas Jenwald
8471bb3206
Avoid getting |childNodes| twice in PDFPageView_reset, by using the variable instead
10 years ago
Tim van der Meij
c278d65dfd
Remove unused viewer-snippet-b2g-activity-header.html
10 years ago
Tim van der Meij
f89d1ca2e7
Remove unused index.html.template
10 years ago
Jonas Jenwald
64ba38008f
Rename the thumbnail_view.js file
10 years ago
Jonas Jenwald
dfa993d13d
Fix function names in PDFThumbnailViewer
...
Also updates a couple of the JSDoc comments.
10 years ago
Jonas Jenwald
c55dcf19a0
Move PDFThumbnailViewer to its own file
10 years ago
Tim van der Meij
879f3d2c5a
Fill temporary canvases with a white background too
10 years ago
Jonas Jenwald
c149d4d75e
Fix thumbnail rendering regression, when using |draw|, for PDF files with blend modes (issue 5637)
10 years ago
Jonas Jenwald
af6170ffd0
Attempt to display the File size quicker in the Document Properties dialog (PR 5554 followup)
10 years ago
Jonas Jenwald
c466a9e034
Fix thumbnail scaling regression for files with different page sizes (issue 5637)
10 years ago
Yury Delendik
d52289d8fd
Fixes B2G file open sequence.
10 years ago
Jonas Jenwald
95dd9ee185
Move the |pagerendered| event to pdf_page_view.js
...
Also deprecates the |pagerender| event, except for GENERIC builds.
10 years ago
Jonas Jenwald
3f061cef86
Add a |textlayerrendered| event
10 years ago
Yury Delendik
3a61edfcae
Refactors getDocument and adds PDFDataRangeTransport.
11 years ago
Jonas Jenwald
42a00394b0
Remove unused anchor links placed before every page
...
In old versions of the viewer, anchor links were used to be able to scroll a page into view. Since we for quite some time have had a `scrollIntoView` function which handles this, the anchor links are no longer necessary and I believe that they can be removed. Doing so will reduce the total number of DOM elements in the viewer.
For most documents this patch will probably not make much of a difference performance wise, but for very long (1000+ pages) documents this could help performance especially on lower powered hardware.
11 years ago
fkaelberer
32c32c18e3
Better thumbnail image scaling
11 years ago
fkaelberer
1d31018c7d
Make thumbnail CSS size independent of data-loaded tag
11 years ago
fkaelberer
2bb981a835
Ensure constant 7px thumbnail border width
11 years ago
Jonas Jenwald
86edb8687d
Fix the placement of arrows in the zoom box
...
Now that [bug 649849](https://bugzilla.mozilla.org/show_bug.cgi?id=649849 ) has been fixed, adding support for `-moz-appearance: none`, the arrow is now too close to the text in the zoom box. This is currently only an issue in Nightly, but assuming the patch doesn't get backed out, this will soon affect all versions of Firefox.
The only simple solution I could find seems to be removing `*-appearance: none` rules from the CSS. I haven't been able to find any easier solutions that still looks the same with/without bug 649849.
11 years ago
Jonas Jenwald
5aad040735
Fix handling of "Fit" zoom values in setHash (issue 5581)
11 years ago
Tim van der Meij
c67ad28673
Remove unused annotation highlight div
...
This is now done using CSS. For annotation-heavy documents this change makes the DOM much lighter.
11 years ago
Yury Delendik
513a3d8c91
Replaces text selection example
11 years ago
Yury Delendik
2565e627a3
Refactors draw method in PDFPageView; makes optional some PDFPageViewOptions options
11 years ago
Yury Delendik
2ac7ac4678
Removes lastScrollSource and isViewerInPresentationMode from TextLayerBuilderOptions
11 years ago
Yury Delendik
b930228788
Refactors Cache into PDFPageViewBuffer
11 years ago
Yury Delendik
22c62685b0
Removes Stats dependency from PDFPageView.
11 years ago
Yury Delendik
9f384bbb41
Creates AnnotationsLayerBuilder.
11 years ago
Yury Delendik
fe4ac86781
Removes PDFPageSource
11 years ago
Yury Delendik
7663942ee5
Creates IPDFTextLayerFactory interface
11 years ago
Yury Delendik
f68678086d
Simple restructuring PageView into PDFPageView
11 years ago
Yury Delendik
863d583ae1
Renames page_view.js file.
11 years ago
dustyrockpyle
7a0e764ffd
Added page break hints in viewer css.
11 years ago