Skip to content

Releases: mozilla/pdf.js

v1.0.712

04 Sep 23:17
Compare
Choose a tag to compare

Changes since last update:

#5075 fix typo
#5080 Version 1.0.473
#5081 Fixes typo in promises implementation for legacy browsers
#5078 Optimize Ref_toString().
#5083 Initialize PDFView.url = ''
#5034 [SVG] Adds clip operator, fixes setGState, fill, stroke operators
#5074 Use Array.join to build up strings in readPostScriptTable().
#5077 Fix loading of PDF files with invalid or missing Type3 characters (issue 5039)
#5088 Stop including cidmaps.js
#5023 Re-factor parsing of the Linearization dictionary
#5063 Avoid creating intermediate strings in the PostScriptLexer
#5096 Right-size |chars.length| and |type.length| in bidi().
#5099 Add a reduced test-case for bug 1027533
#5059 Removing unused code and enforcing additional JSHint options
#5090 Re-run feature detection after downgrading the Chromium browser.
#5103 Add a reduced test-case for issue 4800
#5104 Use CSS.supports instead of '..' in ....style
#5082 Managed preferences for Chrome administrators
#5106 Attempt to fix Travis
#5105 Add a couple of reduced test-cases for PR 4259
#5101 Avoid expensive for..in loops involving CMaps
#5109 Use strict equalities in test/*
#5110 Fix JBIG2 decoding issue #5026
#5108 Use strict equalities in web/*
#5112 Add strict equalities in src/shared/*
#5113 Add strict equalities in src/display/*
#5116 Add strict equalities in src/core/* (part 1)
#5119 Use strict equalities in make.js, external/* and extensions/*
#5121 Use strict equalities in src/core/{image, jpx, jpg, jbig2}.js
#5120 Add strict equalities in src/core/* (part 2)
#5125 Add strict equalities in src/core/* (part 3)
#5122 Enforce strict equalities with JSHint
#5127 Fix issue where pdfDocument is null
#5129 Add reduced test-cases for issues 4875 and 4881
#5111 Represent cid chars using integers, not strings.
#5136 Properly set this.eof in CCITTFaxStream
#5134 Improves speed of the functions
#5008 Make QueueOptimizer easier to read.
#5095 Adjust the heuristics to recognize more cases of unknown glyphs for |toUnicode| (issue 5070)
#5007 Converting PDFFindBar and PDFFindController to classes
#5071 Optimize a font-heavy document
#5141 Fixes lint errors
#5140 Removes some bind() calls from fetchAsync
#5137 Optimize TextLayerBuilder_renderLayer() for text heavy documents.
#5135 Make IdentityCMaps more compact.
#5100 Load file:-URLs in the main thread.
#5142 Fixes text-selection example
#5143 Simplify text-selection example.
#5145 Revert commit 9a41659 (PR 5005) for breaking the loading of certain PDF files in the Firefox addon when range requests are active
#5149 Fixes CCITTFaxStream regression
#5114 Faster JBIG2 bitmap decoding
#5158 Change Rob's email address
#5157 Disable spellcheck in Chromium's URL popup
#5151 Avoid repeated creation of a simple RegExp object.
#5156 Fixes a regression from PR 4982
#5153 Preserve reference fragment in Chromium URL router
#5154 AES cipher: make padding optional
#5162 [SVG] Reduces amount of used memory during PNG creation.
#5147 [SVG] Adds image and mask features, fixes clippath
#5164 Nit fixes for svg.js
#5150 Fix #4935
#5160 only convert in IE9 if the requested responseType is actually an arraybu...
#5163 Refactoring of OpenType/TrueType font construction
#5166 Remove old unused code from PDFView.close()
#5170 [SVG] Uses float number formatter to print numbers in SVG
#5171 Fix typo
#5169 Attempt to display the File size quicker in the Document Properties dialog
#5175 Disable the "Go to First/Last Page" buttons when the first/last page is currently active
#5174 Add even more unit tests for the API
#5172 Avoid an allocation in readCharCode().
#5177 Remove two instances of leftover console.log debug statements
#5179 Miscellaneous code improvements for svg.js
#5180 Minor changes for api.js, font_loader.js and svg.js
#5183 Adds width at the beginning of the Type2 charstring
#5185 Fix CMap unit tests
#5182 SVG Command line tool for exporting output
#5188 Refactors some SVG api and includes svg.js in the build
#5184 Use cff glyph width in the hmtx table
#5191 Right-size the array in getSampleArray().
#5168 Avoid unnecessary array allocations in EvaluatorPreprocessor_read().
#5187 Reduce ASCII checks in makeInlineImage().
#5186 Fix the error handling for CMaps that fail to load
#5181 Optimizes defaults for svg.js
#5165 implement CalRGB color space
#5192 Ignore setGState no-ops.
#5194 Remove position: absolute from text divs.
#5195 Add unit test for PDF file loaded as typed array
#5198 Implements paintFormXObject in svg.js
#5199 Bug 1054590 - [pdf.js] Update to use gaia-header
#5200 CalRGB: optimize CalRGB calculations
#5201 Small re-factoring of DocumentProperties
#5205 Remove setGStateForKey() closure.
#5193 Only use data-font-name attributes when necessary.
#5210 Fixes Type3 negative font direction
#5208 Debounces scroll events in web viewer.
#5212 Fix ensureByte() function name (copy-and-paste error)
#5204 Apply the GRAYSCALE_1BPP optimization when needsDecode is set.

