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-01 13:58:16 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
191c75fcdef36a03aee84f5f7d145ca5797ed9bf
191c75fc
1 parent
433708df
Remove debug prints in tests
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
pdf/test/complex_test.dart
pdf/test/ttf_test.dart
pdf/test/complex_test.dart
View file @
191c75f
...
...
@@ -9,7 +9,6 @@ import 'package:vector_math/vector_math_64.dart';
void
main
(
)
{
test
(
'Pdf'
,
()
{
var
img
=
new
Uint32List
(
10
*
10
);
print
(
img
.
length
);
img
.
fillRange
(
0
,
img
.
length
-
1
,
0x12345678
);
var
pdf
=
new
PDFDocument
(
deflate:
zlib
.
encode
);
...
...
pdf/test/ttf_test.dart
View file @
191c75f
...
...
@@ -22,7 +22,6 @@ void main() {
.
asByteData
());
var
s
=
"Hello World!"
;
var
r
=
ttf
.
stringBounds
(
s
);
print
(
r
);
const
FS
=
20.0
;
g
.
setColor
(
new
PDFColor
(
0.0
,
1.0
,
1.0
));
g
.
drawRect
(
50.0
+
r
.
x
*
FS
,
30.0
+
r
.
y
*
FS
,
r
.
w
*
FS
,
r
.
h
*
FS
);
...
...
@@ -37,7 +36,6 @@ void main() {
.
asByteData
());
r
=
roboto
.
stringBounds
(
s
);
print
(
r
);
g
.
setColor
(
new
PDFColor
(
0.0
,
1.0
,
1.0
));
g
.
drawRect
(
50.0
+
r
.
x
*
FS
,
130.0
+
r
.
y
*
FS
,
r
.
w
*
FS
,
r
.
h
*
FS
);
g
.
fillPath
();
...
...
Please
register
or
login
to post a comment