VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
In This Topic
    VintaSoft PDF .NET Plug-in: API changes in version 12.0
    In This Topic

    API changes in Vintasoft.Imaging.Pdf.dll

    New classes:

    public class Vintasoft.Imaging.Pdf.Drawing.PdfDrawingFontMetrics Provides the class that contains measurements for a PdfDrawingFont.


    Moved classes:

    public class Vintasoft.Imaging.Pdf.Print.PdfPrintDocument Class is moved into Vintasoft.Imaging.Pdf.UI.dll assembly.


    Changed classes:

    Vintasoft.Imaging.Codecs.Decoders.PdfRenderingSettings
    Removed properties
    public System.Drawing.Drawing2D.PixelOffsetMode PixelOffsetMode { get ; set ; } This property is not necessary any more because class does not depend from System.Drawing.Common any more.




    Vintasoft.Imaging.ImageProcessing.Color.PdfColorBlendCommand
    Changed constructors
    public void PdfColorBlendCommand(Vintasoft.Imaging.ImageProcessing.BlendingMode, System.Drawing.Color) public void PdfColorBlendCommand(Vintasoft.Imaging.BlendingMode, System.Drawing.Color)




    Vintasoft.Imaging.Pdf.PdfContentRenderer
    Removed methods
    public void DrawTransparentImage(Vintasoft.Imaging.Pdf.PdfContentRenderingContext, Vintasoft.Imaging.VintasoftImage, System.Drawing.PointF []) Use PdfContentRenderer.DrawImage method instead.




    Vintasoft.Imaging.Pdf.PdfFontManager
    Added methods
    public Vintasoft.Imaging.Pdf.Tree.Fonts.PdfFont CreateGlyphLessFont() Creates CID font without glyphs for specified PDF document.




    Vintasoft.Imaging.Pdf.Drawing.PdfDrawingFont
    Added properties
    public bool IsSystemFont { get ; } Gets a value indicating whether this font is system font.
    public Vintasoft.Imaging.Drawing.DrawingFontMetrics Metrics { get ; } Gets the font metrics.


    Removed properties
    public float Ascent { get ; } Use PdfDrawingFont.Metrics property instead.
    public float Descent { get ; } Use PdfDrawingFont.Metrics property instead.
    public float LineHeight { get ; } Use PdfDrawingFont.Metrics property instead.
    public float TextHeight { get ; } Use PdfDrawingFont.Metrics property instead.


    Added methods
    public void AddString(Vintasoft.Imaging.Drawing.IGraphicsPath, long [], System.Drawing.PointF) Adds the specified text string to the specified IGraphicsPath at the specified location.
    public void AddString(Vintasoft.Imaging.Drawing.IGraphicsPath, string, System.Drawing.PointF) Adds the specified text string to the specified IGraphicsPath at the specified location.
    public System.Drawing.SizeF [] MeasureCharacters(string) Measures widths of Unicode characters.


    Removed methods
    public float GetSymbolWidth(long) Use PdfDrawingFont.MeasureString method instead.


    Changed methods
    public bool CanUseSymbol(char) public bool CanUseSymbol(string)
    public System.Drawing.SizeF MeasureString(long [], float) public System.Drawing.SizeF MeasureString(long [])
    public System.Drawing.SizeF MeasureString(string, float) public System.Drawing.SizeF MeasureString(string)




    Vintasoft.Imaging.Pdf.Drawing.PdfGraphics
    Changed methods
    public void DrawPath(Vintasoft.Imaging.Pdf.Drawing.PdfPen, System.Drawing.Drawing2D.GraphicsPath) public void DrawPath(Vintasoft.Imaging.Pdf.Drawing.PdfPen, Vintasoft.Imaging.Drawing.IGraphicsPath)
    public void DrawPath(Vintasoft.Imaging.Pdf.Drawing.PdfPen, System.Drawing.Drawing2D.GraphicsPath, bool) public void DrawPath(Vintasoft.Imaging.Pdf.Drawing.PdfPen, Vintasoft.Imaging.Drawing.IGraphicsPath, bool)
    public void DrawString(string, System.Drawing.Font, Vintasoft.Imaging.Pdf.Drawing.PdfBrush, System.Drawing.PointF) public void DrawString(string, Vintasoft.Imaging.Drawing.IDrawingFont, Vintasoft.Imaging.Pdf.Drawing.PdfBrush, System.Drawing.PointF)
    public void DrawString(string, System.Drawing.Font, Vintasoft.Imaging.Pdf.Drawing.PdfBrush, System.Drawing.PointF, System.Drawing.StringFormat) public void DrawString(string, Vintasoft.Imaging.Drawing.IDrawingFont, Vintasoft.Imaging.Pdf.Drawing.PdfBrush, System.Drawing.PointF, Vintasoft.Imaging.Drawing.TextLayoutProperties)
    public void DrawString(string, System.Drawing.Font, Vintasoft.Imaging.Pdf.Drawing.PdfBrush, System.Drawing.RectangleF, System.Drawing.StringFormat) public void DrawString(string, Vintasoft.Imaging.Drawing.IDrawingFont, Vintasoft.Imaging.Pdf.Drawing.PdfBrush, System.Drawing.RectangleF, Vintasoft.Imaging.Drawing.TextLayoutProperties)
    public void DrawString(string, System.Drawing.Font, Vintasoft.Imaging.Pdf.Drawing.PdfPen, System.Drawing.RectangleF, System.Drawing.StringFormat) public void DrawString(string, Vintasoft.Imaging.Drawing.IDrawingFont, Vintasoft.Imaging.Pdf.Drawing.PdfPen, System.Drawing.RectangleF, Vintasoft.Imaging.Drawing.TextLayoutProperties)
    public void FillPath(Vintasoft.Imaging.Pdf.Drawing.PdfBrush, System.Drawing.Drawing2D.GraphicsPath) public void FillPath(Vintasoft.Imaging.Pdf.Drawing.PdfBrush, Vintasoft.Imaging.Drawing.IGraphicsPath)
    public void FillPath(Vintasoft.Imaging.Pdf.Drawing.PdfBrush, System.Drawing.Drawing2D.GraphicsPath, bool) public void FillPath(Vintasoft.Imaging.Pdf.Drawing.PdfBrush, Vintasoft.Imaging.Drawing.IGraphicsPath, bool)
    public void IntersectClip(System.Drawing.Drawing2D.GraphicsPath) public void IntersectClip(Vintasoft.Imaging.Drawing.IGraphicsPath)
    public void IntersectClip(System.Drawing.Drawing2D.GraphicsPath, System.Drawing.Drawing2D.FillMode) public void IntersectClip(Vintasoft.Imaging.Drawing.IGraphicsPath, Vintasoft.Imaging.Drawing.GraphicsPathFillMode)
    public void IntersectClip(System.Drawing.PointF [], System.Drawing.Drawing2D.FillMode) public void IntersectClip(System.Drawing.PointF [], Vintasoft.Imaging.Drawing.GraphicsPathFillMode)
    public void IntersectClip(System.Drawing.RectangleF, System.Drawing.Drawing2D.FillMode) public void IntersectClip(System.Drawing.RectangleF, Vintasoft.Imaging.Drawing.GraphicsPathFillMode)
    public void IntersectClip(float, float, float, float, System.Drawing.Drawing2D.FillMode) public void IntersectClip(float, float, float, float, Vintasoft.Imaging.Drawing.GraphicsPathFillMode)


    Removed methods
    public void MultiplyTransform(System.Drawing.Drawing2D.Matrix) Use PdfGraphics.MultiplyTransform(AffineMatrix) method instead.


    Changed methods
    public void FillAndDrawPath(Vintasoft.Imaging.Pdf.Drawing.PdfPen, Vintasoft.Imaging.Pdf.Drawing.PdfBrush, System.Drawing.Drawing2D.GraphicsPath) public void FillAndDrawPath(Vintasoft.Imaging.Pdf.Drawing.PdfPen, Vintasoft.Imaging.Pdf.Drawing.PdfBrush, Vintasoft.Imaging.Drawing.IGraphicsPath)




    Vintasoft.Imaging.Pdf.Drawing.PdfLineCap
    Changed properties
    public System.Drawing.Drawing2D.GraphicsPath FillPath { get ; } public Vintasoft.Imaging.Drawing.IGraphicsPath FillPath { get ; }
    public System.Drawing.Drawing2D.GraphicsPath StrokePath { get ; } public Vintasoft.Imaging.Drawing.IGraphicsPath StrokePath { get ; }


    Changed constructors
    public void PdfLineCap(System.Drawing.Drawing2D.GraphicsPath, System.Drawing.Drawing2D.GraphicsPath) public void PdfLineCap(Vintasoft.Imaging.Drawing.IGraphicsPath, Vintasoft.Imaging.Drawing.IGraphicsPath)
    public void PdfLineCap(System.Drawing.Drawing2D.GraphicsPath, System.Drawing.Drawing2D.GraphicsPath, bool, bool) public void PdfLineCap(Vintasoft.Imaging.Drawing.IGraphicsPath, Vintasoft.Imaging.Drawing.IGraphicsPath, bool, bool)




    Vintasoft.Imaging.Pdf.Processing.PdfDocumentCompressorCommand
    Changed properties
    public System.Drawing.Drawing2D.InterpolationMode DownscaleInterpolationMode { get ; set ; } public Vintasoft.Imaging.ImageInterpolationMode DownscaleInterpolationMode { get ; set ; }




    Vintasoft.Imaging.Pdf.Processing.PdfFixups
    Added properties
    public static Vintasoft.Imaging.Processing.ProcessingCommand<Vintasoft.Imaging.Pdf.Tree.PdfDocumentCatalog> DocumentCatalogTypeIsMissingOrWrongFixup { get ; } Gets the fixup of DocumentCatalogTypeIsMissingOrWrong .
    public static Vintasoft.Imaging.Processing.ProcessingCommand<Vintasoft.Imaging.Pdf.Tree.PdfFormXObjectResource> FormXObjectSubtypeIsMissingOrWrongFixup { get ; } Gets the fixup of FormXObjectSubtypeIsMissingOrWrong .
    public static Vintasoft.Imaging.Processing.ProcessingCommand<Vintasoft.Imaging.Pdf.Tree.PdfMetadataResource> MetadataUsesStreamFilterFixup { get ; } Gets the fixup of MetadataUsesStreamFilter .
    public static Vintasoft.Imaging.Processing.ProcessingCommand<Vintasoft.Imaging.Pdf.Tree.PdfPage> PageTypeIsMissingOrWrongFixup { get ; } Gets the fixup of PageTypeIsMissingOrWrong .




    Vintasoft.Imaging.Pdf.Processing.PdfPageColorBlendingCommand
    Renamed properties
    public System.Drawing.Color BackgoundColor { get ; set ; } public System.Drawing.Color BackgroundColor { get ; set ; }




    Vintasoft.Imaging.Pdf.Processing.PdfSimplifyContentCommand
    Added methods
    public static bool ContainsResourcesThatCanCauseRasterRendering(Vintasoft.Imaging.Pdf.Tree.PdfPage) Returns a value indicating whether the specified PDF page contains parameters, which can cause the raster rendering of PDF page.
    public static bool ContainsResourcesThatCanCauseRasterRendering(Vintasoft.Imaging.Pdf.Tree.PdfResources) Returns a value indicating whether the specified PDF resources contain parameters, which can cause the raster rendering of PDF page.




    Vintasoft.Imaging.Pdf.Processing.Analyzers.PdfTriggers
    Added properties
    public static Vintasoft.Imaging.Processing.Trigger<Vintasoft.Imaging.Pdf.Tree.PdfDocumentCatalog> DocumentCatalogTypeIsMissingOrWrong { get ; } Gets the trigger that is activated if document catalog Type property is missing or wrong.
    public static Vintasoft.Imaging.Processing.Trigger<Vintasoft.Imaging.Pdf.Tree.PdfFormXObjectResource> FormXObjectSubtypeIsMissingOrWrong { get ; } Gets the trigger that is activated if form resource Subtype property is missing or wrong.
    public static Vintasoft.Imaging.Processing.Trigger<Vintasoft.Imaging.Pdf.Tree.PdfMetadataResource> MetadataUsesStreamFilter { get ; } Gets the trigger that is activated if metadata stream uses a filter.
    public static Vintasoft.Imaging.Processing.Trigger<Vintasoft.Imaging.Pdf.Tree.PdfPage> PageTypeIsMissingOrWrong { get ; } Gets the trigger that is activated if page Type property is missing or wrong.




    Vintasoft.Imaging.Pdf.Processing.Images.PdfOptimizeContentImageCommand
    Changed properties
    public System.Drawing.Drawing2D.InterpolationMode DownscaleImageInterpolationMode { get ; set ; } public Vintasoft.Imaging.ImageInterpolationMode DownscaleImageInterpolationMode { get ; set ; }


    Changed constructors
    public void PdfOptimizeContentImageCommand(Vintasoft.Imaging.Pdf.Processing.PdfImageResourcePixelType, Vintasoft.Imaging.Pdf.PdfCompression, Vintasoft.Imaging.Resolution, Vintasoft.Imaging.Resolution, System.Drawing.Drawing2D.InterpolationMode) public void PdfOptimizeContentImageCommand(Vintasoft.Imaging.Pdf.Processing.PdfImageResourcePixelType, Vintasoft.Imaging.Pdf.PdfCompression, Vintasoft.Imaging.Resolution, Vintasoft.Imaging.Resolution, Vintasoft.Imaging.ImageInterpolationMode)
    public void PdfOptimizeContentImageCommand(Vintasoft.Imaging.Pdf.Processing.PdfImageResourcePixelType, Vintasoft.Imaging.Pdf.PdfCompression, Vintasoft.Imaging.Resolution, Vintasoft.Imaging.Resolution, System.Drawing.Drawing2D.InterpolationMode, Vintasoft.Imaging.Pdf.PdfCompressionSettings) public void PdfOptimizeContentImageCommand(Vintasoft.Imaging.Pdf.Processing.PdfImageResourcePixelType, Vintasoft.Imaging.Pdf.PdfCompression, Vintasoft.Imaging.Resolution, Vintasoft.Imaging.Resolution, Vintasoft.Imaging.ImageInterpolationMode, Vintasoft.Imaging.Pdf.PdfCompressionSettings)




    Vintasoft.Imaging.Pdf.Tree.PdfImageResource
    Changed methods
    public void ClearPath(System.Drawing.Drawing2D.GraphicsPath) public void ClearPath(Vintasoft.Imaging.Drawing.IGraphicsPath)
    public bool Compress(Vintasoft.Imaging.Pdf.PdfCompression, Vintasoft.Imaging.Pdf.PdfCompressionSettings, double, double, System.Drawing.Drawing2D.InterpolationMode, bool) public bool Compress(Vintasoft.Imaging.Pdf.PdfCompression, Vintasoft.Imaging.Pdf.PdfCompressionSettings, double, double, Vintasoft.Imaging.ImageInterpolationMode, bool)




    Vintasoft.Imaging.Pdf.Tree.PdfPage
    Added methods
    public System.Collections.Generic.IEnumerable<Vintasoft.Imaging.Pdf.Tree.Annotations.PdfAnnotation> GetAnnotations() Gets the annotations of this page.
    public void ReplaceText(System.Collections.Generic.Dictionary<Vintasoft.Imaging.Text.TextRegion, string>) Replaces specified text regions from page content.


    Removed methods
    public System.Drawing.Drawing2D.Matrix GetPageRotateCropTransform() Use PdfPage.GetPageRotateCropAffineTransform method instead.




    Vintasoft.Imaging.Pdf.Tree.Annotations.PdfInkAnnotationAppearanceGenerator
    Changed methods
    protected System.Drawing.Drawing2D.GraphicsPath CreateAppearancePath(Vintasoft.Imaging.Pdf.Drawing.PdfPen, System.Drawing.PointF []) protected Vintasoft.Imaging.Drawing.IGraphicsPath CreateAppearancePath(Vintasoft.Imaging.Pdf.Drawing.PdfPen, System.Drawing.PointF [])




    Vintasoft.Imaging.Pdf.Tree.Annotations.PdfProjectionAnnotation
    Added constructors
    public void PdfProjectionAnnotation(Vintasoft.Imaging.Pdf.Tree.PdfPage) Initializes a new instance of the PdfProjectionAnnotation class.






    API changes in Vintasoft.Imaging.Pdf.UI.dll

    New classes:

    public class Vintasoft.Imaging.Pdf.Print.PdfPrintDocument Sends images to a printer. PDF pages will be printed in vector form, other image types will be printed in a raster form.