Class PdfHtml
Class PdfHtml
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
Aspose.Pdf.Plugins.PdfHtml eklentisini temsil eder.
public sealed class PdfHtml : IPlugin, IDisposable
Miras
Uygulamalar
Miras Alınan Üyeler
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Örnekler
Bu örnek, PDF’yi HTML belgesine dönüştürmenin nasıl yapılacağını gösterir.
// PdfHtml oluştur
var converter = new PdfHtml();
// Çıktı veri türünü gömülü kaynaklarla dosya olarak ayarlamak için PdfToHtmlOptions nesnesi oluştur
var opt = new PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType.FileWithEmbeddedResources);
// Girdi dosyası yolunu ekle
opt.AddInput(new FileDataSource(inputPath));
// Çıktı dosyası yolunu ayarla
opt.AddOutput(new FileDataSource(outputPath));
converter.Process(opt);
Bu örnek, HTML’yi PDF belgesine dönüştürmenin nasıl yapılacağını gösterir.
// PdfHtml oluştur
var converter = new PdfHtml();
// HtmlToPdfOptions oluştur
var opt = new HtmlToPdfOptions();
// Girdi dosyası yolunu ekle
opt.AddInput(new FileDataSource(inputPath));
// Çıktı dosyası yolunu ayarla
opt.AddOutput(new FileDataSource(outputPath));
converter.Process(opt);
Yapıcılar
PdfHtml()
public PdfHtml()
Metotlar
Dispose()
IDisposable uygulaması.
public void Dispose()
Process(IPluginOptions)
Belirtilen parametrelerle Aspose.Pdf.Plugins.PdfHtml işlemini başlatır.
public ResultContainer Process(IPluginOptions options)
Parametreler
options
IPluginOptions
Aspose.Pdf.Plugins.PdfHtml için talimatlar içeren bir seçenek nesnesi.
Dönüş Değeri
İşlemin sonucunu içeren bir Aspose.Pdf.Plugins.ResultContainer nesnesi.