| 1 |
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. |
| 2 |
|
| 3 |
Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata, |
| 4 |
the dvipdfmx project team. |
| 5 |
|
| 6 |
Copyright (C) 1998, 1999 by Mark A. Wicks <[email protected]> |
| 7 |
|
| 8 |
This program is free software; you can redistribute it and/or modify |
| 9 |
it under the terms of the GNU General Public License as published by |
| 10 |
the Free Software Foundation; either version 2 of the License, or |
| 11 |
(at your option) any later version. |
| 12 |
|
| 13 |
This program is distributed in the hope that it will be useful, |
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with this program; if not, write to the Free Software |
| 20 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef _SPC_UTIL_H_ |
| 24 |
#define _SPC_UTIL_H_ |
| 25 |
|
| 26 |
#include "pdfcolor.h" |
| 27 |
#include "pdfdev.h" |
| 28 |
#include "pdfdoc.h" |
| 29 |
|
| 30 |
#include "specials.h" |
| 31 |
|
| 32 |
/* syntax 1: ((rgb|cmyk|hsb|gray) colorvalues)|colorname |
| 33 |
* syntax 0: pdf_number|pdf_array |
| 34 |
* |
| 35 |
* This is for reading *single* color specification. |
| 36 |
*/ |
| 37 |
extern int spc_util_read_colorspec (struct spc_env *spe, |
| 38 |
pdf_color *colorspec, |
| 39 |
struct spc_arg *args, int syntax); |
| 40 |
extern int spc_util_read_dimtrns (struct spc_env *spe, |
| 41 |
transform_info *dimtrns, |
| 42 |
struct spc_arg *args, int syntax); |
| 43 |
|
| 44 |
extern int spc_util_read_blahblah (struct spc_env *spe, |
| 45 |
transform_info *dimtrns, |
| 46 |
int *page_no, |
| 47 |
enum pdf_page_boundary *bbox_type, |
| 48 |
char **page_name, |
| 49 |
struct spc_arg *args); |
| 50 |
|
| 51 |
|
| 52 |
extern int spc_util_read_numbers (double *values, int num_values, |
| 53 |
struct spc_arg *args); |
| 54 |
extern int spc_util_read_pdfcolor (struct spc_env *spe, |
| 55 |
pdf_color *colorspec, |
| 56 |
struct spc_arg *args, |
| 57 |
pdf_color *defaultcolor); |
| 58 |
|
| 59 |
#endif /* _SPC_UTIL_H_ */ |