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
)
Public Function DocumentGenerate (
document As Document,
topic As String,
wordsCount As Integer,
language As String,
Optional formatRequirements As String() = Nothing
) As String
public:
String^ DocumentGenerate(
Document^ document,
String^ topic,
int wordsCount,
String^ language,
array<String^>^ formatRequirements = nullptr
)
member DocumentGenerate :
document : Document *
topic : string *
wordsCount : int *
language : string *
?formatRequirements : string[]
(* Defaults:
let _formatRequirements = defaultArg formatRequirements null
*)
-> string
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