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
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
Jonas Jenwald
39b962e3b0
Add unit-tests for isExternalLinkTargetSet
2015-10-13 21:56:46 +02:00
Jonas Jenwald
c5c8b239e9
Add unit-tests for stringToPDFString
...
The other day I was looking as the utilily function `stringToPDFString`, and I noticed that it didn't have any unit-tests. This patch fixes that.
2015-09-10 12:25:40 +02:00
Collin Anderson
54e984c763
cleaned whitespace
2015-02-17 11:07:37 -05:00
Nicholas Nethercote
fdb7c218da
Use a cache to minimize the number of Name objects.
2014-02-27 20:41:03 -08:00
Yury Delendik
81f8f92696
Adds web/* and test/* for jshint target
2013-02-04 12:01:19 -06:00
Brendan Dahl
a79f005527
Fix isDict when type is missing in dictionary.
2013-01-10 16:32:26 -08:00
khodzha
18da086b96
fix of combineUrl(baseUrl, url) in case of url - null, empty, undefined + unittests
2012-11-24 04:25:49 +04:00
Yury Delendik
0dd445bf18
Fixes unit tests and adds few for util.js
2012-06-23 15:35:59 -05:00