Program with the SPDocumentLibrary class.
Access documents as SPListItem and SPFile objects.
Configure document libraries with custom document templates.
Work with InfoPath and forms libraries.
Generate documents with the Office Open XML file formats.