Commit Graph

155 Commits

Author SHA1 Message Date
Brendan Dahl
bcc085ec52 Limit image size to 1024*1024 for b2g. 2013-07-10 09:52:37 -07:00
Brendan Dahl
f06dadab3b Merge pull request #3376 from yurydelendik/bad-pdfs
Misc fixes for corrupted PDFs
2013-06-27 15:33:06 -07:00
Brendan Dahl
a8ad07ccbf Cache fonts by reference. 2013-06-25 10:33:53 -07:00
Jonas
d206a1ccdc Fix regression from issue 3312 2013-06-24 17:21:12 +02:00
Yury Delendik
c3030dee8f Bug 861638: ignoring double-EI 2013-06-22 11:56:58 -05:00
Brendan Dahl
ae1f973204 Use A+ spec compatible promises. 2013-06-05 12:28:31 -07:00
Brendan Dahl
01ce3d056c Load all resources before getOperatorList/getTextContent. 2013-06-04 17:57:52 -07:00
Yury Delendik
339dc65082 Removes getImageData from canvas.js 2013-06-01 08:41:30 -05:00
Brendan Dahl
328cfd0246 Bind chunk promises to avoid scope problems. 2013-05-10 09:45:52 -07:00
Mack Duan
f8f4b3f45d Refactor code for annotations 2013-05-07 14:22:13 -04:00
Brendan Dahl
c5c2f7a773 Fix type3 font loading regression. 2013-05-03 11:13:45 -07:00
Yury Delendik
65a884c421 Merge pull request #3075 from brendandahl/font-encoding
Fix priority of which font encoding is used.
2013-04-30 09:40:52 -07:00
Yury Delendik
bc57221b9f Merge pull request #3086 from brendandahl/less-warn
Lower two common warnings to info.
2013-04-29 10:21:23 -07:00
Mack Duan
d69f14328c Use same obj/font id counter for all partial evaluators on page 2013-04-22 16:50:30 -07:00
Mack Duan
2ce00279be Address more of brendan's comments 2013-04-18 10:41:33 -07:00
Mack Duan
27fe18e8c6 Address brendan's comments 2013-04-18 00:16:53 -07:00
Mack Duan
dbccbaaa27 Make getOperatorList() calls independent and merge queues at end 2013-04-18 00:16:41 -07:00
Brendan Dahl
15a9ab34d3 Lower two common warnings to info. 2013-04-16 15:45:29 -07:00
Mack Duan
ef423ef30c Implement progressive loading of PDFs 2013-04-12 16:13:22 -07:00
Brendan Dahl
0f41b2db44 Fix priority of which font encoding is used. 2013-04-10 09:51:06 -07:00
Mack Duan
db4b199efd Remove redundant getOperatorList() 2013-04-04 13:41:52 -07:00
Yury Delendik
5839fef84c Merge pull request #2945 from mduan/annotation
Add support for appearance streams in annotations
2013-04-01 19:42:17 -07:00
Brendan Dahl
ec311f303b Use white backdrop when possible. 2013-03-29 13:26:25 -07:00
Mack Duan
79831d7ec5 Support rendering appearance streams for annotations 2013-03-19 12:51:28 -07:00
Brendan Dahl
725cd5407f Add basic support for transparency groups. 2013-03-12 17:20:38 -07:00
vyv03354
99165fb702 Fix the calculation of default vertical metrics
Fixes bug 849627 and 849628.
The current code was obviously wrong per the spec 9.7.4.3.
2013-03-13 02:08:37 +09:00
Brendan Dahl
523aa9c152 Add support for blend modes. 2013-03-11 10:23:47 -07:00
vyv03354
999cac517a Skip FontName vs. BaseFont check for Type 3 fonts
Type 3 font dict does not have a BaseFont entry (see PDF Reference 9.6.5 Table 112). This check is actually causing false positives:
http://math.berkeley.edu/~daisuke/Bonn2013.pdf
http://math.berkeley.edu/~daisuke/BVSOL.pdf
http://www.ieice-hbkb.org/files/06/06gun_02hen_04.pdf
http://www.asahi-net.or.jp/~td6i-st/fuku-cathedral/new/gat.pdf
2013-03-04 05:24:43 +09:00
vyv03354
c5b8ee6a91 Implements vertical writing 2013-02-15 03:53:34 +09:00
vyv03354
7fc0c9f2ca Take BaseFont entry from CIDFont dict instead of Type 0 Font dict 2013-02-06 06:47:41 +09:00
Yury Delendik
d13aa38c9c Enforces quotmark=single for jshint 2013-02-02 17:00:13 -06:00
Yury Delendik
5cf0d8fa80 Enforces maxlen for jshint 2013-02-02 16:49:19 -06:00
Jon Buckley
c281805fde Issue #2008 - Fix lint errors for src/evaluator.js 2013-01-31 19:12:45 -05:00
Yury Delendik
b5a38ded4c Fixes reading of the widths for CID fonts 2013-01-29 17:19:08 -05:00
vyv03354
622276ecc8 Update font name matching for Type 0 CIDFont 2013-01-24 08:03:13 +09:00
mduan
b718a3604a Default to a built-in font if an invalid non-embedded font is encountered 2013-01-16 13:57:41 -08:00
mduan
5ab3bb1e03 Skip commands that have too few arguments
- Commands that have too few args will be skipped
- Commands that have too many args will generate an info, but still
execute
2013-01-15 14:07:16 -08:00
mduan
fadcb71c21 Handle missing 'FontName' entry in FontDescriptor object 2013-01-15 11:48:20 -08:00
vyv03354
0980b4c322 Fix a problem about Japanese PDFs without embedded fonts 2013-01-12 11:18:44 -06:00
Yury Delendik
10bb6c9ec0 Refactors font matrix operations 2013-01-03 22:38:14 -06:00
Yury Delendik
cae62341ac Split large image groups into smaller chunks 2012-12-07 17:19:06 -06:00
Yury Delendik
d71c702dcf Removes "too many inline images" limit 2012-12-07 12:19:43 -06:00
waddlesplash
32fbf687ab Refactor names in various files.
web/viewer.js
src/fonts.js (& remove unused global)
src/evaluator.js
src/canvas.js
2012-11-10 14:59:13 -05:00
Julian Viereck
318b286da3 Fix typo in PartialEvaluator_getTextContent 2012-10-29 23:03:30 +01:00
Yury Delendik
69b72078c0 Separate page objects/images from the fonts; does not store large images 2012-10-28 15:24:54 -05:00
Yury Delendik
8c3a82ff4d Falls back to ErrorFont when font object is not available or corrupted 2012-10-15 11:48:45 -05:00
Yury Delendik
62b2c5a030 Stops font processing when valid glyphs are absent in the font 2012-10-12 17:54:20 -05:00
Julian Viereck
47809fe316 Address yury's review comments 2012-09-26 19:46:06 +02:00
Julian Viereck
658c6936fc Tune whitespace insertion 2012-09-25 16:07:59 +02:00
Julian Viereck
e98eba1b11 Merge pull request #2127 from jviereck/text-algo-3
Use the text extracted in the getTextContent function for the divs of the textLayer.
2012-09-25 05:52:46 -07:00