Skip to content

Commit fdd170a

Browse files
committed
Fixed code formatting in example
1 parent 73d27a4 commit fdd170a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/api/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ Any string entered here will be inserted into the target element when the browse
126126

127127
If you're trying to embed a base64 PDF but the browser doesn't support inline PDFs, the user will see a download link for the PDF. This option enable syou to set a custom filename for that downloaded base64 PDF.
128128

129-
```js
130-
var options = {
131-
fallbackFileNameForBase64: "My custom fielname.pdf"
132-
};
133-
PDFObject.embed("myfile.pdf", "#my-container", options);
134-
//If browser doesn't support inline PDFs, outputs:
135-
//<p>This is a <a href='myfile.pdf'>fallback link</a></p>
136-
```
129+
```js
130+
var options = {
131+
fallbackFileNameForBase64: "My custom fielname.pdf"
132+
};
133+
PDFObject.embed("myfile.pdf", "#my-container", options);
134+
//If browser doesn't support inline PDFs, outputs:
135+
//<p>This is a <a href='myfile.pdf'>fallback link</a></p>
136+
```
137137

138138
**Demo:** [Embedding a PDF encoded as a Base64 string, with custom filename](/examples/base64-filename.html){target=_blank}
139139

0 commit comments

Comments
 (0)