1
0
mirror of synced 2026-04-07 14:14:08 +00:00

newline before endstream is NOT the responsibility of callback!

This commit is contained in:
Eric Smith
2003-03-20 07:44:53 +00:00
parent af42666d8e
commit d53923b70c
3 changed files with 5 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
* tumble: build a PDF file from image files
*
* PDF routines
* $Id: pdf_g4.c,v 1.15 2003/03/13 00:57:05 eric Exp $
* $Id: pdf_g4.c,v 1.16 2003/03/19 23:44:53 eric Exp $
* Copyright 2003 Eric Smith <eric@brouhaha.com>
*
* This program is free software; you can redistribute it and/or modify
@@ -76,7 +76,6 @@ static void pdf_write_g4_fax_image_callback (pdf_file_handle pdf_file,
struct pdf_g4_image *image = app_data;
bitblt_write_g4 (image->bitmap, pdf_file->f);
pdf_stream_printf (pdf_file, stream, "\r\n");
}

View File

@@ -2,7 +2,7 @@
* tumble: build a PDF file from image files
*
* PDF routines
* $Id: pdf_jpeg.c,v 1.3 2003/03/19 07:39:55 eric Exp $
* $Id: pdf_jpeg.c,v 1.4 2003/03/19 23:44:53 eric Exp $
* Copyright 2003 Eric Smith <eric@brouhaha.com>
*
* This program is free software; you can redistribute it and/or modify
@@ -90,8 +90,6 @@ static void pdf_write_jpeg_image_callback (pdf_file_handle pdf_file,
if (ferror (image->f))
pdf_fatal ("error on input file\n");
}
pdf_stream_printf (pdf_file, stream, "\r\n");
}

View File

@@ -2,7 +2,7 @@
* tumble: build a PDF file from image files
*
* PDF routines
* $Id: pdf_prim.c,v 1.12 2003/03/13 00:57:05 eric Exp $
* $Id: pdf_prim.c,v 1.13 2003/03/19 23:44:53 eric Exp $
* Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
*
* This program is free software; you can redistribute it and/or modify
@@ -536,7 +536,8 @@ void pdf_write_stream (pdf_file_handle pdf_file, struct pdf_obj *stream)
stream,
stream->val.stream.app_data);
end_pos = ftell (pdf_file->f);
fprintf (pdf_file->f, "endstream\r\n");
fprintf (pdf_file->f, "\r\nendstream\r\n");
pdf_set_integer (stream->val.stream.length, end_pos - begin_pos);
}