## PubFactory::CreateParser(System::String) method


Creates PUB parser for PUB file.

```cpp
static System::SharedPtr<IPubParser> Aspose::Pub::PubFactory::CreateParser(System::String fileName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fileName | System::String | PUB file name |

### ReturnValue

PUB parser

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IPubParser](../../ipubparser/)
* Class [String](../../../system/string/)
* Class [PubFactory](../)
* Namespace [Aspose::Pub](../../)
* Library [Aspose.PUB for C++](../../../)
## PubFactory::CreateParser(System::SharedPtr\<System::IO::Stream\>) method


Creates PUB parser for PUB stream.

```cpp
static System::SharedPtr<IPubParser> Aspose::Pub::PubFactory::CreateParser(System::SharedPtr<System::IO::Stream> pubStream)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pubStream | System::SharedPtr\<System::IO::Stream\> | stream with PUB data |

### ReturnValue

PUB parser

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IPubParser](../../ipubparser/)
* Class [Stream](../../../system.io/stream/)
* Class [PubFactory](../)
* Namespace [Aspose::Pub](../../)
* Library [Aspose.PUB for C++](../../../)
