Type Default Value Read Only Description
Boolean True No Whether to anti-alias text.

 

   

Notes
 

Determines whether text will be rendered with anti-aliased edges.

Anti-aliasing is a technique for using gradients of color to eliminate jagged edges when objects are drawn. The object edges are blurred to reduce pixelation.

 

   

Example
 

The following example shows the effect that this parameter has on PDF rendering.

Set theDoc = Server.CreateObject("ABCpdf10.Doc")
theDoc.Rect.Inset 50, 50
' Add some text
theDoc.FontSize = 48
theDoc.Pos.String = "50 690"
id = theDoc.AddText("Abc")
' Render images
theDoc.Rect.String = theDoc.GetInfo(id, "rect")
theDoc.Rendering.AntiAliasText = True
antialiasedBitmap = theDoc.Rendering.GetData(".tif")
theDoc.Rendering.AntiAliasText = False
aliasedBitmap = theDoc.Rendering.GetData(".tif")
' Add enlarged images to the pdf file
theDoc.Rect.Magnify 5, 5
theDoc.Rect.Move 0, -300
theDoc.AddImageData aliasedBitmap, 1
theDoc.Rect.Move 0, -300
theDoc.AddImageData antialiasedBitmap, 1
' Annotate
theDoc.Rect.String = theDoc.MediaBox.String
theDoc.Color.String = "255 0 0"
theDoc.FontSize = 36
theDoc.Pos.String = "50 740"
theDoc.AddText "Original text:"
theDoc.Pos.String = "50 620"
theDoc.AddText "Magnified aliased image:"
theDoc.Pos.String = "50 320"
theDoc.AddText "Magnified antialiased image:"
' Save render of pdf files
theDoc.Rendering.AntiAliasText = True
theDoc.Rendering.DotsPerInch = 36
theDoc.Rendering.Save "c:\mypdfs\RenderingAntiAliasText.png"
theDoc.Clear


RenderingAntiAliasText.png