Jonas Jenwald
f3f3db0d15
Remove 'info' and 'metadata' from GetDoc
11 years ago
Jonas Jenwald
069f0cc8c0
Remove 'javaScript' from GetDoc
11 years ago
Jonas Jenwald
4bfcb27d0b
Remove 'outline' from GetDoc
11 years ago
p01
14a2d74d16
Optimized JPG.js - 33% faster convertCmykToRgb
11 years ago
p01
287274d3dc
Optimized JPG.js - reduced memory usage + 2.16x faster getLinearizedBlockData
...
Linearize and scale the mcu blocks into the destination buffer in a single pass
11 years ago
p01
7067409e00
Optimized JPX's transformComponents
11 years ago
p01
27d532efeb
Optimized PDFImage_undoPreblend
11 years ago
Jonas Jenwald
87d38b0692
Remove LegacyPromise in src/core/worker.js
11 years ago
Jonas Jenwald
034f1102da
Remove LegacyPromise in src/core/core.js
11 years ago
Jonas Jenwald
caad87eba5
Remove LegacyPromise in src/core/pdf_manager.js
11 years ago
Tim van der Meij
6b9aeb34f1
Fixes rendering of PDFs with nested trailer dictionary
11 years ago
Tim van der Meij
3ddc534920
Tiny updates
11 years ago
Jonas Jenwald
b6ff4aea2b
Add onError function to ChunkedStreamManager
11 years ago
Jonas Jenwald
89c11ca9a2
Remove LegacyPromise in src/core/chunked_stream.js
11 years ago
Pramodh KP
8616b2ccf3
Remove LegacyPromise from src/core/obj.js
11 years ago
Yury Delendik
63d5aae3f6
Groups path commands into single command
11 years ago
Jonas Jenwald
0fa154be4e
Amend GlyphMapForStandardFonts to fix issue 4276
11 years ago
Jonas Jenwald
747dec16b2
Prevent trying to map characters to the specials unicode block in adjustMapping (issue 4650)
11 years ago
Yury Delendik
98e023e464
Guesses Type1C font type based on file content
11 years ago
Thorben Bochenek
e8f0700bfa
Move the colour conversion to jpg.js
...
Benchmarking shows that this improves performance for the invitation document
from https://github.com/mozilla/pdf.js/issues/3809 by 35%
11 years ago
Thorben Bochenek
e7fe45a5c4
Refactor jpg.js and include forceRGBoutput, correct style of image.js
...
This refactors getData to be more readable and extracts all the color
conversion algorithms to their own functions. The resulting code was then
cleaned up.
This also introduces a flag `forceRGBoutput` to getData, that allows to always
get the data as a `width * height * 3` bytes long RGB buffer
11 years ago
p01
8f9bd33a57
PDFImage_resize: copy in place with alpha and ~5x speed up
11 years ago
p01
a66326cc54
Optimized JPX decoder ~6% faster
11 years ago
fkaelberer
11f565547c
Fix corrupted images #4649
11 years ago
Samuel Chantaraud
25ee0e8572
Preliminary attachments support
...
Added a partial Filespec support
Added getAttachments in API
Added a new attachments view in UI (with a new icon by @shorlander )
11 years ago
Yury Delendik
9a5c121e4d
Fixes invalid CFF name for Mac OSX
11 years ago
Yury Delendik
bf3a2488df
Recognizes ascii type1 encoding
11 years ago
fkaelberer
f52dfe4c81
Fix #3483 and simplify readCodingpasses()
11 years ago
fkaelberer
b06c10cbbd
rename getUint32 to getInt32 and collect readInt*() in util.js
11 years ago
Yury Delendik
a468f7215d
Fixes spacing in the text layer builder
11 years ago
fkaelberer
04602c8a5e
Less copying in the JPX coder, merged and rebased
11 years ago
Rob Wu
2e97c0d085
Remove some unused variables from src/
...
Only obviously useless, local variables have been removed.
11 years ago
Yury Delendik
a00f854848
Refactors buildImage to use Promise; don't draw bad images
11 years ago
Joshua T Kalis
5828b2c687
Refactor - remove redundant function and all references
...
The function `assertWllFormed` was doing nothing different than `assert` which is
available in the same namespace. Removing it will lighten the filesize - albeit
very slightly - and reduce complexity.
11 years ago
Yury Delendik
65fa25ca36
Fixes number of glyphs in the generated font
11 years ago
Tim van der Meij
dd3df20a88
Makes PDF files load when xrefEntry is undefined
11 years ago
Brendan Dahl
b242826d29
Fix seac regression.
11 years ago
Yury Delendik
88c1747cc3
Heuristics to recognize the unknown glyphs for toUnicode
11 years ago
Tim van der Meij
f463f96f35
Resolving new lint issues
11 years ago
Tim van der Meij
df91acf239
Fixes lint warning W004 in src/core
11 years ago
Yury Delendik
791c9a7b13
Relaxes murmurhash array requirement.
11 years ago
Brendan Dahl
5bd8a83c9b
Build the text layer geometry on the worker.
11 years ago
p01
b77e647f4f
JPX decoder 20-25% speed optimization
11 years ago
Jonas Jenwald
3a9b5b3951
Check that images have valid dimensions (issue 4575)
11 years ago
Jonas Jenwald
811f1b1d05
Workaround for cases where FontName in the FontDescriptor differs from BaseFont in the Font (bug 847420)
11 years ago
Christian Krebs
79f34b183c
Treat fonts with the same font descriptor, encoding and unicode map as aliases
...
Different fonts can point to the same font descriptor
(see https://github.com/mozilla/pdf.js/issues/4339 for details). With this
commit such fonts are treated as aliases if they have also the same encoding
and the same toUnicode map. The according info is stored on the font descriptor.
This change must also ensure that aliases use always the same font name
because translated fonts can get cleared depending on the CLEANUP_TIMEOUT setting.
11 years ago
Jonas Jenwald
9e6c66be12
Handle 'space' character correctly in WinAnsiEncoding (bug 850854)
11 years ago
Jonas Jenwald
8fc4ebd5cb
Handle 'space' character correctly in MacRomanEncoding (bug 878026)
11 years ago
fkaelberer
2982de8f33
Use Stream instead of byte array access
11 years ago
fkaelberer
1ccc8a64b7
Read color info from JPX stream
...
Fix colors problem #4540 + minor cleanup
fix lint warnings
11 years ago