- Fixes issue of unnecessarily creating copy of PDF when using android renderer.(Due to changes made in 1.0.0)
- Fixes issue of not deleting PDF copy which was created when using PDFBox renderer.(Due to changes made in 1.0.0)
-
BREAKING:
pdfBitmap()
now provides a cached file path of the rendered image instead of Uint8List.For migration: Replace the
pdfBitmap()
result type to String? and then convert path to Uint8List using File(path).readAsBytesSync(). -
BREAKING:
pdfBitmaps()
now provides a list cached files paths of the rendered images instead of list of Uint8List.For migration: Replace the
pdfBitmaps()
result type to List? and then convert each path to Uint8List using File(path).readAsBytesSync(). -
Added
pdfRendererType
topdfBitmap()
andpdfBitmaps()
for choosing different renderers of choice and benefits. -
Added new type of renderer based on amazing library PDFBox android port PdfBox-Android by TomRoush.
- Updated documentation.
- Updated documentation.
- Fixed issue with rendering PDF with names containing colon
:
.
- Fixed rendering issue for pdfs with rotated pages (Verified on Android 7.0 and more info at more info at: https://stackoverflow.com/a/41421216).
- Added
pdfValidityAndProtection
method for getting pdf validity and protection info.
- Fixed 0.2.2 changelog.
- Added
pdfPagesSize
method for getting size info of a page of pdf. - BREAKING:
PageInfo
replaced withPDFBitmapParams
.
- BREAKING: Removed
scale
,backgroundColor
,pageIndex
,pagesIndexes
. - Added
pageInfo
to be used likeparams: PDFBitmapParams(pdfPath: pdfPath, pageInfo: PageInfo(pageNumber: 5, rotationAngle: 153, scale: 1.6, backgroundColor: Colors.red))
. - Added
pagesInfo
to be used likeparams: PDFBitmapsParams(pdfPath: pdfPath, pagesInfo: [PageInfo(pageNumber: 5, rotationAngle: 153, scale: 1.6, backgroundColor: Colors.red)])
. - Updated example and readme.
- Fixes issues due to calling page count while generating bitmaps.
- BREAKING:
quality
is replaced withscale
and scale takes a double value greater than 0 & less than and equal to 5 (Also fixes the plugin performance issue). - BREAKING:
pdfUri
is replaced withpdfPath
as nowpdfPath
is capable of taking care both URI path and absolute file path. - Added new method
pdfBitmaps()
which takes a list of page indexes and provides a list of Bytes as result. - Added new option
backgroundColor
which takes color to apply on the background of the pdf bitmap. - Added new method
cancelBitmaps()
which allows cancelling running bitmaps tasks.
- Added support to get bitmaps and page count for both uri and absolute file path.
- Initial release.