v1.0.473

24 Jul 14:51
Compare
Choose a tag to compare

Changes since last update:

#4879 Version 1.0.277
#4851 Added more preferences for the available hash parameters.
#4866 Removes mozResponseArrayBuffer
#4876 Prevent adding undefined array entries to CMap.map in mapRangeToArray (issue 4875)
#4835 Prevent font error when no preferred cmap table is found (workaround for issue 4800)
#4886 Adds color components decoding to the JPEG
#4891 Fixes typo in getAsync
#4889 Optimized loops in JPG conversion.
#4868 Added a base64 transparent gif image to links for IE
#4894 Optimize JPG.js receiveAndExtend for 1 bit case.
#4896 Deleted unused variables in jpgjs buildComponentData.
#4897 Optimization for FlateStream_getCode, making more pdfs parsable.
#4902 Prevent infinite loop when scanning for endstream (bug 1020226)
#4907 add object id to streams to prevent infinite loops.
#4892 Fixes masked JPEG image
#4867 Fixes murmurhash for old webkit.
#4895 Small optimizations 1
#4870 Enable browser cache when running test server
#4910 Handle cases where the fontName contains non-alphanumeric characters (issue 4909)
#4912 Fixes optional backdrop regression
#4917 Fixed base64 image in CSS
#4920 Zero the height and width of the PageView canvas before deleting.
#4922 Return ErrorFont in loadFont when the fontRef is undefined
#4915 Fix #4914
#4925 Protects PDFJS.disableXXX == true from change
#4864 Translate statcmp.py to JavaScript
#4928 Removes statcmp.py
#4929 Imports most recent l10n files
#4930 Re-add Attachment strings to the Swedish l10n
#4932 Cache pages at the start of drawing, not the end.
#4924 Fixes drawImage for thumbs
#4933 Fix mishandling of incomplete, inverted masks.
#4834 Limit the size of canvases to 5MP (iOS restriction)
#4937 Halve the size of the PageView cache.
#4936 Fix PageView cache re-insertions.
#4938 Added support for decrypting PDF 1.7/2.0 Algorithm 5 revision 5 and 6. (perf)
#4939 Fixes JPX COC support / JPX error reporting refactoring
#4942 Add larger zoom values to zoom dropdown box
#4941 Prevent rendering unnecessary pages when the HOME/END keys are pressed
#4952 Collect More Telemetry Data
#4955 Renames concatenateToArray to appendToArray
#4959 Zero the height and width of cached canvases before deleting them.
#4950 Faster JPEG transform
#4951 Added getOperatorList to api.js
#4946 Refactor fake worker loading (issue 3862)
#4962 Increases page cache size when needed
#4961 Disables broken rAF on iOS
#4966 Add ChunkedStream.ensureByte().
#4965 Splits shared/annotation.js into core/ and display/
#4969 Implements onerror for JpegStreams
#4970 Fixes AnnotationUtils in the extension build
#4968 Build up textChunk.str more efficiently.
#4972 Avoid allocating return object in EvaluatorPreprocessor_read().
#4971 Removes error catch from fetchUncompressed()
#4945 Let Parser_makeFilter return NullStream when an invalid stream is encountered (issue 3417)
#4973 Factor out repeated Ref key string generation code.
#4979 SVG Viewer Example demo
#4981 Misc SVG Viewer example fixes
#4987 Refactoring PDF find controller and implementing page content and query normalization
#4982 Use null instead of [] for ops with no args.
#4991 Refactoring text layer builder and converting text layer builder to a class
#4944 Don't blindly trust toUnicode when building toFontChar for non-standard fonts without a font file (issue 4934)
#4976 Restructured EvaluatorPreprocessor_read to be more natural.
#4980 Additional heuristics to recognize unknown glyphs for toUnicode (bug 1027533)
#4993 Group 'rectangle' operator into constructPath
#4999 [SVG] Optimization of save/restore usage, Addition of paint methods
#4997 Fixes CanvasPixelArray set polyfill (#4974)
#5001 Do not run cleanup while printing is ongoing.
#5004 Improving CanvasPixelArray polyfill for Android
#5000 [SVG] Optimization of constructPath & Adds unit lengths
#5017 [CIDFontType2] Map characters missing in toUnicode to the private use area (bug 1028735 and issue 4881)
#5014 A few small font optimizations
#5025 Improve how DecodeStream handles empty buffers.
#5050 In the reftest analyzer, make it possible to toggle "Circle differences" with the D key
#5033 Avoid creating intermediate strings in Util.makeCssRgb().
#5015 Zero the height and width of the WebGL canvases on cleanup
#5005 Faster chunkedStream_getByte()
#5021 Fixes mesh fill pattern with optional matrix
#5062 Adjust the tabindices in the viewer
#5037 Add |fillRgb| method to LabCS
#5012 Prevent CMapFactory.create from failing by passing the necessary parameters from PartialEvaluator_readToUnicode (issue 5010)
#5068 Adds ImageData set support for legacy safari
#5069 Revert commit fc73e2e (PR 5005) for breaking certain PDF files
#4995 Fix another seac regression (issue 4801)

