[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Layout.PdfOutputSettings

PdfOutputSettings Class

Options used for saving a GcWordLayout in PDF format.

Inheritance
PdfOutputSettings
Namespace: GrapeCity.Documents.Word.Layout
Assembly: DS.Documents.Word.dll
Syntax
public class PdfOutputSettings
Public Class PdfOutputSettings

Constructors

Name Description
PdfOutputSettings()

Properties

Name Description
BackColor

Gets or sets the background color. The default is white.

CompressionLevel

Gets or sets the compression level.

Default value is Optimal

.
ConformanceLevel

Gets 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.

.
DocumentInfo

Gets or sets a GrapeCity.Documents.Pdf.DocumentInfo object containing information about the document (author, title, etc). See GrapeCity.Documents.Pdf.GcPdfDocument.DocumentInfo for details.

ImageOptions

Gets 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.

Linearized

Gets or sets a value indicating whether the generated PDF should be saved as linearized. See GrapeCity.Documents.Pdf.GcPdfDocument.Linearized for details.

Metadata

Gets or sets a metadata object associated with the generated PDF. See GrapeCity.Documents.Pdf.GcPdfDocument.Metadata for details.

PdfVersion

Gets 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.

SecurityHandler

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

Use the CreateSecurityHandler(string) 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
    }
});

Methods

Name Description
CreateSecurityHandler(string)

Creates an instance of GrapeCity.Documents.Pdf.Security.StandardSecurityHandlerRev6 and assigns it to SecurityHandler.