Skip to content

Commit 3457d33

Browse files
978978: Update the review correction
1 parent 96f0acf commit 3457d33

File tree

4 files changed

+24
-13
lines changed

4 files changed

+24
-13
lines changed

Document-Processing/PDF/PDF-Viewer/blazor/document-security.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ This article describes how the Blazor PDF Viewer (SfPdfViewer) handles secured P
1313

1414
The PDF specification supports two primary security configurations:
1515

16-
- Password-protected (user/open password required to decrypt and open the file)
17-
- Permission-restricted (owner password sets granular permissions such as printing, copying, editing, annotating, and form filling)
16+
- [Password-protected](./document-security/password-protected) (password required to decrypt and open the file)
17+
- [Permission-restricted](./document-security/permission) (owner password sets granular permissions such as printing, copying, editing, annotating, and form filling)
1818

1919
Behavior and expectations:
2020
- When a password-protected PDF is loaded, the viewer prompts for the password. If the password is incorrect or omitted, the document does not open.

Document-Processing/PDF/PDF-Viewer/blazor/document-security/password-protected.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ control: SfPdfViewer
77
documentation: ug
88
---
99

10-
# Password-protected documents (open/user password)
10+
# Password-protected documents
1111

1212
Some PDFs require a password to open. When such a document is loaded in the viewer, the following behavior applies:
1313

14-
- A password prompt appears if the document requires an open/user password.
15-
- If the correct password is provided, the document loads and becomes viewable per the document’s permissions.
16-
- If the password is incorrect, the viewer shows an error and continues to prompt until a valid password is entered or the operation is canceled.
17-
- If the operation is canceled, the document is not loaded.
14+
- A password prompt appears if the document requires an password.
1815

1916
The viewer displays a password prompt UI when a protected document is opened.
2017

@@ -26,6 +23,19 @@ Mobile password prompt:
2623

2724
![Blazor PDF Viewer mobile password prompt](../images/password-ui-mobile.png)
2825

26+
- If the correct password is provided, the document loads and becomes viewable per the document’s permissions.
27+
- If the password is incorrect, the viewer shows an error and continues to prompt until a valid password is entered or the operation is canceled.
28+
29+
Invalid password error in desktop:
30+
31+
![Blazor PDF Viewer desktop password error](../images/password-incorrect-desktop.png)
32+
33+
Invalid password error in Mobile:
34+
35+
![Blazor PDF Viewer mobile password error](../images/password-incorrect-mobile.png)
36+
37+
- If the operation is canceled, the document is not loaded.
38+
2939
## Load the password-protected document programmatically
3040

3141
Use the [LoadAsync method](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerBase.html) to load a PDF from a file path, URL, or base64 data at runtime. Pass the password as the second parameter.
@@ -51,3 +61,7 @@ Use the [LoadAsync method](https://help.syncfusion.com/cr/blazor/Syncfusion.Blaz
5161
```
5262

5363
[View sample in GitHub](https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Load%20and%20Save/Load%20the%20Security%20Document).
64+
65+
## See Also
66+
67+
* [Permission-protected documents](./permission)

Document-Processing/PDF/PDF-Viewer/blazor/document-security/permission.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ documentation: ug
1111

1212
PDFs can be secured with an owner password and a set of permissions that restrict operations even after opening the file. Examples include:
1313

14-
- Printing: fully allowed, low-resolution only, or disallowed
15-
- Content copying and extraction
16-
- Page or content editing
14+
- Printing: allowed or disallowed
15+
- Content copying
16+
- Page editing
1717
- Commenting and annotations
18-
- Form filling and signing
19-
- Document assembly (page insertion/rotation)
20-
- Accessibility content extraction (screen readers)
2118

2219
The viewer respects these permission flags and disables restricted actions in its UI. It cannot bypass or elevate document permissions. For example, when printing is disallowed, the print action is not available; when copying is restricted, text selection may be limited or copy commands disabled.
2320

-283 Bytes
Loading

0 commit comments

Comments
 (0)