pramodhkp
0e5998a325
Added svg export tool
2014-08-14 23:18:19 +05:30
Yury Delendik
84584f98f7
Merge pull request #5180 from pramodhkp/svgcli1
...
Minor changes for api.js, font_loader.js and svg.js
2014-08-13 15:00:24 -05:00
pramodhkp
6d53fc4db7
Minor changes for api.js, font_loader.js and svg.js
2014-08-14 01:01:09 +05:30
Yury Delendik
7fb6c87774
Merge pull request #5179 from timvandermeij/misc-svg-fixes
...
Miscellaneous code improvements for svg.js
2014-08-13 13:45:03 -05:00
Tim van der Meij
44fbf0ce14
Miscellaneous code improvements for svg.js
2014-08-13 20:31:21 +02:00
Tim van der Meij
f36bfccedf
Merge pull request #5177 from Snuffleupagus/remove-debug-console-log
...
Remove two instances of leftover console.log debug statements
2014-08-13 17:21:14 +02:00
Jonas Jenwald
06b5d97bc6
Remove two instances of leftover console.log debug statements
...
The `console.log` statement in evaluator_spec.js is obviously not needed. In obj.js it could have been replaced by `info`, but that seemed unnecessary given the already existing `error`.
2014-08-13 14:29:46 +02:00
Jonas Jenwald
c3691500fa
Merge pull request #5172 from nnethercote/readCharCode-retval
...
Avoid an allocation in readCharCode().
2014-08-13 11:03:07 +02:00
Nicholas Nethercote
61e6b576d4
Avoid an allocation in readCharCode().
...
readCharCode() returns two values, and currently allocates a length-2
array on every call to do so. This change makes it instead us a
passed-in object which can be reused.
This tiny change reduces the total JS allocations done for the document
in Mozilla bug 992125 by 4.2%.
2014-08-12 16:12:58 -07:00
Yury Delendik
41a5bce6de
Merge pull request #5174 from Snuffleupagus/even-more-api-unittests
...
Add even more unit tests for the API
2014-08-12 09:20:59 -05:00
Tim van der Meij
03fd24bde2
Merge pull request #5175 from Snuffleupagus/disable-first/last-page-buttons
...
Disable the "Go to First/Last Page" buttons when the first/last page is currently active
2014-08-12 13:39:24 +02:00
Jonas Jenwald
ca1dbda348
Disable the "Go to First/Last Page" buttons when the first/last page is currently active
...
Since the "Previous/Next Page" buttons are disabled when the first/last page is active, I think that for the sake of consistency the "Go to First/Last Page" should behave the same way.
2014-08-12 12:58:59 +02:00
Jonas Jenwald
fc5ad8a8d6
Add even more unit tests for the API
...
This patch replaces most of the remaining TODOs in test/unit/api_spec.js with actual tests.
2014-08-12 12:09:31 +02:00
Tim van der Meij
249b8f4137
Merge pull request #4156 from Fitoschido/patch-1
...
Reduce load progress bar’s height to 4 pixels
2014-08-12 11:34:46 +02:00
Adolfo Jayme Barrientos
ba426f479e
Reduce load progress bar’s height to 4 pixels
2014-08-11 23:09:38 -05:00
Tim van der Meij
f1c73c209f
Merge pull request #5169 from Snuffleupagus/DocumentProperties-faster-fileSize
...
Attempt to display the File size quicker in the Document Properties dialog
2014-08-11 19:42:20 +02:00
Yury Delendik
66bfb9c1b5
Merge pull request #5171 from existentialism/fix-typo
...
Fix typo
2014-08-11 11:49:15 -05:00
Brian Ng
5365fa9de7
Fix typo
2014-08-11 11:40:49 -05:00
Yury Delendik
e5aeb14dd6
Merge pull request #5170 from yurydelendik/svgformatnumbers
...
[SVG] Uses float number formatter to print numbers in SVG
2014-08-11 11:28:04 -05:00
Yury Delendik
dae92b9cc7
Uses float number formatter to print numbers in SVG
2014-08-11 11:18:32 -05:00
Jonas Jenwald
3fd6c468b7
Attempt to display the File size quicker in the Document Properties dialog
...
Currently the File size field in the Document Properties dialog isn't set until `PDFView.pdfDocument.getDownloadInfo()` is resolved. If the Document Properties dialog is opened while a PDF file is loading with range requests, this leads to the less desirable situation where all fields *except* File size are available.
In cases where `PDFView.open()` is called with the `args` parameter defined, and `args` contains the property `length`, we actually know the File size when the PDF file begins to load. (This is usually the case when ranged loading is used in the Firefox addon/built-in version.)
Hence we can use `args.length` to set the File size immediately when `PDFView.open()` is called, resulting in a better user experience.
2014-08-11 16:44:36 +02:00
Tim van der Meij
0e4d9061b2
Merge pull request #5166 from Snuffleupagus/pdfViewClose-cleanup
...
Remove old unused code from PDFView.close()
2014-08-10 22:49:04 +02:00
Yury Delendik
29d116f769
Merge pull request #5163 from yurydelendik/fontrefact
...
Refactoring of OpenType/TrueType font construction
2014-08-10 15:20:26 -05:00
Yury Delendik
ab8270ae3a
Fixes searchRange calculation
2014-08-10 14:11:04 -05:00
Yury Delendik
42771159ca
Removes stringToArray
2014-08-10 14:11:04 -05:00
Yury Delendik
350556f085
Removes bytesToString/stringToArray conversions in the font.js
2014-08-10 14:11:04 -05:00
Yury Delendik
5e1861499c
Merge pull request #5160 from tomdw/feature/fix-angular-compatibility-ie9-conflict
...
only convert in IE9 if the requested responseType is actually an arraybu...
2014-08-10 14:08:19 -05:00
Yury Delendik
4ce1b1e987
Merge pull request #5150 from nnethercote/toUnicode
...
Fix #4935
2014-08-10 14:07:26 -05:00
Jonas Jenwald
4737e1ad8d
Remove old unused code from PDFView.close()
2014-08-10 16:50:21 +02:00
Tim van der Meij
a353f88e6b
Merge pull request #5164 from timvandermeij/svg-nits
...
Nit fixes for svg.js
2014-08-10 14:43:50 +02:00
Tim van der Meij
b6e4ac9070
Nit fixes for svg.js
2014-08-10 14:40:49 +02:00
Tom De Wolf
a265861ba6
only convert in IE9 if the requested responseType is actually an arraybuffer, otherwise just return the responseText. That way the compatibility.js does not break other frameworks like angular that not always want an array from xhr requests.
2014-08-10 10:26:32 +02:00
Yury Delendik
99b08ed223
Merge pull request #5162 from yurydelendik/pramodhkp-fixupgstate2
...
[SVG] Reduces amount of used memory during PNG creation.
2014-08-09 15:56:11 -05:00
Yury Delendik
56f0539045
Reduces amount of used memory during PNG creation.
2014-08-09 15:53:05 -05:00
pramodhkp
458b69b649
Adds image and mask features, fixes clippath
2014-08-10 01:06:43 +05:30
Yury Delendik
13f1a964a7
Merge pull request #5154 from Rob--W/aes-padding-5152
...
AES cipher: make padding optional
2014-08-09 09:25:54 -05:00
Jonas Jenwald
86d06d650a
Merge pull request #5153 from Rob--W/crx-preserve-reference-fragment
...
Preserve reference fragment in Chromium URL router
2014-08-09 12:38:15 +02:00
Yury Delendik
8909bf1ad9
Merge pull request #5156 from Snuffleupagus/pr-4982-regression
...
Fixes a regression from PR 4982
2014-08-08 12:37:53 -05:00
Tim van der Meij
defb67c89e
Merge pull request #5151 from nnethercote/text_layer_builder-regexp
...
Avoid repeated creation of a simple RegExp object.
2014-08-08 15:45:46 +02:00
Jonas Jenwald
e23ba0987a
Merge pull request #5157 from Rob--W/crx-no-spellcheck-in-url
...
Disable spellcheck in Chromium's URL popup
2014-08-08 14:10:36 +02:00
Jonas Jenwald
2764a678a7
Merge pull request #5158 from Rob--W/email-change
...
Change Rob's email address
2014-08-08 14:02:25 +02:00
Rob Wu
2d2b1a3e91
Change Rob's email address
2014-08-08 13:58:23 +02:00
Rob Wu
4a399a0173
Disable spellcheck in Chromium's URL popup
...
These red waves below a URL are quite useless and only distracting.
2014-08-08 13:54:19 +02:00
Jonas Jenwald
66c56ac546
Fixes a regression from PR 4982
...
After PR 4982, the rendering of the first two pages of http://www.openmagazin.cz/pdf/2011/openMagazin-2011-04.pdf (from issue 215) no longer completes.
The issue is that we cannot have `args === null` in `PartialEvaluator_buildPath`, but *must* use an empty array instead.
In this patch I've also moved the `argsLength` variable definition in `EvaluatorPreprocessor_read`, to make sure that it's always defined.
2014-08-08 13:19:18 +02:00
Rob Wu
a1671fa512
Preserve reference fragment in Chromium URL router
...
Because removed reference fragments are no longer automatically copied
thanks to https://code.google.com/p/chromium/issues/detail?id=354653
2014-08-08 12:37:37 +02:00
Rob Wu
58cd3349db
AES cipher: make padding optional
...
Fixes #5152
2014-08-08 12:36:29 +02:00
Nicholas Nethercote
f82977caf9
Simplify isIdentityUnicode detection.
2014-08-08 02:02:42 -07:00
Nicholas Nethercote
be29fc44e0
Avoid repeated creation of a simple RegExp object.
2014-08-07 22:08:23 -07:00
Nicholas Nethercote
6c8cca1284
Add IdentityToUnicodeMap class.
...
When loading the PDF from issue #4935 , this change reduces peak RSS from
~2400 to ~300 MiB, and improves overall speed by ~81%, from 6336 ms to
1222 ms.
2014-08-07 20:45:11 -07:00
Nicholas Nethercote
9576047f0d
Add ToUnicodeMap class.
2014-08-07 20:05:24 -07:00