aboutsummaryrefslogtreecommitdiff
path: root/src/fields/PDFField.ts
diff options
context:
space:
mode:
authorAndrew Kim <andrewdkim@users.noreply.github.com>2019-02-26 17:49:46 -0500
committerAndrew Kim <andrewdkim@users.noreply.github.com>2019-02-26 17:49:46 -0500
commit3898ac2a436a1a6a39b07afb419f433e02df5e29 (patch)
tree43ebbdba88422fc5538efa2663750da8b050266b /src/fields/PDFField.ts
parent0320123a5d0836dd11324a7eed6757a453c793d9 (diff)
In process of making the conversion from ImageBox to PDFNode
Diffstat (limited to 'src/fields/PDFField.ts')
-rw-r--r--src/fields/PDFField.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/fields/PDFField.ts b/src/fields/PDFField.ts
new file mode 100644
index 000000000..2d8b0f635
--- /dev/null
+++ b/src/fields/PDFField.ts
@@ -0,0 +1,21 @@
+import { BasicField } from "./BasicField";
+import { Field } from "./Field";
+import {observable} from "mobx"
+
+export class PDFField extends BasicField<URL> {
+ constructor(data: URL | undefined = undefined) {
+ super(data == undefined ? new URL("http://cs.brown.edu/~bcz/face.gif") : data);
+ }
+
+ toString(): string {
+ return this.Data.href;
+ }
+
+ Copy(): Field {
+ return new PDFField(this.Data);
+ }
+
+ @observable
+ Page:Number = 1;
+
+} \ No newline at end of file