Posted By
October 6, 2011

New API Typography

 

Did you know that the DocuSign API supports 12 different fonts, 10 colors, 17 sizes, and 3 styles? Thats more than 60,000 combinations you can use to make your Envelopes look just as you like! 


Here is an overview of the different typography options available. 

Fonts

• Arial
• ArialNarrow
• Calibri
• CourierNew
• Garamond
• Georgia
• Helvetica
• LucidaConsole (default)
• Tahoma
• TimesNewRoman
• Trebuchet
• Verdana

Sizes

• 11-14, 16, 18, 20, 22, 24, 26, 28, 36, 48, 72

Colors

• Black
• BrightBlue
• BrightRed
• DarkRed
• DarkGreen
• Gold
• Green
• NavyBlue
• Purple
• White

Styles

• Bold
• Italic
• Underline


Setting these options are on an individual Tab basis. To make a Verdana, large, bright blue, bolded and italicized Fullname Tab, in PHP you would write: 
 
$tab = new Tab();
$tab->Type = TabTypeCode::FullName;
$tab->DocumentID = "1";
$tab->PageNumber = "1"
$tab->RecipientID = "1";
$tab->XPosition = "10";
$tab->YPosition = "10";
$tab->Font = "Verdana";
$tab->Bold = true;
$tab->Italic = true;
$tab->FontColor = "BrightBlue";
$tab->FontSize = "Size48";
 
and in Ruby (adapted from app/models/envelope.rb in the SDK Samples)
 
#Basic FullName Anchor tab
tab = Docusign::Tab.new.tap do |t|
  t.documentID = 1
  t.pageNumber = 1
  t.recipientID = 1
  t.type = Docusign::TabTypeCode::FullName
  t.font = "Verdana"
  t.bold = true
  t.italic = true
  t.fontColor = "BrightBlue"
  t.fontSize = "Size48"
end


And your result is: 
These changes were released as part of our Summer 2011 package and are available to API customers immediately. 
To learn more about API method, check out the WSDL Service Description at https://demo.docusign.net/api/3.0/api.asmx?WSDL, contact us on our Community Forums, or visit our Developer Center