Initial scaffold of pdf convert

This commit is contained in:
Dolan
2017-09-30 18:15:33 +01:00
parent 8ca7c5a343
commit 28539cd47b
6 changed files with 19 additions and 2 deletions

View File

@ -1,9 +1,11 @@
import * as express from "express";
import { Document } from "../../docx/document";
import { Media } from "../../media";
import { Numbering } from "../../numbering";
import { Properties } from "../../properties";
import { Styles } from "../../styles";
import { IPackOptions } from "./pack-options";
import { Packer } from "./packer";
export class ExpressPacker extends Packer {
@ -18,7 +20,7 @@ export class ExpressPacker extends Packer {
});
}
public pack(name: string): void {
public pack(name: string, options: IPackOptions): void {
this.res.attachment(`${name}.docx`);
super.compile(this.res);
}