Leptonica 1.85.0
Image processing and image analysis suite
Loading...
Searching...
No Matches
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#ifdef HAVE_CONFIG_H
36#include <config_auto.h>
37#endif /* HAVE_CONFIG_H */
38
39#include "allheaders.h"
40
41/* --------------------------------------------*/
42#if !USE_PDFIO /* defined in environ.h */
43/* --------------------------------------------*/
44
45/* ----------------------------------------------------------------------*/
46
47l_ok convertFilesToPdf(const char *dirname, const char *substr,
48 l_int32 res, l_float32 scalefactor,
49 l_int32 type, l_int32 quality,
50 const char *title, const char *fileout)
51{
52 return ERROR_INT("function not present", __func__, 1);
53}
54
55/* ----------------------------------------------------------------------*/
56
57l_ok saConvertFilesToPdf(SARRAY *sa, l_int32 res, l_float32 scalefactor,
58 l_int32 type, l_int32 quality,
59 const char *title, const char *fileout)
60{
61 return ERROR_INT("function not present", __func__, 1);
62}
63
64/* ----------------------------------------------------------------------*/
65
66l_ok saConvertFilesToPdfData(SARRAY *sa, l_int32 res,
67 l_float32 scalefactor, l_int32 type,
68 l_int32 quality, const char *title,
69 l_uint8 **pdata, size_t *pnbytes)
70{
71 return ERROR_INT("function not present", __func__, 1);
72}
73
74/* ----------------------------------------------------------------------*/
75
76l_ok selectDefaultPdfEncoding(PIX *pix, l_int32 *ptype)
77{
78 return ERROR_INT("function not present", __func__, 1);
79}
80
81/* ----------------------------------------------------------------------*/
82
83l_ok convertUnscaledFilesToPdf(const char *dirname, const char *substr,
84 const char *title, const char *fileout)
85{
86 return ERROR_INT("function not present", __func__, 1);
87}
88
89/* ----------------------------------------------------------------------*/
90
91l_ok saConvertUnscaledFilesToPdf(SARRAY *sa, const char *title,
92 const char *fileout)
93{
94 return ERROR_INT("function not present", __func__, 1);
95}
96
97/* ----------------------------------------------------------------------*/
98
99l_ok saConvertUnscaledFilesToPdfData(SARRAY *sa, const char *title,
100 l_uint8 **pdata, size_t *pnbytes)
101{
102 return ERROR_INT("function not present", __func__, 1);
103}
104
105/* ----------------------------------------------------------------------*/
106
107l_ok convertUnscaledToPdfData(const char *fname, const char *title,
108 l_uint8 **pdata, size_t *pnbytes)
109{
110 return ERROR_INT("function not present", __func__, 1);
111}
112
113/* ----------------------------------------------------------------------*/
114
115l_ok pixaConvertToPdf(PIXA *pixa, l_int32 res, l_float32 scalefactor,
116 l_int32 type, l_int32 quality,
117 const char *title, const char *fileout)
118{
119 return ERROR_INT("function not present", __func__, 1);
120}
121
122/* ----------------------------------------------------------------------*/
123
124l_ok pixaConvertToPdfData(PIXA *pixa, l_int32 res, l_float32 scalefactor,
125 l_int32 type, l_int32 quality, const char *title,
126 l_uint8 **pdata, size_t *pnbytes)
127{
128 return ERROR_INT("function not present", __func__, 1);
129}
130
131/* ----------------------------------------------------------------------*/
132
133l_ok convertToPdf(const char *filein,
134 l_int32 type, l_int32 quality,
135 const char *fileout,
136 l_int32 x, l_int32 y, l_int32 res,
137 const char *title,
138 L_PDF_DATA **plpd, l_int32 position)
139{
140 return ERROR_INT("function not present", __func__, 1);
141}
142
143/* ----------------------------------------------------------------------*/
144
145l_ok convertImageDataToPdf(l_uint8 *imdata, size_t size,
146 l_int32 type, l_int32 quality,
147 const char *fileout,
148 l_int32 x, l_int32 y, l_int32 res,
149 const char *title,
150 L_PDF_DATA **plpd, l_int32 position)
151{
152 return ERROR_INT("function not present", __func__, 1);
153}
154
155/* ----------------------------------------------------------------------*/
156
157l_ok convertToPdfData(const char *filein,
158 l_int32 type, l_int32 quality,
159 l_uint8 **pdata, size_t *pnbytes,
160 l_int32 x, l_int32 y, l_int32 res,
161 const char *title,
162 L_PDF_DATA **plpd, l_int32 position)
163{
164 return ERROR_INT("function not present", __func__, 1);
165}
166
167/* ----------------------------------------------------------------------*/
168
169l_ok convertImageDataToPdfData(l_uint8 *imdata, size_t size,
170 l_int32 type, l_int32 quality,
171 l_uint8 **pdata, size_t *pnbytes,
172 l_int32 x, l_int32 y, l_int32 res,
173 const char *title,
174 L_PDF_DATA **plpd, l_int32 position)
175{
176 return ERROR_INT("function not present", __func__, 1);
177}
178
179/* ----------------------------------------------------------------------*/
180
181l_ok pixConvertToPdf(PIX *pix, l_int32 type, l_int32 quality,
182 const char *fileout,
183 l_int32 x, l_int32 y, l_int32 res,
184 const char *title,
185 L_PDF_DATA **plpd, l_int32 position)
186{
187 return ERROR_INT("function not present", __func__, 1);
188}
189
190/* ----------------------------------------------------------------------*/
191
192l_ok pixWriteStreamPdf(FILE *fp, PIX *pix, l_int32 res, const char *title)
193{
194 return ERROR_INT("function not present", __func__, 1);
195}
196
197/* ----------------------------------------------------------------------*/
198
199l_ok pixWriteMemPdf(l_uint8 **pdata, size_t *pnbytes, PIX *pix,
200 l_int32 res, const char *title)
201{
202 return ERROR_INT("function not present", __func__, 1);
203}
204
205/* ----------------------------------------------------------------------*/
206
207l_ok convertSegmentedFilesToPdf(const char *dirname, const char *substr,
208 l_int32 res, l_int32 type, l_int32 thresh,
209 BOXAA *baa, l_int32 quality,
210 l_float32 scalefactor, const char *title,
211 const char *fileout)
212{
213 return ERROR_INT("function not present", __func__, 1);
214}
215
216/* ----------------------------------------------------------------------*/
217
218BOXAA * convertNumberedMasksToBoxaa(const char *dirname, const char *substr,
219 l_int32 numpre, l_int32 numpost)
220{
221 return (BOXAA *)ERROR_PTR("function not present", __func__, NULL);
222}
223
224/* ----------------------------------------------------------------------*/
225
226l_ok convertToPdfSegmented(const char *filein, l_int32 res, l_int32 type,
227 l_int32 thresh, BOXA *boxa, l_int32 quality,
228 l_float32 scalefactor, const char *title,
229 const char *fileout)
230{
231 return ERROR_INT("function not present", __func__, 1);
232}
233
234/* ----------------------------------------------------------------------*/
235
236l_ok pixConvertToPdfSegmented(PIX *pixs, l_int32 res, l_int32 type,
237 l_int32 thresh, BOXA *boxa, l_int32 quality,
238 l_float32 scalefactor, const char *title,
239 const char *fileout)
240{
241 return ERROR_INT("function not present", __func__, 1);
242}
243
244/* ----------------------------------------------------------------------*/
245
246l_ok convertToPdfDataSegmented(const char *filein, l_int32 res,
247 l_int32 type, l_int32 thresh, BOXA *boxa,
248 l_int32 quality, l_float32 scalefactor,
249 const char *title,
250 l_uint8 **pdata, size_t *pnbytes)
251{
252 return ERROR_INT("function not present", __func__, 1);
253}
254
255/* ----------------------------------------------------------------------*/
256
257l_ok pixConvertToPdfDataSegmented(PIX *pixs, l_int32 res, l_int32 type,
258 l_int32 thresh, BOXA *boxa,
259 l_int32 quality, l_float32 scalefactor,
260 const char *title,
261 l_uint8 **pdata, size_t *pnbytes)
262{
263 return ERROR_INT("function not present", __func__, 1);
264}
265
266/* ----------------------------------------------------------------------*/
267
268l_ok concatenatePdf(const char *dirname, const char *substr,
269 const char *fileout)
270{
271 return ERROR_INT("function not present", __func__, 1);
272}
273
274/* ----------------------------------------------------------------------*/
275
276l_ok saConcatenatePdf(SARRAY *sa, const char *fileout)
277{
278 return ERROR_INT("function not present", __func__, 1);
279}
280
281/* ----------------------------------------------------------------------*/
282
283l_ok ptraConcatenatePdf(L_PTRA *pa, const char *fileout)
284{
285 return ERROR_INT("function not present", __func__, 1);
286}
287
288/* ----------------------------------------------------------------------*/
289
290l_ok concatenatePdfToData(const char *dirname, const char *substr,
291 l_uint8 **pdata, size_t *pnbytes)
292{
293 return ERROR_INT("function not present", __func__, 1);
294}
295
296/* ----------------------------------------------------------------------*/
297
298l_ok saConcatenatePdfToData(SARRAY *sa, l_uint8 **pdata, size_t *pnbytes)
299{
300 return ERROR_INT("function not present", __func__, 1);
301}
302
303/* ----------------------------------------------------------------------*/
304
305/* --------------------------------------------*/
306#endif /* !USE_PDFIO */
307/* --------------------------------------------*/
Definition ptra.h:54