VintaSoft Twain .NET SDK v10.2
PdfDocumentInfo Class
Members  Example 




Vintasoft.Twain.ImageEncoders Namespace : PdfDocumentInfo Class
Class that contains information about PDF document.
Object Model
PdfDocumentInfo Class
Syntax
'Declaration
 
Public NotInheritable Class PdfDocumentInfo 
'Usage
 
Dim instance As PdfDocumentInfo
public sealed class PdfDocumentInfo 
public __gc __sealed class PdfDocumentInfo 
public ref class PdfDocumentInfo 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 SaveLastAcquiredImageToPdf(ByVal acquiredImage1 As AcquiredImage, ByVal productName As String)
    ' set settings of PDF encoder
    Dim pdfEncoderSettings As New TwainPdfEncoderSettings()
    pdfEncoderSettings.PdfDocumentInfo.Author = "VintaSoft Ltd."
    pdfEncoderSettings.PdfDocumentInfo.Title = String.Format("Documents acquired from {0}", productName)
    pdfEncoderSettings.PdfDocumentInfo.Creator = "VintaSoft Twain .NET SDK"
    pdfEncoderSettings.PdfDocumentInfo.CreationDate = DateTime.Now
            
    ' save image to PDF document
    acquiredImage1.Save("c:\test.pdf", pdfEncoderSettings)
End Sub
private void SaveLastAcquiredImageToPdf(AcquiredImage acquiredImage1, string productName)
{
    // set settings of PDF encoder
    TwainPdfEncoderSettings pdfEncoderSettings = new TwainPdfEncoderSettings();
    pdfEncoderSettings.PdfDocumentInfo.Author = "VintaSoft Ltd.";
    pdfEncoderSettings.PdfDocumentInfo.Title = string.Format("Documents acquired from {0}", productName);
    pdfEncoderSettings.PdfDocumentInfo.Creator = "VintaSoft Twain .NET SDK";
    pdfEncoderSettings.PdfDocumentInfo.CreationDate = DateTime.Now;
            
    // save image to PDF document
    acquiredImage1.Save(@"c:\test.pdf", pdfEncoderSettings);
}
Inheritance Hierarchy

System.Object
   Vintasoft.Twain.ImageEncoders.PdfDocumentInfo

Requirements

Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also

Reference

PdfDocumentInfo Members
Vintasoft.Twain.ImageEncoders Namespace