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
2018-12-05 20:39:35 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7e5a31095f6dd0921560df5419c7f86d9229fc27
7e5a3109
1 parent
1ac2b44d
Add Bézier Curve primitive
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
pdf/CHANGELOG.md
pdf/lib/src/graphics.dart
pdf/CHANGELOG.md
View file @
7e5a310
...
...
@@ -4,6 +4,7 @@
*
Mark some internal functions as protected
*
Fix annotations
*
Implement default fonts bounding box
*
Add Bézier Curve primitive
# 1.0.8
*
Fix monospace TTF font loading
...
...
pdf/lib/src/graphics.dart
View file @
7e5a310
...
...
@@ -199,6 +199,12 @@ class PdfGraphics {
buf
.
putString
(
"
$x
$y
m
\n
"
);
}
/// Draw a bézier curve
void
curveTo
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
double
x3
,
double
y3
)
{
buf
.
putString
(
"
$x1
$y1
$x2
$y2
$x3
$y3
c
\n
"
);
}
void
drawShape
(
String
d
)
{
var
sb
=
StringBuffer
();
...
...
Please
register
or
login
to post a comment