Leptonica 1.82.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#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", "convertFilesToPdf", 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", "saConvertFilesToPdf", 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", "saConvertFilesToPdfData", 1);
72}
73
74/* ----------------------------------------------------------------------*/
75
76l_ok selectDefaultPdfEncoding(PIX *pix, l_int32 *ptype)
77{
78 return ERROR_INT("function not present", "selectDefaultPdfEncoding", 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", "convertUnscaledFilesToPdf", 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", "saConvertUnscaledFilesToPdf", 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",
103 "saConvertUnscaledFilesToPdfData", 1);
104}
105
106/* ----------------------------------------------------------------------*/
107
108l_ok convertUnscaledToPdfData(const char *fname, const char *title,
109 l_uint8 **pdata, size_t *pnbytes)
110{
111 return ERROR_INT("function not present", "convertUnscaledToPdfData", 1);
112}
113
114/* ----------------------------------------------------------------------*/
115
116l_ok pixaConvertToPdf(PIXA *pixa, l_int32 res, l_float32 scalefactor,
117 l_int32 type, l_int32 quality,
118 const char *title, const char *fileout)
119{
120 return ERROR_INT("function not present", "pixaConvertToPdf", 1);
121}
122
123/* ----------------------------------------------------------------------*/
124
125l_ok pixaConvertToPdfData(PIXA *pixa, l_int32 res, l_float32 scalefactor,
126 l_int32 type, l_int32 quality, const char *title,
127 l_uint8 **pdata, size_t *pnbytes)
128{
129 return ERROR_INT("function not present", "pixaConvertToPdfData", 1);
130}
131
132/* ----------------------------------------------------------------------*/
133
134l_ok convertToPdf(const char *filein,
135 l_int32 type, l_int32 quality,
136 const char *fileout,
137 l_int32 x, l_int32 y, l_int32 res,
138 const char *title,
139 L_PDF_DATA **plpd, l_int32 position)
140{
141 return ERROR_INT("function not present", "convertToPdf", 1);
142}
143
144/* ----------------------------------------------------------------------*/
145
146l_ok convertImageDataToPdf(l_uint8 *imdata, size_t size,
147 l_int32 type, l_int32 quality,
148 const char *fileout,
149 l_int32 x, l_int32 y, l_int32 res,
150 const char *title,
151 L_PDF_DATA **plpd, l_int32 position)
152{
153 return ERROR_INT("function not present", "convertImageDataToPdf", 1);
154}
155
156/* ----------------------------------------------------------------------*/
157
158l_ok convertToPdfData(const char *filein,
159 l_int32 type, l_int32 quality,
160 l_uint8 **pdata, size_t *pnbytes,
161 l_int32 x, l_int32 y, l_int32 res,
162 const char *title,
163 L_PDF_DATA **plpd, l_int32 position)
164{
165 return ERROR_INT("function not present", "convertToPdfData", 1);
166}
167
168/* ----------------------------------------------------------------------*/
169
170l_ok convertImageDataToPdfData(l_uint8 *imdata, size_t size,
171 l_int32 type, l_int32 quality,
172 l_uint8 **pdata, size_t *pnbytes,
173 l_int32 x, l_int32 y, l_int32 res,
174 const char *title,
175 L_PDF_DATA **plpd, l_int32 position)
176{
177 return ERROR_INT("function not present", "convertImageDataToPdfData", 1);
178}
179
180/* ----------------------------------------------------------------------*/
181
182l_ok pixConvertToPdf(PIX *pix, l_int32 type, l_int32 quality,
183 const char *fileout,
184 l_int32 x, l_int32 y, l_int32 res,
185 const char *title,
186 L_PDF_DATA **plpd, l_int32 position)
187{
188 return ERROR_INT("function not present", "pixConvertToPdf", 1);
189}
190
191/* ----------------------------------------------------------------------*/
192
193l_ok pixWriteStreamPdf(FILE *fp, PIX *pix, l_int32 res, const char *title)
194{
195 return ERROR_INT("function not present", "pixWriteStreamPdf", 1);
196}
197
198/* ----------------------------------------------------------------------*/
199
200l_ok pixWriteMemPdf(l_uint8 **pdata, size_t *pnbytes, PIX *pix,
201 l_int32 res, const char *title)
202{
203 return ERROR_INT("function not present", "pixWriteMemPdf", 1);
204}
205
206/* ----------------------------------------------------------------------*/
207
208l_ok convertSegmentedFilesToPdf(const char *dirname, const char *substr,
209 l_int32 res, l_int32 type, l_int32 thresh,
210 BOXAA *baa, l_int32 quality,
211 l_float32 scalefactor, const char *title,
212 const char *fileout)
213{
214 return ERROR_INT("function not present", "convertSegmentedFilesToPdf", 1);
215}
216
217/* ----------------------------------------------------------------------*/
218
219BOXAA * convertNumberedMasksToBoxaa(const char *dirname, const char *substr,
220 l_int32 numpre, l_int32 numpost)
221{
222 return (BOXAA *)ERROR_PTR("function not present",
223 "convertNumberedMasksToBoxaa", NULL);
224}
225
226/* ----------------------------------------------------------------------*/
227
228l_ok convertToPdfSegmented(const char *filein, l_int32 res, l_int32 type,
229 l_int32 thresh, BOXA *boxa, l_int32 quality,
230 l_float32 scalefactor, const char *title,
231 const char *fileout)
232{
233 return ERROR_INT("function not present", "convertToPdfSegmented", 1);
234}
235
236/* ----------------------------------------------------------------------*/
237
238l_ok pixConvertToPdfSegmented(PIX *pixs, l_int32 res, l_int32 type,
239 l_int32 thresh, BOXA *boxa, l_int32 quality,
240 l_float32 scalefactor, const char *title,
241 const char *fileout)
242{
243 return ERROR_INT("function not present", "pixConvertToPdfSegmented", 1);
244}
245
246/* ----------------------------------------------------------------------*/
247
248l_ok convertToPdfDataSegmented(const char *filein, l_int32 res,
249 l_int32 type, l_int32 thresh, BOXA *boxa,
250 l_int32 quality, l_float32 scalefactor,
251 const char *title,
252 l_uint8 **pdata, size_t *pnbytes)
253{
254 return ERROR_INT("function not present", "convertToPdfDataSegmented", 1);
255}
256
257/* ----------------------------------------------------------------------*/
258
259l_ok pixConvertToPdfDataSegmented(PIX *pixs, l_int32 res, l_int32 type,
260 l_int32 thresh, BOXA *boxa,
261 l_int32 quality, l_float32 scalefactor,
262 const char *title,
263 l_uint8 **pdata, size_t *pnbytes)
264{
265 return ERROR_INT("function not present", "pixConvertToPdfDataSegmented", 1);
266}
267
268/* ----------------------------------------------------------------------*/
269
270l_ok concatenatePdf(const char *dirname, const char *substr,
271 const char *fileout)
272{
273 return ERROR_INT("function not present", "concatenatePdf", 1);
274}
275
276/* ----------------------------------------------------------------------*/
277
278l_ok saConcatenatePdf(SARRAY *sa, const char *fileout)
279{
280 return ERROR_INT("function not present", "saConcatenatePdf", 1);
281}
282
283/* ----------------------------------------------------------------------*/
284
285l_ok ptraConcatenatePdf(L_PTRA *pa, const char *fileout)
286{
287 return ERROR_INT("function not present", "ptraConcatenatePdf", 1);
288}
289
290/* ----------------------------------------------------------------------*/
291
292l_ok concatenatePdfToData(const char *dirname, const char *substr,
293 l_uint8 **pdata, size_t *pnbytes)
294{
295 return ERROR_INT("function not present", "concatenatePdfToData", 1);
296}
297
298/* ----------------------------------------------------------------------*/
299
300l_ok saConcatenatePdfToData(SARRAY *sa, l_uint8 **pdata, size_t *pnbytes)
301{
302 return ERROR_INT("function not present", "saConcatenatePdfToData", 1);
303}
304
305/* ----------------------------------------------------------------------*/
306
307/* --------------------------------------------*/
308#endif /* !USE_PDFIO */
309/* --------------------------------------------*/
l_ok concatenatePdf(const char *dirname, const char *substr, const char *fileout)
concatenatePdf()
Definition: pdfio1.c:2055
l_ok concatenatePdfToData(const char *dirname, const char *substr, l_uint8 **pdata, size_t *pnbytes)
concatenatePdfToData()
Definition: pdfio1.c:2170
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:303
l_ok convertUnscaledFilesToPdf(const char *dirname, const char *substr, const char *title, const char *fileout)
convertUnscaledFilesToPdf()
Definition: pdfio1.c:540
l_ok pixWriteMemPdf(l_uint8 **pdata, size_t *pnbytes, PIX *pix, l_int32 res, const char *title)
pixWriteMemPdf()
Definition: pdfio1.c:1395
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:999
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:358
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:1140
l_ok ptraConcatenatePdf(L_PTRA *pa, const char *fileout)
ptraConcatenatePdf()
Definition: pdfio1.c:2126
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:1469
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:844
l_ok saConcatenatePdfToData(SARRAY *sa, l_uint8 **pdata, size_t *pnbytes)
saConcatenatePdfToData()
Definition: pdfio1.c:2211
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:1286
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:1698
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:790
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:1071
l_ok pixWriteStreamPdf(FILE *fp, PIX *pix, l_int32 res, const char *title)
pixWriteStreamPdf()
Definition: pdfio1.c:1346
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:1208
l_ok saConvertUnscaledFilesToPdf(SARRAY *sa, const char *title, const char *fileout)
saConvertUnscaledFilesToPdf()
Definition: pdfio1.c:578
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:1823
l_ok convertUnscaledToPdfData(const char *fname, const char *title, l_uint8 **pdata, size_t *pnbytes)
convertUnscaledToPdfData()
Definition: pdfio1.c:702
l_ok saConcatenatePdf(SARRAY *sa, const char *fileout)
saConcatenatePdf()
Definition: pdfio1.c:2090
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:1759
l_ok selectDefaultPdfEncoding(PIX *pix, l_int32 *ptype)
selectDefaultPdfEncoding()
Definition: pdfio1.c:477
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:253
l_ok saConvertUnscaledFilesToPdfData(SARRAY *sa, const char *title, l_uint8 **pdata, size_t *pnbytes)
saConvertUnscaledFilesToPdfData()
Definition: pdfio1.c:623
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:1891
BOXAA * convertNumberedMasksToBoxaa(const char *dirname, const char *substr, l_int32 numpre, l_int32 numpost)
convertNumberedMasksToBoxaa()
Definition: pdfio1.c:1588
Definition: pix.h:492
Definition: pix.h:502
Definition: ptra.h:54
Definition: pix.h:139
Definition: pix.h:456
Definition: array.h:127