Releases: mozilla/pdf.js
v1.5.188
Changes:
#6753 Wraps worker script if its cross-origin location is detected.
#6915 Refactor lookup hash tables/objects
#6934 Adjust a comment discussing transferred ArrayBuffers, to refer to those buffers being detached, not neutered (consistent with bug 1079844)
#6921 Always display deprecated
messages, regardless of the verbosity setting
#6940 Ensure that we don't modify the Dict
data when the Differences
array of a font contains indirect objects
#6953 Correct the upper bound used when building the transferMap
for SMasks (PR 6723 followup)
#6904 Destroy workers when they are no longer needed in the unit tests
#6913 Improve work-around for importScripts bug.
#6938 Fix 'Ready' message sequence for Firefox ext disabled worker.
#6933 Make type 1 font program decryption faster.
#6954 Various setGState
improvements
#6971 Replace getAll
with getKeys
in PartialEvaluator_hasBlendModes
to speed up loading of badly generated PDF files (issue 6961)
#6941 Allow local PDF files to be viewed in local frames
#6973 Fix a typo in api.js
#6972 Replace getAll
with getKeys
in loadType3Data
#6975 Get rid of getAll
usage in colorspace.js
#6939 Use UglifyJS to minify files in minified target
#6856 move hasHtml to AnnotationElement
#6982 Remove the only remaining Dict_getAll
usage (in evaluator.js) and the method itself
#6987 Remove Opera from the README file as they removed the extension
#6985 Remove XHTML leftovers from the viewer HTML files
#6998 [api-minor] Change getOutline
to actually return the RGB color of outline items
#6984 Update JpegImage.getData
to support forceRGBoutput
for images with numComponents === 1
(issue 6066)
#7007 [Addon] Catch errors in getFindBar
(in PdfStreamConverter.jsm) to fix loading of PDF files in the bookmark sidebar (bug 1248959)
#7012 [api-minor] Don't render highlight/underline/squiggly/strikeout annotations that doesn't have popup
#7009 [api-minor] Always expose data.title and data.contents for TextAnnotation
#6988 Implement support for FileAttachment annotations
#7016 Group popup creation code and apply it to more annotation types
#7030 Remove the hasImage
property from PDFThumbnailView
#7031 Add a default title for outline items, to prevent display issues if the title is missing
#7036 [SVG] Specify the PDFJS.cMapUrl
/PDFJS.cMapPacked
parameters in the svgviewer example
#7035 Ensure that PDFFindController_reset
actually resets all state (issue 7034)
#7038 Move the sidebar related code from viewer.js into PDFSidebar
#7040 Remove PDFThumbnailViewer_ensureThumbnailVisible
#6879 Makes PDF data reading Streams API friendly.
#7049 Avoid accidentally getting the entire font file in readNameTable
(issue 7020)
#7023 Only draw glyphs on canvas if they are in the font or the font file is missing.
#7050 For CIDFontType2 use CID as glyph ID when missing CID to GID map.
#7052 Reverts back un-need change made at #6879.
#6943 Add support for bold/italic styled outline items in the viewer
#7054 Correct a minor name issue in the outline viewer code
#7061 Introducing gulp
#7063 Migrate clean
and importl10n
target to gulp
#7029 [PDFThumbnailView] Re-factor the canvas
to image
conversion such that we always render to a canvas
, and then replace it with an image
once rendering is done
#7046 fonts.js: bad metric overrides when values are zero
#7069 Convert uniXXXX
glyph names to proper ones when building the charCodeToGlyphId
map for TrueType fonts (bug 1132849, issue 6893, issue 6894)
#6906 avoid apply transform twice for composite context
#7084 Revert renaming node make
to gulp
for mozcentral
#7088 Pass the PDFJS.postMessageTransfer
parameter to the worker, so that the MessageHandler
can be setup correctly in createDocumentHandler
(issue 6957)
#7093 Use the correct path when checking if a /l10n
directory exists, to avoid errors during gulp importl10n
(PR 7063 followup)
#7039 Refactors CMapFactory.create to make it async
#7098 Ensure that TrueType font tables have uint32
checksums
#7100 Removes core/stream circular dependency on core/parser.
#7105 Add an ISSUE_TEMPLATE
#7005 Fixes insertion of blank pages during print if page sizes differ
#7108 Removes frontWindow usage from the stream converter.
#7113 Disables issue6961 test.
#7053 Removes global PDFJS usage from the src/core/.
#7122 Allow unit-tests to use linked PDF files, by having the unittest
command download unavailable ones (issue 7117)
#7118 Prevent failures in the Annotation code if the Rect
array contains indirect objects (issue 7115)
#7129 Updates Jasmine version.
#7128 Add unit-tests for destionations in /Names (NameTree) dictionaries where all entries are indirect objects
#7102 Log uncaught global errors.
#7133 Faster unit-tests by using beforeAll
/afterAll
in api_spec.js
#7066 Parse Type1 font files to determine the various Length{n}
properties, instead of trusting the PDF file (issue 5686, issue 3928)
#7078 Refactor the building of toFontChar
for non-embedded fonts
#7106 Keep track of the character to glyph mapping in font_renderer.js, to prevent errors when different characters point to the same glyph (issue 7101)
#7134 Refactors to remove stream.js dependency on colorspace.js
#7107 Detect premature worker load error
#7146 Extract CFFParser and Type1Parser from fonts.js
#7148 Forces UMD header to have relative path and extension for CommonJS.
#7114 [Bug 1237908] Make pdf.js use the correct principal origin attributes when loading …
#7144 Prepare viewer.js for async loading and module separation.
#7150 Initial browserify example.
#7158 Update Webpack and Browserify example README files
#7169 Specifies package format for jspm.
#7164 Use beforeAll
/afterAll
in isExternalLinkTargetSet
in dom_utils_spec.js (issue 6905)
#7126 Move all PDFJS display/ usages into global.js file.
#7097 Prevents document zooming if still scrolling and meta keys pressed (Issue #7022)
#7170 Prevent the entire viewer from zooming, when quickly switching from scrolling to zooming using the mousewheel (PR 7097 followup)
#7174 Use beforeAll
/afterAll
in CipherTransformFactory
in crypto_spec.js (issue 6905)
#7171 Remove the remaining usages of new {Name,Cmd}
in favor of {Name,Cmd}.get
#7175 Use beforeAll
/afterAll
in font_spec.js (issue 6905)
#7178 Removes hijack describe() hack from unit tests.
#7176 Allow SMask be resumed after restore() and better transform after SMask
#7184 [Bug 1260585] Stops bleeding of pattern edges for mesh.
#7185 Support almond.js #7177
#7189 Removing "entry-loader" dependency from webpack.
#7172 Introduces UMD headers to the web/ folder.
#7191 Export the DefaultAnnotationLayerFactory
to prevent the viewer components from breaking (PR 7172 followup)
#7201 Ensure that the params
parameter of the PredictorStream
is a dictionary (issue 7200)
#7197 Remove combineUrl
and replace it with new URL
. Issue #7183, for reference.
#7190 Dispatch a sidebarviewchanged
event in PDFSidebar
when the view changes
#7116 Refactor LinkAnnotation
slightly, improve handling of the GoToR
action, and add unit-tests
#7206 Expose a few non-classes on PDFViewerApplication
#7207 Convert the hand tool to a class
#7211 Add a couple of CipherTransformFactory
unit-tests for blank passwords, and move the isDict
unit-tests to the correct file
#7210 Split the two paths in PDFImage.resize
into separate helper functions, placed in colorspace.js and image.js
#7219 Convert the password prompt to a class
#7233 Adjust incorrect first obj number of "free" xref entry in XRef_readXRefTable
(issue 7229)
#7209 Moves all document.getElementById lookups into viewer.js
#7235 Version 1.5
v1.4.20
#6758 Fix incorrect position of text widget
#6683 Adds UMD headers to core, display and shared files.
#6762 Only export Uint32ArrayView
when it's actually defined, to prevent breaking e.g. the Firefox addon/built-in version
#6764 Collapses UMD headers in bundled files.
#6766 Bump versions to 1.3.
#6773 Changing Firefox Addon ID
#6765 Remove unused variables
#6767 Strip referrer from link annotation.
#6778 Fixing externalLinkTarget
#6772 Remove a superfluous "s" in AnnotationsLayerBuilder
from files in web/
#6770 Refactor annotation display layer code to use classes
#6780 Implement annotation layer regression testing
#6787 Change test-case issue4914
to an annotations
test
#6785 Adds/modifies examples for node.js and webpack.
#6792 Implement support for Popup annotations
#6805 Do not modify data.rect
in AnnotationElement_createContainer
, since that will corrupt the annotation position on subsequent calls
#6808 Rename and reorder link annotation CSS
#6814 Ensure that the baseTransform
is applied when rendering annotations
#6807 Ensure that hidden popups do not use any space
#6813 Implement support for Underline annotations
#6821 Bug 951051 - Better crypto key length recovery.
#6771 Removes hardcoded module loading order
#6819 Implement support for StrikeOut annotations
#6823 Implement support for Squiggly annotations
#6827 Implement support for Highlight annotations
#6724 Add validation for callsubr and callgsubr for type 2 charstrings.
#6837 Fix a typo in the "file" entry for issue3694_reduced in test_manifest.json
#6834 Strip null
(\x00) characters from the URLs in LinkAnnotations (issue 6832)
#6842 Update the link location for 'intelisa.pdf' to point to the Internet Archive
#6843 shading-pattern: Decreased Shadings.SMALL_NUMBER
#6825 Adds UMD header to pdf.js and pdf.worker.js files.
#6820 Apply Patterns, if necessary, when rendering text
#6839 Check that CIDFontType0 fonts does not actually contain OpenType font files (issue 6782)
#6855 Issue 6854 - Update the link locations to point to the Internet Archive for tests: 20130226130259, JST2007-5, P020121130574743273239, SFAA_Japanese, TaroUTR50SortedList112
#6858 Issue 6854 - Re-enable testing of 'aboutstacks.pdf'
#6859 Update five linked test cases to point to the Internet Archive
#6860 Issue 6854 - Update the link locations to point to the Internet Archive for tests: artofwar, bpl13210, bug766138, bug808084, bug887152
#6862 Issue 6854 - Update the link locations to point to the Internet Archive for tests: cable, fips197, fit11-talk, geothermal, hmm
#6853 Update the link location for 'issue3666.pdf' to point to the Internet Archive
#6864 Update links to point to the Internet Archive for ohkubo-SS04, pal-o47, pdf, piperine and preistabelle
#6865 Update the linked test case hmm.pdf to point to the intended version
#6846 Use URL constructor for combineURL.
#6873 Add an extra set of //
to the comment for the URL polyfill, since the preprocessor eats one set, thus breaking the world (PR 6846 followup)
#6867 Disable e10s.
#6866 Issue 6854 - Update the link locations to point to the Internet Archive for tests: html5checker, hudsonsurvey, ichiji, issue1010, issue1015
#6869 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1049, issue1096, issue1127, issue1133, issue1169
#6871 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1233, issue1257, issue1309, issue1317, issue1419
#6875 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1466, issue1629, issue1658, issue1685, issue1687
#6876 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1709, issue1721, issue1729, issue1796, issue1810
#6878 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1878, issue1912, issue1936, issue1998, issue2006
#6880 Update links to point to the Internet Archive for issue818, issue919, jai, liveprogramming and mao
#6881 Update links to point to the Internet Archive for issue3384, issue3848, issue3903, issue3925 and issue5592
#6884 Remove 'tcpdf_033.pdf.link', since it has been replaced with a reduced test-case
#6883 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue2129, issue2139, issue2386, issue2442, issue2531
#6885 Replace the linked test-case for issue 1155 with a reduced one
#6886 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue2829, issue2853, issue2881, issue3062, issue3999
#6887 Remove 'issue2537.pdf.link', since it has been replaced with a reduced test-case
#6888 Update links to point to the Internet Archive for issue1597, issue2627 and kdchart
#6848 [TrueType] Recover from a missing "glyf" table by replacing it with dummy data, utilizing the existing code in sanitizeGlyphLocations
#6895 Update links to point to the Internet Archive for issue2799 and issue5726
#6822 [api-minor] Add support for URLs in the document outline
#6900 Set type="password" for the PasswordPrompt
input dynamically, to prevent unnecessary warnings in Firefox for http:// documents (issue 6898)
#6891 Map missing glyphs to the notdef
glyph for TrueType (3, 1) fonts regardless if the 'post' table is defined or not (issue 6889)
#6803 [api-minor] Add support for PageLabels in the API
#6916 Allow foriegn origin URLs only for hosted viewers.
#6918 Bump version to 1.4
#6919 Update beta and stable.
#6922 Prevent failures in the "scanning for endstream" code, in Parser_makeStream
, by handling the case where 'endstream' is split between contiguous chunks (issue 1536)
#6928 Fixes URL polyfill check for MS Edge.
#6930 [api-minor] Change getPageLabels
to always return the pageLabels, even if they are identical to standard page numbering
v1.3.91
#6633 Replace the unavailable linked test-case for issue 3263 with a reduced test-case
#6637 Replace the unavailable linked test-case for issue 3207 with a reduced test-case
#6638 Replace the unavailable linked test-case for issue 1655 with a reduced test-case
#6639 Replace the unavailable linked test-case for PR 197 with a reduced test-case
#6642 Replace the unavailable linked test-cases for PR 2606 with reduced test-cases
#6645 Replace the unavailable linked test-case for issue 3405 with a reduced test-case
#6627 Uses editorconfig to maintain consistent coding styles
#6646 Version 1.2.109
#6647 Replace the unavailable linked test-case for issue 845 with a reduced test-case
#6640 Apply transformation matrix to RadialGradient radiuses
#6551 [api-minor] Enables subpixel anti-aliasing for most of the content.
#6656 Replace the unavailable linked test-case for issue 1055 with a reduced test-case
#6662 Ensure that the hidden
attribute is always removed from the canvas when rendering is complete (issue 6661)
#6653 Version 1.3
#6619 [api-minor] Moving text layer rendering into src/display and better "text" testing.
#6665 Update README.md to add Seamonkey compatibility
#6669 Use DEFAULT_SCALE
instead of 1.0
as the default value if the scale
option isn't specified when initializing PDFPageView
#6672 Refactor annotation flags code
#6671 Make stripCommentHeaders
less greedy, to ensure that it doesn't eat 'use strict' directive at the top of files (PR 6627 follow-up)
#6676 document_colors_disabled shouldn't escape quotes (compare-locales warning)
#6677 Restore the data.annotationFlags
parameter for annotations (PR 6672 follow-up)
#6675 [api-minor] Let getAnnotations
fetch all annotations by default, unless an intent is specified
#6679 Improve the comment and deprecation warning for PDFJS.openExternalLinksInNewWindow
#6571 [api-minor] Allows a worker to handle multiple documents.
#6681 [api-minor] Add a parameter to PDFPageProxy_getTextContent
that enables replacing of all whitespace with standard spaces in the textLayer (issue 6612)
#6693 Worker shall wait for MessageHandler to be created at api side.
#6697 Set error font for Type3 if its loading failed.
#6700 Replace font.bindDOM()
with font.createFontFaceRule()
in the FontLoader
for MOZCENTRAL specific code (PR 6571 follow-up)
#6699 Improve code structure of the annotation code
#6695 Ensure that Lexer_getName
does not fail if a Name
contains in invalid usage of the NUMBER SIGN (#) (issue 6692)
#6701 Make use of Util.inherit
in src/core/pdf_manager.js
#6698 [api-minor] Replaces UnsupportedManager with callback.
#6712 Use default line height for the text layer
#6715 Remove glyph id's outside the range of valid glyphs.
#6720 Fixes canvas state after smask group ends.
#6725 Fix the charCodeOf
method in IdentityToUnicodeMap
in order to prevent text selection from breaking
#6727 Replaces test for #6720 to fix botio-linux slow script.
#6723 Adds transfer function support for SMask.
#6736 Use adjustWidths
for TrueType fonts if we handle them as OpenType (issue 5027, issue 5084, issue 6556, bug 1204903)
#6739 [Firefox] Prevent internal links from displaying "resource://pdf.js/web/" on hover, by tweaking the fallback case in PDFLinkService_getDestinationHash
#6651 Fix chars scaling for standard fonts. (redo of #4908)
#6733 Let Travis lint using node make lint
, instead of a hard-coded command
#6743 Update the Node.js version used by Travis, to prevent deprecation warnings in the output
#6745 Reset the styleElement
when clearing out loaded fonts (bug 1232071)
#6747 Remove the superfluous PDFJS.disableFontFace = false;
statement at the top of font_loader.js (issue 6742)
#6684 shading-pattern: While drawing patterns, use transform to baseTransform first
#6757 Implement constants for all annotation types
#6714 [api-minor] Move annotation DOM manipulation logic to src/display/annotation_layer.js
#6916 Allow foriegn origin URLs only for hosted viewers.
v1.4.11
#6758 Fix incorrect position of text widget
#6683 Adds UMD headers to core, display and shared files.
#6762 Only export Uint32ArrayView
when it's actually defined, to prevent breaking e.g. the Firefox addon/built-in version
#6764 Collapses UMD headers in bundled files.
#6766 Bump versions to 1.3.
#6773 Changing Firefox Addon ID
#6765 Remove unused variables
#6767 Strip referrer from link annotation.
#6778 Fixing externalLinkTarget
#6772 Remove a superfluous "s" in AnnotationsLayerBuilder
from files in web/
#6770 Refactor annotation display layer code to use classes
#6780 Implement annotation layer regression testing
#6787 Change test-case issue4914
to an annotations
test
#6785 Adds/modifies examples for node.js and webpack.
#6792 Implement support for Popup annotations
#6805 Do not modify data.rect
in AnnotationElement_createContainer
, since that will corrupt the annotation position on subsequent calls
#6808 Rename and reorder link annotation CSS
#6814 Ensure that the baseTransform
is applied when rendering annotations
#6807 Ensure that hidden popups do not use any space
#6813 Implement support for Underline annotations
#6821 Bug 951051 - Better crypto key length recovery.
#6771 Removes hardcoded module loading order
#6819 Implement support for StrikeOut annotations
#6823 Implement support for Squiggly annotations
#6827 Implement support for Highlight annotations
#6724 Add validation for callsubr and callgsubr for type 2 charstrings.
#6837 Fix a typo in the "file" entry for issue3694_reduced in test_manifest.json
#6834 Strip null
(\x00) characters from the URLs in LinkAnnotations (issue 6832)
#6842 Update the link location for 'intelisa.pdf' to point to the Internet Archive
#6843 shading-pattern: Decreased Shadings.SMALL_NUMBER
#6825 Adds UMD header to pdf.js and pdf.worker.js files.
#6820 Apply Patterns, if necessary, when rendering text
#6839 Check that CIDFontType0 fonts does not actually contain OpenType font files (issue 6782)
#6855 Issue 6854 - Update the link locations to point to the Internet Archive for tests: 20130226130259, JST2007-5, P020121130574743273239, SFAA_Japanese, TaroUTR50SortedList112
#6858 Issue 6854 - Re-enable testing of 'aboutstacks.pdf'
#6859 Update five linked test cases to point to the Internet Archive
#6860 Issue 6854 - Update the link locations to point to the Internet Archive for tests: artofwar, bpl13210, bug766138, bug808084, bug887152
#6862 Issue 6854 - Update the link locations to point to the Internet Archive for tests: cable, fips197, fit11-talk, geothermal, hmm
#6853 Update the link location for 'issue3666.pdf' to point to the Internet Archive
#6864 Update links to point to the Internet Archive for ohkubo-SS04, pal-o47, pdf, piperine and preistabelle
#6865 Update the linked test case hmm.pdf to point to the intended version
#6846 Use URL constructor for combineURL.
#6873 Add an extra set of //
to the comment for the URL polyfill, since the preprocessor eats one set, thus breaking the world (PR 6846 followup)
#6867 Disable e10s.
#6866 Issue 6854 - Update the link locations to point to the Internet Archive for tests: html5checker, hudsonsurvey, ichiji, issue1010, issue1015
#6869 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1049, issue1096, issue1127, issue1133, issue1169
#6871 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1233, issue1257, issue1309, issue1317, issue1419
#6875 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1466, issue1629, issue1658, issue1685, issue1687
#6876 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1709, issue1721, issue1729, issue1796, issue1810
#6878 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue1878, issue1912, issue1936, issue1998, issue2006
#6880 Update links to point to the Internet Archive for issue818, issue919, jai, liveprogramming and mao
#6881 Update links to point to the Internet Archive for issue3384, issue3848, issue3903, issue3925 and issue5592
#6884 Remove 'tcpdf_033.pdf.link', since it has been replaced with a reduced test-case
#6883 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue2129, issue2139, issue2386, issue2442, issue2531
#6885 Replace the linked test-case for issue 1155 with a reduced one
#6886 Issue 6854 - Update the link locations to point to the Internet Archive for tests: issue2829, issue2853, issue2881, issue3062, issue3999
#6887 Remove 'issue2537.pdf.link', since it has been replaced with a reduced test-case
#6888 Update links to point to the Internet Archive for issue1597, issue2627 and kdchart
#6848 [TrueType] Recover from a missing "glyf" table by replacing it with dummy data, utilizing the existing code in sanitizeGlyphLocations
#6895 Update links to point to the Internet Archive for issue2799 and issue5726
#6822 [api-minor] Add support for URLs in the document outline
#6900 Set type="password" for the PasswordPrompt
input dynamically, to prevent unnecessary warnings in Firefox for http:// documents (issue 6898)
#6891 Map missing glyphs to the notdef
glyph for TrueType (3, 1) fonts regardless if the 'post' table is defined or not (issue 6889)
#6803 [api-minor] Add support for PageLabels in the API
#6916 Allow foriegn origin URLs only for hosted viewers.
v1.2.109
Changes:
#6464 Version 1.1.469
#6200 Refactor the previous history rewriting logic
#6450 Update the link location for the issue3115
test file
#6452 Replace the unavailable linked test-case for PR 2875 with a reduced test-case
#6482 Ensure that the baseTransform
is always defined for TilingPatterns
#6468 Don't clear the canvas
until re-rendering is finished when the scale
or rotation
is changed (issue 6467)
#6475 Tweak PDFPageView
to reflect that this.annotationLayer
is an AnnotationsLayerBuilder
instance, instead of a DOM element (PR 5552 follow-up)
#6485 Prevent PartialEvaluator_buildFormXObject
from failing if the Matrix
or BBox
contains indirect objects
#6411 Remove Parser_fetchIfRef
since it's obsolete
#6489 Upstream changes from Bug 1202902 - Give loader scripts and XUL frame scripts a lexical scope that doesn't break everything?
#6473 Upstream the changes from Bug 1165272 - unify Get*CodebasePrincipal with createCodebasePrincipal in nsIScriptSecurityManager
#6501 Slightly improved getPage
unit-tests
#6494 Add a unit-test for bug 1020226
#6491 Make XRef_indexObjects
even more robust against bad PDF files, by checking for the existence of 'trailer' if 'xref' is not found
#6500 Add a (linked) test-case for PR 4897
#6499 Add a (linked) load test for issue 4387
#6503 Follow-up to PR 6489 - Upstream changes from Bug 1202902
#6502 Add a reduced load test-case for bug 1020858
#6476 Right-size the map
array in PartialEvaluator_readToUnicode
#6520 [CRX] Call callback instead of onCompleted
#6434 Replace the unavailable linked test-case for issue 4436 with a reduced test-case
#6524 Fix a regression, from PR 5356, that breaks all scrolling in PresentationMode
#6481 Add a (linked) test-case for issue 4914
#6528 Ensure that Dict_getArray
doesn't fail if xref
in undefined (PR 6485 follow-up)
#6531 Fixes bluebeam password protection issue
#6532 Add unit-tests for PR 6531
#6540 Add unit-tests for the onPassword/onProgress
callbacks of the API
#6550 Ignore operators that are known to be unsupported
#6543 Prevent getOperatorList from failing to correctly parse OPS.paintXObject for TilingPatterns that are missing some /Resources entries (issue 6541)
#6554 Add a reduced test-case for issue 4575
#6557 Pushing update reason for gh-pages and bower.
#6546 [api-minor] Adds controlled destruction of the worker.
#6555 Update version number for minor API changes.
#6558 Add a reduced test-case for issue 6151
#6560 Prevent TypeError: page is undefined
when the document has been destroyed (PR 6546 follow-up)
#6562 Improved get fingerprint
unit-tests (PR 5124)
#6566 Add a totalLength
getter to OperatorList
, since the length
is zero after flushing
#6568 [api-minor] Add an optional param to DocumentInitParameters for speci…
#6552 Better CSS scaling for deviceRixelRatio != 1.
#6578 Ignore any pending data when worker is terminated.
#6576 Replace the linked test-case for issue 1293 with a reduced test-case
#6445 Fix exception when rotate page without a document
#6580 Find match count (rebase of #5051)
#6585 Replace the linked test-case for issue 3879 with a reduced test-case
#6587 Move VIEW_HISTORY_MEMORY constant to view_history.js
#6588 Better spacing in text layer.
#6586 Create a new indeterminate loading bar animation for the default viewer
#6591 Non/less flashing text layer during selection.
#6597 Ensure that the textLayer
has the same dimensions as the canvasWrapper
(issue 6596)
#6595 Uses document.currentScript for pdf.worker.js path.
#6590 Combines standalone chars into text groups.
#6601 Fixes incorrect PDF file font metrics.
#6602 Adding to authors
#6604 Add a reduced text
test-case for issue 4665
#6607 Prevent readCmapTable
from failing if the cmap
is missing in TrueType fonts
#6608 Improve error message for non-existent local files
#6617 Correctly handle /FitH destinations with null
as the parameter
#6620 Use random port in test webserver
#6318 For documents with different page sizes, ensure that the correct page becomes visible on load when e.g. the 'page' hash parameter was provided (bug 1191279, issue 6393)
#6600 Improve reliability of the test server
#6622 Remove mozcentral test files.
#6610 Replace the unavailable linked test-case for issue 2128 with a reduced test-case
#6625 Dispatch the pagerendered
event when zooming is only done with CSS (issue 6463)
#6599 Generate better API documentation
#6629 Downgrade the JSHint version in order to fix linting failures on Travis
#6628 Ignore the /Mask entry in images unless its /ImageMask entry is explicitly set to true
(issue 6621)
#6630 Fix minor capitalization issue in viewer
v1.1.469
Changes:
#6273 Refactor annotation code to use a factory
#6285 Rename PatternType
to ShadingType
to avoid confusion
#6281 Keep the Link annotation's data URL on one line
#6292 Fix various shading pattern regressions (issue 6287)
#6270 Adjust the heuristics used to detect OpenType font file with CFF data (bug 1186827, bug 1182130, issue 6264)
#6222 Improve robustness of builder (esp. on Windows)
#6304 fix handling of flags 1-3 in coons shading
#6308 Apply hover style to .overlayButton not only when hovered, but also when focused.
#6310 fix handling of flags 1-3 in tensor shading
#6282 Add a PDFLinkService
instance to the "simpleviewer" component example
#6315 Test case for tensor shading PR 6310
#6321 Removes PdfRedirector.js and PlayPreview support.
#6325 Version 1.1.366
#6314 Fix regressions affecting both the 'pagemode' hash parameter and certain 'namedaction' types (PR 5971)
#6327 Prevent switching to disabled views (i.e. outline or attachments) in the sidebar
#6329 cmaps: Use cmap.forEach instead of Array.forEach
#6354 Fix typo in drawFigures
, in webgl.js, which causes shadingPatterns with figure.type === triangles
to render incorrectly
#6349 Fixes supportsMozChunked for node.js
#6233 Improve support for viewing PDFs from file://-URLs in the Chrome extension
#6366 Only take the fast-path in PDFImage_createImageData
for un-masked JPEG images with "standard" colour spaces (issue 6364)
#6141 Provide a fallback for font rendering when not allowed to use eval
#6332 Serialize errors before invoking postMessage
#6370 api/getDocument: handle ArrayBuffer check for PDF binary data (byteLength)
#6372 Also check maybeLength
when deciding if a stream is empty in Parser_makeFilter
(issue 6360, bug 1191694)
#6375 Make XRef_indexObjects
more robust against bad PDF files (issue 5752)
#6337 Adjust which TrueType (3, 1) glyphs we attempt to skip mapping of (issue 6336)
#6362 Add disableStream
to the list of preferences read by PDFViewerApplication.initialize
(issue 6361)
#6369 Add locatization notes for the DocumentProperties strings with parameters
#6358 Don't catch MissingDataException
in Parser_tryShift
#6242 Allow outline to be collapsed / shown via +/-.
#6388 Use the Retina assets for outlineItemToggler
when in HiDPI mode
#6390 Switch expanded/collapsed
in the names of the treeitem-*
assets
#6395 Fix typo in test_manifest.json
that prevents test-case issue1419.pdf
from running
#6401 Add a unit-test for skipping paintXObject
if Subtype === PS
(PR 4861)
#6386 Add a warning when we encounter an empty stream in Parser_makeFilter
#6404 Add unit-tests for Linearization dictionary parsing (PR 5023 follow-up)
#6403 Add a reduced test-case for issue 6113
#6399 Slightly improved test coverage for vertical text
#6402 Set TZ=UTC before calls to zip
#6405 Add a (linked) load
test for PR 4731
#6357 Avoid more allocations for RTL text in bidi.js
#6417 Add (linked) load
tests for PR 1976 and 4606
#6414 Ensure that the clipping path is reset when the state is restored (issue 6413)
#6407 Fallback in readCmapTable
, instead of using error
, for TrueType fonts with unsupported cmap formats (bug 1200096)
#6421 Adjust the min-width
of outline items and use more consistent border-radius
(PR 6242 follow-up)
#6423 Add mirrored triangle (TOC item icon)
#6425 Only choose a (3, 1) cmap table for TrueType fonts that have an encoding specified (issue 6410)
#6431 Add a utility function, for the viewer, that removes null
(\x00) characters (issue 6416)
#6433 Add unit-tests for stringToPDFString
#6420 Add a reduced test-case for PR 4922
#6427 Make get fingerprint
slightly more robust against corrupt PDF files
#6299 Convert canvas thumbnails to PNG
#6441 Misc. follow-up fixes to PR 6299 (Convert canvas thumbnails to PNG)
#6443 Don't show thumbnails until the canvas
to image
conversion is done (issue 6442)
#6447 Add unit-tests for removeNullCharacters
(PR 6431 follow-up)
#6435 Replace the unavailable linked test-case for issue 3205 with a reduced test-case
#6391 Fix text spacing with vertical fonts (#6387)
v1.1.366
Changes:
#6131 Version 1.1.215
#6134 Ensure that we fetch all indirect objects (i.e. |Ref|s) in ColorSpace_parseToIR
#6138 Ignore paint form XObject when the name is missing (issue 4558)
#6147 Further improvements of the getStats and getDownloadInfo unit tests
#6146 Add a reduced test-case for issue 4909
#6150 Localization updates (June 29, 2015)
#6140 Move the page switching code into set currentPageNumber
in PDFViewer
instead of placing it in the pagechange
event handler
#5947 Simplify B2G viewer
#6155 Update Adobe CMaps URL and license
#6135 Skip mapping of CIDFontType2 glyphs when the font either has a |IdentityToUnicodeMap| or a |toUnicodeMap| with 65536 elements (issue 5677)
#6171 Adds more characters to the PUA range
#6170 Zoom relative to cursor position via mouse wheel
#6173 Add more reduced test-cases for PR 6171
#6176 [CRX] Ignore PDFs from responses to POST requests
#6177 Pass in a PDFViewer
instance to PDFPresentationMode
and use it to eliminate all references to PDFViewerApplication
#6178 Remove InteractiveAnnotation abstraction
#6169 Bug 1179262 - Remove PlayPreview registration from PDF Viewer.
#6180 Do not draw a border if neither a Border nor a BS entry is present
#6175 fontLoadPromises -> fontsToLoad
#6181 Add --downloadOnly flag to test.js
#5918 [Firefox] Replace the CPOW with asynchronous messages for the Fallback bar
#6182 Remove the currentScaleValue
getter from PDFViewerApplication
(issue 6158)
#6192 Refactor the 'resize' event handler in viewer.js (issue 6158)
#6166 Add a supplemental glyph map for non-embedded ArialBlack fonts (issue 5801)
#6193 Issue a warning instead of an error for long Names
#6195 Remove PDFViewerApplication.updateScaleControls
(issue 6158)
#6194 Subtract start offset for xrefs in recovery mode
#6110 Refactor viewer code to fix issues with the "pageviewer" components example (issue 6056)
#6197 Improve robustness of stream parser (invalid length)
#6199 Simplify the code that resets the value of the pageNumber
element in PDFViewerApplication.setInitialView
#6198 Use taskkill to stop the browser on Windows in tests
#6187 A couple of improvements of getDestination
(unit-test included)
#6207 Remove PDFViewerApplication.setScale
and further simplify the scalechange
event handler (issue 6158)
#6208 Fetch all indirect objects (i.e. Ref
s) in NameTree_getAll
and NameTree_get
(issue 6204)
#6214 Refactor annotation color handling and add unit tests
#6157 Make sure that the document is rendered on zooming and rotation for PDFViewer
instances using the defaultRenderingQueue
#6221 Fixing find toolbar checkboxes not being accessible through keyboard
#6226 Update fonttools location and version (issue 6223)
#6220 Ignore double negative in Lexer_getNumber
(issue 6218)
#6215 More cleanup regarding annotation border styles
#6201 [CRX] Respect download requests in main frame
#6196 Add --testfilter and -t flags
#6189 Improved build tools (preprocessor & postprocessor)
#6232 Simplify annotation data passing
#6235 Move handling of the 'custom' scale value from pdf_viewer.js to viewer.js
#6239 Refactor annotation rectangle code and add unit tests
#6254 Prevent documents from intermittently opening with the zoom level set to 1% (issue 6253)
#6256 Ensure that the viewer always receives focus when the HOME/END keys are pressed (bug 1186842)
#6257 Remove unused globals and updateViewarea function from viewer.js
#6240 Check if the Decode
entry is non-default when deciding if JPEG images are natively supported/decodable (issue 6238)
#6268 Optimize text layer: Avoid unneeded .textContent access
#6236 Detect scripted auto-print requests
v1.1.215
Changes:
#5815 Ensure that entries in the Differences array of Type1 fonts are either numbers or names
#5991 Update README.md with shorter clone command and improved instruction order
#6002 Version 1.1.114
#5867 Change |pages| to be a "private" property of |PDFViewer|
#6004 Bug 1163404 - Disables rAF for the printing.
#5898 Extract more accurate glyph heights from type3 fonts
#5910 Fix error reading concatenated pdfs
#5999 Bug 1122280 - Handle UTF-8 encoding in URI
#5989 Add the |location| to the |updateviewarea| UI event
#6015 Add a reduced test-case for issue 5896
#5857 Set page size via @page + size
#5995 Apply char spacing only when there are chars.
#6014 Fix scroll to zoom jump between 25% and 1000%
#5901 Fall back to the |defaultEncoding| when no valid "post" table is found in TrueType fonts (bug 1050040)
#6023 Remove unused require() directive
#6020 Tweak the :focus/:hover CSS rules of the .toolbarField class used in Overlay dialogs
#6024 [Firefox] Parse all JPEG images in the addon
#6016 Convert UTF8 encoded passwords to ISO-8859-1 for |R = 6| encryption (issue 6010)
#6030 Fixed the ShellJS version
#6026 Eliminate transition effects from thumbnail loader
#6025 viewer: Support Retina/HiDPI thumbnails
#6021 Refactor the test driver
#6054 [Firefox] Fix newChannel/asyncFetch fallout from bug 1167053
#6051 [Firefox] Re-add _getTabForBrowser compatibility hack for the addon
#6046 Extract correct PDF format version from the catalog
#5971 Extracts PDFLinkService and PDFHistory APIs
#6063 Tweak the PDFLinkService a bit
#6065 Always traverse the entire parent chain in Page_getInheritedPageProp (issue 5954)
#6062 Revert PR 6024 "[Firefox] Parse all JPEG images in the addon", since it's fixed upstream
#6080 Ensure that PDFHistory does not incorrectly replace the initial document hash (issue 6079)
#6082 Fetch parameters if they are |Ref|s in Pattern color spaces (issue 6081)
#5823 [Chrome extension] Add Referer request header if needed
#5990 Skip mapping of CIDFontType2 glyphs in fonts with a |IdentityToUnicodeMap|, unless |properties.widths| is defined for the glyph
#6088 Check availability of canvas & PDF before printing
#6089 Update README (Chrome & Opera section)
#5998 Don't map glyphs to certain problematic Thai/Lao Unicode locations (issue 5994)
#6076 Apply padding on , not the button
#6101 Add a test-case for issue 6099 - CalRGB color space where the parameters are a |Ref|
#6093 Slightly improved Crypto unit tests
#6091 Increase the font weight used for non-embedded ArialBlack fonts
#6090 Map missing glyphs to the notdef glyph for TrueType (3, 1) fonts (issue 6068)
#6112 Use the Alternate entry, if it exists, in ICCBased Colour Space dictionaries (issue 5836, issue 5939, issue 6055)
#6114 Ensure that the result of |constructStichedFromIRResult| is a number (issue 6113)
#6122 Fix a typo causing a TypeError when attempting to call pdfHistory_clearHistoryState (issue 6121)
#6125 Remove issue6113.pdf from the test-suite for failing intermittently in Firefox on the Linux bot
#6120 Clear the |getSinglePixelWidth| cache when rendering Type3 fonts (issue 6117)
v1.1.114
Changes:
#5851 V1.1
#5855 Remove broken links from hello world example
#5856 Improve the instructions for the 'hello world' example
#5844 Add a |PDFViewer| option to remove the border shadow around pages (issue 5559)
#5866 Add |pageActualOption| to the list of predefined zoom options in the |scalechange| event handler in viewer.js
#5749 Bug 1072350 - Removing CPOWs used by Find events.
#5705 Don't map glyphs to Unicode "Dotted circle" combining mark (bug 1108301)
#5878 PR 5749 followup
#5713 Create a IdentityToUnicodeMap in evaluator.js when toUnicode contains IdentityH/IdentityV
#5868 Add custom |outlineloaded| and |attachmentsloaded| events to the viewer (bug 1112947)
#5882 Don't map glyphs to Unicode position 0x0E33, i.e. Thai character SARA AM (bug1046314)
#5888 Remove reference to GNUpdf from comment in |DocumentProperties.parseDate|
#5886 Restrict logging of errors with verbosity level
#5895 Re-factor and clean-up some preference related code in viewer.js
#5881 Added the data-page-number dom attribute to the page rendered in the browser
#5899 add missing pt-BR page_scale_percent property
#5907 Provide only one browser manifest example
#5906 Fixed a small typo in the italian translation
#5911 Remove commented out code about |disableWorker| in the test suite
#5908 Read jshint version from package.json
#5914 Bug 1151303 - [zh-TW] Translation update proposed for browser/pdfviewer/...
#5913 [B2G] Stub the |DownloadManager| to avoid error
#5912 Remove ShellJS copy and use the NPM version
#5933 Remove commented out code from viewer.html
#5926 prevent viewer from zooming on cmd+mousewheel (bug 1018932)
#5936 Update .gitattributes
#5937 Crypt filter EFF key should have StmF value as default, not StrF
#5923 Don't map glyphs to certain problematic General Punctuation Unicode locations (bug 911034)
#5944 Fail with a more informative error message if the browser executable pat...
#5945 Use Int32Array instead of Uint32Array in FlateStream
#5917 Address review comments from Bug 1148192 - Update pdf.js to version 1.1.24
#5951 Bug 1156287 - Do not extract unreachable code after return
#5655 Avoid getting stuck in empty nodes in the Pages tree when calling |Catalog_getPageDict| (issue 5644)
#5699 Refactor the Presentation Mode code
#5756 Guess CIDFontType0 subtype based on font file contents (issue 5751)
#5963 Clarify bug reporting with regards to providing a pdf
#5809 Attempt to infer if a CMap file actually contains just a standard Identity-H/Identity-V map
#5959 Refactor document properties overlay
#5966 Enable linting of Firefox specific code in viewer.js
#5953 Remove no longer needed hacks that enable spacebar scrolling in Firefox (issue 3498)
#5905 Remove SpecialPowers addon
#5828 Fix flaw in mozCurrentTransform polyfill
#5977 Prevent Firefox from warning about |unreachable code after return statement|
#5598 Disable Range Support for Chrome 39+40 (#5512)
#5979 Revert #5603 regarding Chrome range request bug
#5964 Handle the Encoding being a dictionary in PartialEvaluator_preEvaluateFont (bug 1157493)
#5983 Bug 1152841 - make pdf.js viewer app handle open requests from file viewers
v1.1.3
#5552 Creates/refactors PDFPageView class
#5603 Use Content-Range instead of Content-Length #5512
#5618 Version 1.0.1040
#5606 Add a |textlayerrendered| event
#5600 Implement guards for stringToBytes and bytesToString
#5622 Move the |pagerendered| event to pdf_page_view.js
#5554 Refactors getDocument and adds PDFDataRangeTransport.
#5632 Fixes B2G file open sequence.
#5627 Whitelists 'tel' schema.
#5631 Refactor searching for end of inline (EI) JPEG image streams
#5624 Base64 example and be more flexible what type of data is passed
#5638 Fix thumbnail scaling regression for files with different page sizes (issue 5637)
#5641 Prevent setting |isStandardFont| to |undefined| for non-embedded fonts
#5639 Attempt to display the File size quicker in the Document Properties dialog (PR 5554 followup)
#5646 Amend the docs for |disableAutoFetch| to mention that streaming must also be disabled
#5619 Chrome extension: Add options page
#5567 Add marker segment (PLT, PLM) and refactor TLM
#5659 Fix thumbnail rendering regression, when using |draw|, for PDF files with blend modes (issue 5637)
#5660 Fill temporary canvases with a white background too
#5511 Bug 639134 - update check for document colors
#5610 Better thumbnail image scaling
#5596 Fix border sizes around thumbnails
#5588 Remove unused anchor links placed before every page
#5671 Remove unused index.html.template
#5674 Avoid getting |childNodes| twice in PDFPageView_reset, by using the variable instead
#5672 Remove unused viewer-snippet-b2g-activity-header.html
#5675 Remove obselete file from .gitignore
#5669 Avoid out of range array access in JBIG2 decoder
#5673 Refactor the thumbnail code
#5679 Refactor the outline code
#5678 Refactor the attachment code
#5684 Make sure that an A entry in an annotation dictionary is also a dictionary itself
#5691 Use the |shadow| function from src/shared/util.js in viewer.js
#5634 Add support for TrueType (0, 0) cmap tables (issue 5501, issue 5574, and bug 1037973)
#5651 Try to skip mapping of missing TrueType and CIDFontType2 glyphs
#5717 Test case for issue 5567
#5729 Fix CCITTStream regression by byte-aligning rows before checking EOL marker
#5703 Relax the |isSymbolicFont| check for TrueType (3, 1) cmap tables (issue 5701)
#5743 Only skip the |!isSymbolicFont| check for TrueType (3, 1) cmap tables if no previous cmap table was found (PR 5703 followup)
#5763 Update to version 1.0.1149
#5748 Fetch parameters if they are a |Ref| in CalGray/CalRGB color spaces (issue 5747)
#5744 Fix regression that prevents resetting the zoom level to "Automatic" when using the |Ctrl + 0| keys
#5721 Move the call to |PDFFindController.resolveFirstPage| into PDFViewer
#5731 Skip fill bytes (0xFF) when decoding JPEG images (issue 5331)
#5711 Remove the |el| property in PDFPageView and PDFThumbnailView
#5586 Update thumbnails only when they are visible (to improve scrolling through large documents)
#5758 Add option to open external links in new window
#5693 cleaned whitespace
#5769 nbsp normalization
#5680 Reset state upon load if showPreviousViewOnLoad
#5771 Remove unused isNull utility function
#5778 Add a |text| test-case for issue 5421
#5734 Lower space factor threshold
#5806 Add a reduced test-case for issue 5734
#5802 Embedded Viewer Should Not Override Page Title
#5770 Correctly detect OpenType font files with CFF data
#5819 Using newChannel2 instead of newChannel in the extension.
#5595 Use binary search in getVisibleElements()
#5582 Fix handling of "Fit" zoom values in setHash (issue 5581)
#5692 [l10n] Treat language as case-insensitive
#5821 Correctly detect the presence of the Adobe specific APP14 JPEG marker (bug 1140761)
#5826 WebL10n update (March 2015)
#5829 Fixes minor typo from #5826
#5785 Revert PR 5510, except in WebKit browsers, for breaking print preview in Firefox
#5838 Make presentation mode work again in Safari
#5525 Disable PresentationMode for certain problematic configurations
#5843 Enable OPS.setHScale in the SVG backend
#5848 Fix the node getinfo.js example