aboutsummaryrefslogtreecommitdiff
path: root/src/fields/PDFField.ts
blob: fe74cd99ec4d559f85cda4184fff42de4b4bc141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
    }

}