Session.PDFAdvantageInstalled Property

[Read-only] This property returns a Boolean value indicating whether or not HotDocs Server can assemble PDF-based templates. You should check this property before assembling a PDF-based form (.HPT) template to avoid errors generated by attempting to assemble an .HPT template without PDF Advantage.

Syntax

public bool PDFAdvantageInstalled { get; }

Example

The following Visual C# code displays several properties of the Session class.

public class ExampleCode
{
    static void Main()
    {
        HotDocs.Server.Session HDSSession = new HotDocs.Server.Session();
         
        HDSSession.AddLogEntry(1, "A new Session has been created with the following ID: " + HDSSession.ID);
         
        HDSSession.DefaultHotDocsCSSUrl = "http://www.yourserver.com/HDServerFiles/stylesheets/hdsuser.css";
        HDSSession.DefaultHotDocsImageUrl = "http://www.yourserver.com/HDServerFiles/images";
        HDSSession.DefaultHotDocsJavascriptUrl = "http://www.yourserver.com/HDServerFiles/js";
         
        System.Console.WriteLine("{0}: {1}","Assemblies", HDSSession.Assemblies.Count);
        System.Console.WriteLine("{0}: {1}","Completed Assemblies", HDSSession.CompletedAssemblies.Count);
        System.Console.WriteLine("{0}: {1}","CSS Url",HDSSession.DefaultHotDocsCSSUrl);
        System.Console.WriteLine("{0}: {1}","Image Url",HDSSession.DefaultHotDocsImageUrl);
        System.Console.WriteLine("{0}: {1}","Javascript Url",HDSSession.DefaultHotDocsJavascriptUrl);
        System.Console.WriteLine("{0}: {1}","ID",HDSSession.ID);
        System.Console.WriteLine("{0}: {1}","PDF Advantage",HDSSession.PDFAdvantageInstalled);
        System.Console.WriteLine("{0}: {1}","HotDocs Version",HDSSession.GetHotDocsVersion());
         
        //Call Dispose when you are completely finished using the Session object
        HDSSession.Dispose();
    }
}