Extensions
PdfCompress icon

PdfCompress

Shrink a PDF on the device by re-encoding pages. No internet and no file upload.

18 September 2026v1.0
$7.99
Tools

About

PdfCompress re-renders each page with Android PdfRenderer and writes a smaller PDF next to it. Quality and DPI are designer properties. Paths are local files only — http(s) URLs are rejected, there is no INTERNET permission, and bytes never leave the phone.

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

Documentation

Re-encode PDF pages on the device. No internet permission and no file upload.

Docs5

GotCompressed

Event

Fired when the smaller PDF has been written locally.

ParameterType
outputPathtext
originalBytesnumber
compressedBytesnumber

ErrorOccurred

Event

Fired when the file cannot be read or written.

ParameterType
messagetext
Blocks5
PdfCompress block 1PdfCompress block 2PdfCompress block 3PdfCompress block 4PdfCompress block 5

Compatible platforms

MIT App InventorKodularNiotronAndroid BuilderThunkable

Related extensions