Replaces the text on the page with glyph outlines.

 

   

Syntax
 

[C#]
void VectorizeText()
[Visual Basic]
Sub VectorizeText()

Throws Exceptions may throw Exception()

 

   

Params
 
Name Description
none  

 

   

Notes
 

Use this method to vectorize the text (i.e. replace the text with equivalent glyph polygon outlines).

 

   

Example
 

[C#]
Doc theDoc = new Doc();
theDoc.FontSize = 96;
theDoc.AddText("Hello World");
List<Page> theList = new List<Page>();
foreach (IndirectObject obj in theDoc.ObjectSoup) {
  Page page = obj as Page;
  if (page != null) {
    theList.Add(page);
  }
}
for (int i = 0; i < theList.Count; i++) {
  Page page = theList[i];
  page.VectorizeText();
}
theDoc.Save(Server.MapPath("VectorizedText.pdf"));
theDoc.Clear();

[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.FontSize = 96
theDoc.AddText("Hello World")
Dim obj As IndirectObject
Dim thePage As Page
Dim theList As New List(Of Page)
For Each obj in theDoc.ObjectSoup
  thePage = TryCast(obj, Page)
  If thePage IsNot Nothing Then
    theList.Add(thePage)
  End If
Next
For Each thePage As Page in theList
  thePage.VectorizeText()
Next
theDoc.Save(Server.MapPath("VectorizedText.pdf"))
theDoc.Clear()