1.1 --- a/t2p.c Mon Mar 10 09:58:34 2003 +0000 1.2 +++ b/t2p.c Mon Mar 10 13:08:25 2003 +0000 1.3 @@ -4,7 +4,7 @@ 1.4 * will be compressed using ITU-T T.6 (G4) fax encoding. 1.5 * 1.6 * Main program 1.7 - * $Id: t2p.c,v 1.27 2003/03/10 01:58:09 eric Exp $ 1.8 + * $Id: t2p.c,v 1.28 2003/03/10 05:08:25 eric Exp $ 1.9 * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com> 1.10 * 1.11 * This program is free software; you can redistribute it and/or modify 1.12 @@ -304,7 +304,7 @@ 1.13 uint16_t planar_config; 1.14 1.15 uint16_t resolution_unit; 1.16 - double x_resolution, y_resolution; 1.17 + float x_resolution, y_resolution; 1.18 double dest_x_resolution, dest_y_resolution; 1.19 1.20 double width_points, height_points; /* really 1/72 inch units rather than 1.21 @@ -439,20 +439,17 @@ 1.22 image_length * bitmap->row_words * sizeof (word_type)); 1.23 #endif /* TIFF_REVERSE_BITS */ 1.24 1.25 +#if 0 1.26 if (input_attributes.has_page_size) 1.27 bitmap = resize_bitmap (bitmap, 1.28 x_resolution, 1.29 y_resolution, 1.30 input_attributes); 1.31 +#endif 1.32 1.33 rotate_bitmap (bitmap, 1.34 input_attributes); 1.35 1.36 -#ifdef TIFF_REVERSE_BITS 1.37 - reverse_bits ((uint8_t *) bitmap->bits, 1.38 - image_length * bitmap->row_words * sizeof (word_type)); 1.39 -#endif /* TIFF_REVERSE_BITS */ 1.40 - 1.41 width_points = (rect_width (& bitmap->rect) / dest_x_resolution) * POINTS_PER_INCH; 1.42 height_points = (rect_height (& bitmap->rect) / dest_y_resolution) * POINTS_PER_INCH; 1.43 1.44 @@ -464,7 +461,6 @@ 1.45 1.46 page = pdf_new_page (out->pdf, width_points, height_points); 1.47 1.48 -#if 0 1.49 pdf_write_g4_fax_image (page, 1.50 0, 0, /* x, y */ 1.51 width_points, height_points, 1.52 @@ -472,7 +468,6 @@ 1.53 0, /* ImageMask */ 1.54 0, 0, 0, /* r, g, b */ 1.55 0); /* BlackIs1 */ 1.56 -#endif 1.57 1.58 while (bookmarks) 1.59 {