Leptonica 1.68
C Image Processing Library

pdfiostub.c

Go to the documentation of this file.
00001 /*====================================================================*
00002  -  Copyright (C) 2001 Leptonica.  All rights reserved.
00003  -  This software is distributed in the hope that it will be
00004  -  useful, but with NO WARRANTY OF ANY KIND.
00005  -  No author or distributor accepts responsibility to anyone for the
00006  -  consequences of using this software, or for whether it serves any
00007  -  particular purpose or works at all, unless he or she says so in
00008  -  writing.  Everyone is granted permission to copy, modify and
00009  -  redistribute this source code, for commercial or non-commercial
00010  -  purposes, with the following restrictions: (1) the origin of this
00011  -  source code must not be misrepresented; (2) modified versions must
00012  -  be plainly marked as such; and (3) this notice may not be removed
00013  -  or altered from any source or modified source distribution.
00014  *====================================================================*/
00015 
00016 /*
00017  *  pdfiostub.c
00018  *
00019  *     Stubs for pdfio.c functions
00020  */
00021 
00022 #include "allheaders.h"
00023 
00024 /* --------------------------------------------*/
00025 #if  !USE_PDFIO   /* defined in environ.h */
00026 /* --------------------------------------------*/
00027 
00028 l_int32 convertFilesToPdf(const char *dirname, const char *substr,
00029                           l_int32 res, l_float32 scalefactor, l_int32 quality,
00030                           const char *title, const char *fileout)
00031 {
00032     return ERROR_INT("function not present", "convertFilesToPdf", 1);
00033 }
00034 
00035 l_int32 saConvertFilesToPdf(SARRAY *sa, l_int32 res,
00036                             l_float32 scalefactor, l_int32 quality,
00037                            const char *title, const char *fileout)
00038 {
00039     return ERROR_INT("function not present", "saConvertFilesToPdf", 1);
00040 }
00041 
00042 l_int32 saConvertFilesToPdfData(SARRAY *sa, l_int32 res,
00043                                 l_float32 scalefactor, l_int32 quality,
00044                                 const char *title, l_uint8 **pdata,
00045                                 size_t *pnbytes)
00046 {
00047     return ERROR_INT("function not present", "saConvertFilesToPdfData", 1);
00048 }
00049 
00050 l_int32 selectDefaultPdfEncoding(PIX *pix, l_int32 *ptype)
00051 {
00052     return ERROR_INT("function not present", "selectDefaultPdfEncoding", 1);
00053 }
00054 
00055 l_int32 convertToPdf(const char *filein,
00056                      l_int32 type, l_int32 quality,
00057                      const char *fileout,
00058                      l_int32 x, l_int32 y, l_int32 res,
00059                      L_PDF_DATA **plpd, l_int32 position,
00060                      const char *title)
00061 {
00062     return ERROR_INT("function not present", "convertToPdf", 1);
00063 }
00064 
00065 l_int32 convertImageDataToPdf(l_uint8 *imdata, size_t size,
00066                               l_int32 type, l_int32 quality,
00067                               const char *fileout,
00068                               l_int32 x, l_int32 y, l_int32 res,
00069                               L_PDF_DATA **plpd, l_int32 position,
00070                               const char *title)
00071 {
00072     return ERROR_INT("function not present", "convertImageDataToPdf", 1);
00073 }
00074 
00075 l_int32 convertToPdfData(const char *filein,
00076                          l_int32 type, l_int32 quality,
00077                          l_uint8 **pdata, size_t *pnbytes,
00078                          l_int32 x, l_int32 y, l_int32 res,
00079                          L_PDF_DATA **plpd, l_int32 position,
00080                          const char *title)
00081 {
00082     return ERROR_INT("function not present", "convertToPdfData", 1);
00083 }
00084 
00085 l_int32 convertImageDataToPdfData(l_uint8 *imdata, size_t size,
00086                                   l_int32 type, l_int32 quality,
00087                                   l_uint8 **pdata, size_t *pnbytes,
00088                                   l_int32 x, l_int32 y, l_int32 res,
00089                                   L_PDF_DATA **plpd, l_int32 position,
00090                                   const char *title)
00091 {
00092     return ERROR_INT("function not present", "convertImageDataToPdfData", 1);
00093 }
00094 
00095 l_int32 pixConvertToPdf(PIX *pix, l_int32 type, l_int32 quality,
00096                         const char *fileout,
00097                         l_int32 x, l_int32 y, l_int32 res,
00098                         L_PDF_DATA **plpd, l_int32 position,
00099                         const char *title)
00100 {
00101     return ERROR_INT("function not present", "pixConvertToPdf", 1);
00102 }
00103 
00104 l_int32 pixConvertToPdfData(PIX *pix, l_int32 type, l_int32 quality,
00105                             l_uint8 **pdata, size_t *pnbytes,
00106                             l_int32 x, l_int32 y, l_int32 res,
00107                             L_PDF_DATA **plpd, l_int32 position,
00108                             const char *title)
00109 {
00110     return ERROR_INT("function not present", "pixConvertToPdfData", 1);
00111 }
00112 
00113 l_int32 pixWriteStreamPdf(FILE *fp, PIX *pix, l_int32 res, const char *title)
00114 {
00115     return ERROR_INT("function not present", "pixWriteStreamPdf", 1);
00116 }
00117 
00118 l_int32 convertSegmentedFilesToPdf(const char *dirname, const char *substr,
00119                                    l_int32 res, l_int32 type, l_int32 thresh,
00120                                    BOXAA *baa, l_int32 quality,
00121                                    l_float32 scalefactor, const char *title,
00122                                    const char *fileout)
00123 {
00124     return ERROR_INT("function not present", "convertSegmentedFilesToPdf", 1);
00125 }
00126 
00127 l_int32 convertToPdfSegmented(const char *filein, l_int32 res, l_int32 type,
00128                               l_int32 thresh, BOXA *boxa, l_int32 quality,
00129                               l_float32 scalefactor, const char *fileout)
00130 {
00131     return ERROR_INT("function not present", "convertToPdfSegmented", 1);
00132 }
00133 
00134 l_int32 pixConvertToPdfSegmented(PIX *pixs, l_int32 res, l_int32 type,
00135                                  l_int32 thresh, BOXA *boxa, l_int32 quality,
00136                                  l_float32 scalefactor, const char *fileout,
00137                                  const char *title)
00138 {
00139     return ERROR_INT("function not present", "pixConvertToPdfSegmented", 1);
00140 }
00141 
00142 l_int32 convertToPdfDataSegmented(const char *filein, l_int32 res,
00143                                   l_int32 type, l_int32 thresh, BOXA *boxa,
00144                                   l_int32 quality, l_float32 scalefactor,
00145                                   l_uint8 **pdata, size_t *pnbytes)
00146 {
00147     return ERROR_INT("function not present", "convertToPdfDataSegmented", 1);
00148 }
00149 
00150 l_int32 pixConvertToPdfDataSegmented(PIX *pixs, l_int32 res, l_int32 type,
00151                                      l_int32 thresh, BOXA *boxa,
00152                                      l_int32 quality, l_float32 scalefactor,
00153                                      l_uint8 **pdata, size_t *pnbytes,
00154                                      const char *title)
00155 {
00156     return ERROR_INT("function not present", "pixConvertToPdfDataSegmented", 1);
00157 }
00158 
00159 l_int32 concatenatePdf(const char *dirname, const char *substr,
00160                        const char *fileout)
00161 {
00162     return ERROR_INT("function not present", "concatenatePdf", 1);
00163 }
00164 
00165 l_int32 saConcatenatePdf(SARRAY *sa, const char *fileout)
00166 {
00167     return ERROR_INT("function not present", "saConcatenatePdf", 1);
00168 }
00169 
00170 l_int32 ptraConcatenatePdf(L_PTRA *pa, const char *fileout)
00171 {
00172     return ERROR_INT("function not present", "ptraConcatenatePdf", 1);
00173 }
00174 
00175 l_int32 concatenatePdfToData(const char *dirname, const char *substr,
00176                              l_uint8 **pdata, size_t *pnbytes)
00177 {
00178     return ERROR_INT("function not present", "concatenatePdfToData", 1);
00179 }
00180 
00181 l_int32 saConcatenatePdfToData(SARRAY *sa, l_uint8 **pdata, size_t *pnbytes)
00182 {
00183     return ERROR_INT("function not present", "saConcatenatePdfToData", 1);
00184 }
00185 
00186 l_int32 ptraConcatenatePdfToData(L_PTRA *pa_data, SARRAY *sa,
00187                                  l_uint8 **pdata, size_t *pnbytes)
00188 {
00189     return ERROR_INT("function not present", "ptraConcatenatePdfToData", 1);
00190 }
00191 
00192 void l_pdfSetG4ImageMask(l_int32 flag)
00193 {
00194     L_ERROR("function not present", "l_pdfSetG4ImageMask");
00195     return;
00196 }
00197 
00198 void l_pdfSetDateAndVersion(l_int32 flag)
00199 {
00200     L_ERROR("function not present", "l_pdfSetDateAndVersion");
00201     return;
00202 }
00203 
00204 
00205 /* --------------------------------------------*/
00206 #endif  /* !USE_PDFIO */
00207 /* --------------------------------------------*/
00208 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines