diff --git a/src/main/java/com/github/fabriciofx/cactoos/pdf/Document.java b/src/main/java/com/github/fabriciofx/cactoos/pdf/Document.java index 8fc8d5d..71915e2 100644 --- a/src/main/java/com/github/fabriciofx/cactoos/pdf/Document.java +++ b/src/main/java/com/github/fabriciofx/cactoos/pdf/Document.java @@ -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. diff --git a/src/test/java/com/github/fabriciofx/cactoos/pdf/DocumentTest.java b/src/test/java/com/github/fabriciofx/cactoos/pdf/DocumentTest.java index 5fcb838..7292629 100644 --- a/src/test/java/com/github/fabriciofx/cactoos/pdf/DocumentTest.java +++ b/src/test/java/com/github/fabriciofx/cactoos/pdf/DocumentTest.java @@ -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(); @@ -220,7 +220,7 @@ void buildMultiTextDocument() throws Exception { "endstream", "endobj", "trailer << /Root 6 0 R /Size 7 /Info 1 0 R >>", - "%%%%EOF" + "%%EOF" ) ) ).affirm(); @@ -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();