1.1 --- a/semantics.c Mon Aug 26 06:03:55 2002 +0000 1.2 +++ b/semantics.c Tue Jan 21 18:30:49 2003 +0000 1.3 @@ -1,3 +1,28 @@ 1.4 +/* 1.5 + * t2p: Create a PDF file from the contents of one or more TIFF 1.6 + * bilevel image files. The images in the resulting PDF file 1.7 + * will be compressed using ITU-T T.6 (G4) fax encoding. 1.8 + * 1.9 + * Semantic routines for spec file parser 1.10 + * $Id: semantics.c,v 1.16 2003/01/21 10:30:49 eric Exp $ 1.11 + * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com> 1.12 + * 1.13 + * This program is free software; you can redistribute it and/or modify 1.14 + * it under the terms of the GNU General Public License version 2 as 1.15 + * published by the Free Software Foundation. Note that permission is 1.16 + * not granted to redistribute this program under the terms of any 1.17 + * other version of the General Public License. 1.18 + * 1.19 + * This program is distributed in the hope that it will be useful, 1.20 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 1.21 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1.22 + * GNU General Public License for more details. 1.23 + * 1.24 + * You should have received a copy of the GNU General Public License 1.25 + * along with this program; if not, write to the Free Software 1.26 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA */ 1.27 + 1.28 + 1.29 #include <stdbool.h> 1.30 #include <stdint.h> 1.31 #include <stdlib.h> 1.32 @@ -674,9 +699,10 @@ 1.33 parity, 1.34 & input_attributes.page_size); 1.35 1.36 - process_page (image->range.first + i, 1.37 - input_attributes, 1.38 - page->bookmark_list); 1.39 + if (! process_page (image->range.first + i, 1.40 + input_attributes, 1.41 + page->bookmark_list)) 1.42 + return (0); 1.43 i++; 1.44 p++; 1.45 page_index++;