PDF.js v1.10.88 Release Notes
Release Date: 2017-10-27 // over 6 years ago-
๐ Changes:
๐ #8778 Use
Uint8ClampedArray
, when returning data, and remove manual clamping insrc/core/jpg.js
(issue 4901)
#8780 Version 1.9.426
#8783 UseUint8ClampedArray
when returning image data insrc/core/jbig2.js
andsrc/core/jpg.js
#8785 SVG: Don't render missing glyphs
๐ #8788 Attempt to delay disabling of the attachment view until FileAttachment annotations of the initial page has been parsed
๐ #8792 Fix caching of small inline images inParser.makeInlineImage
(issue 8790)
๐ #8794 Remove the migration code for old localStorage data inViewHistory
#8557 pdf2svg.js: provides ReadableSVGStream class to serialize a SVG as a stream
#8781__non_webpack_require__
-> require in SystemJS
#8491 JBIG2 halftone regions and pattern dictionaries
๐ #8807 Remove handling of fallback arguments fromPDFViewer.scrollPageIntoView
๐ #8812 Moves global scope out of shared/util.
#8813 Use Array.isArray in the LoopbackPort.
#8810 Cache PdfJs's enabled setting for delayed init
#8800 Try to recover if we reach the end of the stream when searching for theEI
marker of an inline image (issue 8798)
#8712 Adds node.js logic for networking tasks for PDF.js
๐ฆ #8822 Disable node libs in pdfjs-dist package.json
๐ #8824 Prevent an infinite loop inXRef.readXRef
by keeping track of already parsed tables (bug 1393476)
๐ #8819 Remove any mention ofcompatibility.js
from the "Getting Started" docs (issue 8818)
#8817 Set this.isCancelled in close method of streamSink.
๐ #8820 Remove the ability to pass ascale
parameter in the (optional)args
object parameter ofPDFViewerApplication.open(file, args)
โ #8821 Replace the test-case for issue 8798 with a reduced one (PR 8800 follow-up)
๐ #8826 Enable thefor-direction
ESLint rule
#8825 Account for broken outlines/annotations, where the destination dictionary contains an invalid/Dest
entry
#8796 Implement text rise for the SVG back-end
#8829 Attempt to improve theEI
detection heuristics, for inline images, in streams containingNUL
bytes (issue 8823)
โก๏ธ #8831 Update thegulp minified
command to use uglify-es
๐ #8835 Ensure thatPDFViewerApplication.error
outputs proper messages in FIREFOX/MOZCENTRAL builds
#8768 Adds fetch stream logic for networking part of PDF.js
๐ #8845 Fixes autofetch and firefox nightly fetch streams
#8828 Improve the annotation code by converting to ES6 syntax and removing duplicate code
#8848 Correctly set thecredentials
of a fetch request, when thewithCredentials
parameter was passed togetDocument
โ #8855 Add test for withCredentials option
0๏ธโฃ #8847 Correct the default value forisRenderable
in theAnnotationElement
constructor, to fix breaking errors when rendering unsupported annotations
#8857 Avoid some redundant type checks inXRef.fetchUncompressed
โช #8859 Revert PDFPageView.pdfPage reset.
#8862 Replace theisInt
helper function with the nativeNumber.isInteger
function
#8864 Replace theisArray
helper function with the nativeArray.isArray
function
#8775 Re-writePDFHistory
from scratch
#8874 Fix the helloworld example by setting the PDFNetworkStream class (PR 8712 follow-up)
#8866 Correctly validate the response status for non-HTTP fetch requests (PR 8768 follow-up)
๐ #8877 Providechecked
styles for button widget annotations
#8885 Address a couple of edge-cases in the newPDFHistory
implementation (PR 8775 follow-up)
#8889 Replacevalue === (value | 0)
checks withNumber.isInteger(value)
#8868 Store the rotation in theViewHistory
/PDFHistory
(issue 5927)
๐ #8865 Hide unsupportedLinkAnnotation
s (issue 3897)
๐ #8691 Implement support for square and circle annotations
๐ #8892 Replacevar
withlet
inweb/genericcom
andweb/genericl10n
๐ #8891 ES6-ify the code inweb/firefoxcom.js
๐ #8893 Combine the common styles and overrides for the annotation layer reference tests
#8808 Fix color of image masks inside uncolored patterns
#8904 Provide a stub forsetAttribute
in order to use the SVG back-end with Node.js
โ #8900 Use theSimpleLinkService
when running "annotations" reference tests
#8910 Fix #8888: Change behaviour of fetch to make it compatible with XHR.
#8913 For /Filter entries containingName
s, ignore the /DecodeParms entry if it contains an Array (issue 8895)
โ #8909 CheckisEvalSupported
, and test thateval
is actually supported, before attempting to use thePostScriptCompiler
(issue 5573)
๐ #8917 Implement support for stamp annotations
#8919 Ignore 'change' events that didn't originate in the viewer (issue 8915)
๐ #8921 support tiff predictor for 16bit
#8901 CCITTFaxStream problem when EndOfBlock is false
0๏ธโฃ #8938 Use font's default width even when 0. (bug 1392647)
๐ #8912 [api-minor] ReplaceDOMParser
withSimpleXMLParser
#8928 Fix #8907: Decode URL to get correct path in node_stream.
๐ #8949 Remove theinstanceof AlternateCS
check inColorSpace.parse
since it's dead code
#8932 JBIG2 symbol offsets
๐ #8950 Implement support for polyline and polygon annotations
#8724 Implement aPDFSinglePageViewer
class (issue 8188)
#8955 Overwrite maxSizeOfInstructions in maxp with computed value.
๐ท #8959 Ensure that the same exact version of PDF.js is used in both the API and the Worker
#8962 Check thatthis.baseUrl
is defined before attempting to fetch any data inDOMCMapReaderFactory
/NodeCMapReaderFactory
#8968 Split the existingPDFFunction
in two classes, a privatePDFFunction
and a publicPDFFunctionFactory
, and utilize the latter inPDFDocument
to allow various code to access the methods ofPDFFunction
#8976 Simplify the disabling of Node polyfills, ingulpfile.js
, since we're now using Webpack 3.x
#8971 Closes all promises/streams when handler is destroyed.
๐ #8979 Transform Web Archive URLs to avoid downloading an HTML page instead of the PDF file
โก๏ธ #8977 Update all packages to the most recent version
โก๏ธ #8981 Update translations
๐ #8983 Remove unused helper code
#8980 Add CDN links
#8990 Added component example for single page viewer
#8994 Fix a regression that (effectively) makesPDFHistory.forward
a no-op
โช #9002 Revert "Closes all promises/streams when handler is destroyed."
#9001 Prevent theannotationLayer
from, in some cases, becoming duplicated on the first page when the document loads
๐ #8922 AllowgetOperatorList
/getTextContent
to skip errors when parsing broken XObjects (issue 8702, issue 8704)
๐ #9008 Mispelled isEvalSupported property at FontFaceObject() creation.
๐ #9009 Only warn about unsupported JavaScript, in the viewer, when non-empty actions exist (issue 5767)
#9013 Fix aPDFHistory
regression with document hashes of thenameddest=...
form
#9027 Replace ourWeakMap
polyfill with the one from core-js
๐ #9029 Enable the--report-unused-disable-directives
ESLint command line option
๐ #9031 Remove all warning/fallback code for obsolete method signatures inweb/
files
#9040 Remove theenableHandToolOnLoad
preference migration code inweb/pdf_cursor_tools.js
JavaScript exists
#9044 Use charstring as plain text when lengthIV is -1.
๐ #9032 Simplify the check, and remove the warning, for thenativeImageDecoderSupport
API parameter
#9052 Attempt to clarify the meaning of "extension" in the ISSUE_TEMPLATE
#9054 Replace ourPromise
polyfill with the one from core-js
#9055 ReplaceNumber
polyfills with the ones from core-js
๐ #9058 Replace a few occurences ofvar
withlet
in already ES6 converted web/ files
๐จ #9057 Uselet
/const
instead ofvar
in the printing code
#9061 Adds ECCN response statement
#8986 Version 1.10
#9045 Sanitize name index in compile phase of CFF.
#9046 Extract the actual decoding inCCITTFaxStream
into a newCCITTFaxDecoder
"class", which the newCCITTFaxStream
depends on
#9072 UsestringToBytes
in more places