VintaSoft Twain .NET SDK 15.3: Руководство для .NET разработчика
Vintasoft.WpfTwain.ImageEncoders Namespace / TwainPdfDocumentInfo Class
    Класс TwainPdfDocumentInfo
    В этом разделе
    Class that contains information about PDF document.
    Объектная модель
    TwainPdfDocumentInfo
    Синтаксис
    'Declaration
    
    Public NotInheritable Class TwainPdfDocumentInfo
    
    
    public sealed class TwainPdfDocumentInfo
    
    
    public __gc __sealed class TwainPdfDocumentInfo
    
    
    public ref class TwainPdfDocumentInfo sealed
    
    
    Ремарки

    You can set all information about PDF document or specify only necessary information. For example, you must set value of the ModificationDate property if you want to update the modification date only.

    Пример

    
    Private Sub SaveLastAcquiredImageToPdf(acquiredImage1 As Vintasoft.Twain.AcquiredImage, productName As String)
            ' set settings of PDF encoder
            Dim pdfEncoderSettings As New Vintasoft.Twain.ImageEncoders.TwainPdfEncoderSettings()
            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("c:\test.pdf", pdfEncoderSettings)
    End Sub
    
    
    
    private void SaveLastAcquiredImageToPdf(Vintasoft.Twain.AcquiredImage acquiredImage1, string productName)
    {
        // set settings of PDF encoder
        Vintasoft.Twain.ImageEncoders.TwainPdfEncoderSettings pdfEncoderSettings =
            new Vintasoft.Twain.ImageEncoders.TwainPdfEncoderSettings();
        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(@"c:\test.pdf", pdfEncoderSettings);
    }
    
    

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

    System.Object
       Vintasoft.WpfTwain.ImageEncoders.TwainPdfDocumentInfo

    Требования

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

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