Class Html
Class Html
Tên không gian: Aspose.Pdf.Plugins Tổng hợp: Aspose.PDF.dll (25.4.0)
Hiển thị Aspose.Pdf.Plugins.Html plugin.
public sealed class Html : IPlugin, IDisposable
Inheritance
Implements
Thành viên thừa kế
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Ví dụ này cho thấy cách chuyển đổi PDF sang tài liệu 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);
Ví dụ này cho thấy cách chuyển đổi HTML sang tài liệu 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()
Việc thực hiện IDISPOSIBLE
public void Dispose()
Process(IPluginTùy chọn)
Bắt đầu xử lý Aspose.Pdf.Plugins.Html với các thông số được chỉ định.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Một đối tượng tùy chọn có chứa hướng dẫn cho Aspose.Pdf.Plugins.Html.
Returns
Một Aspose.Pdf.Plugins.ResultContainer đối tượng chứa kết quả hoạt động.