## PdfSaveOptions.SecurityOptions property

Ställ in detta alternativ när säkerhet behövs i xls2pdf-resultat.

```csharp
public PdfSecurityOptions SecurityOptions { get; set; }
```

### Exempel

Följande kod anger utskriftstillstånd för hög upplösning för utdata pdf.

```csharp
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](../../../aspose.cells.rendering.pdfsecurity/pdfsecurityoptions)
* class [PdfSaveOptions](../../pdfsaveoptions)
* namnutrymme [Aspose.Cells](../../pdfsaveoptions)
* hopsättning [Aspose.Cells](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
