PdfSecurityOptions
PdfSecurityOptions constructor
Konstruktören av PdfSecurityOptions
public PdfSecurityOptions()
Exempel
Följande kod anger utskriftstillstånd för hög upplösning för utdata pdf.
Workbook wb = new Workbook();
wb.Worksheets[0].Cells["A1"].Value = "Aspose";
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
PdfSecurityOptions pdfSecurityOptions = new PdfSecurityOptions();
//set ägarlösenord
pdfSecurityOptions.OwnerPassword = "YourOwnerPassword";
//set användarlösenord
pdfSecurityOptions.UserPassword = "YourUserPassword";
//set utskriftstillstånd
pdfSecurityOptions.PrintPermission = true;
//ställ hög upplösning för utskrift
pdfSecurityOptions.FullQualityPrintPermission = true;
pdfSaveOptions.SecurityOptions = pdfSecurityOptions;
wb.Save("output.pdf", pdfSaveOptions);
Se även
- class PdfSecurityOptions
- namnutrymme Aspose.Cells.Rendering.PdfSecurity
- hopsättning Aspose.Cells