This class holds PDF encoder options.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public NotInheritable Class PdfEncoderOptions _ Inherits EncoderOptions
public sealed class PdfEncoderOptions : EncoderOptions
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.
This code sample demonstrates how to save an image to the PDF file:
Dim bitmap As New Aurigma.GraphicsMill.Bitmap("c:\mountain.jpg") bitmap.Save("C:\mountain.pdf", _ New Aurigma.GraphicsMill.Codecs.PdfEncoderOptions(70)) bitmap.Dispose()
using (Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(@"c:\Mountain.jpg")) { bitmap.Save(@"C:\Mountain.pdf", new Aurigma.GraphicsMill.Codecs.PdfEncoderOptions(70)); }