pdf_checker 0.1.0 copy "pdf_checker: ^0.1.0" to clipboard
pdf_checker: ^0.1.0 copied to clipboard

A pure Dart package to check if PDF files are password-protected and to verify passwords.

example/main.dart

import 'package:pdf_checker/src/pdf_checker.dart';

void main() async {
  // Check an unprotected PDF from a file path
  final isUnprotectedPdfProtected = await PdfChecker.instance.isProtectedFromFile('assets/pdf/sample.pdf');
  print('Is sample.pdf protected? $isUnprotectedPdfProtected');

  // Check a protected PDF from a file path
  final isProtectedPdfProtected = await PdfChecker.instance.isProtectedFromFile('assets/pdf/sample_protected.pdf');
  print('Is sample_protected.pdf protected? $isProtectedPdfProtected');
}
0
likes
160
points
8
downloads

Documentation

API reference

Publisher

verified publisherrajkavadia.dev

Weekly Downloads

A pure Dart package to check if PDF files are password-protected and to verify passwords.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on pdf_checker