diff options
author | Alessio Treglia <alessio@debian.org> | 2011-09-03 12:12:54 +0200 |
---|---|---|
committer | Alessio Treglia <alessio@debian.org> | 2011-09-03 12:12:54 +0200 |
commit | a25eb08be6af9cc6580f9731a1e515be120331fc (patch) | |
tree | d28f304fa76bb0175ae1d887cf4c4b27d8ac29ec /src/book.vala | |
parent | 5c8211aeb400deaf51d30eddd0c92017db7b4422 (diff) | |
parent | 8227fe5bd1a0cee50359c2581184c32a371c754e (diff) |
Merge commit 'upstream/3.1.90'
Diffstat (limited to 'src/book.vala')
-rw-r--r-- | src/book.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/book.vala b/src/book.vala index 1aed281..64f7c60 100644 --- a/src/book.vala +++ b/src/book.vala @@ -207,10 +207,10 @@ public class Book var writer = new PDFWriter (stream); /* Header */ - writer.write_string ("%%PDF-1.3\n"); + writer.write_string ("%PDF-1.3\n"); /* Comment with binary as recommended so file is treated as binary */ - writer.write_string ("%%\xe2\xe3\xcf\xd3\n"); + writer.write_string ("%\xe2\xe3\xcf\xd3\n"); /* Catalog */ var catalog_number = writer.start_object (); @@ -464,7 +464,7 @@ public class Book writer.write_string ("xref\n"); writer.write_string ("1 %zu\n".printf (writer.object_offsets.length ())); foreach (var offset in writer.object_offsets) - writer.write_string ("%010zu 0000 n\n".printf (offset)); + writer.write_string ("%010zu 00000 n \n".printf (offset)); /* Trailer */ writer.write_string ("trailer\n"); @@ -476,7 +476,7 @@ public class Book writer.write_string (">>\n"); writer.write_string ("startxref\n"); writer.write_string ("%zu\n".printf (xref_offset)); - writer.write_string ("%%%%EOF\n"); + writer.write_string ("%%EOF\n"); } public void save (string type, File file) throws Error |