newline before endstream is NOT the responsibility of callback!
This commit is contained in:
3
pdf_g4.c
3
pdf_g4.c
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user