Aspose::Pdf::Document::Convert metod

Innehåll
[ ]

Document::Convert(const System::SharedPtr<PdfFormatConversionOptions>&) method

Konvertera dokumentet med angivna konverteringsalternativ.

bool Aspose::Pdf::Document::Convert(const System::SharedPtr<PdfFormatConversionOptions> &options)
ParameterTypBeskrivning
optionsconst System::SharedPtr<PdfFormatConversionOptions>&uppsättning alternativ för att konvertera PDF-dokument

ReturnValue

Resultatet av operationen

Se även

Document::Convert(const System::SharedPtr<System::IO::Stream>&, Aspose::Pdf::PdfFormat, ConvertErrorAction) method

Konvertera dokumentet och spara fel i den angivna strömmen.

bool Aspose::Pdf::Document::Convert(const System::SharedPtr<System::IO::Stream> &outputLogStream, Aspose::Pdf::PdfFormat format, ConvertErrorAction action)
ParameterTypBeskrivning
outputLogStreamconst System::SharedPtr<System::IO::Stream>&Ström där kommentarerna kommer att lagras.
formatAspose::Pdf::PdfFormatPdf format.
actionConvertErrorActionÅtgärd för objekt som inte kan konverteras

ReturnValue

Resultatet av operationen

Se även

Document::Convert(const System::SharedPtr<System::IO::Stream>&, Aspose::Pdf::PdfFormat, ConvertErrorAction, ConvertTransparencyAction) method

Konvertera dokumentet och spara fel i den angivna filen.

bool Aspose::Pdf::Document::Convert(const System::SharedPtr<System::IO::Stream> &outputLogStream, Aspose::Pdf::PdfFormat format, ConvertErrorAction action, ConvertTransparencyAction transparencyAction)
ParameterTypBeskrivning
outputLogStreamconst System::SharedPtr<System::IO::Stream>&Ström där kommentarerna kommer att lagras.
formatAspose::Pdf::PdfFormatPDF-formatet.
actionConvertErrorActionÅtgärd för objekt som inte kan konverteras
transparencyActionConvertTransparencyActionÅtgärd för bildmaskerade objekt

ReturnValue

Resultatet av operationen

Se även

Document::Convert(const System::String&, Aspose::Pdf::PdfFormat, ConvertErrorAction) method

Konvertera dokumentet och spara fel i den angivna filen.

bool Aspose::Pdf::Document::Convert(const System::String &outputLogFileName, Aspose::Pdf::PdfFormat format, ConvertErrorAction action)
ParameterTypBeskrivning
outputLogFileNameconst System::String&Sökväg till filen där kommentarerna kommer att lagras.
formatAspose::Pdf::PdfFormatPDF-formatet.
actionConvertErrorActionÅtgärd för objekt som inte kan konverteras

ReturnValue

Resultatet av operationen

Se även

Document::Convert(const System::String&, Aspose::Pdf::PdfFormat, ConvertErrorAction, ConvertTransparencyAction) method

Konvertera dokumentet och spara fel i den angivna filen.

bool Aspose::Pdf::Document::Convert(const System::String &outputLogFileName, Aspose::Pdf::PdfFormat format, ConvertErrorAction action, ConvertTransparencyAction transparencyAction)
ParameterTypBeskrivning
outputLogFileNameconst System::String&Sökväg till filen där kommentarerna kommer att lagras.
formatAspose::Pdf::PdfFormatPDF-formatet.
actionConvertErrorActionÅtgärd för objekt som inte kan konverteras
transparencyActionConvertTransparencyActionÅtgärd för bildmaskerade objekt

ReturnValue

Resultatet av operationen

Se även

Document::Convert(Document::CallBackGetHocr, bool) method

Identifiera bilder i dokumentet och lägg till hocr-strängar ovanpå dem.

bool Aspose::Pdf::Document::Convert(Document::CallBackGetHocr callback, bool flattenImages=false)
ParameterTypBeskrivning
callbackDocument::CallBackGetHocrÅtgärd för bilder som kommer att bearbetas av hocr-igenkänning.
flattenImagesboolText i pdf-bilder kan målas med hjälp av maskmekaniken, i så fall måste bilderna plattas ut.

ReturnValue

Operationens resultat. Om det inte finns några bilder i dokumentet returneras false.

Se även

Document::Convert(Document::CallBackGetHocrWithPage, bool) method

Identifiera bilder i dokumentet och lägg till hocr-strängar ovanpå dem.

bool Aspose::Pdf::Document::Convert(Document::CallBackGetHocrWithPage callback, bool flattenImages=false)
ParameterTypBeskrivning
callbackDocument::CallBackGetHocrWithPageÅtgärd för bilder som kommer att bearbetas av hocr-igenkänning.
flattenImagesboolText i pdf-bilder kan målas med hjälp av maskmekaniken, i så fall måste bilderna plattas ut.

ReturnValue

Operationens resultat. Om det inte finns några bilder i dokumentet returneras false.

Se även

