1 /*====================================================================*
2  -  Copyright (C) 2001 Leptonica.  All rights reserved.
3  -  This software is distributed in the hope that it will be
4  -  useful, but with NO WARRANTY OF ANY KIND.
5  -  No author or distributor accepts responsibility to anyone for the
6  -  consequences of using this software, or for whether it serves any
7  -  particular purpose or works at all, unless he or she says so in
8  -  writing.  Everyone is granted permission to copy, modify and
9  -  redistribute this source code, for commercial or non-commercial
10  -  purposes, with the following restrictions: (1) the origin of this
11  -  source code must not be misrepresented; (2) modified versions must
12  -  be plainly marked as such; and (3) this notice may not be removed
13  -  or altered from any source or modified source distribution.
14  *====================================================================*/
15 
16 /*
17  *  psio1stub.c
18  *
19  *     Stubs for psio1.c functions
20  */
21 
22 #include <stdio.h>
23 #include "allheaders.h"
24 
25 /* --------------------------------------------*/
26 #if  !USE_PSIO   /* defined in environ.h */
27 /* --------------------------------------------*/
28 
convertFilesToPS(const char * dirin,const char * substr,l_int32 res,const char * fileout)29 l_int32 convertFilesToPS(const char *dirin, const char *substr,
30                          l_int32 res, const char *fileout)
31 {
32     return ERROR_INT("function not present", "convertFilesToPS", 1);
33 }
34 
sarrayConvertFilesToPS(SARRAY * sa,l_int32 res,const char * fileout)35 l_int32 sarrayConvertFilesToPS(SARRAY *sa, l_int32 res, const char *fileout)
36 {
37     return ERROR_INT("function not present", "sarrayConvertFilesToPS", 1);
38 }
39 
convertFilesFittedToPS(const char * dirin,const char * substr,l_float32 xpts,l_float32 ypts,const char * fileout)40 l_int32 convertFilesFittedToPS(const char *dirin, const char *substr,
41                                l_float32 xpts, l_float32 ypts,
42                                const char *fileout)
43 {
44     return ERROR_INT("function not present", "convertFilesFittedToPS", 1);
45 }
46 
sarrayConvertFilesFittedToPS(SARRAY * sa,l_float32 xpts,l_float32 ypts,const char * fileout)47 l_int32 sarrayConvertFilesFittedToPS(SARRAY *sa, l_float32 xpts,
48                                      l_float32 ypts, const char *fileout)
49 {
50     return ERROR_INT("function not present", "sarrayConvertFilesFittedToPS", 1);
51 }
52 
convertSegmentedPagesToPS(const char * pagedir,const char * pagestr,const char * maskdir,const char * maskstr,l_int32 numpre,l_int32 numpost,l_int32 maxnum,l_float32 textscale,l_float32 imagescale,l_int32 threshold,const char * fileout)53 l_int32 convertSegmentedPagesToPS(const char *pagedir, const char *pagestr,
54                                   const char *maskdir, const char *maskstr,
55                                   l_int32 numpre, l_int32 numpost,
56                                   l_int32 maxnum, l_float32 textscale,
57                                   l_float32 imagescale, l_int32 threshold,
58                                   const char *fileout)
59 {
60     return ERROR_INT("function not present", "convertSegmentedPagesToPS", 1);
61 }
62 
pixWriteSegmentedPageToPS(PIX * pixs,PIX * pixm,l_float32 textscale,l_float32 imagescale,l_int32 threshold,l_int32 pageno,const char * fileout)63 l_int32 pixWriteSegmentedPageToPS(PIX *pixs, PIX *pixm, l_float32 textscale,
64                                   l_float32 imagescale, l_int32 threshold,
65                                   l_int32 pageno, const char *fileout)
66 {
67     return ERROR_INT("function not present", "pixWriteSegmentedPagesToPS", 1);
68 }
69 
pixWriteMixedToPS(PIX * pixb,PIX * pixc,l_float32 scale,l_int32 pageno,const char * fileout)70 l_int32 pixWriteMixedToPS(PIX *pixb, PIX *pixc, l_float32 scale,
71                           l_int32 pageno, const char *fileout)
72 {
73     return ERROR_INT("function not present", "pixWriteMixedToPS", 1);
74 }
75 
convertToPSEmbed(const char * filein,const char * fileout,l_int32 level)76 l_int32 convertToPSEmbed(const char *filein, const char *fileout, l_int32 level)
77 {
78     return ERROR_INT("function not present", "convertToPSEmbed", 1);
79 }
80 
81 /* --------------------------------------------*/
82 #endif  /* !USE_PSIO */
83 /* --------------------------------------------*/
84 
85