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(IPluginالخيارات)
يبدأ معالجة Aspose.Pdf.Plugins.Html مع المعلمات المحددة.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
موضوع خيارات يحتوي على تعليمات لـ Aspose.Pdf.Plugins.Html.
Returns
كائن Aspose.Pdf.Plugins.ResultContainer يحتوي على نتيجة العملية.