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-01-21 16:27:15 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3bf409ce73b9c3efa50e28d0c53c0d71fc7bc284
3bf409ce
1 parent
06018cd1
Add Flutter example
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
pdf/CHANGELOG.md
pdf/README.md
pdf/CHANGELOG.md
View file @
3bf409c
...
...
@@ -9,6 +9,7 @@
*
Add support for Jpeg images
*
Fix numeric conversions in graphic operations
*
Add unicode support for annotations and info block
*
Add Flutter example
# 1.0.8
*
Fix monospace TTF font loading
...
...
pdf/README.md
View file @
3bf409c
...
...
@@ -51,3 +51,12 @@ PdfTtfFont ttf = PdfTtfFont(
g
.
setColor
(
PdfColor
(
0.3
,
0.3
,
0.3
));
g
.
drawString
(
ttf
,
20.0
,
"Dart is awesome"
,
50.0
,
30.0
);
```
To save the image on Flutter, use the
[
path_provider
](
https://pub.dartlang.org/packages/path_provider
)
library:
```
dart
Directory
tempDir
=
await
getTemporaryDirectory
();
String
tempPath
=
tempDir
.
path
;
var
file
=
File
(
"
$tempPath
/file.pdf"
);
await
file
.
writeAsBytes
(
pdf
.
save
());
```
...
...
Please
register
or
login
to post a comment