From 683ea97face70ece0577c41eef60edb16248d72f Mon Sep 17 00:00:00 2001 From: Dilli babu N Date: Mon, 20 Dec 2021 12:16:30 +0530 Subject: [PATCH 1/3] FLUT-5974- renamed the title. --- ...otected-pdf's.md => viewing-password-protected-pdf-files.md} | 0 flutter-toc.html | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename Flutter/pdf-viewer/{loading-password-protected-pdf's.md => viewing-password-protected-pdf-files.md} (100%) diff --git a/Flutter/pdf-viewer/loading-password-protected-pdf's.md b/Flutter/pdf-viewer/viewing-password-protected-pdf-files.md similarity index 100% rename from Flutter/pdf-viewer/loading-password-protected-pdf's.md rename to Flutter/pdf-viewer/viewing-password-protected-pdf-files.md diff --git a/flutter-toc.html b/flutter-toc.html index c260ba728..6e30b04b0 100644 --- a/flutter-toc.html +++ b/flutter-toc.html @@ -414,7 +414,7 @@
  • Document link annotation
  • Interaction modes
  • Page layout and Scrolling options
  • -
  • Loading password protected PDF's
  • +
  • Viewing Password protected PDF Files
  • Localization
  • Accessibility
  • From d2d351aaad0b6809b0d9d465c18747be087df8a5 Mon Sep 17 00:00:00 2001 From: Dilli babu N Date: Mon, 20 Dec 2021 12:29:04 +0530 Subject: [PATCH 2/3] FLUT-5974- renamed the title. --- .../pdf-viewer/viewing-password-protected-pdf-files.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Flutter/pdf-viewer/viewing-password-protected-pdf-files.md b/Flutter/pdf-viewer/viewing-password-protected-pdf-files.md index 605136e36..e1d5bc1b0 100644 --- a/Flutter/pdf-viewer/viewing-password-protected-pdf-files.md +++ b/Flutter/pdf-viewer/viewing-password-protected-pdf-files.md @@ -1,21 +1,21 @@ --- layout: post -title: Loading password-protected PDFs in Flutter PDF Viewer | Syncfusion +title: Viewing password-protected PDFs in Flutter PDF Viewer | Syncfusion description: Learn here all about loading password-protected PDF feature of Syncfusion Flutter PDF Viewer (SfPdfViewer) widget and more. platform: Flutter control: SfPdfViewer documentation: ug --- -# Loading password-protected PDF's in Flutter PDF Viewer (SfPdfViewer) +# Viewing password-protected PDF's in Flutter PDF Viewer (SfPdfViewer) -When loading a password-protected document without a password or with an invalid password in [SfPdfViewer](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer-class.html) using the `password` property.The default password dialogue will be displayed. +When loading a password-protected document without a password or with an invalid password in [SfPdfViewer](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer-class.html) using the [password](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer/password.html) property. The default password dialogue will be displayed. ![Password dialog](images/password-dialog.png) ## Customize the visibility of password dialogue -The password-protected document can be loaded by providing the password in the `password` property of SfPdfViewer.The `canShowPasswordDialog` property allows the user to customize the password dialogue visibility. The following code example explains the same. +The password-protected document can be loaded by providing the password in the [password](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer/password.html) property of SfPdfViewer. The [canShowPasswordDialog](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer/canShowPasswordDialog.html) property allows the user to customize the password dialogue visibility. The following code example explains the same. {% tabs %} {% highlight Dart %} From 6a890f5efc4d23987aa7c95749b08904ca6cf1f2 Mon Sep 17 00:00:00 2001 From: Deepika Date: Mon, 20 Dec 2021 12:40:01 +0530 Subject: [PATCH 3/3] FLUT-5974-[feature][flutter]: Added changes. --- Flutter/pdf-viewer/getting-started.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Flutter/pdf-viewer/getting-started.md b/Flutter/pdf-viewer/getting-started.md index 0778e1374..d621b4ff8 100644 --- a/Flutter/pdf-viewer/getting-started.md +++ b/Flutter/pdf-viewer/getting-started.md @@ -71,8 +71,6 @@ Once the package has been imported, initialize the `SfPdfViewer` as a child of a * File * Memory -N> Currently, we do not support viewing the password-protected PDF document. - ### Load document from the Asset The [SfPdfViewer.asset](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer/SfPdfViewer.asset.html) creates a widget that displays the PDF document obtained from an [`AssetBundle`](https://api.flutter.dev/flutter/services/AssetBundle-class.html). The following code example explains the same. @@ -306,7 +304,7 @@ Widget build(BuildContext context) { The [onDocumentLoadFailed](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer/onDocumentLoadFailed.html) callback triggers when the document loading fails in the `SfPdfViewer`. That is, * When any corrupted document is loaded. -* When any password-protected document is loaded. +* When any password-protected document is loaded with invalid or empty password. * When any improper input source value like the wrong URL or file path is given. * When any non-PDF document is loaded.