protectPdf method
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(),
);
}