Aspose::Pdf::ComHelper::OpenFile‑metod
Innehåll
[
Dölj
]ComHelper::OpenFile(const System::String&) method
Skapa och returnera helt enkelt ett Document med filnamn. Samma som Document(Stream).
System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenFile(const System::String &filename)
| Parameter | Typ | Beskrivning |
|---|---|---|
| filename | const System::String& | Namnet på pdf‑dokumentfilen. |
ReturnValue
Document object
Se även
- Typedef SharedPtr
- Class Document
- Class String
- Class ComHelper
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
ComHelper::OpenFile(const System::String&, const System::SharedPtr<LoadOptions>&) method
Öppna ett befintligt dokument från en fil och tillhandahåll nödvändiga konverteringsalternativ för att få ett pdf-dokument.
System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenFile(const System::String &filename, const System::SharedPtr<LoadOptions> &options)
| Parameter | Typ | Beskrivning |
|---|---|---|
| filename | const System::String& | Inmatningsfil för att konvertera till pdf‑dokument. |
| options | const System::SharedPtr<LoadOptions>& | Representerar egenskaper för att konvertera filnamn till pdf‑dokument. |
ReturnValue
Document object
Se även
- Typedef SharedPtr
- Class Document
- Class String
- Class LoadOptions
- Class ComHelper
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
ComHelper::OpenFile(const System::String&, const System::String&) method
Initiera och returnera en ny instans av klassen Document för att arbeta med krypterat dokument.
System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenFile(const System::String &filename, const System::String &password)
| Parameter | Typ | Beskrivning |
|---|---|---|
| filename | const System::String& | Document filnamn. |
| password | const System::String& | Användar‑ eller ägarlösenord. |
ReturnValue
Document object
Se även
- Typedef SharedPtr
- Class Document
- Class String
- Class ComHelper
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
ComHelper::OpenFile(const System::String&, const System::String&, bool) method
Initiera en ny instans av klassen Document för att arbeta med krypterat dokument.
System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenFile(const System::String &filename, const System::String &password, bool isManagedStream)
| Parameter | Typ | Beskrivning |
|---|---|---|
| filename | const System::String& | Document filnamn. |
| password | const System::String& | Användar‑ eller ägarlösenord. |
| isManagedStream | bool | om den är inställd på true stängs den inre strömmen före avslut; annars gör den det inte. |
ReturnValue
Document object
Se även
- Typedef SharedPtr
- Class Document
- Class String
- Class ComHelper
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++