pdf_handler 0.0.1
pdf_handler: ^0.0.1 copied to clipboard
Compress PDF
Features #
- Select PDF
- View PDF
- Compress PDF
Getting started #
We are using multiple packages to perform required operations
[image]:
Usage #
This package can be use for upload, view and compress PDF Files.
Select PDF file #
File pdfFile = await pdfHandler.selectPdf();
View PDF #
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => PdfPreviewScreen(
pdfFilePath: compressedPdfFile!.path,
),
),
);
Compress PDF #
compressedPdfFile = await pdfHandler.compressPdf(pdfFile!, 100 * 1024);