Enable pdf export

This commit is contained in:
Dolan
2017-12-05 00:16:21 +00:00
parent fb08f79344
commit a6bba0bc6c
6 changed files with 56 additions and 13 deletions

View File

@ -6,8 +6,8 @@ export interface IConvertOutput {
}
export class PdfConvertWrapper {
public convert(): Promise<IConvertOutput> {
const buffer = fs.readFileSync("test.docx");
public convert(filePath: string): Promise<IConvertOutput> {
const buffer = fs.readFileSync(filePath);
return new Promise<IConvertOutput>((resolve, reject) => {
const r = request.post({