Skip to content

Commit

Permalink
(#41) Fix Document EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciofx committed Dec 12, 2023
1 parent 1eb2870 commit 33268ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public final class Document implements Bytes {
/**
* PDF end of file.
*/
private static final String EOF = "%%%%EOF";
private static final String EOF = "%%EOF";

/**
* Count.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void buildDocument() throws Exception {
"2 0 obj\n<< /Font << /F1 << /Type /Font /BaseFont /Times-Roman /Subtype /Type1 >> >> >>\nendobj",
"3 0 obj\n<< /Length 62 >>\nstream\nBT /F1 18 Tf 0 0 Td\n(Hello World with \\(, \\), \\\\ and \\r) Tj\nET\nendstream\nendobj",
"trailer << /Root 6 0 R /Size 7 /Info 1 0 R >>",
"%%%%EOF"
"%%EOF"
)
)
).affirm();
Expand Down Expand Up @@ -220,7 +220,7 @@ void buildMultiTextDocument() throws Exception {
"endstream",
"endobj",
"trailer << /Root 6 0 R /Size 7 /Info 1 0 R >>",
"%%%%EOF"
"%%EOF"
)
)
).affirm();
Expand Down Expand Up @@ -309,7 +309,7 @@ void buildTwoPagesDocument() throws Exception {
"5 0 obj\n<< /Font << /F1 << /Type /Font /BaseFont /Times-Roman /Subtype /Type1 >> >> >>\nendobj",
"6 0 obj\n<< /Length 33 >>\nstream\nBT /F1 18 Tf 0 0 Td\n(World) Tj\nET\nendstream\nendobj",
"trailer << /Root 9 0 R /Size 10 /Info 1 0 R >>",
"%%%%EOF"
"%%EOF"
)
)
).affirm();
Expand Down

0 comments on commit 33268ff

Please sign in to comment.