Skip to content

Commit

Permalink
highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
sytranvn committed May 23, 2023
1 parent af6c76e commit 91eee14
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,32 @@ Or use this as a theme.
# Usage

## Default
```
```md
{{</* pdf src="./path/to/example.pdf" */>}}
```

{{< pdf src="landscape.pdf" >}}


## Customize size

```
```md
# Adjust size
{{</* pdf src="./path/to/example.pdf" width="30%" height="400px" */>}}
```

{{< pdf src="landscape.pdf" width="40%" height="400px" >}}


## Zoom and page
```
```md
# Adjust zoom level and page
{{</* pdf src="./path/to/example.pdf#view=Fit&page=1" width="100%" height="500px" */>}}
```

{{< pdf src="landscape.pdf#view=Fit" width="100%" height="500px" >}}

## More options
You can also add parameters to url to customize PDF viewer.
| Parameters | Value | Description | Browser |
|---|---|---|---|
Expand Down

0 comments on commit 91eee14

Please sign in to comment.