Class PdfHtml
Class PdfHtml
Названий на: Aspose.Pdf.Plugins Створення Aspose.PDF.dll
Про це йдеться в повідомленні Aspose.Pdf.Plugins.PdfHtml.
public sealed class PdfHtml : 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 PdfHtml
var converter = new PdfHtml();
// 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 PdfHtml
var converter = new PdfHtml();
// 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
PdfHtml()
public PdfHtml()
Methods
Dispose()
Виконання ідентифікації.
public void Dispose()
Process(IPluginOptions)
Починається обробка Aspose.Pdf.Plugins.PdfHtml з зазначеними параметрами.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Об’єкт варіантів, що містить інструкції для Aspose.Pdf.Plugins.PdfHtml.
Returns
Об’єкт Aspose.Pdf.Plugins.ResultContainer, що містить результат операції.