Document::Convert(Fixup, const System::SharedPtr<System::IO::Stream>&, bool, const System::ArrayPtr<System::SharedPtr<System::Object>>&) method

Konvertera dokumentet genom att tillämpa Fixup.

bool Aspose::Pdf::Document::Convert(Fixup fixup, const System::SharedPtr<System::IO::Stream> &outputLog, bool onlyValidation=false, const System::ArrayPtr<System::SharedPtr<System::Object>> &parameters=nullptr)
ParameterTypBeskrivning
fixupFixupTypen Fixup.
outputLogconst System::SharedPtr<System::IO::Stream>&Logg för processen.
onlyValidationboolEndast dokumentvalidering.
parametersconst System::ArrayPtr<System::SharedPtr<System::Object>>&Egenskaper för Fixup som inte kan ställas in.

ReturnValue

Operationens resultat.

Se även

Document::Convert(Fixup, const System::String&, bool, const System::ArrayPtr<System::SharedPtr<System::Object>>&) method

Konvertera dokumentet genom att tillämpa Fixup.

bool Aspose::Pdf::Document::Convert(Fixup fixup, const System::String &outputLog, bool onlyValidation=false, const System::ArrayPtr<System::SharedPtr<System::Object>> &parameters=nullptr)
ParameterTypBeskrivning
fixupFixupTypen Fixup.
outputLogconst System::String&Logg för processen.
onlyValidationboolEndast dokumentvalidering.
parametersconst System::ArrayPtr<System::SharedPtr<System::Object>>&Egenskaper för Fixup som inte kan ställas in.

ReturnValue

Operationens resultat.

Se även

Document::Convert(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<LoadOptions>&, const System::SharedPtr<System::IO::Stream>&, System::SharedPtr<SaveOptions>) method

Konverterar strömmen i källformat till en ström i destinationsformat.

static void Aspose::Pdf::Document::Convert(const System::SharedPtr<System::IO::Stream> &srcStream, const System::SharedPtr<LoadOptions> &loadOptions, const System::SharedPtr<System::IO::Stream> &dstStream, System::SharedPtr<SaveOptions> saveOptions)
ParameterTypBeskrivning
srcStreamconst System::SharedPtr<System::IO::Stream>&Källströmmen.
loadOptionsconst System::SharedPtr<LoadOptions>&Formatet för källströmmen.
dstStreamconst System::SharedPtr<System::IO::Stream>&Måldataströmmen.
saveOptionsSystem::SharedPtr<SaveOptions>Formatet för målfilen.

Se även

Document::Convert(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<LoadOptions>&, const System::String&, System::SharedPtr<SaveOptions>) method

Konverterar strömmen i källformat till destinationsfil i destinationsformat.

static void Aspose::Pdf::Document::Convert(const System::SharedPtr<System::IO::Stream> &srcStream, const System::SharedPtr<LoadOptions> &loadOptions, const System::String &dstFileName, System::SharedPtr<SaveOptions> saveOptions)
ParameterTypBeskrivning
srcStreamconst System::SharedPtr<System::IO::Stream>&Källströmmen.
loadOptionsconst System::SharedPtr<LoadOptions>&Formatet för källströmmen.
dstFileNameconst System::String&Målfilsnamnet.
saveOptionsSystem::SharedPtr<SaveOptions>Formatet för målfilen.

Se även

Document::Convert(const System::String&, const System::SharedPtr<LoadOptions>&, const System::SharedPtr<System::IO::Stream>&, System::SharedPtr<SaveOptions>) method

Konverterar källfilen i källformat till en ström i destinationsformat.

static void Aspose::Pdf::Document::Convert(const System::String &srcFileName, const System::SharedPtr<LoadOptions> &loadOptions, const System::SharedPtr<System::IO::Stream> &dstStream, System::SharedPtr<SaveOptions> saveOptions)
ParameterTypBeskrivning
srcFileNameconst System::String&Källfilnamnet.
loadOptionsconst System::SharedPtr<LoadOptions>&Formatet för källfilen.
dstStreamconst System::SharedPtr<System::IO::Stream>&Måldataströmmen.
saveOptionsSystem::SharedPtr<SaveOptions>Måldataströmmens format.

Se även

Document::Convert(const System::String&, const System::SharedPtr<LoadOptions>&, const System::String&, System::SharedPtr<SaveOptions>) method

Konverterar källfilen i källformat till destinationsfil i destinationsformat.

static void Aspose::Pdf::Document::Convert(const System::String &srcFileName, const System::SharedPtr<LoadOptions> &loadOptions, const System::String &dstFileName, System::SharedPtr<SaveOptions> saveOptions)
ParameterTypBeskrivning
srcFileNameconst System::String&Källfilnamnet.
loadOptionsconst System::SharedPtr<LoadOptions>&Formatet för källfilen.
dstFileNameconst System::String&Målfilsnamnet.
saveOptionsSystem::SharedPtr<SaveOptions>Formatet för målfilen.

Se även