From 0e1b41eaa1d9ed235a787ee8f9eb7712b51df598 Mon Sep 17 00:00:00 2001 From: James J Balamuta Date: Mon, 22 Apr 2024 23:25:21 -0700 Subject: [PATCH] Add option for download-link to appear above PDF document. --- docs/qembedio-embed-pdf.qmd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/qembedio-embed-pdf.qmd b/docs/qembedio-embed-pdf.qmd index c432379..1481224 100644 --- a/docs/qembedio-embed-pdf.qmd +++ b/docs/qembedio-embed-pdf.qmd @@ -5,19 +5,20 @@ title: "Embed PDF" The `pdf` short code generates an embedded PDF object for HTML websites. You can use it with: ```markdown -{{{< pdf file="assets/test.pdf" height="700px">}}} +{{{< pdf file="assets/test.pdf" height="500px">}}} ``` For example, we can show the `my-pdf-file.pdf` with: -{{< pdf file="assets/my-pdf-file.pdf" height="700px">}} +{{< pdf file="assets/my-pdf-file.pdf" height="500px">}} ## Options | Keyword Argument | Default Value | Description | |-------------------|---------------|----------------------------------------------------------| | `file` | None | Specifies the input PDF file path. | -| `height` | "600px" | Specifies the height of the embedded PDF object. | +| `height` | "850px" | Specifies the height of the embedded PDF object. | | `width` | "100%" | Specifies the width of the embedded PDF object. | +| `download-link` | "true" | Add a link to download the embedded PDF in a new browser window. | You may also omit specifying a `file` option. We'll automatically use the first parameter as the `file` \ No newline at end of file