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
2020-12-26 07:52:42 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
efd984998dba7556a95f5bc33f6a2463a6ce13bd
efd98499
1 parent
75519f50
Small output improvment
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
pdf/lib/src/output.dart
pdf/lib/src/output.dart
View file @
efd9849
...
...
@@ -51,18 +51,14 @@ class PdfOutput {
/// This method writes a [PdfObject] to the stream.
void
write
(
PdfObject
ob
)
{
// Check the object to see if it's one that is needed in the trailer
// object
// Check the object to see if it's one that is needed later
if
(
ob
is
PdfCatalog
)
{
rootID
=
ob
;
}
if
(
ob
is
PdfInfo
)
{
}
else
if
(
ob
is
PdfInfo
)
{
infoID
=
ob
;
}
if
(
ob
is
PdfEncryption
)
{
}
else
if
(
ob
is
PdfEncryption
)
{
encryptID
=
ob
;
}
if
(
ob
is
PdfSignature
)
{
}
else
if
(
ob
is
PdfSignature
)
{
assert
(
signatureID
==
null
,
'Only one document signature is allowed'
);
signatureID
=
ob
;
}
...
...
@@ -74,12 +70,8 @@ class PdfOutput {
/// This closes the Stream, writing the xref table
void
close
()
{
final
xref
=
os
.
offset
;
os
.
putString
(
'xref
\n
'
);
// Now a single subsection for object 0
//os.write("0 1\n0000000000 65535 f \n");
// Now scan through the offsets list. The should be in sequence,
// but just in case:
var
firstid
=
0
;
// First id in block
...
...
Please
register
or
login
to post a comment