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-10-28 08:26:37 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4bfad69169368f9e299c8d328b55ec43200cea8a
4bfad691
1 parent
3f7505df
Format obj-c code
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
printing/ios/Classes/PrintingPlugin.m
printing/ios/Classes/PrintingPlugin.m
View file @
4bfad69
...
...
@@ -74,8 +74,8 @@
-
(
void
)
sharePdf
:(
nonnull
FlutterStandardTypedData
*
)
data
withSourceRect
:(
CGRect
)
rect
{
NSURL
*
tmpDirURL
=
[
NSURL
fileURLWithPath
:
NSTemporaryDirectory
()
isDirectory
:
YES
];
NSURL
*
tmpDirURL
=
[
NSURL
fileURLWithPath
:
NSTemporaryDirectory
()
isDirectory
:
YES
];
CFUUIDRef
uuid
=
CFUUIDCreate
(
NULL
);
assert
(
uuid
!=
NULL
);
...
...
@@ -95,8 +95,9 @@
NSString
*
path
=
[
fileURL
path
];
NSError
*
error
;
if
(
!
[[
data
data
]
writeToFile
:
path
options
:
NSDataWritingAtomic
error
:&
error
])
{
if
(
!
[[
data
data
]
writeToFile
:
path
options
:
NSDataWritingAtomic
error:
&
error
])
{
NSLog
(
@"sharePdf error: %@"
,
[
error
localizedDescription
]);
return
;
}
...
...
Please
register
or
login
to post a comment