Class Html

Class Html

نام ها : Aspose.Pdf.Plugins جمع آوری: Aspose.PDF.dll (25.4.0)

این نرم افزار شامل Aspose.Pdf.Plugins.Html است.

public sealed class Html : IPlugin, IDisposable

Inheritance

object Html

Implements

IPlugin , IDisposable

اعضای ارثی

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

ResultContainer

یک اشیاء Aspose.Pdf.Plugins.ResultContainer که شامل نتایج عملیات است.

 فارسی