| 1 |
/* Copyright (C) 2019-2023 Artifex Software, Inc. |
| 2 |
All Rights Reserved. |
| 3 |
|
| 4 |
This software is provided AS-IS with no warranty, either express or |
| 5 |
implied. |
| 6 |
|
| 7 |
This software is distributed under license and may not be copied, |
| 8 |
modified or distributed except as expressly authorized under the terms |
| 9 |
of the license contained in the file LICENSE in this distribution. |
| 10 |
|
| 11 |
Refer to licensing information at http://www.artifex.com or contact |
| 12 |
Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco, |
| 13 |
CA 94129, USA, for further information. |
| 14 |
*/ |
| 15 |
|
| 16 |
#ifndef PDF_MISC |
| 17 |
#define PDF_MISC |
| 18 |
|
| 19 |
int pdfi_get_current_bbox(pdf_context *ctx, gs_rect *bbox, bool stroked); |
| 20 |
int pdfi_name_strcmp(const pdf_name *n, const char *s); |
| 21 |
bool pdfi_string_is(const pdf_string *n, const char *s); |
| 22 |
bool pdfi_name_is(const pdf_name *n, const char *s); |
| 23 |
int pdfi_name_cmp(const pdf_name *n1, const pdf_name *n2); |
| 24 |
int pdfi_string_cmp(const pdf_string *n1, const pdf_string *n2); |
| 25 |
int pdfi_string_from_name(pdf_context *ctx, pdf_name *n, char **str, int *len); |
| 26 |
int pdfi_free_string_from_name(pdf_context *ctx, char *str); |
| 27 |
|
| 28 |
gs_color_space_index pdfi_get_color_space_index(pdf_context *ctx, const gs_color_space *pcs); |
| 29 |
gs_color_space_index pdfi_currentcolorspace(pdf_context *ctx, int index); |
| 30 |
int pdfi_setrenderingintent(pdf_context *ctx, pdf_name *n); |
| 31 |
|
| 32 |
void normalize_rectangle(double *d); |
| 33 |
|
| 34 |
void pdfi_free_cstring_array(pdf_context *ctx, char ***pstrlist); |
| 35 |
int pdfi_parse_name_cstring_array(pdf_context *ctx, char *data, uint64_t size, char ***pstrlist); |
| 36 |
|
| 37 |
|
| 38 |
#endif |