Jonas Jenwald
3820946301
Fix (most) errors reported by the no-multi-spaces
ESLint rule
...
http://eslint.org/docs/rules/no-multi-spaces
2016-12-12 20:35:51 +01:00
Yury Delendik
7b6ba5e9fd
Don't fail if mozL10n is not present.
2016-12-01 08:48:07 -06:00
Yury Delendik
f7d6f3a739
Adds SVG rendering capabilities to the PDFViewer.
2016-11-18 13:03:49 -06:00
Yury Delendik
a4402c84de
Refactor toolbar (and secondary toolbar).
2016-11-18 12:51:15 -06:00
Yury Delendik
0576c9c6c6
Replaces all preprocessor directives with PDFJSDev calls.
2016-10-14 10:57:53 -05:00
Yury Delendik
223a18ccc8
Simplified wheel processing.
2016-09-27 15:27:42 -05:00
Yury Delendik
7fd3db9977
Adds EventBus.
2016-04-28 06:57:24 -05:00
Yury Delendik
4165cedc9f
Replace pdfjsLib with module that represents pdf.js.
2016-04-13 10:11:34 -05:00
Yury Delendik
006e8fb59d
Introduces UMD headers to the web/ folder.
2016-04-13 10:09:48 -05:00
Yury Delendik
1e3e14e6b2
Exposes all functional members via lib exports and use them in viewer.
2016-04-07 13:46:07 -05:00
Yury Delendik
1d12aed5ca
Move all PDFJS.xxx settings into display/global.
2016-04-07 13:46:07 -05:00
Yury Delendik
313b418a20
Prepare viewer.js for async loading and module separation.
2016-04-01 10:29:44 -05:00
Tim van der Meij
0351c7eff4
Move the getFileName
helper function to the core
...
This is required to be able to use it in the annotation display code,
where we now apply it to sanitize the filename of the FileAttachment
annotation. The PDF file from https://bugzilla.mozilla.org/show_bug.cgi?id=1230933 has shown that some PDF generators include the path of the file rather than the filename, which causes filenames with weird initial characters. PDF viewers handle this differently (for example Foxit Reader just replaces forward slashes with spaces), but we think it's better to only show the filename as intended.
Additionally we add unit tests for the `getFilenameFromUrl` helper
function.
2016-02-23 22:49:53 +01:00
Jonas Jenwald
97c10e9c08
Strip null
(\x00) characters from the URLs in LinkAnnotations (issue 6832)
...
Apparently some PDF files can have annotations with `URI` entries ending with `null` characters, thus breaking the links.
To handle this edge-case of bad PDFs, this patch moves the already existing utility function from `ui_utils.js` into `util.js`, in order to fix those URLs.
Fixes 6832.
2016-01-04 21:55:20 +01:00
Yury Delendik
2f34fd46cb
Move CustomStyle.
2015-11-19 10:47:17 -06:00
Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
2015-11-14 07:32:18 +05:30
Yury Delendik
7cb32759ed
Better CSS scaling for deviceRixelRatio != 1.
2015-10-28 17:27:42 -05:00
Jonas Jenwald
9fc8e1ea25
Fix a regression, from PR 5356, that breaks all scrolling in PresentationMode
...
*This regressed in PR 5356.*
Rather than just backing out the offending code, this patch restores scrolling in PresentationMode by making the `overflow: hidden;` check optional and letting the callers that need it (e.g. `PDFFindController`) opt-in to use it.
2015-10-13 16:27:50 +02:00
Brendan Dahl
42ddb7151b
Merge pull request #5356 from Rob--W/scroll-issue-5355
...
scrollIntoView: Skip overflow:hidden elements
2015-10-05 11:15:34 -07:00
Jonas Jenwald
b7d1bed463
Add a utility function, for the viewer, that removes null
(\x00) characters (issue 6416)
...
Since some browsers render `null` characters, and others don't, this patch adds a way to remove them to prevent display issues in the viewer UI.
Given that documents may contain very long outlines, I've added a utility function to avoid creating a lot of unnecessary `RegExp` objects.
To avoid any future issues, this utility function is used for both the outline and the attachments.
Fixes 6416.
2015-09-09 23:49:03 +02:00
Rob Wu
3e363ae307
scrollIntoView: Skip overflow:hidden elements
2015-07-14 00:23:29 +02:00
Yury Delendik
1b847df2f3
Using pdfjs-dist as a library for b2g viewer.
2015-06-30 16:53:32 -05:00
Yury Delendik
0ef6212b64
Refactors PDFLinkService.
...
# Conflicts:
# web/viewer.js
2015-05-16 11:20:36 -05:00
fkaelberer
a78bb6b946
Use binary search in getVisibleElements()
2015-03-01 17:41:20 +01:00
Jonas Jenwald
eed67ea8bb
Remove the |el| property in PDFPageView and PDFThumbnailView
2015-02-27 00:26:02 +01:00
Yury Delendik
b930228788
Refactors Cache into PDFPageViewBuffer
2014-12-19 16:54:32 -06:00
Jonas Jenwald
ecbb39f983
Fix loadingBar hiding when disableAutoFetch is enabled (issue 3590)
2014-10-05 23:16:36 +02:00
Jonas Jenwald
cfeb4c1019
Small refactoring of the loadingBar hiding code
2014-10-05 23:15:10 +02:00
Jonas Jenwald
b9ef80e167
Add a page loading indicator to the page number input
2014-10-01 00:13:44 +02:00
Yury Delendik
a1eca2084d
Moves constants to avoid dependency on PDFView
2014-09-21 12:47:26 -05:00
Yury Delendik
bfefadb87c
Moves watchScroll and getVisibleElements from PDFView
2014-09-20 08:19:04 -05:00
Tim van der Meij
24cf969422
Use strict equalities in web/ui_utils.js
2014-07-31 22:06:38 +02:00
Yury Delendik
df87df59b6
Increases page cache size when needed
2014-06-17 13:41:40 -05:00
Nicholas Nethercote
5b7df1830d
Fix PageView cache re-insertions.
2014-06-13 07:57:58 -07:00
Yury Delendik
b39f0c311c
Refactors history and how the database is stored
2014-04-03 13:23:18 -05:00
Jonas Jenwald
0bd865b329
Fix coding style in web/ui_utils.js
2014-03-09 12:04:56 +01:00
Jonas Jenwald
736c570231
Add support for horizontal scrolling in 'scrollIntoView' in ui_utils.js
2013-12-03 19:55:35 +01:00
Yury Delendik
fdd5d414ed
Fixes find position in HiDPI displays
2013-11-25 09:07:10 -06:00
Jonas Jenwald
60610cd625
Implement default preferences
2013-11-18 23:51:06 +01:00
Brendan Dahl
6ef44da10b
Use canvas and css width/height instead of css transform for high dpi.
2013-09-20 12:11:14 -07:00
Yury Delendik
99c9079f54
[CSP] removes inlined styles and scripts
2013-07-30 21:00:37 -05:00
Jonas
4890c5d017
Fix the positioning of the progressive loadingBar
2013-07-18 18:28:59 +02:00
Yury Delendik
ef658bf5f1
Refactoring download button logic
2013-07-12 13:14:13 -05:00
Vivin Paliath
83b6eaed16
pr #3356
...
squashing commits.
2013-06-18 09:05:55 -07:00