v1.0.277

02 Jun 17:18
Compare
Choose a tag to compare

Changes since last update:
#4520 Force default icon size for Text annotations without appearance stream
#4663 Version 1.0.68
#4645 Only handle scroll events when PDFView.pdfDocument is defined (issue 4642)
#4666 PDFImage_resize: copy in place with alpha and ~5x speed up
#4675 Dutch translations for attachments strings
#4674 Move DocumentOutlineView and DocumentAttachmentsView to their own files
#4671 Guesses Type1C font type based on file content
#4679 [Firefox] Workaround for sessionStorage error when the preference network.cookie.lifetimePolicy is set to 1 (bug 1000777)
#4686 Converts attachment items to buttons instead of links
#4697 Fix the display of the indeterminate progress bar when the loaded percentage is NaN (issue 4696)
#4687 Providing content type for attachment downloads
#4676 Force Unix line endings for text files
#4692 Add support for setting multiple values at once in ViewHistory
#4528 Less color conversion
#4693 Ensure that the viewer loads even if there are errors when the preferences are read
#4699 Reduces memory used during testing
#4669 Add a preference to set the sidebarView on load
#4689 Fixes DownloadManager for IE10 and above
#4701 Prevent trying to map characters to the specials unicode block in adjustMapping (issue 4650)
#4707 Link to FAQ from startpage
#4700 Reject polyfill and createPromiseCapability
#4705 Refactor how the database is read in ViewHistory
#4716 Amend GlyphMapForStandardFonts to fix issue 4276
#4709 Remove legacy promises from api.js
#4667 Remove LegacyPromise in src/core/chunked_stream.js
#4721 Tiny updates
#4724 Fixes cancel rendering regression
#4730 Fixes disableWorker regression
#4731 Fixes rendering of PDFs with nested trailer dictionary
#4725 Remove LegacyPromise in src/core/pdf_manager.js
#4727 Remove LegacyPromise in src/shared/annotation.js
#4726 Remove LegacyPromise in src/core/core.js
#4728 Remove LegacyPromise in src/core/worker.js
#4729 Remove LegacyPromise
#4733 Completes unit tests for PostScript evaluator and fixes two bugs in the evaluator itself
#4708 Graphic optimizations 1
#4732 Fixes tests for #926 and #2537
#4750 Reduce the number of resources loaded by GetDoc
#4756 Add getFindBar for Fx extension (refactor)
#4753 Add getFindBar for Fx extension
#4759 Refactoring annotation.js and removing old TODOs/comments
#4683 Groups path commands into single operation
#4763 Uses rAF to interrupt the operator list execution
#4767 Removes unused code from web/compatibility.js
#4740 Adds pageviewport documentation
#4769 update DE translation (attachments)
#4738 Allow unsafe-eval to fix font renderer in Chromium extension
#4771 Fix typo when rejecting Promise in getPage
#4768 Handle more cases of invalid line dash patterns in annotation borders
#4772 Reduce the number of calls to PDFView.getVisiblePages from updateViewarea
#4781 Move jshint & yargs to devDependencies
#4784 Switch to Node.js 0.10
#4783 Use jQuery 2 in examples
#4782 Remove type="text/javascript" from script tags.
#4777 Refactor the CSS rules for the overlayContainer
#4752 Refactors MessageHandler.send to remove callbacks
#4793 Fix regression that prevents downloading the PDF file (PR 4752)
#4796 Check if the Names dictionary actually contains a Dests dictionary before attempting to get the destinations
#4795 Add unit test for getData
#4736 Build paths for glyph accents when drawing text as curves
#4797 Update text layer correctly when zooming with USE_ONLY_CSS_ZOOM
#4764 Graphic optimizations 2
#4549 / support in Chrome / Opera
#4799 Handle nested post script arguments in the preprocessor
#4773 Simplify Jbig2Image.decodeInteger()
#4812 Add more unit tests for the API
#4809 Fix loading of fonts with empty font files (bug 866395 and issue 3522)
#4808 Fix strange looking buttons in mobile Firefox
#4770 Adds Promises to getOperatorList
#4817 Graphic optimizations 3
#4815 Refactors loadFont for translateFont be async
#4821 Fixes regression in the cleanup
#4826 Wrapped localstorage.setItem in try block to avoid uncaught exceptions.
#4831 Adds some addon/mozcentral files to the preprocessor
#4824 Moves colorspace.js and function.js into core/
#4829 small optimizations in parser.getObj(), lexer.getObj()
#4845 adjust the aurora path in the tests browser.json
#4823 Simplify the interaction with overlays by adding an OverlayManager
#4850 Small comment fix
#4833 OpenAction support for printing
#4857 Making sure we are not importing CRs and BOMs
#4858 Bug 1015115 - switch to cloneInto in pdf.js
#4856 [OverlayManager] Add preventDefault to the keydown event handler
#4832 Refactors showText: split type3, remove showSpacedText
#4861 Fixes unhandled XObject subtype PS error
#4803 [WIP] Update web/compatibility.js
#4865 Adds compatibility.js to the Firefox extension
#4877 PdfRedirector checks if plugin is still in PlayPreview mode

