diff options
author | Andrew Kim <andrewdkim@users.noreply.github.com> | 2019-02-23 16:19:45 -0500 |
---|---|---|
committer | Andrew Kim <andrewdkim@users.noreply.github.com> | 2019-02-23 16:19:45 -0500 |
commit | 07f5e56508c362725db003736a0f7980cd72107d (patch) | |
tree | 697242d7468203c46a5847cef2d24bd0d4001968 /src/fields/PDFField.ts | |
parent | 5b55e1b6081393989ca35d2964da9604c2a93802 (diff) |
PDFNode
Diffstat (limited to 'src/fields/PDFField.ts')
-rw-r--r-- | src/fields/PDFField.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/fields/PDFField.ts b/src/fields/PDFField.ts new file mode 100644 index 000000000..fe74cd99e --- /dev/null +++ b/src/fields/PDFField.ts @@ -0,0 +1,17 @@ +import { BasicField } from "./BasicField"; +import { Field } from "./Field"; + +export class PDFField extends BasicField<URL> { + constructor(data: URL | undefined = undefined) { + super(data == undefined ? new URL("") : data); + } + + toString(): string { + return this.Data.href; + } + + Copy(): Field { + return new PDFField(this.Data); + } + +}
\ No newline at end of file |