public class FormatResumeRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
Object |
CustomData
Any data that the template needs that is not in the extracted CV data.
|
OutputDocumentFormat |
OutputType
The output document type
|
ParsedResume |
ResumeData
The resume to use to populate the template
|
String |
Template
A base64-encoded string of the DOCX template document file bytes.
|
| Constructor and Description |
|---|
FormatResumeRequest(ParsedResume resume,
byte[] templateFileBytes,
OutputDocumentFormat docType)
Creates a request to use when calling the Resume Formatter endpoint with a provided template document.
|
FormatResumeRequest(ParsedResume resume,
String templatePath,
OutputDocumentFormat docType)
Creates a request to use when calling the Resume Formatter endpoint with a provided template document.
|
public ParsedResume ResumeData
public String Template
Java users can use Base64.Encoder.encodeToString(byte[])
For more information on creating custom templates, see here
public OutputDocumentFormat OutputType
public Object CustomData
JSONObject myCustomData = new JSONObject();
myCustomData.put("CandidateId", "12345");
myCustomData.put("DateApplied", LocalDate.now());
formatRequest.CustomData = myCustomData;
public FormatResumeRequest(ParsedResume resume, String templatePath, OutputDocumentFormat docType) throws IOException
resume - The resume to use to populate the templatetemplatePath - The path to the template DOCX file on diskdocType - The output document typeIOException - if an error occurs reading the file contentspublic FormatResumeRequest(ParsedResume resume, byte[] templateFileBytes, OutputDocumentFormat docType)
resume - The resume to use to populate the templatetemplateFileBytes - The bytes of the template DOCX filedocType - The output document typeCopyright © 2024. All rights reserved.