PdfFileSecurity

PdfFileSecurity

ภาพรวม

PdfFileSecurity เป็นคลาสใน Aspose.PDF FOSS สําหรับ .NET. ทายาทจาก: IDisposable.

หน้าตึกสําหรับการเข้ารหัส, การปลดรบ และเปลี่ยนคําแคปผ่านในไฟล์ PDF.

หมวดนี้ให้ 31 วิธีในการทํางานกับ PdfFileSecurity วัตถุในโปรแกรม .NET. วิธีการที่ใช้ได้แก่: BindPdf, ChangePassword, ChangePasswords, Close, DecryptFile, Dispose, EncryptFile, PdfFileSecurity, Save, SetPrivilege, TryChangePassword, TryDecryptFile,และวิธีการเพิ่มเติม 2 วิธี. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน .NET ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.PDF FOSS for .Net. คุณสมบัติ: AllowExceptions, Document, InputFile, InputStream, LastException, OutputFile,และอีก 1 ใบ.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
DocumentDocumentอ่านเอกสารที่เชื่อมต่อกับตัวอย่างนี้ ถูกเปิดเผยเพื่อให้มันสามารถถูกผูกพันในหน้าต่างอื่นได้.
AllowExceptionsboolอ่าน/เขียนเสมอ true และไม่สามารถเปลี่ยนได้ วิธีตรง (ไม่ทดลอง) จะกระจายความพิเศษเสมอ; รูปแบบ Try* จะจับความยกเว้นสุดท้ายใน LastException และส่ง false.
LastExceptionException?อ่านการยกเว้นสุดท้ายที่จับโดยวิธี Try* หรือ null.
InputFilestringอ่าน/เขียนตั้งค่าเส้นทางไฟล์อินพุตที่ใช้โดยการดำเนินการแบบมีสถานะ.
InputStreamStreamอ่าน/เขียนตั้งค่ากระแสข้อมูลเข้า input stream ที่ใช้โดยการดำเนินการแบบ stateful.
OutputFilestringอ่าน/เขียนส่งการบันทึกต่อไปไปยังไฟล์นี้.
OutputStreamStreamอ่าน/เขียนส่งทางไปยังสายน้ํานี้.

วิธีการ

Signatureคําอธิบาย
PdfFileSecurity()ctor โดยตั้งค่าสําหรับการอุดหนุนที่เนื่องจาก byte [] สถิติ.
PdfFileSecurity(document: Document)ผูกเอกสารที่มีอยู่; ผู้โทรเป็นเจ้าของตลอดชีวิตของมัน.
PdfFileSecurity(path: string)เปิดไฟล์ที่เส้นทาง และผูกมันไว้.
PdfFileSecurity(document: Document, outputStream: Stream)ผูกเอกสารและทางการบันทึกต่อมาไป outputStream.
PdfFileSecurity(document: Document, outputFile: string)ผูกเอกสารและทางการบันทึกต่อไป outputFile.
PdfFileSecurity(inputStream: Stream, outputStream: Stream)บันทึกจากลําธาร และเก็บไว้ในลําน้ํา.
PdfFileSecurity(inputFile: string, outputFile: string)ติดจากทาง และช่วยให้เป็นเส้นทาง.
Dispose()เรียก Dispose ในตัวอย่าง PdfFileSecurity นี้.
Close()ชื่อเล่นเพื่อกําจัด.
BindPdf(srcFile: string)บิดกับไฟล์ PDF ที่ srcFile.
BindPdf(srcStream: Stream)บิดกับ PDF ที่อ่านจาก srcStream.
BindPdf(document: Document)บันทึกกับเอกสารที่มีอยู่; ผู้เรียกเป็นเจ้าของตลอดชีวิตของมัน.
Save(path: string)เก็บเอกสารที่เชื่อมต่อไปยังเส้นทางไฟล์.
Save(stream: Stream)เก็บเอกสารที่ติดต่อไว้ในสตรีม.
EncryptFile(userPassword: string, ownerPassword: string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm)ซับรหัสเอกสารที่ติดต่อไว้.
EncryptFile(userPassword: string, ownerPassword: string, privilege: DocumentPrivilege, keySize: KeySize)รหัสเอกสารที่เชื่อมต่อรหิตแบบถูกล่วงหน้าเป็น AES.
TryEncryptFile(userPassword: string, ownerPassword: string, privilege: DocumentPrivilege, keySize: KeySize)ทดลองตัวแปรของ EncryptFile ((string, string,DocumentPrivilege, KeySize , อัลโกริธม).
SetPrivilege(privilege: DocumentPrivilege)ใช้สัญลักษณ์สิทธิในการเชื่อมโยงเอกสารโดยการรหัสซับใหม่ด้วยคําแปลเปล่าและอนุญาตที่ได้รับ.
SetPrivilege(userPassword: string, ownerPassword: string, privilege: DocumentPrivilege)ใช้สัญญากับรหัสที่ชัดเจน.
TrySetPrivilege(userPassword: string, ownerPassword: string, privilege: DocumentPrivilege)การทดลองของ SetPrivilege ((string, string,DocumentPrivilege)).
DecryptFile(ownerPassword: string)เปิดรหัสเอกสารที่เชื่อมด้วยคําแปลที่ให้ไว้.
TryDecryptFile(ownerPassword: string)ทดลองตัวแปรของ DecryptFile(string).
ChangePassword(ownerPassword: string, newUserPassword: string, newOwnerPassword: string)เปลี่ยนคํารหัสผ่านในเอกสารที่ผูกพันโดยรักษาสิทธิพิเศษที่มีอยู่และการเข้ารบ AES-128.
ChangePassword(ownerPassword: string, newUserPassword: string, newOwnerPassword: string, privilege: DocumentPrivilege, keySize: KeySize)เปลี่ยนคําผ่านและสิทธิพิเศษการกําจัด + ขนาดคีย์.
ChangePassword(ownerPassword: string, newUserPassword: string, newOwnerPassword: string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm)เปลี่ยนคําผ่านและสิทธิพิเศษ + ขนาดกุญแจ + ไซฟ์รุ่น.
TryChangePassword(ownerPassword: string, newUserPassword: string, newOwnerPassword: string)ทดลองแปรของ ChangePassword ((string, string, string)).
TryChangePassword(ownerPassword: string, newUserPassword: string, newOwnerPassword: string, privilege: DocumentPrivilege, keySize: KeySize)การทดลองของ 5 arg ChangePassword ((string, string, string ,DocumentPrivilege,KeySize).
TryChangePassword(ownerPassword: string, newUserPassword: string, newOwnerPassword: string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm)ทดลอง-แปรของ 6-arg ChangePassword ((string, string, string ,DocumentPrivilege,KeySize , อัลโกริธม).
EncryptFile(input: byte[], userPassword: string, ownerPassword: string, permissions: DocumentPrivilege?, algorithm: CryptoAlgorithm)กรด PDF ด้วยคําแปลและอัลโกริตม์ที่กําหนดไว้.
DecryptFile(input: byte[], password: string)ถอดการเข้ารหัสจาก PDF โดยใช้คําแปลที่ถูกต้อง.
ChangePasswords(input: byte[], oldOwnerPassword: string, newUserPassword: string, newOwnerPassword: string, algorithm: CryptoAlgorithm)เปลี่ยนรหัสผ่านใน PDF ที่เข้ารบซอง.

ดูเช่นกัน

 ภาษาไทย