aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-07-16 11:24:57 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-07-16 11:24:57 -0400
commit2f22e7006b663f7014d0ae1336ec0f81faa6cd14 (patch)
tree1958a3f4806b7480d6a18d4df30c883b54d5ce9e /src/client/documents/Documents.ts
parent21284a84b6d9930b5ddfddaa600b6916613748c4 (diff)
made fitWidth the default for PDFs
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index b57f4c6c7..5b58aa2e3 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -979,6 +979,7 @@ export namespace DocUtils {
}
if (type.indexOf("pdf") !== -1) {
ctor = Docs.Create.PdfDocument;
+ if (!options._fitWidth) options._fitWidth = true;
if (!options._width) options._width = 400;
if (!options._height) options._height = options._width * 1200 / 927;
}