Class PdfHtml

Class PdfHtml

Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll

يمثل مكون Aspose.Pdf.Plugins.PdfHtml.

public sealed class PdfHtml : IPlugin, IDisposable

الوراثة

objectPdfHtml

التنفيذ

IPlugin, IDisposable

الأعضاء الموروثة

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

أمثلة

المثال يوضح كيفية تحويل 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);

المُنشئات

PdfHtml()

public PdfHtml()

الطرق

Dispose()

تنفيذ IDisposable.

public void Dispose()

Process(IPluginOptions)

يبدأ معالجة Aspose.Pdf.Plugins.PdfHtml بالمعلمات المحددة.

public ResultContainer Process(IPluginOptions options)

المعلمات

options IPluginOptions

كائن الخيارات الذي يحتوي على تعليمات لمكون Aspose.Pdf.Plugins.PdfHtml.

العائدات

ResultContainer

كائن Aspose.Pdf.Plugins.ResultContainer الذي يحتوي على نتيجة العملية.

 عربي