PdfSecurityOptions
PdfSecurityOptions constructor
مُنشئ PdfSecurityOptions
public PdfSecurityOptions()
أمثلة
تعيّن الكود التالي أذونات طباعة عالية الدقة لإخراج pdf.
Workbook wb = new Workbook();
wb.Worksheets[0].Cells["A1"].Value = "Aspose";
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
PdfSecurityOptions pdfSecurityOptions = new PdfSecurityOptions();
// تعيين كلمة مرور المالك
pdfSecurityOptions.OwnerPassword = "YourOwnerPassword";
//ضع كلمة سر للمستخدم
pdfSecurityOptions.UserPassword = "YourUserPassword";
// تعيين إذن الطباعة
pdfSecurityOptions.PrintPermission = true;
// تعيين دقة عالية للطباعة
pdfSecurityOptions.FullQualityPrintPermission = true;
pdfSaveOptions.SecurityOptions = pdfSecurityOptions;
wb.Save("output.pdf", pdfSaveOptions);
أنظر أيضا
- class PdfSecurityOptions
- مساحة الاسم Aspose.Cells.Rendering.PdfSecurity
- المجسم Aspose.Cells