|
Next we create an ABCpdf Doc object and give it some basic
settings. Although we could pass our HTML styled text directly
directly to the AddHtml function, we can take more control over the
way that fonts are added to the PDF if we specify font IDs.
[C#]
Doc theDoc = new Doc();
theDoc.FontSize = 72;
theDoc.Rect.Inset(10, 10);
theDoc.FrameRect();
int theFont1 = theDoc.EmbedFont("Verdana", "Latin", false,
true);
int theFont2 = theDoc.EmbedFont("Verdana Bold", "Latin", false,
true);
[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.FontSize = 72
theDoc.Rect.Inset(10, 10)
theDoc.FrameRect()
Dim theFont1 As Integer = theDoc.EmbedFont("Verdana", "Latin",
False, True)
Dim theFont2 As Integer = theDoc.EmbedFont("Verdana Bold", "Latin",
False, True)
|
|
|