Image Viewer CP ActiveX Control

PDFEmbedFont

 

Embed specific font .
 

Public Function PDFEmbedFont( _
   ByVal iFontID As Integer 
) As bool

 

Parameter

iFontID
 specifies the font ID for embed to PDF file.


Return Value

Return true if successful.
Return false if failed.


Example

   

Visual Basic Syntax
ImageViewer1.PDFInitAnnotation
FontID = ImageViewer1.PDFAddFont("Arial", True, True)
ImageViewer1.PDFEmbedFont FontID
ImageViewer1.PDFSetTextColor 255, 0, 255
ImageViewer1.PDFDrawTextAlign 0, 0, 280, "This is sample text 3", FontID, 40, 2