# loadDocumentTemplate static method

void loadDocumentTemplate(

1. String? path

)

Loads the specified document template from a file.

param path A string that contains the full path to the document template. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    static void loadDocumentTemplate(String? path) {
      Pointer<Char>? pPath = path?.toNativeUtf8().cast<Char>();
      try {
        var err = documentSDK.id3DocumentLibrary_LoadDocumentTemplate(pPath ?? nullptr);
        if (err != DocumentError.success.value) {
          throw DocumentException(err);
        }
      } finally {
        if (pPath != null) {
          calloc.free(pPath);
        }
      }
    }