VintaSoft Twain .NET SDK 15.4: Руководство для .NET разработчика
Vintasoft.WiaImageScanning.ImageEncoders Namespace / WiaPdfDocumentInfo Class
Класс WiaPdfDocumentInfo
В этом разделе
Класс, содержащий информацию о PDF документе.
Объектная модель
WiaPdfDocumentInfo
Синтаксис
'Declaration

Public NotInheritable Class WiaPdfDocumentInfo

public sealed class WiaPdfDocumentInfo

Ремарки

Вы можете задать всю информацию о PDF документе или указать только необходимую информацию. Например, необходимо задать значение свойства ModificationDate, если вы хотите обновить только дату изменения.

Пример


Private Sub SaveLastWiaAcquiredImageToPdf(acquiredImage1 As Vintasoft.WiaImageScanning.WiaAcquiredImage, productName As String)
    ' set settings of PDF encoder
    Dim pdfEncoderSettings As New Vintasoft.WiaImageScanning.ImageEncoders.WiaPdfEncoderSettings()
    pdfEncoderSettings.PdfDocumentInfo.Author = "VintaSoft LLC"
    pdfEncoderSettings.PdfDocumentInfo.Title = String.Format("Documents acquired from {0}", productName)
    pdfEncoderSettings.PdfDocumentInfo.Creator = "VintaSoft Twain .NET SDK"
    pdfEncoderSettings.PdfDocumentInfo.CreationDate = System.DateTime.Now

    ' save image to PDF document
    acquiredImage1.Save("d:\test.pdf", pdfEncoderSettings)
End Sub


private void SaveLastWiaAcquiredImageToPdf(Vintasoft.WiaImageScanning.WiaAcquiredImage acquiredImage1, string productName)
{
    // set settings of PDF encoder
    Vintasoft.WiaImageScanning.ImageEncoders.WiaPdfEncoderSettings pdfEncoderSettings =
        new Vintasoft.WiaImageScanning.ImageEncoders.WiaPdfEncoderSettings();
    pdfEncoderSettings.PdfDocumentInfo.Author = "VintaSoft LLC";
    pdfEncoderSettings.PdfDocumentInfo.Title = string.Format("Documents acquired from {0}", productName);
    pdfEncoderSettings.PdfDocumentInfo.Creator = "VintaSoft Twain .NET SDK";
    pdfEncoderSettings.PdfDocumentInfo.CreationDate = System.DateTime.Now;

    // save image to PDF document
    acquiredImage1.Save(@"d:\test.pdf", pdfEncoderSettings);
}

Иерархия наследования

System.Object
   Vintasoft.WiaImageScanning.ImageEncoders.WiaPdfDocumentInfo

Требования

Целевые платформы: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

Смотрите также