- Introduces selectableRegionInjector/perPageSelectableRegionInjector (#256)
- web 1.1.0 support (#254)
- Merge pull request #251
- BREAKING CHANGE: add more parameters to PdfViewerParams.normalizeMatrix to make it easier to handle more complex situations (#239)
- Add PdfViewerParams.normalizeMatrix to customize the transform matrix restriction; customizing existing logic on _PdfViewerState._makeMatrixInSafeRange; for issues like #239
- Fixes single-page layout issue on viewer start (#247)
- Fixes blurry image issues (#245, #232)
- Merge PR #230 to add try-catch on UTF-8 decoding of URI path
- Web related improvements
- PDF.js 4.5.136
- Remove dependency to dart:js_interop_unsafe
- Remove unnecessary synchronized call
- Improve text selection stability (#4, #185)
- Add more mounted checks to improve PdfViewer stability and speed
- collection/rxdart dependency workaround (#211)
- Introduces PdfViewerController.useDocument to make it easy to use PdfDocument safely
- Introduces PdfViewerController.pageCount to get page count without explicitly access PdfViewerController.pages
- PdfViewerController.document/PdfViewerController.pages are now deprecated
- BREAKING CHANGE: PdfViewerParams.viewerOverlayBuilder introduces third parameter named handleLinkTap, which is used with GestureDetector to handle link-tap events on user code (#175)
- Fix typos on README.md
- FIXED: RangeError on PdfViewer.uri when missing "Expires" header (#206)
- Add packagingOptions pickFirst to workaround multiple libpdfium.so problem on Android build (#8)
- FIXED: _relayoutPages may cause null access
- Update README.md to explain PdfViewerParam.linkHandlerParams for link handling
- #175: Woops, just missing synchronized to call loadLinks causes multiple load invocations...
- Add several tweaks to reduce PdfLink's memory footprint (Related: #175)
- Introduces PdfViewerParam.linkHandlerParams and PdfLinkHandlerParams to show/handle PDF links without using Flutter Widgets (#175)
- PDF.js 4.4.168
- Introduces PdfViewerController.getPdfPageHitTestResult
- Introduces PdfViewerController.layout to get page layout
- Introduces PdfViewerParams.onViewSizeChanged, which is called on view size change
- The feature can be used to keep the screen center on device screen rotation (#194)
- FIXED: Example code is not compilable
- FIXED: Marker could not be placed correctly on the example code (#189)
- FIXED: Updated podspec file not to download the same archive again and again (#154)
- Introduces chromium/6555 for all platforms
- Darwin uses pdfium-apple-v9 (chromium/6555)
Improves memory consumption by pdfium's internal caching feature (#184)
- Introduces withCredentials for Web to download PDF file using current session credentials (Cookie) (#182)
- FIXED: Re-download logic error that causes 416 on certain web site (#183)
- PdfViewer calls re-layout logic on every zoom ratio changes (#131)
- Add PdfViewerParams.interactionEndFrictionCoefficient (#176)
- Minor fix for downloading cache
- rxdart gets back to 0.27.7 because 0.28.0 causes incompatibility with several other plugins...
- FIXED: Small Page Size PDF Not Scaling to Fit Screen (#174)
- Introduces PdfViewerController.setCurrentPageNumber (#152)
- BREAKING CHANGE: Current page number behavior change (#152)
- BREAKING CHANGE: PdfPageAnchor behavior changes for existing PdfPageAnchor enumeration values.
- Introduces PdfPageAnchor.top/left/right/bottom
- Introduces PdfViewerController.calcMatrixToEnsureRectVisible
- FIXED: LateInitializationError: Field '_cacheBlockCount@1436474497' has not been initialized (#167)
- FIXED: PdfException: Failed to load PDF document (FPDF_GetLastError=3) (#166)
- Add explicit HTTP error handling code (to show the error detail)
- bblanchon/pdfium-binaries 127.0.6517.0 (chromium/6517) (iOS/macOS is still using 6406)
- Remove dependency to intl (#151)
- Android: minSdkVersion to 21 (related #158)
- Workaround for SelectionEventType.selectParagraph that is introduced in master (#156/PR #157)
- The code uses
default
to handle the case but we should update it with the "right" code when it is introduced to the stable
- The code uses
- iOS/macOS also uses bblanchon/pdfium-binaries 125.0.6406.0 (chromium/6406)
- Additional fix for #147
- Additional implementation for #132
- Introduces PdfViewerParams.pageDropShadow
- Introduces PdfViewerParams.pageBackgroundPaintCallbacks
- bblanchon/pdfium-binaries 125.0.6406.0 (chromium/6406)
- default_min_sdk_version=21 to support lower API level devices (#145)
- Fixes concurrency issue on PdfDocument dispose (#143)
- FIXED: Null check operator used on _guessCurrentPage (#147)
- Any API calls that wraps PDFium are now completely synchronized. They are run in an app-wide single worker isolate
- This is because PDFium does not support any kind of concurrency and even different PdfDocument instances could not be called concurrently
- FIXED: possible double-dispose on race condition (#136)
- Add mechanism to cancel partial real size rendering (#137)
- WIP: Custom HTTP header for downloading PDF files (#132)
- Text search match color customization (#142)
- Reduce total number of Isolates used when opening PDF documents
- Add PdfViewerParams.calculateCurrentPageNumber
- FIXED: Could not handle certain destination coordinates correctly (#135)
- Improve memory consumption by opening/closing page handle every time pdfrx need it (PR #125)
- Improves [End] button behavior to reach the actual end of document rather than the top of the last page
- PdfViewerParams.pageAnchorEnd for specifying anchor for the "virtual" page next to the last page
- PdfViewerParams.onePassRenderingScaleThreshold to specify maximum scale that is rendered in single rendering call
- If a page is scaled over the threshold scale, the page is once rendered in the threshold scale and after a some delay, the real scaled image is rendered partially that fits in the view port
- PdfViewerParams.perPageSelectionAreaInjector is introduced to customize text selection behavior
- Fixes flicker on scrolling/zooming that was introduced on 1.0.52
- Revival of high resolution partial rendering
- Fixes memory consumption control issues (Related: #121)
- FIXED: memory leak on _PdfPageViewState (#110)
- Remove dependency on dart:js_util (#109)
- FIXED: Crash on _PdfViewerScrollThumbState (#86)
- Introduces PdfViewerParams.useAlternativeFitScaleAsMinScale but it's not recommended to set the value to false because it may degrade the viewer performance
- iOS minimum deployment target 12.0
- intl 0.18.1 (#87)
- Add note for Flutter 3.19/Dart 3.3 support on 1.0.0+
- FIXED: calcZoomStopTable hangs app if zoom ratio is almost 0 (#79)
- PdfRect.toRect: scaledTo -> scaledPageSize
- FIXED: PdfJsConfiguration.cMapUrl/cMapPacked does not have correct default values
- Condition analysis warnings on auto-generated pdfium_bindings.dart
- Requires Flutter 3.19/Dart 3.3 again (pub.dev is upgraded to the stable🎉)
- dart:js_interop based pdf.js interop implementation (remove dependency on package:js)
- Due to the pub.dev version issues, the version introduces a "temporary workaround", which downgrades several packages:
sdk: '>=3.3.0-76.0.dev <4.0.0'
flutter: '>=3.19.0-0.4.pre'
web: ^0.4.2
I'll update them as soon as pub.dev upgrades their toolchains
- pdf.js interop refactoring
NOTE: On pub.dev, 1.0.0+ versions gets [ANALYSIS ISSUE]. It does not affect your code consistency but API reference is not available until pub.dev upgrades their toolchains.
- Requires Flutter 3.19/Dart 3.3
- Rollback version constraints to the older stable versions...
- I've created an issue for pub.dev: dart-lang/pub-dev#7484
- Again,
flutter: '>=3.19.0-0.4.pre'
- To make the pub.dev analyzer work, we should use
sdk: '>=3.3.0-76.0.dev <4.0.0'
as version constraint...
- PdfViewerController.addListener/removeListener independently has listener list on it to make it work regardless of PdfViewer attached or not (#74)
- Requires Flutter 3.19/Dart 3.3
- Update Web code to use package:web (removing dependency to dart:html)
- FIXED: PdfViewerParams.boundaryMargin does not work correctly.
- Add note for dark/night mode support on README.md; the trick is originally introduced by pckimlong on #46.
- FIXED: wrong PdfPageAnchor behavior with landscape pages
- FIXED: PdfDocumentRefData's operator== is broken (#66)
- Marker example for PdfViewerParams.onTextSelectionChange (#65)
- Add more explanation for sourceName (#66)
- Introduces PdfViewerParams.onTextSelectionChange (#65) to know the last text selection
- Minor updates on text selection (still experimental......)
- Minor updates on text selection (still experimental...)
- Minor fix on PdfPageView
- CMake version "3.18.1+" for #48, #62
- Introduces PdfJsConfiguration to configure pdf.js download URLs
- Download cache mechanism update (#57/#58)
- Document update
- Document update
- Add PdfViewerParams.calculateInitialPageNumber to calculate the initial page number dynamically
- Add PdfViewerParams.onViewerReady to know when the viewer gets ready
- Remove explicit CMake version spec 3.18.1
- FIXED: Link URI contains null-terminator
- Add support text/links on rotated pages
- Stability updates for PdfTextSearcher
- README.md/example updates
- Revival of PdfViewer.data/PdfViewer.custom
- Minor fixes to PdfTextSearcher
- README.md/example updates
- Minor updates and README.md updates
- Introduces PdfTextSearcher that helps you to implement search UI feature (#47)
- Example code is vastly changed to explain more about the widget functions
- FIXED: Able to scroll outside document area
- Huge refactoring on PdfViewerController; it's no longer TransformationController but just a
ValueListenable<Matrix4>
- This fixes an "Unhandled Exception: Null check operator used on a null value" on widget state disposal (#46)
- Introduces PdfDocumentViewBuilder/PdfPageView widgets
- Example code is super updated with index and thumbnails.
- Web: Now pdf.js is loaded automatically and no modification to index.html is required!
- Default implementation for PdfViewerParams.errorBannerBuilder to show internally thrown errors
- PdfPasswordException is introduced to notify password error
- PdfDocumentRef now has stackTrace for error
- PdfFileCache now uses dedicated http.Client instance
- Now PdfDocumentRef has const constructor and PdfViewer.documentRef is also const
- Removes PdfDocumentProvider (Actually PdfDocumentRef does everything)
- Fixes breakage introduced by 0.4.18
- firstAttemptByEmptyPassword should be true by default
- PdfDocumentProvider supercedes PdfDocumentStore (PR #42)
- PDFium 6259 for Windows, Linux, and Android
- FIXED: Bug: Tests fail due to null operator check on PdfViewerController #44
- Additional fixes to text selection mechanism
- Remove password parameters; use passwordProvider instead.
- Fixes several resource leak scenarios on PdfDocument open failures
- Restrict text selection if PDF permission does not allow copying
- Remove PdfViewer.documentRef; unnamed constructor is enough for the purpose
- Introduces PdfViewer.documentRef (#36)
- FIXED: PdfViewer.uri is broken on web for non relative paths #37
- FIXED: Don't Animate to initialPage #39
- Introduces PdfViewerParams.onDocumentChanged event
- Introduces PdfDocument.loadOutline to load outline (a.k.a. bookmark)
- Improves document password handling by async PasswordProvider (#20)
- Introduces PdfViewerParams.errorBannerBuilder
- Introduces PdfViewerParams.maxImageBytesCachedOnMemory, which restricts the maximum cache memory consumption
- Better than logic based on maxThumbCacheCount
- Remove the following parameters from PdfViewerParams:
- maxThumbCacheCount
- maxRealSizeImageCount
- enableRealSizeRendering
- Add support for PDF Destination (Page links)
- FIXED: isEncrypted property of document returns always true even the document is not encrypted (#29)
- FIXED: SelectionArea makes Web version almost unusable (#31)
- FIXED: Unhandled Exception: type 'Null' is not a subtype of type 'PdfPageRenderCancellationTokenPdfium' in type cast (#26)
- FIXED: Android build broken? Cannot find libpdfium.so error (#25)
- PdfViewerParams.loadingBannerBuilder to customize HTTP download progress
- PdfViewerParams.linkWidgetBuilder to support embedded links
- WIP: Updated text selection mechanism, which is faster and stable but still certain issues
- Pan-to-scroll does not work on Desktop/Web
- Selection does not work as expected on mobile devices
- Support Linux running on arm64 Raspberry PI (#23/#24)
- Introduces PdfPage.render cancellation mechanism
- PdfPageRenderCancellationToken to cancel the rendering process
- BREAKING CHANGE: PdfPage.render may return null if the rendering process is canceled
- PdfPageRender.render limits render resolution up to 300-dpi unless you use getPageRenderingScale
- Even with the restriction, image size may get large and you'd better implement getPageRenderingScale to restrict such large image rendering
- PdfViewerParams default changes:
- scrollByMouseWheel default is 0.2
- maxRealSizeImageCount default is 3
- PdfViewerParams.scrollByArrowKey to enable keyboard navigation
- PdfViewerParams updates
- PdfViewerParams.onPageChanged replaces onPageChanged parameter on PdfViewer factories
- PdfViewerParams.pageAnchor replaces anchor parameter on PdfViewer factories
- pdfDocumentFromUri/PdfFileCache improves mechanism to cache downloaded PDF file
- ETag check to invalidate the existing cache
- Better downloaded region handling
- PdfPage.render can render Annotations and FORMS
- PdfFileCache: More realistic file cache mechanism
- Introduces PasswordProvider to repeatedly test passwords (only API layer)
- FIXED: cache mechanism is apparently broken (#12)
- PdfViewerParams.pageOverlayBuilder to customize PDF page (#17)
- Updating README.md
- Add PdfViewerParams.enableRenderAnnotations to enable annotations on rendering (#18,#19)
- Many breaking changes but they improve the code integrity:
- PdfDocument.pages supersedes PdfDocument.getPage
- PdfDocument.pageCount is removed
- PdfViewerParams.devicePixelRatioOverride is removed; use getPageRenderingScale instead
- Add PdfPageAnchor.all
- PdfViewerParams.viewerOverlayBuilder/PdfViewerScrollThumb to support scroll thumbs
- PageLayout -> PdfPageLayout
- PageLayout class change to ease page layout customization
- Add example use case in API document
- Rewriting page rendering code
- Due to the internal structure change, page drawing customization parameters are once removed:
- pageDecoration
- pageOverlaysBuilder
- Due to the internal structure change, page drawing customization parameters are once removed:
- Example code does not enables enableTextSelection; it's still too experimental...
- FIXED: Downloading of small PDF file causes internal loading error
- Support mouse-wheel-to-scroll on Desktop platforms
- Minor API changes
- Internal integrity updates that controls the viewer behaviors
- FIX: example code does not have android.permission.INTERNET on AndroidManifest.xml
- PdfViewerParams.devicePixelRatioOverride is deprecated and introduces PdfViewerParams.getPageRenderingScale
- Many renaming of the APIs that potentially breaks existing apps
- Now uses plugin_ffi. (Not containing any Flutter plugin stab)
- Fixed: #6 PdfPageWeb.render behavior is different from PdfPagePdfium.render
- Explicitly specify Flutter 3.16/Dart 3.2 as NativeCallable.listener does not accept non-static function (#5)
- Stabilizing API surface
- Introducing PdfViewer.asset/file/uri/custom
- PdfViewer has documentLoader to accept function to load PdfDocument
- Fixes minor issues on PdfViewer
- Introducing PdfDocument.openUri/PdfFileCache* classes
- Introducing PdfPermissions
- PdfPage.loadText/PdfPageText for text extraction
- Android NDK CMake to 3.18.1
- Document updates
- pdf.js 3.11.174
- First release (Documentation is not yet ready)