Class FormatResumeWithTemplateRequest
- Namespace
- Textkernel.Tx.Models.API.Formatter
- Assembly
- Textkernel.Tx.SDK.dll
Request body for the Format Resume With Template endpoint
public class FormatResumeWithTemplateRequest
- Inheritance
-
FormatResumeWithTemplateRequest
- Inherited Members
Constructors
FormatResumeWithTemplateRequest(ParsedResume, byte[], ResumeType)
Creates a request to call the Resume Formatter endpoint with a provided template document.
public FormatResumeWithTemplateRequest(ParsedResume resume, byte[] templateFileBytes, ResumeType docType)
Parameters
resume
ParsedResumeThe ResumeData from a parse API call
templateFileBytes
byte[]The bytes of the template DOCX file
docType
ResumeTypeThe output document type
FormatResumeWithTemplateRequest(ParsedResume, string, ResumeType)
Creates a request to call the Resume Formatter endpoint with a provided template document.
public FormatResumeWithTemplateRequest(ParsedResume resume, string templatePath, ResumeType docType)
Parameters
resume
ParsedResumeThe ResumeData from a parse API call
templatePath
stringThe path to the template DOCX file on disk
docType
ResumeTypeThe output document type
Properties
CustomData
Any data that the template needs that is not in the extracted CV data. For example:
CustomData = new
{
CandidateId = "12345",
DateApplied = DateTime.Today
}
public object CustomData { get; set; }
Property Value
OutputType
The output document type
[JsonConverter(typeof(JsonStringEnumConverter))]
public ResumeType OutputType { get; set; }
Property Value
ResumeData
The ResumeData from a parse API call
public ParsedResume ResumeData { get; set; }
Property Value
Template
A base64-encoded string of the DOCX template document file bytes. This should use the standard 'base64' encoding as defined in RFC 4648 Section 4 (not the 'base64url' variant). .NET users can use the ToBase64String(byte[]) method. For more information on creating custom templates, see here.
public string Template { get; set; }