## PdfFileSecurity::PdfFileSecurity() constructor


Initialize the object of [PdfFileSecurity](../).

```cpp
Aspose::Pdf::Facades::PdfFileSecurity::PdfFileSecurity()
```

## See Also

* Class [PdfFileSecurity](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileSecurity::PdfFileSecurity(const System::SharedPtr\<Aspose::Pdf::Document\>\&) constructor


Initializes new [PdfFileSecurity](../) object on base of the *document* .

```cpp
Aspose::Pdf::Facades::PdfFileSecurity::PdfFileSecurity(const System::SharedPtr<Aspose::Pdf::Document> &document)
```


| Parameter | Type | Description |
| --- | --- | --- |
| document | const System::SharedPtr\<Aspose::Pdf::Document\>\& | [Pdf](../../../aspose.pdf/) document. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Document](../../../aspose.pdf/document/)
* Class [PdfFileSecurity](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileSecurity::PdfFileSecurity(const System::SharedPtr\<Aspose::Pdf::Document\>\&, const System::SharedPtr\<System::IO::Stream\>\&) constructor


Initializes new [PdfFileSecurity](../) object on base of the *document* .

```cpp
Aspose::Pdf::Facades::PdfFileSecurity::PdfFileSecurity(const System::SharedPtr<Aspose::Pdf::Document> &document, const System::SharedPtr<System::IO::Stream> &outputStream)
```


| Parameter | Type | Description |
| --- | --- | --- |
| document | const System::SharedPtr\<Aspose::Pdf::Document\>\& | [Pdf](../../../aspose.pdf/) document. |
| outputStream | const System::SharedPtr\<System::IO::Stream\>\& | Output [Pdf](../../../aspose.pdf/) Stream. |

## Deprecated
Use constructor without destination. 

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Document](../../../aspose.pdf/document/)
* Class [Stream](../../../system.io/stream/)
* Class [PdfFileSecurity](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileSecurity::PdfFileSecurity(const System::SharedPtr\<Aspose::Pdf::Document\>\&, const System::String\&) constructor


Initializes new [PdfFileSecurity](../) object on base of the *document* .

```cpp
Aspose::Pdf::Facades::PdfFileSecurity::PdfFileSecurity(const System::SharedPtr<Aspose::Pdf::Document> &document, const System::String &outputFile)
```


| Parameter | Type | Description |
| --- | --- | --- |
| document | const System::SharedPtr\<Aspose::Pdf::Document\>\& | [Pdf](../../../aspose.pdf/) document. |
| outputFile | const System::String\& | Output [Pdf](../../../aspose.pdf/) file. |

## Deprecated
Use constructor without destination. 

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Document](../../../aspose.pdf/document/)
* Class [String](../../../system/string/)
* Class [PdfFileSecurity](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileSecurity::PdfFileSecurity(const System::SharedPtr\<System::IO::Stream\>\&, const System::SharedPtr\<System::IO::Stream\>\&) constructor


Initialize the object of [PdfFileSecurity](../) with input and output stream.

```cpp
Aspose::Pdf::Facades::PdfFileSecurity::PdfFileSecurity(const System::SharedPtr<System::IO::Stream> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream)
```


| Parameter | Type | Description |
| --- | --- | --- |
| inputStream | const System::SharedPtr\<System::IO::Stream\>\& | Input [Pdf](../../../aspose.pdf/) Stream. |
| outputStream | const System::SharedPtr\<System::IO::Stream\>\& | Output [Pdf](../../../aspose.pdf/) Stream. |

## Deprecated
Use constructor without destination. 

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [PdfFileSecurity](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileSecurity::PdfFileSecurity(const System::String\&, const System::String\&) constructor


Initializes the object of [PdfFileSecurity](../) with input and output file.

```cpp
Aspose::Pdf::Facades::PdfFileSecurity::PdfFileSecurity(const System::String &inputFile, const System::String &outputFile)
```


| Parameter | Type | Description |
| --- | --- | --- |
| inputFile | const System::String\& | Source input [Pdf](../../../aspose.pdf/) file. |
| outputFile | const System::String\& | Output [Pdf](../../../aspose.pdf/) file. |

## Deprecated
Use constructor without destination. 

## See Also

* Class [String](../../../system/string/)
* Class [PdfFileSecurity](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
