VintaSoft Twain .NET SDK 15.2: Documentation for .NET developer
Vintasoft.EsclImageScanning.ImageEncoders Namespace / EsclPdfDocumentInfo Class
Members Object Syntax Remarks Example Hierarchy Requirements SeeAlso
In This Topic
    EsclPdfDocumentInfo Class
    In This Topic
    Class that contains information about PDF document.
    Object Model
    EsclPdfDocumentInfo
    Syntax
    'Declaration
    
    Public NotInheritable Class EsclPdfDocumentInfo
    
    
    public sealed class EsclPdfDocumentInfo
    
    
    public __gc __sealed class EsclPdfDocumentInfo
    
    
    public ref class EsclPdfDocumentInfo sealed
    
    
    Remarks

    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.

    Example

    
    Private Sub SaveLastEsclAcquiredImageToPdf(acquiredImage1 As Vintasoft.EsclImageScanning.EsclAcquiredImage, productName As String)
            ' set settings of PDF encoder
            Dim pdfEncoderSettings As New Vintasoft.EsclImageScanning.ImageEncoders.EsclPdfEncoderSettings()
            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 SaveLastEsclAcquiredImageToPdf(Vintasoft.EsclImageScanning.EsclAcquiredImage acquiredImage1, string productName)
    {
        // set settings of PDF encoder
        Vintasoft.EsclImageScanning.ImageEncoders.EsclPdfEncoderSettings pdfEncoderSettings =
            new Vintasoft.EsclImageScanning.ImageEncoders.EsclPdfEncoderSettings();
        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);
    }
    
    

    Inheritance Hierarchy

    System.Object
       Vintasoft.EsclImageScanning.ImageEncoders.EsclPdfDocumentInfo

    Requirements

    Target Platforms: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5

    See Also