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(IPlugin опции)
Aspose.Pdf.Plugins.PdfHtml.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Aspose.Pdf.Plugins.PdfHtml.
Returns
Aspose.Pdf.Plugins.ResultContainer.