BIG UPDATE: View Big PDF
In response to a developer loading (or being unable to load!) a 312 page, 2.5mb PDF file, I have created a second extension that can handle such long files (as well as the shorter ones). intest the developer's PDF crashed out (memory problems) at @ 100 pages. For safety, I set the range limit to 50 pages.
This extension has a helper block that get the count of pages, then returns page ranges in batches of 50, along with a final remainder range. Blocks are then required to allow an end user to iterate over each range, viewing the resultant pdf for each. The main ViewPDF block now has a startPage and endPage socket, which are used, in iteration to apply the page ranges. This block can be used on its own for smaller pdfs, set the startPage to 0 and the endPage to -1. This extension retains the same interactive features as the original, and can also use the ViewPdfAddOn extension for assets when compiled.
- Latest version: 1.1
- Tested: tested on App inventor 2 (n188), in companion (2.62u) and compiled modes on Android 10 and Android 12.
- Released: 2022-05-19T23:00:00Z
- Last updated: 2024-03-31T23:00:00Z
- Built: using the RUSH Extension Builder by @shreyash
BLOCKS
Example USAGE:
- A clock component is used (set at 250ms) to ensure the progress dialog is shown before the pdf range is generated.
- Developers could add a Previous button to show the previous pdf page range, or just call a single page.
Extension:
uk.co.metricrat.viewbigpdfv1.1.aix
Enjoy
, and all feedback, comments and questions welcome.
Available for use in any MIT AppInventor projects or competitions


