protectPdf method

Future<ApiResponse> protectPdf(
  1. File file,
  2. ProtectPdfOptions options
)

Protect a PDF with a password

file PDF file to protect options Protection options

Implementation

Future<ApiResponse> protectPdf(File file, ProtectPdfOptions options) async {
  return client.uploadFile(
    '/api/pdf/protect',
    'file',
    file,
    fields: options.toParams(),
  );
}