Click or drag to resize

DocAI DocumentGenerate Method

Based on the topic to create a document.

Namespace: Spire.Doc.AI
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public string DocumentGenerate(
	Document document,
	string topic,
	int wordsCount,
	string language,
	string[] formatRequirements = null
)

Parameters

document
Type: Spire.Doc Document
The document to add the content written by AI.
topic
Type: System String
The topic of the document.
wordsCount
Type: System Int32
The minium word count of the document.
language
Type: System String
The target language for AI write in.
formatRequirements (Optional)
Type: System String
The formats requirement of the document.

Return Value

Type: String
A sync task that returns a string indicating whether the processing was successful or not.
See Also