Yury Delendik
b930228788
Refactors Cache into PDFPageViewBuffer
10 years ago
Yury Delendik
22c62685b0
Removes Stats dependency from PDFPageView.
10 years ago
Yury Delendik
9f384bbb41
Creates AnnotationsLayerBuilder.
10 years ago
Yury Delendik
fe4ac86781
Removes PDFPageSource
10 years ago
Yury Delendik
7663942ee5
Creates IPDFTextLayerFactory interface
10 years ago
Yury Delendik
f68678086d
Simple restructuring PageView into PDFPageView
10 years ago
Yury Delendik
863d583ae1
Renames page_view.js file.
10 years ago
Yury Delendik
374b94381d
Moves scrollPageIntoView to the PDFViewer.
11 years ago
Jonas Jenwald
b06e65e5d6
Followup fix for entering/exiting Presentation mode
...
Even after PR 5359, switching to/from Presentation mode is still sluggish and I'm still seeing `too much recursion` printed in the console.
I've managed to track down the issue to line https://github.com/mozilla/pdf.js/blob/master/web/page_view.js#L371 . It appears that for this particular case, we actually *need* to set `noScroll = true` when calling the `_setScale` function. (Note that it only applies to *this* line, and not to Presentation mode in general.)
Given the amount of refactoring done to the viewer, I'm not sure what the best way to fix this would be. However I'm submitting this patch as an easy workaround for now, but we should probably refactor this to avoid calling a "private" method directly.
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
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
Mitar
2f72ac1255
textLayer is not used anymore in render context.
...
It should be removed to prevent confusion when reading the code.
11 years ago
Yury Delendik
e8af56ffc5
Fixes text-selection example
11 years ago
Tim van der Meij
dbe22475e1
Converting PDFFindBar and PDFFindController to classes
11 years ago
Yury Delendik
c1c950ce74
Fixes AnnotationUtils in the extension build
11 years ago
Yury Delendik
bdeca30fbf
Splits shared/annotation.js into core/ and display/
11 years ago
Yury Delendik
0cd28ebfa3
Telemetry for used stream and font types
11 years ago
Nicholas Nethercote
29d3db4422
Cache pages at the start of drawing, not the end.
11 years ago
Samuel Chantaraud
952545e20f
Limit the size of canvases to 5MP (iOS restriction)
11 years ago
Nicholas Nethercote
97cc06a7f9
Zero the height and width of the PageView canvas before deleting.
11 years ago
Mohammed Abu-alsaad
e6546642db
Added more preference variables from the available hash parameters
11 years ago
Yury Delendik
97782cafa4
Update text layer correctly when zooming with USE_ONLY_CSS_ZOOM
11 years ago
Samuel Chantaraud
7a4543e348
Prevent the annotationLayer to be recreated when the page is redrawn
...
This allows interactive annotations to keep their states after a resize
11 years ago
Rob Wu
d7dfa447cd
Remove unused (local) variables in web/
11 years ago
Yury Delendik
f6c631bc31
Reverts #4556 due to flicker on Chome
11 years ago
Tim van der Meij
a71a87a821
Fixes lint warning W018: confusing use of exclamation mark
11 years ago
p01
b10aa18b3e
Use Opaque Canvas where possible
11 years ago
Brendan Dahl
5bd8a83c9b
Build the text layer geometry on the worker.
11 years ago
Samuel Chantaraud
076b3433b4
Improved annotations' display/behavior.
...
Added an "InteractiveAnnotation" class to homogenize the annotations' structure (highlighting) and user interactions (for now, used for text and link annotations).
Text annotations:
The appearance (AP) has priority over the icon (Name).
The popup extends horizontally (up to a limit) as well as vertically.
Reduced the title's font size.
The annotation's color (C) is used to color the popup's background.
On top of the mouseover show/hide behavior, a click on the icon will lock the annotation open (for mobile purposes). It can be closed with another click on either the icon or the popup.
An annotation printing is conditioned by its "print" bit
Unsupported annotations are not displayed at all.
11 years ago
Brendan Dahl
ce9e9e6ff7
Remove embeddedFontsUsed from API.
11 years ago
Jonas Jenwald
d6ca563f46
Fix wrong page being displayed when entering/exiting Presentation mode with zoom set to 'page-fit'
11 years ago
Jonas Jenwald
3c637b7ca9
Update the annotationLayer when using CSS only zoom
11 years ago
Jonas Jenwald
05c331c295
Maintain the current position in the document when zooming
11 years ago
Yury Delendik
2f4246abe4
Fixes FitV scrolling
11 years ago
Yury Delendik
378c49c2d8
Avoiding double draw() calls
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Brendan Dahl
1bbf0e55b0
Fix rotation regression from #3970 .
12 years ago
Brendan Dahl
c20476bfca
Fix page rotation for unloaded pages.
12 years ago
Yury Delendik
fdd5d414ed
Fixes find position in HiDPI displays
12 years ago
Jonas Jenwald
7542d50167
Fix issues with /FitR destinations
12 years ago
Yury Delendik
bd7985a83b
Fixes cleaning up of the rendered pages
12 years ago
Yury Delendik
e712c4136a
Cleaning up fonts when viewer is idle for some time
12 years ago
Brendan Dahl
a64cd42de9
Use page promise for text extraction.
12 years ago
Jonas Jenwald
1cae737d03
Fix zoom parameter regression
12 years ago
Jonas Jenwald
f35e777d81
Apply the current zoom level value to each page in Presentation Mode
12 years ago