v1.0.68

24 Apr 01:21
Compare
Choose a tag to compare

Changes since last update:
#4621 Setting empty tooltips for zoom select box items
#4628 Ensure that the errorWrapper is closed when a new document is opened (issue 4625)
#4622 version 1.0.21
#4607 Remove a bunch of unused local variables from web/ and src/
#4552 Prevent the annotationLayer from being recreated when the page is redrawn
#4538 Less copying in the JPX decoder
#4633 Fixes spacing in the text layer builder
#4636 Rename getUint32 to getInt32 and collect readInt*() in util.js
#4640 Fix special powers add-on for firefox.
#4637 Fix #3483 and simplify readCodingpasses()
#4638 Recognizes ASCII type1 encoding
#4641 Fixes invalid CFF name for Mac OSX
#4646 Update of zh-TW
#4644 Add Attachment strings to the Swedish l10n
#4656 Fix regression preventing the setting of breakpoints in the Stepper (PDFBug)
#4653 Fix corrupted images #4649
#4655 Add integer conversion to RGB colour values in convertToRgb in DeviceCmykCS (issue 4443)
#4654 Basic node.js example that demonstrate pdf.combined.js file use
#4600 Optimized JPX decoder ~6% faster

v1.0.21

14 Apr 21:56
Compare
Choose a tag to compare

