Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2021-03-07 07:23:48 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0aad19fedad6abf1328cdbb2c792f53258fcc940
0aad19fe
1 parent
c078c049
Improve printing README
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
printing/README.md
printing/README.md
View file @
0aad19f
...
...
@@ -36,6 +36,16 @@ for documentation.
```
4.
For MacOS add printing capability by opening macos directory in XCode
5.
For the web, a javascript library and a small script has to be added to
your
`web/index.html`
file, just before
`<script src="main.dart.js" type="application/javascript"></script>`
:
```
html
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.7.570/pdf.min.js"
></script>
<script
type=
"text/javascript"
>
pdfjsLib
.
GlobalWorkerOptions
.
workerSrc
=
"//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.7.570/pdf.worker.min.js"
;
</script>
```
## Examples
...
...
@@ -134,17 +144,7 @@ PdfPreview(
);
```
This widget is compatible with Android, iOS, macOS and web.
For the web, a javascript library and a small script has to be added to
your
`web/index.html`
file:
```
html
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.4.456/pdf.min.js"
></script>
<script
type=
"text/javascript"
>
pdfjsLib
.
GlobalWorkerOptions
.
workerSrc
=
"//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.4.456/pdf.worker.min.js"
;
</script>
```
This widget is compatible with Android, iOS, macOS, Linau, Windows and web.
## Designing your PDF document
...
...
Please
register
or
login
to post a comment