diff options
| author | bob <bcz@cs.brown.edu> | 2019-01-30 10:29:59 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-01-30 10:29:59 -0500 |
| commit | 022b8a3a562a30062f714f9ce7082b8983a89513 (patch) | |
| tree | 71c2a11ed213098b8285c9ef71d966e95604a6b6 /src/documents | |
| parent | 13518146c955f012a6f6cd2b802f80aeeffcd58d (diff) | |
cleaned up docking a little
Diffstat (limited to 'src/documents')
| -rw-r--r-- | src/documents/Documents.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/documents/Documents.ts b/src/documents/Documents.ts index 7cc5de3a3..318a6d7a3 100644 --- a/src/documents/Documents.ts +++ b/src/documents/Documents.ts @@ -11,6 +11,7 @@ interface DocumentOptions { y?: number; width?: number; height?: number; + title?: string; } export namespace Documents { @@ -27,6 +28,9 @@ export namespace Documents { if (options.height) { doc.SetFieldValue(KeyStore.Height, options.height, NumberField); } + if (options.title) { + doc.SetFieldValue(KeyStore.Title, options.title, TextField); + } doc.SetFieldValue(KeyStore.Scale, 1, NumberField); doc.SetFieldValue(KeyStore.PanX, 0, NumberField); doc.SetFieldValue(KeyStore.PanY, 0, NumberField); |
