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
2019-06-16 19:46:45 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2ce0e570272a1a8eca4fc4a3ef2ce902f74092c1
2ce0e570
1 parent
1c9dd325
Update Readme
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
printing/README.md
test/pubspec.yaml
printing/README.md
View file @
2ce0e57
...
...
@@ -74,6 +74,16 @@ Or share the document to other applications:
await
Printing
.
sharePdf
(
bytes:
pdf
.
save
(),
filename:
'my-document.pdf'
);
```
To print an HTML document, simply do:
```
dart
await
Printing
.
layoutPdf
(
onLayout:
(
PdfPageFormat
format
)
async
=>
await
Printing
.
convertHtml
(
format:
format
,
html:
'<html><body><p>Hello!</p></body></html>'
,
));
```
## Installing
1.
Add this to your package's
`pubspec.yaml`
file:
...
...
test/pubspec.yaml
View file @
2ce0e57
...
...
@@ -21,3 +21,9 @@ dependencies:
path
:
image
:
path_provider
:
dependency_overrides
:
pdf
:
path
:
../pdf
printing
:
path
:
../printing
...
...
Please
register
or
login
to post a comment