Leptonica  1.77.0
Image processing and image analysis suite
pdfio1stub.c
Go to the documentation of this file.
1 /*====================================================================*
2  - Copyright (C) 2001 Leptonica. All rights reserved.
3  -
4  - Redistribution and use in source and binary forms, with or without
5  - modification, are permitted provided that the following conditions
6  - are met:
7  - 1. Redistributions of source code must retain the above copyright
8  - notice, this list of conditions and the following disclaimer.
9  - 2. Redistributions in binary form must reproduce the above
10  - copyright notice, this list of conditions and the following
11  - disclaimer in the documentation and/or other materials
12  - provided with the distribution.
13  -
14  - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15  - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16  - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17  - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANY
18  - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21  - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22  - OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23  - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24  - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  *====================================================================*/
26 
35 #include "allheaders.h"
36 
37 /* --------------------------------------------*/
38 #if !USE_PDFIO /* defined in environ.h */
39 /* --------------------------------------------*/
40 
41 /* ----------------------------------------------------------------------*/
42 
43 l_ok convertFilesToPdf(const char *dirname, const char *substr,
44  l_int32 res, l_float32 scalefactor,
45  l_int32 type, l_int32 quality,
46  const char *title, const char *fileout)
47 {
48  return ERROR_INT("function not present", "convertFilesToPdf", 1);
49 }
50 
51 /* ----------------------------------------------------------------------*/
52 
53 l_ok saConvertFilesToPdf(SARRAY *sa, l_int32 res, l_float32 scalefactor,
54  l_int32 type, l_int32 quality,
55  const char *title, const char *fileout)
56 {
57  return ERROR_INT("function not present", "saConvertFilesToPdf", 1);
58 }
59 
60 /* ----------------------------------------------------------------------*/
61 
62 l_ok saConvertFilesToPdfData(SARRAY *sa, l_int32 res,
63  l_float32 scalefactor, l_int32 type,
64  l_int32 quality, const char *title,
65  l_uint8 **pdata, size_t *pnbytes)
66 {
67  return ERROR_INT("function not present", "saConvertFilesToPdfData", 1);
68 }
69 
70 /* ----------------------------------------------------------------------*/
71 
72 l_ok selectDefaultPdfEncoding(PIX *pix, l_int32 *ptype)
73 {
74  return ERROR_INT("function not present", "selectDefaultPdfEncoding", 1);
75 }
76 
77 /* ----------------------------------------------------------------------*/
78 
79 l_ok convertUnscaledFilesToPdf(const char *dirname, const char *substr,
80  const char *title, const char *fileout)
81 {
82  return ERROR_INT("function not present", "convertUnscaledFilesToPdf", 1);
83 }
84 
85 /* ----------------------------------------------------------------------*/
86 
87 l_ok saConvertUnscaledFilesToPdf(SARRAY *sa, const char *title,
88  const char *fileout)
89 {
90  return ERROR_INT("function not present", "saConvertUnscaledFilesToPdf", 1);
91 }
92 
93 /* ----------------------------------------------------------------------*/
94 
95 l_ok saConvertUnscaledFilesToPdfData(SARRAY *sa, const char *title,
96  l_uint8 **pdata, size_t *pnbytes)
97 {
98  return ERROR_INT("function not present",
99  "saConvertUnscaledFilesToPdfData", 1);
100 }
101 
102 /* ----------------------------------------------------------------------*/
103 
104 l_ok convertUnscaledToPdfData(const char *fname, const char *title,
105  l_uint8 **pdata, size_t *pnbytes)
106 {
107  return ERROR_INT("function not present", "convertUnscaledToPdfData", 1);
108 }
109 
110 /* ----------------------------------------------------------------------*/
111 
112 l_ok pixaConvertToPdf(PIXA *pixa, l_int32 res, l_float32 scalefactor,
113  l_int32 type, l_int32 quality,
114  const char *title, const char *fileout)
115 {
116  return ERROR_INT("function not present", "pixaConvertToPdf", 1);
117 }
118 
119 /* ----------------------------------------------------------------------*/
120 
121 l_ok pixaConvertToPdfData(PIXA *pixa, l_int32 res, l_float32 scalefactor,
122  l_int32 type, l_int32 quality, const char *title,
123  l_uint8 **pdata, size_t *pnbytes)
124 {
125  return ERROR_INT("function not present", "pixaConvertToPdfData", 1);
126 }
127 
128 /* ----------------------------------------------------------------------*/
129 
130 l_ok convertToPdf(const char *filein,
131  l_int32 type, l_int32 quality,
132  const char *fileout,
133  l_int32 x, l_int32 y, l_int32 res,
134  const char *title,
135  L_PDF_DATA **plpd, l_int32 position)
136 {
137  return ERROR_INT("function not present", "convertToPdf", 1);
138 }
139 
140 /* ----------------------------------------------------------------------*/
141 
142 l_ok convertImageDataToPdf(l_uint8 *imdata, size_t size,
143  l_int32 type, l_int32 quality,
144  const char *fileout,
145  l_int32 x, l_int32 y, l_int32 res,
146  const char *title,
147  L_PDF_DATA **plpd, l_int32 position)
148 {
149  return ERROR_INT("function not present", "convertImageDataToPdf", 1);
150 }
151 
152 /* ----------------------------------------------------------------------*/
153 
154 l_ok convertToPdfData(const char *filein,
155  l_int32 type, l_int32 quality,
156  l_uint8 **pdata, size_t *pnbytes,
157  l_int32 x, l_int32 y, l_int32 res,
158  const char *title,
159  L_PDF_DATA **plpd, l_int32 position)
160 {
161  return ERROR_INT("function not present", "convertToPdfData", 1);
162 }
163 
164 /* ----------------------------------------------------------------------*/
165 
166 l_ok convertImageDataToPdfData(l_uint8 *imdata, size_t size,
167  l_int32 type, l_int32 quality,
168  l_uint8 **pdata, size_t *pnbytes,
169  l_int32 x, l_int32 y, l_int32 res,
170  const char *title,
171  L_PDF_DATA **plpd, l_int32 position)
172 {
173  return ERROR_INT("function not present", "convertImageDataToPdfData", 1);
174 }
175 
176 /* ----------------------------------------------------------------------*/
177 
178 l_ok pixConvertToPdf(PIX *pix, l_int32 type, l_int32 quality,
179  const char *fileout,
180  l_int32 x, l_int32 y, l_int32 res,
181  const char *title,
182  L_PDF_DATA **plpd, l_int32 position)
183 {
184  return ERROR_INT("function not present", "pixConvertToPdf", 1);
185 }
186 
187 /* ----------------------------------------------------------------------*/
188 
189 l_ok pixWriteStreamPdf(FILE *fp, PIX *pix, l_int32 res, const char *title)
190 {
191  return ERROR_INT("function not present", "pixWriteStreamPdf", 1);
192 }
193 
194 /* ----------------------------------------------------------------------*/
195 
196 l_ok pixWriteMemPdf(l_uint8 **pdata, size_t *pnbytes, PIX *pix,
197  l_int32 res, const char *title)
198 {
199  return ERROR_INT("function not present", "pixWriteMemPdf", 1);
200 }
201 
202 /* ----------------------------------------------------------------------*/
203 
204 l_ok convertSegmentedFilesToPdf(const char *dirname, const char *substr,
205  l_int32 res, l_int32 type, l_int32 thresh,
206  BOXAA *baa, l_int32 quality,
207  l_float32 scalefactor, const char *title,
208  const char *fileout)
209 {
210  return ERROR_INT("function not present", "convertSegmentedFilesToPdf", 1);
211 }
212 
213 /* ----------------------------------------------------------------------*/
214 
215 BOXAA * convertNumberedMasksToBoxaa(const char *dirname, const char *substr,
216  l_int32 numpre, l_int32 numpost)
217 {
218  return (BOXAA *)ERROR_PTR("function not present",
219  "convertNumberedMasksToBoxaa", NULL);
220 }
221 
222 /* ----------------------------------------------------------------------*/
223 
224 l_ok convertToPdfSegmented(const char *filein, l_int32 res, l_int32 type,
225  l_int32 thresh, BOXA *boxa, l_int32 quality,
226  l_float32 scalefactor, const char *title,
227  const char *fileout)
228 {
229  return ERROR_INT("function not present", "convertToPdfSegmented", 1);
230 }
231 
232 /* ----------------------------------------------------------------------*/
233 
234 l_ok pixConvertToPdfSegmented(PIX *pixs, l_int32 res, l_int32 type,
235  l_int32 thresh, BOXA *boxa, l_int32 quality,
236  l_float32 scalefactor, const char *title,
237  const char *fileout)
238 {
239  return ERROR_INT("function not present", "pixConvertToPdfSegmented", 1);
240 }
241 
242 /* ----------------------------------------------------------------------*/
243 
244 l_ok convertToPdfDataSegmented(const char *filein, l_int32 res,
245  l_int32 type, l_int32 thresh, BOXA *boxa,
246  l_int32 quality, l_float32 scalefactor,
247  const char *title,
248  l_uint8 **pdata, size_t *pnbytes)
249 {
250  return ERROR_INT("function not present", "convertToPdfDataSegmented", 1);
251 }
252 
253 /* ----------------------------------------------------------------------*/
254 
255 l_ok pixConvertToPdfDataSegmented(PIX *pixs, l_int32 res, l_int32 type,
256  l_int32 thresh, BOXA *boxa,
257  l_int32 quality, l_float32 scalefactor,
258  const char *title,
259  l_uint8 **pdata, size_t *pnbytes)
260 {
261  return ERROR_INT("function not present", "pixConvertToPdfDataSegmented", 1);
262 }
263 
264 /* ----------------------------------------------------------------------*/
265 
266 l_ok concatenatePdf(const char *dirname, const char *substr,
267  const char *fileout)
268 {
269  return ERROR_INT("function not present", "concatenatePdf", 1);
270 }
271 
272 /* ----------------------------------------------------------------------*/
273 
274 l_ok saConcatenatePdf(SARRAY *sa, const char *fileout)
275 {
276  return ERROR_INT("function not present", "saConcatenatePdf", 1);
277 }
278 
279 /* ----------------------------------------------------------------------*/
280 
281 l_ok ptraConcatenatePdf(L_PTRA *pa, const char *fileout)
282 {
283  return ERROR_INT("function not present", "ptraConcatenatePdf", 1);
284 }
285 
286 /* ----------------------------------------------------------------------*/
287 
288 l_ok concatenatePdfToData(const char *dirname, const char *substr,
289  l_uint8 **pdata, size_t *pnbytes)
290 {
291  return ERROR_INT("function not present", "concatenatePdfToData", 1);
292 }
293 
294 /* ----------------------------------------------------------------------*/
295 
296 l_ok saConcatenatePdfToData(SARRAY *sa, l_uint8 **pdata, size_t *pnbytes)
297 {
298  return ERROR_INT("function not present", "saConcatenatePdfToData", 1);
299 }
300 
301 /* ----------------------------------------------------------------------*/
302 
303 /* --------------------------------------------*/
304 #endif /* !USE_PDFIO */
305 /* --------------------------------------------*/
l_ok saConvertFilesToPdf(SARRAY *sa, l_int32 res, l_float32 scalefactor, l_int32 type, l_int32 quality, const char *title, const char *fileout)
saConvertFilesToPdf()
Definition: pdfio1.c:287
l_ok convertToPdfData(const char *filein, l_int32 type, l_int32 quality, l_uint8 **pdata, size_t *pnbytes, l_int32 x, l_int32 y, l_int32 res, const char *title, L_PDF_DATA **plpd, l_int32 position)
convertToPdfData()
Definition: pdfio1.c:1086
l_ok convertToPdfSegmented(const char *filein, l_int32 res, l_int32 type, l_int32 thresh, BOXA *boxa, l_int32 quality, l_float32 scalefactor, const char *title, const char *fileout)
convertToPdfSegmented()
Definition: pdfio1.c:1644
l_ok convertImageDataToPdf(l_uint8 *imdata, size_t size, l_int32 type, l_int32 quality, const char *fileout, l_int32 x, l_int32 y, l_int32 res, const char *title, L_PDF_DATA **plpd, l_int32 position)
convertImageDataToPdf()
Definition: pdfio1.c:1021
l_ok saConvertFilesToPdfData(SARRAY *sa, l_int32 res, l_float32 scalefactor, l_int32 type, l_int32 quality, const char *title, l_uint8 **pdata, size_t *pnbytes)
saConvertFilesToPdfData()
Definition: pdfio1.c:340
l_ok saConcatenatePdfToData(SARRAY *sa, l_uint8 **pdata, size_t *pnbytes)
saConcatenatePdfToData()
Definition: pdfio1.c:2154
l_ok pixWriteMemPdf(l_uint8 **pdata, size_t *pnbytes, PIX *pix, l_int32 res, const char *title)
pixWriteMemPdf()
Definition: pdfio1.c:1335
l_ok pixConvertToPdfSegmented(PIX *pixs, l_int32 res, l_int32 type, l_int32 thresh, BOXA *boxa, l_int32 quality, l_float32 scalefactor, const char *title, const char *fileout)
pixConvertToPdfSegmented()
Definition: pdfio1.c:1704
l_ok convertFilesToPdf(const char *dirname, const char *substr, l_int32 res, l_float32 scalefactor, l_int32 type, l_int32 quality, const char *title, const char *fileout)
convertFilesToPdf()
Definition: pdfio1.c:239
Definition: pix.h:492
l_ok concatenatePdfToData(const char *dirname, const char *substr, l_uint8 **pdata, size_t *pnbytes)
concatenatePdfToData()
Definition: pdfio1.c:2113
Definition: array.h:116
Definition: pix.h:502
l_ok convertSegmentedFilesToPdf(const char *dirname, const char *substr, l_int32 res, l_int32 type, l_int32 thresh, BOXAA *baa, l_int32 quality, l_float32 scalefactor, const char *title, const char *fileout)
convertSegmentedFilesToPdf()
Definition: pdfio1.c:1415
l_ok convertUnscaledFilesToPdf(const char *dirname, const char *substr, const char *title, const char *fileout)
convertUnscaledFilesToPdf()
Definition: pdfio1.c:520
l_ok saConcatenatePdf(SARRAY *sa, const char *fileout)
saConcatenatePdf()
Definition: pdfio1.c:2033
l_ok pixWriteStreamPdf(FILE *fp, PIX *pix, l_int32 res, const char *title)
pixWriteStreamPdf()
Definition: pdfio1.c:1286
l_ok convertImageDataToPdfData(l_uint8 *imdata, size_t size, l_int32 type, l_int32 quality, l_uint8 **pdata, size_t *pnbytes, l_int32 x, l_int32 y, l_int32 res, const char *title, L_PDF_DATA **plpd, l_int32 position)
convertImageDataToPdfData()
Definition: pdfio1.c:1154
Definition: ptra.h:51
l_ok convertToPdf(const char *filein, l_int32 type, l_int32 quality, const char *fileout, l_int32 x, l_int32 y, l_int32 res, const char *title, L_PDF_DATA **plpd, l_int32 position)
convertToPdf()
Definition: pdfio1.c:950
l_ok selectDefaultPdfEncoding(PIX *pix, l_int32 *ptype)
selectDefaultPdfEncoding()
Definition: pdfio1.c:457
Definition: pix.h:454
l_ok ptraConcatenatePdf(L_PTRA *pa, const char *fileout)
ptraConcatenatePdf()
Definition: pdfio1.c:2069
l_ok convertToPdfDataSegmented(const char *filein, l_int32 res, l_int32 type, l_int32 thresh, BOXA *boxa, l_int32 quality, l_float32 scalefactor, const char *title, l_uint8 **pdata, size_t *pnbytes)
convertToPdfDataSegmented()
Definition: pdfio1.c:1767
l_ok pixConvertToPdf(PIX *pix, l_int32 type, l_int32 quality, const char *fileout, l_int32 x, l_int32 y, l_int32 res, const char *title, L_PDF_DATA **plpd, l_int32 position)
pixConvertToPdf()
Definition: pdfio1.c:1223
l_ok convertUnscaledToPdfData(const char *fname, const char *title, l_uint8 **pdata, size_t *pnbytes)
convertUnscaledToPdfData()
Definition: pdfio1.c:668
l_ok pixaConvertToPdf(PIXA *pixa, l_int32 res, l_float32 scalefactor, l_int32 type, l_int32 quality, const char *title, const char *fileout)
pixaConvertToPdf()
Definition: pdfio1.c:752
l_ok saConvertUnscaledFilesToPdf(SARRAY *sa, const char *title, const char *fileout)
saConvertUnscaledFilesToPdf()
Definition: pdfio1.c:558
BOXAA * convertNumberedMasksToBoxaa(const char *dirname, const char *substr, l_int32 numpre, l_int32 numpost)
convertNumberedMasksToBoxaa()
Definition: pdfio1.c:1535
Definition: pix.h:134
l_ok pixaConvertToPdfData(PIXA *pixa, l_int32 res, l_float32 scalefactor, l_int32 type, l_int32 quality, const char *title, l_uint8 **pdata, size_t *pnbytes)
pixaConvertToPdfData()
Definition: pdfio1.c:804
l_ok saConvertUnscaledFilesToPdfData(SARRAY *sa, const char *title, l_uint8 **pdata, size_t *pnbytes)
saConvertUnscaledFilesToPdfData()
Definition: pdfio1.c:596
l_ok pixConvertToPdfDataSegmented(PIX *pixs, l_int32 res, l_int32 type, l_int32 thresh, BOXA *boxa, l_int32 quality, l_float32 scalefactor, const char *title, l_uint8 **pdata, size_t *pnbytes)
pixConvertToPdfDataSegmented()
Definition: pdfio1.c:1834
l_ok concatenatePdf(const char *dirname, const char *substr, const char *fileout)
concatenatePdf()
Definition: pdfio1.c:1998