Extension specifications
| Package | in.sarthakdev.pdfcompress |
| Version | 1.0 |
| Price | $7.99 USD |
| Category | Tools |
| Updated | 18 September 2026 |
| Platforms | MIT App Inventor, Kodular, Niotron, Android Builder, Thunkable |
| Built using | FAST |
| Store | PdfCompress Extension - Tools Extension for MIT App Inventor, Kodular, Niotron | SarthakDev.in |
Paid buyers get this AIX by email after checkout. Import it from Projects โ Import extension.
About
Re-encode PDF pages on the device. No internet permission and no file upload.
Features
- On-device PDF shrink with PdfRenderer and PdfDocument
- No INTERNET permission and no upload
- Rejects http(s) paths โ local files only
- Quality 1-100 and DPI 36-300 as designer properties
- Background thread with GotCompressed byte counts
- Requires Android 5.0 (API 21) or newer
Blocks
Events
Got Compressed
Fired when the smaller PDF has been written locally.
- outputPath (
text) - originalBytes (
number) - compressedBytes (
number)
Error Occurred
Fired when the file cannot be read or written.
- message (
text)
Methods
Compress
Compress sourcePdf into outputPdf on a background thread. Paths are local files only.
- sourcePdf (
text) - outputPdf (
text)
Properties
Quality
JPEG quality 1-100 used when re-encoding each page. Default 60.
Type: number ยท Default: 60
Dpi
Render DPI 36-300. Lower means a smaller file. Default 110.
Type: number ยท Default: 110
Get the AIX
Paid extension. Buy it on the store, then import from Projects โ Import extension.
Built by Sarthak Gupta ยท hi@sarthakdev.in ยท sarthakdev.in