Changes since last update:
#4535 Avoid drawing text when the font size is zero (issue 4484)
#4512 Clean up duplicate string conversion functions
#4539 Workaround for missing 'Rect' entry in annotation dictionaries (issue 4537)
#4554 Better test process killing for Windows
#4546 Prevent the Document Properties from being empty when the dialog is opened before the file has started loading
#4524 Use full screen width in presentation mode
#4545 Use new Chromium APIs for FTP and redirects
#4482 Rewrite 'Preferences' to make it async
#4516 Added CSS rules to improve scrolling on iOS devices
#4455 Fix download button waiting if document has started but not completed downloading
#4559 Refactors history and how the database is stored
#4563 Test with opera
#4565 Read color info from JPX stream + fix color problem #4540
#4286 WebGL and misc memory optimizations
#4374 Doesn't traverse cyclic references in Dict.getAll; reduces empty-Dict GC
#4578 Workaround for cases where FontName in the FontDescriptor differs from BaseFont in the Font (bug 847420)
#4569 Handle 'space' character correctly in MacRomanEncoding (bug 878026)
#4423 Treat fonts with the same font descriptor and encoding as aliases
#4574 Handle 'space' character correctly in WinAnsiEncoding (bug 850854)
#4568 Jpx optimization
#4570 Build the text layer geometry on the worker.
#4587 Fixes text-selection example
#4584 Create the WORKER_SRC_FILES and EXT_SRC_FILES lists in make
#4585 Redo and add more documentation to gh-pages.
#4593 Fix version numbers.
#4590 Relaxes murmurhash array requirement.
#4589 Remove leading and trailing spaces from info.Producer and info.Creator when printing debug info in the console (bug 872827)
#4556 Use Opaque Canvas
#4577 Removes custom test/reporter.js from the lint process
#4550 Heuristics to recognize the unknown glyphs for toUnicode
#4588 Adds text-only example
#4597 Print WebGL status in the console
#4595 Append whitespace divs so matches still line up.
#4602 Introduces .jshintignore
#4601 Fixes documentation for PDFPage.render
#4599 Adds then method to the RenderTask
#4596 Fix seac regression.
#4598 Work-around for filesystem:-URL bug
#4604 Fixes broken link in the documentation
#4605 1.0 release.
#4611 Exclude B2G stubs from linting
#4612 Fixes number of glyphs in the generated font
#4606 Makes PDF files load when xrefEntry is undefined
#4614 Refactor - remove redundant function and all references
#4617 Changes 'documentload' event behavior.
#4618 Refactoring - remove duplicated code in TextLayerBuilder
#4616 Creates make.js code to build jsdoc.
#4613 Refactors buildImage to use Promise; don't draw bad images
#4581 Check that images have valid dimensions (issue 4575)

