summaryrefslogtreecommitdiff
path: root/src/book.vala
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2011-09-03 12:12:52 +0200
committerAlessio Treglia <alessio@debian.org>2011-09-03 12:12:52 +0200
commit8227fe5bd1a0cee50359c2581184c32a371c754e (patch)
tree80723467abe036465fd977816881849a70030111 /src/book.vala
parent87ebc2af1f0417b3bc38a233e28ff673eff4fa51 (diff)
Imported Upstream version 3.1.90upstream/3.1.90
Diffstat (limited to 'src/book.vala')
-rw-r--r--src/book.vala8
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