- Add rendering bitmap in RGB 565 format, which reduces memory usage (about twice)
- Fix bug from 1.6.0 - not embedded fonts was not rendered
- Pdfium updated to newest version, from Android 7.1.1. It should fix many rendering issues and (thanks to freetype support) fix problems with fonts.
- Add method
PdfiumCore#newDocument(byte[])for reading PDF documents from memory - Cleanup AndroidManifest.xml to solve problems with manifest merger
- merge pull request by usef with added support for rendering annotations. Due to limitations of Pdfium, messages from comments cannot be read and are rendered only as speech balloons.
PdfiumCore#newDocument()may throwPdfPasswordExceptionto help with recognition of password requirement or incorrect password.
- added support for opening documents with password
- fixed bug with SIGSEV when closing document
libmodpdfiumcompiled with methods for retrieving bookmarks and metadata- added
PdfiumCore#getDocumentMeta()for retrieving document metadata - added
PdfiumCore#getTableOfContents()for reading whole tree of bookmarks - comment out native rendering debug
- fixed rendering multiple PDFs at the same time thanks to synchronization between instances
- compile Pdfium with SONAME
libmodpdfiumto prevent loadinglibpdfiumfrom Lollipop and higher newDocument()requiresParcelFileDescriptorinstead ofFileDescriptorto keep file descriptor open- changed method of loading PDFs, which should be more stable
- probably fixed bug when pdf should open as normal but was throwing exception
- added much more descriptive exception messages
newDocument()throws IOException
- fix loading
libpdfiumon devices with < Lollipop
-
Added method for rendering PDF page on bitmap
void renderPageBitmap(PdfDocument doc, Bitmap bitmap, int pageIndex, int startX, int startY, int drawSizeX, int drawSizeY);
-
Added methods to get width and height of page in points (1/72") (like in
PdfRenderer.Pageclass):int getPageWidthPoint(PdfDocument doc, int index);int getPageHeightPoint(PdfDocument doc, int index);