v0.8.1334

10 Apr 00:48
Compare
Choose a tag to compare

Changes since last update:
#4437 Fixes corrupted by Aspose fonts
#4444 Estimate the size of decoded streams in advance.
#4451 Makes firefox extension's l10n get() behavior similar to webL10n
#4426 Making extensions/chromium/*.js adhere to the style guide
#4434 Jbig2 optimizations
#4460 Fix coding style in external/builder/builder.js
#4465 Fix coding style in src/display
#4467 Fix coding style in /test
#4468 Fix coding style in make.js
#4454 Fix gaia css lint errors.
#4463 Fix copy-paste typo
#4473 Prevent infinite loop in CFFParser_parseHeader
#4477 Fixes HiDPI icons of the secondary toolbar for Chrome
#4440 refactor src/core/pdf_manager.js: rename pdfModel to pdfDocument
#4470 CMaps binary packing
#4447 Allocate fewer objects
#4464 Fixes pages without Resources in their dictionary
#4481 refactor src/core/pdf_manager.js: rename pdfModel to pdfDocument
#4488 Sync pt-BR translations with l10n-mozilla-aurora
#4474 Introduce paintSolidColorImageMask command to handle 1x1 solid image
#4453 Add a cache for glyphs
#4478 Use a vanilla array for fnArray
#4452 Making src/core/{image,obj,parser}.js adhere to the style guide
#4493 Fixes ignoring of the escaped CR LF
#4497 jpgjs performance improvements
#4503 Fix coding style in src/core/fonts.js
#4508 Fix coding style in extensions/firefox
#4507 Fix coding style in src/core
#4505 Making src/core/evaluator.js adhere to the style guide
#4509 Update lint config to enforce braces for single line statements
#4501 [Firefox] Lazy load network.js in PdfStreamConverter.js
#4517 Fixes for small colour variations in tests
#4511 Fix for #3181: jbig2 encoding for number of instances greater than 1
#4518 [Firefox] Stop importing default_preferences.js as a module and include it instead
#4466 Faster 1 bpp image drawing
#4504 Import l10n files from mozilla-aurora
#4525 [Firefox] Only load 'PdfStreamConverter' and 'PdfRedirector' when PDF.js is enabled
#4527 Partially reverts #3641
#4519 Cleaning up the viewer and pdfbug; fixes bugs in Stepper
#4515 Replaces test.py with test.js
#4529 Fix error message typo
#4521 Assign non-zero width/height to all rectangles (issue 4260)
#4541 Cools down Chrome/Windows during testing
#4543 Fixes lint for windows; adds test/font/fontutils.js
#4542 Fix typo/unused argument in fontloader.js->spliceString()

v0.8.1181

10 Apr 16:53
Compare
Choose a tag to compare

#4392 Fixes CSS for webkit
#4399 Fixes infinite loop in DecodeStream_ensureBuffer()
#4397 Fix JPX colors
#4393 Fix scrolling using Shift+Spacebar in Firefox
#4404 Fixes off-by-one error when finding missing endstream
#4318 Improved annotations' display/behavior.
#4412 Making src/core/bidi.js adhere to the style guide
#4414 Add braces to single line statements in src/shared
#4416 Fixes typo in function.js
#4413 Making src/core/ps_parser.js adhere to the style guide
#4417 Making all examples adhere to the style guide
#4418 Making src/core/crypto.js adhere to the style guide
#4421 Making src/display/{metadata,font_loader}.js adhere to the style guide
#4422 Making src/core/jbig2.js adhere to the style guide
#4424 Fix coding style in /web
#4425 Making src/core/jpx.js adhere to the style guide
#4433 Move globals in web/pdf_find_bar.js
#4406 Improve image mask handling again
#4442 Update index.html
#4405 Avoid unnecessary re-reading of streams
#4446 Follow JMPR op only if outside of FDEF and IF
#4431 Extract arithmetic decoder to own file
#4420 Removing set-presence-in-ImageData check from canvas.js