Scanner 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
Scanner1.PDFInitAnnotation
FontID = Scanner1.PDFAddFont("Arial", True, True)
Scanner1.PDFEmbedFont FontID
Scanner1.PDFSetTextColor 255, 0, 255
Scanner1.PDFDrawTextAlign 0, 0, 280, "This is sample text 3", FontID, 40, 2
Scanner1.SaveAllPage2PDF "c:\newpage.pdf", True , 1