Aspose::Pdf::ComHelper::OpenFile‑metod

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)
ParameterTypBeskrivning
filenameconst System::String&Namnet på pdf‑dokumentfilen.

ReturnValue

Document object

Se även

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)
ParameterTypBeskrivning
filenameconst System::String&Inmatningsfil för att konvertera till pdf‑dokument.
optionsconst System::SharedPtr<LoadOptions>&Representerar egenskaper för att konvertera filnamn till pdf‑dokument.

ReturnValue

Document object

Se även

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)
ParameterTypBeskrivning
filenameconst System::String&Document filnamn.
passwordconst System::String&Användar‑ eller ägarlösenord.

ReturnValue

Document object

Se även

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)
ParameterTypBeskrivning
filenameconst System::String&Document filnamn.
passwordconst System::String&Användar‑ eller ägarlösenord.
isManagedStreamboolom 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