PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllPassword for view-protection of the PDF document.
|
| BSTR UserPassword { get; set; } |
Value
Password string.
Remarks
UserPassword contains a password for the current PDF document. The password is required to view an encrypted PDF file.
Example
Protecting PDF document with passwords
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.UserPassword := 'userpassword';
PDF.OwnerPassword := 'superpassword';
PDF.BeginDoc;
{ fill document's content here }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created PDF->UserPassword = "userpassword"; PDF->OwnerPassword = "superpassword"; PDF->BeginDoc(); // fill document's content here PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.UserPassword = "userpassword"; PDF.OwnerPassword = "superpassword"; PDF.BeginDoc(); // fill document's content here PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.UserPassword = "userpassword" PDF.OwnerPassword = "superpassword" PDF.BeginDoc ' fill document's content here PDF.EndDoc
See Also


