This documentation is for the old version. Go to the latest Graphics Mill docs

PdfEncoderOptions Class

This class holds PDF encoder options.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public NotInheritable Class PdfEncoderOptions _
	Inherits EncoderOptions
C#
public sealed class PdfEncoderOptions : EncoderOptions

Remarks

Graphics Mill for .NET allows to save the bitmap as PDF file. You can specify compression type for it using Compression property. If you are using Jpeg compression, you can specify a JPEG quality via Quality property.

MediaFormat property of this class aalways returns value that equals to PdfFormat static field of the FormatManager class. Left and Top are meaningless for PDF and always set to 0.

Examples

This code sample demonstrates how to save an image to the PDF file:

Visual Basic
Dim bitmap As New Aurigma.GraphicsMill.Bitmap("c:\mountain.jpg")

bitmap.Save("C:\mountain.pdf", _
    New Aurigma.GraphicsMill.Codecs.PdfEncoderOptions(70))

bitmap.Dispose()
C#
using (Aurigma.GraphicsMill.Bitmap bitmap = 
           new Aurigma.GraphicsMill.Bitmap(@"c:\Mountain.jpg"))
{
    bitmap.Save(@"C:\Mountain.pdf", 
        new Aurigma.GraphicsMill.Codecs.PdfEncoderOptions(70));
}

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.Codecs.EncoderOptions
L Aurigma.GraphicsMill.Codecs.PdfEncoderOptions

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

Object Model




See Also

Reference