Class Html
Class Html
Название пространства: Aspose.Pdf.Plugins Ассоциация: Aspose.PDF.dll (25.4.0)
Представляет Aspose.Pdf.Plugins.Html плагин.
public sealed class Html : IPlugin, IDisposable
Inheritance
Implements
Наследованные члены
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Пример показывает, как конвертировать PDF в HTML-документ.
// create Html
var converter = new Html();
// create PdfToHtmlOptions object to set output data type as file with embedded resources
var opt = new PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType.FileWithEmbeddedResources);
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
converter.Process(opt);
Пример показывает, как конвертировать HTML в PDF-документ.
// create Html
var converter = new Html();
// create HtmlToPdfOptions
var opt = new HtmlToPdfOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
converter.Process(opt);
Constructors
Html()
public Html()
Methods
Dispose()
Использование невыполняемого.
public void Dispose()
Process(IPluginOptions)
Начинается обработка Aspose.Pdf.Plugins.Html с указанными параметрами.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Объект опций, содержащий инструкцию для Aspose.Pdf.Plugins.Html.
Returns
Объект Aspose.Pdf.Plugins.ResultContainer, содержащий результат операции.