Document Solutions for Word
GrapeCity.Documents.Word.Layout Assembly / GrapeCity.Documents.Word.Layout Namespace / PdfOutputSettings Class
Properties Methods

In This Topic
    PdfOutputSettings Class Members
    In This Topic

    The following tables list the members exposed by PdfOutputSettings.

    Public Constructors
     NameDescription
    Public Constructor  
    Top
    Public Properties
     NameDescription
    Public Property Gets or sets the background color. The default is white.  
    Public PropertyGets or sets the compression level.

    Default value is System.IO.Compression.CompressionLevel.Optimal

    .  
    Public PropertyGets or sets the PDF/A conformance level.

    The default is None (the document does not conform to PDF/A).

    See GrapeCity.Documents.Pdf.GcPdfDocument.ConformanceLevel for details.

    .  
    Public PropertyGets or sets a GrapeCity.Documents.Pdf.DocumentInfo object containing information about the document (author, title, etc). See GrapeCity.Documents.Pdf.GcPdfDocument.DocumentInfo for details.  
    Public PropertyGets or sets an GrapeCity.Documents.Pdf.ImageOptions object that contains options controlling how images are processed in the generated PDF. See GrapeCity.Documents.Pdf.GcPdfDocument.ImageOptions for details.  
    Public PropertyGets or sets a value indicating whether the generated PDF should be saved as linearized. See GrapeCity.Documents.Pdf.GcPdfDocument.Linearized for details.  
    Public PropertyGets or sets a metadata object associated with the generated PDF. See GrapeCity.Documents.Pdf.GcPdfDocument.Metadata for details.  
    Public PropertyGets or sets the PDF Version of the generated document. See GrapeCity.Documents.Pdf.GcPdfDocument.PdfVersion for details.

    By default the version is determined automatically based on which features are used in this document. Setting this property to a non-null string in the format "1.X" (where X is a digit from 0 to 9) overrides the automatic value with the specified one.

     
    Public PropertyGets or sets an instance of a class derived from GrapeCity.Documents.Pdf.Security.SecurityHandlerBase used to encrypt the PDF.

    Use the CreateSecurityHandler method to initialize this property or create and assign the handler directly.

    For example, the following code may be used to password protect the PDF: wordLayout.SaveAsPdf("output.pdf", null, new PdfOutputSettings { SecurityHandler = new StandardSecurityHandlerRev6 { UserPassword = "231", OwnerPassword = "#%f8JK", PrintingPermissions = PrintingPermissions.Disabled, EditingPermissions = EditingPermissions.Disabled, CopyContent = false } });

     
    Top
    Public Methods
     NameDescription
    Public MethodCreates an instance of GrapeCity.Documents.Pdf.Security.StandardSecurityHandlerRev6 and assigns it to SecurityHandler.  
    Top
    See Also