Coverage Report

Created: 2025-06-10 07:19

/src/ghostpdl/pdf/ghostpdf.h
Line
Count
Source (jump to first uncovered line)
1
/* Copyright (C) 2018-2025 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
17
#ifndef PDF_CONTEXT
18
#define PDF_CONTEXT
19
20
#include "gserrors.h"   /* Most files use this to set errors of the gs_error_ form */
21
#include "gxgstate.h"
22
23
46.9k
#define BUF_SIZE 2048
24
25
/* Limit nesting of arrays and dictionaries. We don't want to allow this
26
 * to be unbounded, because on exit we could end up exceeding the C execution stack
27
 * if we get too deeply nested.
28
 */
29
1.68M
#define MAX_NESTING_DEPTH 100
30
31
#include "pdf_types.h"
32
33
#if defined(MEMENTO)
34
#define PDFI_LEAK_CHECK 0
35
#endif
36
37
#ifndef PDFI_LEAK_CHECK
38
#define PDFI_LEAK_CHECK 0
39
#endif
40
41
/* A structure for setting/resetting the interpreter graphics state
42
 * and some graphics state content when switching between Ghostscript
43
 * and pdfi, when running under GS.
44
 */
45
typedef struct pdf_context_switch {
46
    gs_gstate *pgs;
47
    gs_font *psfont;
48
    gs_gstate_client_procs procs;
49
    void *client_data;
50
    void *profile_cache;
51
} pdfi_switch_t;
52
53
/*
54
 * The interpreter context.
55
 */
56
/* Warnings and errors. The difference between a warning and an error is that we use a warning where
57
 * the file is technically illegal but we can be certain as to the real intent. At the time of writing
58
 * the only case is also a perfect example; the use of an inline image filter abbreviation (eg A85)
59
 * on a stream or object which is not an inline image. Although technically incorrect, its obvious
60
 * how to deal with this.
61
 */
62
typedef enum pdf_error_e {
63
#include "pdf_errors.h"
64
    E_PDF_MAX_ERROR       /* last entry */
65
}pdf_error;
66
67
typedef enum pdf_warning_e {
68
#include "pdf_warnings.h"
69
    W_PDF_MAX_WARNING     /* last entry */
70
} pdf_warning;
71
72
0
#define PDF_ERROR_BYTE_SIZE ((E_PDF_MAX_ERROR - 1) / (sizeof(char) * 8) + 1)
73
0
#define PDF_WARNING_BYTE_SIZE ((W_PDF_MAX_WARNING - 1) / (sizeof(char) * 8) + 1)
74
75
typedef enum pdf_crypt_filter_e {
76
    CRYPT_NONE,     /* Not an encrypted file */
77
    CRYPT_IDENTITY, /* Encrypted file, but no encryption on this object type */
78
    CRYPT_V1,     /* 40-bit RC4 */
79
    CRYPT_V2,     /* 128-bit RC4 */
80
    CRYPT_AESV2,  /* 128-bit AES */
81
    CRYPT_AESV3,  /* 256-bit AES */
82
} pdf_crypt_filter;
83
84
typedef enum pdf_type3_d_type_e {
85
    pdf_type3_d_none,
86
    pdf_type3_d0,
87
    pdf_type3_d1
88
} pdf_type3_d_type;
89
90
32.3k
#define INITIAL_STACK_SIZE 32
91
27.4k
#define MAX_STACK_SIZE 524288
92
121k
#define MAX_OBJECT_CACHE_SIZE 200
93
461k
#define INITIAL_LOOP_TRACKER_SIZE 32
94
95
typedef struct pdf_transfer_s {
96
    gs_mapping_proc proc; /* typedef is in gxtmap.h */
97
    frac values[transfer_map_size];
98
} pdf_transfer_t;
99
100
/* Items we want preserved around content stream executions */
101
typedef struct stream_save_s {
102
    gs_offset_t stream_offset;
103
    int gsave_level;
104
    int stack_count;
105
    gs_matrix intial_CTM;
106
    int group_depth;
107
} stream_save;
108
109
/* resource font object cache - this is a simple lookup table
110
   to match a FontDescriptor containing a FontFile* entry with
111
   a pdfi font object derived from the FontFile stream
112
 */
113
114
2.13k
#define RESOURCE_FONT_CACHE_BLOCK_SIZE 32
115
typedef struct resource_font_cache_s resource_font_cache_t;
116
117
struct resource_font_cache_s
118
{
119
    int desc_obj_num;
120
    pdf_obj *pdffont;
121
};
122
123
typedef struct name_entry_s {
124
    char *name;
125
    int len;
126
    unsigned int index;
127
    void *next;
128
} pdfi_name_entry_t;
129
130
typedef struct cmd_args_s {
131
    /* These are various command line switches, the list is not yet complete */
132
    int first_page;             /* -dFirstPage= */
133
    int last_page;              /* -dLastPage= */
134
    bool pdfdebug;
135
    bool pdfstoponerror;
136
    bool pdfstoponwarning;
137
    bool notransparency;
138
    bool nocidfallback;
139
    int PDFA;
140
    int PDFX;
141
    bool no_pdfmark_outlines; /* can be overridden to true if multi-page output */
142
    bool no_pdfmark_dests;    /* can be overridden to true if multi-page output */
143
    bool pdffitpage;
144
    bool usecropbox;
145
    bool useartbox;
146
    bool usebleedbox;
147
    bool usetrimbox;
148
    bool printed;
149
    bool showacroform;
150
    bool showannots;
151
    char **showannottypes; /* Null terminated array of strings, NULL if none */
152
    bool dopdfmarks;
153
    bool preserveannots;
154
    char **preserveannottypes; /* Null terminated array of strings, NULL if none */
155
    bool preservemarkedcontent;
156
    bool preserveembeddedfiles;
157
    bool preservedocview;
158
    bool nouserunit;
159
    bool renderttnotdef;
160
    bool pdfinfo;
161
    bool UsePDFX3Profile;
162
    bool NOSUBSTDEVICECOLORS;
163
    bool ditherppi;
164
    int PDFX3Profile_num;
165
    char *UseOutputIntent;
166
    char *PageList;
167
    bool QUIET;
168
    bool verbose_errors;
169
    bool verbose_warnings;
170
    gs_string cidfsubstpath;
171
    gs_string cidfsubstfont;
172
    gs_string defaultfont;
173
    bool defaultfont_is_name;
174
175
    bool ignoretounicode;
176
    bool nonativefontmap;
177
} cmd_args_t;
178
179
typedef struct encryption_state_s {
180
    /* Encryption, passwords and filter details */
181
    bool is_encrypted;
182
    int V;
183
    int Length;
184
    char *Password;
185
    int PasswordLen;
186
    int R;
187
    /* Revision 1-4 have O and E being 32 bytes, revision 5 and 6 48 bytes */
188
    char O[48];
189
    char U[48];
190
    /* OE and UE are used for revision 5 and 6 encryption */
191
    char OE[32];
192
    char UE[32];
193
    int P;
194
    pdf_string *EKey;
195
    bool EncryptMetadata;
196
    pdf_crypt_filter StrF;
197
    pdf_crypt_filter StmF;
198
    /* decrypting strings is complicated :-(
199
     * Streams are easy, because they can't be in compressed ObjStms, and they
200
     * have to be indirect objects. Strings can be indirect references or directly
201
     * defined, can be in compressed ObjStms and can appear inside content streams.
202
     * When they are in content streams we don't decrypt them, because the *stream*
203
     * was already decrypted. So when strings are directly or indirectly defined,
204
     * and *NOT* defined as part of a content stream, and not in an Objstm, we
205
     * need to decrypt them. We can handle the checking for ObjStm in the actual
206
     * decryption routine, where we also handle picking out the object number of the
207
     * enclosing parent, if its a directly defined string, but we cannot tell
208
     * whether we are executing a content stream or not, so we need to know that. This
209
     * flag is set whenever we are executing a content stream, it is temporarily reset
210
     * by pdfi_dereference() because indirect references can't appear in a content stream
211
     * so we know we need to decrypt any strings that are indirectly referenced. Note that
212
     * Form handling needs to set this flag for the duration of a Form content stream,
213
     * because we can execute Forms outside a page context (eg Annotations).
214
     */
215
    bool decrypt_strings;
216
} encryption_state_t;
217
218
typedef struct page_state_s {
219
    /* Page level PDF objects */
220
    /* DefaultGray, RGB and CMYK spaces */
221
    gs_color_space *DefaultGray_cs;
222
    gs_color_space *DefaultRGB_cs;
223
    gs_color_space *DefaultCMYK_cs;
224
    /* Last-ditch resource lookup */
225
    pdf_dict *CurrentPageDict;
226
    /* Page leve 'Default' transfer functions, black generation and under colour removal */
227
    pdf_transfer_t DefaultTransfers[4];
228
    pdf_transfer_t DefaultBG;
229
    pdf_transfer_t DefaultUCR;
230
    /* This tracks whether the current page uses transparency features */
231
    bool has_transparency;
232
    /* This tracks how many spots are on the current page */
233
    int num_spots;
234
    /* Does this page need overprint support? */
235
    bool needs_OP;
236
    /* Does this page have OP=true in ExtGState? */
237
    bool has_OP;
238
    /* Are we simulating overprint on this page? */
239
    bool simulate_op;
240
    double Size[4];
241
    double Crop[4];
242
    double UserUnit;
243
} page_state_t;
244
245
typedef struct text_state_s {
246
    /* we need the text enumerator in order to call gs_text_setcharwidth() for d0 and d1 */
247
    gs_text_enum_t *current_enum;
248
    /* Detect if we are inside a text block at any time. Nested text blocks are illegal and certain
249
     * marking operations are illegal inside text blocks. We also manipulate this when rendering
250
     * type 3 BuildChar procedures, as those marking operations are legal in a BuildChar, even
251
     * when we are in a text block.
252
     */
253
    int BlockDepth;
254
    /* We set this when in a clipping text rendering mode when we draw the first text
255
     * We use this (and the BlockDepth) to detect whether switching to a non-clipping
256
     * text mode is an error or not.
257
     */
258
    bool TextClip;
259
    /* This is to determine if we get Type 3 Charproc operators (d0 and d1) outside
260
     * a Type 3 BuildChar.
261
     */
262
    bool inside_CharProc;
263
    /* We need to know if we're in a type 3 CharProc which has executed a 'd1' operator.
264
     * Colour operators are technically invalid if we are in a 'd1' context and we must
265
     * ignore them.
266
     * OSS-fuzz #45320 has a type 3 font with a BuildChar which has a 'RG' before the
267
     * d1. This is (obviously) illegal because the spec says the first operation must
268
     * be either a d0 or d1, in addition because of the graphics state depth hackery
269
     * (see comments in pdf_d0() in pdf_font.c) this messes up the reference counting
270
     * of the colour spaces, leading to a crash. So what was a boolean flag is now an
271
     * enumerated type; pdf_type3_d_none, pdf_type3_d0 or pdf_type3_d1.
272
     */
273
    pdf_type3_d_type CharProc_d_type;
274
    /* If there is no current point when we do a BT we start by doing a 0 0 moveto in order
275
     * to establish an initial point. However, this also starts a path. When we finish
276
     * off with a BT we need to clear that path by doing a newpath, otherwise we might
277
     * end up drawing it. See /tests_private/comparefiles/Bug692867.pdf
278
     * We store the initial current poitn validity and if t was not initially valid
279
     * (ie no path) then we do a newpath on a ET.
280
     * BT/ET are not supposed to be nested, and path construction is not permitted inside
281
     * a BT/ET block.
282
     */
283
    bool initial_current_point_valid;
284
} text_state_t;
285
286
typedef struct device_state_s {
287
    /* Parameters/capabilities of the selected device */
288
    /* Needed to determine whether we need to reset the device to handle any spots
289
     * and whether we need to prescan the PDF file to determine how many spot colourants
290
     * (if any) are used in the file.
291
     */
292
    bool spot_capable;
293
    /* for avoiding charpath with pdfwrite */
294
    bool preserve_tr_mode;
295
    /* Are SMask's preserved by device (pdfwrite) */
296
    bool preserve_smask;
297
    bool ForOPDFRead;
298
    bool pdfmark;
299
    bool HighLevelDevice;
300
    /* These are derived from the device parameters rather than extracted from the device */
301
    /* But this is a convenient place to keep them. */
302
    /* Does current output device handle pdfmark */
303
    bool writepdfmarks;
304
    /* Should annotations be preserved or marked for current output device? */
305
    bool annotations_preserved;
306
    /* Should we pass on PageLabels (using a device param, not a pdfmark) */
307
    bool WantsPageLabels;
308
    /* Is the device capable of handling optional content */
309
    bool WantsOptionalContent;
310
    bool PassUserUnit;
311
    bool ModifiesPageSize;
312
    bool ModifiesPageOrder;
313
} device_state_t;
314
315
/*
316
 * resource_paths: for CMaps, iccprofiles, fonts... mainly build time settings and from
317
 * "-I" command line options.
318
 * font_paths: Specific to fonts: from the -sFONTPATH=<> option
319
 * We keep a running count (num_resource_paths) of all, and a one off count of paths that
320
 * came from the build (num_init_resource_paths) so we can keep the (weird) search order
321
 * that gs uses.
322
 */
323
typedef struct search_paths_s
324
{
325
    gs_param_string *resource_paths;
326
    int             num_resource_paths; /* total */
327
    int             num_init_resource_paths; /* number of paths that came from the build */
328
    gs_param_string *font_paths;
329
    int             num_font_paths;
330
    gs_param_string genericresourcedir;
331
    bool search_here_first;
332
} search_paths_t;
333
334
typedef struct pdf_context_s
335
{
336
    pdf_obj_common;
337
    void *instance;
338
    gs_memory_t *memory;
339
340
    /* command line argument storage */
341
    cmd_args_t args;
342
343
    /* Encryption state */
344
    encryption_state_t encryption;
345
346
    /* Text and text state parameters */
347
    text_state_t text;
348
349
    /* The state of the current page being processed */
350
    page_state_t page;
351
352
    device_state_t device_state;
353
354
355
    /* PDF interpreter state */
356
357
    /* State for handling the wacky W and W* operators */
358
    bool clip_active;
359
    bool do_eoclip;
360
361
    /* Doing a high level form for pdfwrite (annotations) */
362
    bool PreservePDFForm;
363
    /* If processing multiple files, the number of pages to add to /Page Destinations
364
     * when handling Outlines and Annotations. This is the number of pages in all
365
     * files completely processed so far.
366
     */
367
    int Pdfmark_InitialPage;
368
369
    /* Optional things from Root */
370
    pdf_dict *OCProperties;
371
    pdf_dict *Collection;
372
373
    /* Optional/Marked Content stuff */
374
    void *OFFlevels;
375
    uint64_t BMClevel;
376
    bool BDCWasOC;
377
378
    /* Bitfields recording whether any errors or warnings were encountered */
379
    char pdf_errors[PDF_ERROR_BYTE_SIZE];
380
    char pdf_warnings[PDF_WARNING_BYTE_SIZE];
381
382
    /* We need a gs_font_dir for gs_definefotn() */
383
    gs_font_dir * font_dir;
384
    /* Obviously we need a graphics state */
385
    gs_gstate *pgs;
386
387
    /* PDF really doesn't have a path in the graphics state. This is different to
388
     * PostScript and has implications; changing the CTM partway through path
389
     * construction affects path segments already accumulated. The path is
390
     * unaffected by gsvae and grestore. Previously we've unwound any pending
391
     * path and rerun it, this is causing problems so instead we'll do what
392
     * Acrobat obviously does and build the path outside the graphics state
393
     */
394
    /* We make allocations in chunks for the path to avoid lots of little
395
     * allocations, but we need to know where the end of the current allocation
396
     * is so that we can tell if we would overflow and increase it.
397
     */
398
    char *PathSegments;
399
    /* The current insertion point. */
400
    char *PathSegmentsCurrent;
401
    /* The current limit of the block */
402
    char *PathSegmentsTop;
403
    double *PathPts;
404
    double *PathPtsCurrent;
405
    double *PathPtsTop;
406
407
    /* set up by pdf_impl_set_device, this is the 'high water mark' for
408
     * restoring back to when we close a PDF file. This ensures the device
409
     * is correctly set up for any subesquent file to be run.
410
     */
411
    int job_gstate_level;
412
    /* This is currently used for Patterns, but I suspect needs to be changed to use
413
     * 'the enclosing context'
414
     */
415
    gs_gstate *DefaultQState;
416
417
418
    /* The input PDF filename and the stream for it */
419
    char *filename;
420
    pdf_c_stream *main_stream;
421
422
    /* Length of the main file */
423
    gs_offset_t main_stream_length;
424
    /* offset to the xref table */
425
    gs_offset_t startxref;
426
427
    /* Track whether file is a hybrid. Initially prefer XRefStm but
428
     * if we fail to read the structure using an XRefStm, try again
429
     * using the xref
430
     */
431
    bool prefer_xrefstm;
432
    bool is_hybrid;
433
    /* If we've already repaired the file once, and it still fails, don't try to repair it again */
434
    bool repaired;
435
    /* Repairing is true while the repair code is running, during this we ignore errors and warnings */
436
    bool repairing;
437
438
    /* The HeaderVersion is the declared version from the PDF header, but this
439
     * can be overridden by later trailer dictionaries, so the FinalVersion is
440
     * the version as finally read from the file. Note we don't currently use
441
     * these for anything, we might in future emit warnings if PDF files use features
442
     * inconsistent with the FinalVersion.
443
     */
444
    float HeaderVersion, FinalVersion;
445
446
    /* Document level PDF objects */
447
    xref_table_t *xref_table;
448
    /* Warning! Do not use ctx->Trailer directly as it may be replaced if the file is repaired.
449
     * See pdf_doc.c, pdf_read_Root()
450
     */
451
    pdf_dict *Trailer;
452
    pdf_dict *Root;
453
    pdf_dict *Info;
454
    pdf_dict *PagesTree;
455
    uint64_t num_pages;
456
    uint32_t *page_array; /* cache of page dict object_num's for pdfmark Dest */
457
    pdf_dict *AcroForm;
458
    bool NeedAppearances; /* From AcroForm, if any */
459
460
    /* The interpreter operand stack */
461
    uint32_t stack_size;
462
    pdf_obj **stack_bot;
463
    pdf_obj **stack_top;
464
    pdf_obj **stack_limit;
465
466
    /* The object cache */
467
    uint32_t cache_entries;
468
    pdf_obj_cache_entry *cache_LRU;
469
    pdf_obj_cache_entry *cache_MRU;
470
471
    /* The loop detection state */
472
    uint32_t loop_detection_size;
473
    uint32_t loop_detection_entries;
474
    uint64_t *loop_detection;
475
476
    /* A counter for nesting of arrays and dictionaries. We don't want to allow this
477
     * to be unbounded, because on exit we could end up exceeding the C execution stack
478
     * if we get too deeply nested.
479
     */
480
    uint32_t object_nesting;
481
482
    /* Used to set the 'parent' stream of a stream that gets created by dereferencing
483
     * We should not need this but badly fromed PDF files can use Resources defined in
484
     * an earlier (non-Page) stream object, and Acrobat handles this, so we need to.
485
     * We could haev done this more neatly if we'd known this during design :-(
486
     */
487
    pdf_stream *current_stream;
488
    stream_save current_stream_save;
489
490
    /* A name table :-( */
491
    pdfi_name_entry_t *name_table;
492
493
    gs_string *fontmapfiles;
494
    int num_fontmapfiles;
495
496
    search_paths_t search_paths;
497
    pdf_dict *pdffontmap;
498
    pdf_dict *pdfnativefontmap; /* Explicit mappings take precedence, hence we need separate dictionaries */
499
    pdf_dict *pdf_substitute_fonts;
500
    pdf_dict *pdfcidfmap;
501
    resource_font_cache_t *resource_font_cache;
502
    uint32_t resource_font_cache_size;
503
504
    gx_device *devbbox; /* Cached for use in pdfi_string_bbox */
505
    /* These function pointers can be replaced by ones intended to replicate
506
     * PostScript functionality when running inside the Ghostscript PostScript
507
     * interpreter.
508
     */
509
    int (*finish_page) (struct pdf_context_s *ctx);
510
    int (*get_glyph_name)(gs_font *font, gs_glyph index, gs_const_string *pstr);
511
    int (*get_glyph_index)(gs_font *font, byte *str, uint size, uint *glyph);
512
513
#if REFCNT_DEBUG
514
    uint64_t ref_UID;
515
#endif
516
#if CACHE_STATISTICS
517
    uint64_t hits;
518
    uint64_t misses;
519
    uint64_t compressed_hits;
520
    uint64_t compressed_misses;
521
#endif
522
#if PDFI_LEAK_CHECK
523
    gs_memory_status_t memstat;
524
#endif
525
}pdf_context;
526
527
22.4k
#define OBJ_CTX(o) ((pdf_context *)(o->ctx))
528
4.30k
#define OBJ_MEMORY(o) OBJ_CTX(o)->memory
529
530
int pdfi_add_paths_to_search_paths(pdf_context *ctx, const char *ppath, int l, bool fontpath);
531
int pdfi_add_initial_paths_to_search_paths(pdf_context *ctx, const char *ppath, int l);
532
int pdfi_add_fontmapfiles(pdf_context *ctx, const char *ppath, int l);
533
534
pdf_context *pdfi_create_context(gs_memory_t *pmem);
535
int pdfi_clear_context(pdf_context *ctx);
536
int pdfi_free_context(pdf_context *ctx);
537
538
int pdfi_get_name_index(pdf_context *ctx, char *name, int len, unsigned int *returned);
539
int pdfi_name_from_index(pdf_context *ctx, int index, unsigned char **name, unsigned int *len);
540
int pdfi_separation_name_from_index(gs_gstate *pgs, gs_separation_name index, unsigned char **name, unsigned int *len);
541
int pdfi_open_pdf_file(pdf_context *ctx, char *filename);
542
int pdfi_set_input_stream(pdf_context *ctx, stream *stm);
543
int pdfi_process_pdf_file(pdf_context *ctx, char *filename);
544
int pdfi_prep_collection(pdf_context *ctx, uint64_t *TotalFiles, char ***names_array);
545
int pdfi_finish_pdf_file(pdf_context *ctx);
546
int pdfi_close_pdf_file(pdf_context *ctx);
547
int pdfi_gstate_from_PS(pdf_context *ctx, gs_gstate *pgs, pdfi_switch_t *i_switch, gsicc_profile_cache_t *profile_cache);
548
void pdfi_gstate_to_PS(pdf_context *ctx, gs_gstate *pgs, pdfi_switch_t *i_switch);
549
int pdfi_output_page_info(pdf_context *ctx, uint64_t page_num);
550
551
void pdfi_report_errors(pdf_context *ctx);
552
void pdfi_verbose_error(pdf_context *ctx, int gs_error, const char *gs_lib_function, int pdfi_error, const char *pdfi_function_name, const char *extra_info, const char *file_line);
553
void pdfi_verbose_warning(pdf_context *ctx, int gs_error, const char *gs_lib_function, int pdfi_warning, const char *pdfi_function_name, const char *extra_info, const char *file_line);
554
555
static inline void pdfi_set_error_file_line(pdf_context *ctx, int gs_error, const char *gs_lib_function, pdf_error pdfi_error, const char *pdfi_function_name, const char *extra_info, const char *file_line)
556
1.69M
{
557
    /* ignore problems while repairing a file */
558
1.69M
    if (!ctx->repairing) {
559
1.46M
        if (pdfi_error != 0)
560
1.44M
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
1.46M
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
1.46M
    }
564
1.69M
}
Unexecuted instantiation: zpdfops.c:pdfi_set_error_file_line
pdf_loop_detect.c:pdfi_set_error_file_line
Line
Count
Source
556
1.92k
{
557
    /* ignore problems while repairing a file */
558
1.92k
    if (!ctx->repairing) {
559
1.91k
        if (pdfi_error != 0)
560
1.91k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
1.91k
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
1.91k
    }
564
1.92k
}
ghostpdf.c:pdfi_set_error_file_line
Line
Count
Source
556
3.56k
{
557
    /* ignore problems while repairing a file */
558
3.56k
    if (!ctx->repairing) {
559
3.56k
        if (pdfi_error != 0)
560
3.56k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
3.56k
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
3.56k
    }
564
3.56k
}
Unexecuted instantiation: pdf_dict.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_array.c:pdfi_set_error_file_line
pdf_xref.c:pdfi_set_error_file_line
Line
Count
Source
556
1.39k
{
557
    /* ignore problems while repairing a file */
558
1.39k
    if (!ctx->repairing) {
559
1.39k
        if (pdfi_error != 0)
560
1.39k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
1.39k
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
1.39k
    }
564
1.39k
}
pdf_int.c:pdfi_set_error_file_line
Line
Count
Source
556
1.47M
{
557
    /* ignore problems while repairing a file */
558
1.47M
    if (!ctx->repairing) {
559
1.24M
        if (pdfi_error != 0)
560
1.22M
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
1.24M
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
1.24M
    }
564
1.47M
}
pdf_file.c:pdfi_set_error_file_line
Line
Count
Source
556
252
{
557
    /* ignore problems while repairing a file */
558
252
    if (!ctx->repairing) {
559
240
        if (pdfi_error != 0)
560
240
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
240
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
240
    }
564
252
}
Unexecuted instantiation: pdf_path.c:pdfi_set_error_file_line
pdf_colour.c:pdfi_set_error_file_line
Line
Count
Source
556
13
{
557
    /* ignore problems while repairing a file */
558
13
    if (!ctx->repairing) {
559
13
        if (pdfi_error != 0)
560
13
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
13
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
13
    }
564
13
}
Unexecuted instantiation: pdf_pattern.c:pdfi_set_error_file_line
pdf_gstate.c:pdfi_set_error_file_line
Line
Count
Source
556
5
{
557
    /* ignore problems while repairing a file */
558
5
    if (!ctx->repairing) {
559
5
        if (pdfi_error != 0)
560
5
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
5
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
5
    }
564
5
}
Unexecuted instantiation: pdf_stack.c:pdfi_set_error_file_line
pdf_image.c:pdfi_set_error_file_line
Line
Count
Source
556
1.37k
{
557
    /* ignore problems while repairing a file */
558
1.37k
    if (!ctx->repairing) {
559
1.37k
        if (pdfi_error != 0)
560
1.37k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
1.37k
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
1.37k
    }
564
1.37k
}
pdf_page.c:pdfi_set_error_file_line
Line
Count
Source
556
217
{
557
    /* ignore problems while repairing a file */
558
217
    if (!ctx->repairing) {
559
217
        if (pdfi_error != 0)
560
20
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
217
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
217
    }
564
217
}
pdf_annot.c:pdfi_set_error_file_line
Line
Count
Source
556
4.21k
{
557
    /* ignore problems while repairing a file */
558
4.21k
    if (!ctx->repairing) {
559
4.21k
        if (pdfi_error != 0)
560
4.21k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
4.21k
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
4.21k
    }
564
4.21k
}
Unexecuted instantiation: pdf_mark.c:pdfi_set_error_file_line
pdf_font.c:pdfi_set_error_file_line
Line
Count
Source
556
1.22k
{
557
    /* ignore problems while repairing a file */
558
1.22k
    if (!ctx->repairing) {
559
1.22k
        if (pdfi_error != 0)
560
1.22k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
1.22k
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
1.22k
    }
564
1.22k
}
Unexecuted instantiation: pdf_font0.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_ciddec.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_font1.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_font1C.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_fontps.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_font3.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_fontTT.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_font11.c:pdfi_set_error_file_line
pdf_cmap.c:pdfi_set_error_file_line
Line
Count
Source
556
50
{
557
    /* ignore problems while repairing a file */
558
50
    if (!ctx->repairing) {
559
50
        if (pdfi_error != 0)
560
50
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
50
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
50
    }
564
50
}
Unexecuted instantiation: pdf_fmap.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_text.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_shading.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_func.c:pdfi_set_error_file_line
pdf_trans.c:pdfi_set_error_file_line
Line
Count
Source
556
153
{
557
    /* ignore problems while repairing a file */
558
153
    if (!ctx->repairing) {
559
153
        if (pdfi_error != 0)
560
153
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
153
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
153
    }
564
153
}
Unexecuted instantiation: pdf_device.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_misc.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_optcontent.c:pdfi_set_error_file_line
pdf_check.c:pdfi_set_error_file_line
Line
Count
Source
556
14.6k
{
557
    /* ignore problems while repairing a file */
558
14.6k
    if (!ctx->repairing) {
559
14.6k
        if (pdfi_error != 0)
560
14.6k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
14.6k
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
14.6k
    }
564
14.6k
}
Unexecuted instantiation: pdf_sec.c:pdfi_set_error_file_line
Unexecuted instantiation: pdf_utf8.c:pdfi_set_error_file_line
pdf_deref.c:pdfi_set_error_file_line
Line
Count
Source
556
138k
{
557
    /* ignore problems while repairing a file */
558
138k
    if (!ctx->repairing) {
559
131k
        if (pdfi_error != 0)
560
131k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
131k
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
131k
    }
564
138k
}
pdf_repair.c:pdfi_set_error_file_line
Line
Count
Source
556
56.3k
{
557
    /* ignore problems while repairing a file */
558
56.3k
    if (!ctx->repairing) {
559
56.1k
        if (pdfi_error != 0)
560
56.1k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
56.1k
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
56.1k
    }
564
56.3k
}
Unexecuted instantiation: pdf_obj.c:pdfi_set_error_file_line
pdf_doc.c:pdfi_set_error_file_line
Line
Count
Source
556
157
{
557
    /* ignore problems while repairing a file */
558
157
    if (!ctx->repairing) {
559
157
        if (pdfi_error != 0)
560
157
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
561
157
        if (ctx->args.verbose_errors)
562
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
563
157
    }
564
157
}
Unexecuted instantiation: pdf_fapi.c:pdfi_set_error_file_line
565
566
static inline int pdfi_set_error_stop_file_line(pdf_context *ctx, int gs_error, const char *gs_lib_function, pdf_error pdfi_error, const char *pdfi_function_name, const char *extra_info, const char *file_line)
567
1.29M
{
568
1.29M
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
1.29M
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
53
        if (gs_error < 0)
571
53
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
53
    }
575
1.28M
    return 0;
576
1.29M
}
Unexecuted instantiation: zpdfops.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_loop_detect.c:pdfi_set_error_stop_file_line
ghostpdf.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
2.52k
{
568
2.52k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
2.52k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
2.52k
    return 0;
576
2.52k
}
Unexecuted instantiation: pdf_dict.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_array.c:pdfi_set_error_stop_file_line
pdf_xref.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
1.20k
{
568
1.20k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
1.20k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
1.20k
    return 0;
576
1.20k
}
pdf_int.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
1.22M
{
568
1.22M
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
1.22M
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
53
        if (gs_error < 0)
571
53
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
53
    }
575
1.22M
    return 0;
576
1.22M
}
Unexecuted instantiation: pdf_file.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_path.c:pdfi_set_error_stop_file_line
pdf_colour.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
13
{
568
13
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
13
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
13
    return 0;
576
13
}
Unexecuted instantiation: pdf_pattern.c:pdfi_set_error_stop_file_line
pdf_gstate.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
5
{
568
5
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
5
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
5
    return 0;
576
5
}
Unexecuted instantiation: pdf_stack.c:pdfi_set_error_stop_file_line
pdf_image.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
891
{
568
891
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
891
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
891
    return 0;
576
891
}
pdf_page.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
217
{
568
217
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
217
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
217
    return 0;
576
217
}
pdf_annot.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
4.21k
{
568
4.21k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
4.21k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
4.21k
    return 0;
576
4.21k
}
Unexecuted instantiation: pdf_mark.c:pdfi_set_error_stop_file_line
pdf_font.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
1.22k
{
568
1.22k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
1.22k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
1.22k
    return 0;
576
1.22k
}
Unexecuted instantiation: pdf_font0.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_ciddec.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_font1.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_font1C.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_fontps.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_font3.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_fontTT.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_font11.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_cmap.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_fmap.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_text.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_shading.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_func.c:pdfi_set_error_stop_file_line
pdf_trans.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
153
{
568
153
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
153
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
153
    return 0;
576
153
}
Unexecuted instantiation: pdf_device.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_misc.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_optcontent.c:pdfi_set_error_stop_file_line
pdf_check.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
14.6k
{
568
14.6k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
14.6k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
14.6k
    return 0;
576
14.6k
}
Unexecuted instantiation: pdf_sec.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdf_utf8.c:pdfi_set_error_stop_file_line
pdf_deref.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
39.4k
{
568
39.4k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
39.4k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
39.4k
    return 0;
576
39.4k
}
pdf_repair.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
4.67k
{
568
4.67k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
4.67k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
4.67k
    return 0;
576
4.67k
}
Unexecuted instantiation: pdf_obj.c:pdfi_set_error_stop_file_line
pdf_doc.c:pdfi_set_error_stop_file_line
Line
Count
Source
567
155
{
568
155
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
569
155
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
570
0
        if (gs_error < 0)
571
0
            return gs_error;
572
0
        else
573
0
            return gs_error_unknownerror;
574
0
    }
575
155
    return 0;
576
155
}
Unexecuted instantiation: pdf_fapi.c:pdfi_set_error_stop_file_line
577
578
static inline void pdfi_set_warning_file_line(pdf_context *ctx, int gs_error, const char *gs_lib_function, pdf_warning pdfi_warning, const char *pdfi_function_name, const char *extra_info, const char *file_line)
579
214k
{
580
    /* ignore problems while repairing a file */
581
214k
    if (!ctx->repairing) {
582
196k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
196k
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
196k
    }
586
214k
}
Unexecuted instantiation: zpdfops.c:pdfi_set_warning_file_line
Unexecuted instantiation: pdf_loop_detect.c:pdfi_set_warning_file_line
ghostpdf.c:pdfi_set_warning_file_line
Line
Count
Source
579
211
{
580
    /* ignore problems while repairing a file */
581
211
    if (!ctx->repairing) {
582
211
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
211
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
211
    }
586
211
}
pdf_dict.c:pdfi_set_warning_file_line
Line
Count
Source
579
171
{
580
    /* ignore problems while repairing a file */
581
171
    if (!ctx->repairing) {
582
171
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
171
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
171
    }
586
171
}
Unexecuted instantiation: pdf_array.c:pdfi_set_warning_file_line
pdf_xref.c:pdfi_set_warning_file_line
Line
Count
Source
579
1.55k
{
580
    /* ignore problems while repairing a file */
581
1.55k
    if (!ctx->repairing) {
582
1.55k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
1.55k
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
1.55k
    }
586
1.55k
}
pdf_int.c:pdfi_set_warning_file_line
Line
Count
Source
579
44.4k
{
580
    /* ignore problems while repairing a file */
581
44.4k
    if (!ctx->repairing) {
582
26.6k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
26.6k
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
26.6k
    }
586
44.4k
}
pdf_file.c:pdfi_set_warning_file_line
Line
Count
Source
579
16
{
580
    /* ignore problems while repairing a file */
581
16
    if (!ctx->repairing) {
582
14
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
14
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
14
    }
586
16
}
pdf_path.c:pdfi_set_warning_file_line
Line
Count
Source
579
58.1k
{
580
    /* ignore problems while repairing a file */
581
58.1k
    if (!ctx->repairing) {
582
58.1k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
58.1k
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
58.1k
    }
586
58.1k
}
pdf_colour.c:pdfi_set_warning_file_line
Line
Count
Source
579
5.09k
{
580
    /* ignore problems while repairing a file */
581
5.09k
    if (!ctx->repairing) {
582
5.09k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
5.09k
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
5.09k
    }
586
5.09k
}
pdf_pattern.c:pdfi_set_warning_file_line
Line
Count
Source
579
61
{
580
    /* ignore problems while repairing a file */
581
61
    if (!ctx->repairing) {
582
61
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
61
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
61
    }
586
61
}
pdf_gstate.c:pdfi_set_warning_file_line
Line
Count
Source
579
29.9k
{
580
    /* ignore problems while repairing a file */
581
29.9k
    if (!ctx->repairing) {
582
29.9k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
29.9k
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
29.9k
    }
586
29.9k
}
pdf_stack.c:pdfi_set_warning_file_line
Line
Count
Source
579
1.99k
{
580
    /* ignore problems while repairing a file */
581
1.99k
    if (!ctx->repairing) {
582
1.99k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
1.99k
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
1.99k
    }
586
1.99k
}
pdf_image.c:pdfi_set_warning_file_line
Line
Count
Source
579
3.47k
{
580
    /* ignore problems while repairing a file */
581
3.47k
    if (!ctx->repairing) {
582
3.47k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
3.47k
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
3.47k
    }
586
3.47k
}
pdf_page.c:pdfi_set_warning_file_line
Line
Count
Source
579
822
{
580
    /* ignore problems while repairing a file */
581
822
    if (!ctx->repairing) {
582
822
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
822
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
822
    }
586
822
}
pdf_annot.c:pdfi_set_warning_file_line
Line
Count
Source
579
6.28k
{
580
    /* ignore problems while repairing a file */
581
6.28k
    if (!ctx->repairing) {
582
6.28k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
6.28k
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
6.28k
    }
586
6.28k
}
Unexecuted instantiation: pdf_mark.c:pdfi_set_warning_file_line
pdf_font.c:pdfi_set_warning_file_line
Line
Count
Source
579
210
{
580
    /* ignore problems while repairing a file */
581
210
    if (!ctx->repairing) {
582
210
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
210
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
210
    }
586
210
}
Unexecuted instantiation: pdf_font0.c:pdfi_set_warning_file_line
Unexecuted instantiation: pdf_ciddec.c:pdfi_set_warning_file_line
Unexecuted instantiation: pdf_font1.c:pdfi_set_warning_file_line
Unexecuted instantiation: pdf_font1C.c:pdfi_set_warning_file_line
Unexecuted instantiation: pdf_fontps.c:pdfi_set_warning_file_line
Unexecuted instantiation: pdf_font3.c:pdfi_set_warning_file_line
Unexecuted instantiation: pdf_fontTT.c:pdfi_set_warning_file_line
Unexecuted instantiation: pdf_font11.c:pdfi_set_warning_file_line
pdf_cmap.c:pdfi_set_warning_file_line
Line
Count
Source
579
58
{
580
    /* ignore problems while repairing a file */
581
58
    if (!ctx->repairing) {
582
58
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
58
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
58
    }
586
58
}
Unexecuted instantiation: pdf_fmap.c:pdfi_set_warning_file_line
pdf_text.c:pdfi_set_warning_file_line
Line
Count
Source
579
19.5k
{
580
    /* ignore problems while repairing a file */
581
19.5k
    if (!ctx->repairing) {
582
19.5k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
19.5k
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
19.5k
    }
586
19.5k
}
pdf_shading.c:pdfi_set_warning_file_line
Line
Count
Source
579
305
{
580
    /* ignore problems while repairing a file */
581
305
    if (!ctx->repairing) {
582
305
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
305
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
305
    }
586
305
}
Unexecuted instantiation: pdf_func.c:pdfi_set_warning_file_line
pdf_trans.c:pdfi_set_warning_file_line
Line
Count
Source
579
1
{
580
    /* ignore problems while repairing a file */
581
1
    if (!ctx->repairing) {
582
1
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
1
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
1
    }
586
1
}
Unexecuted instantiation: pdf_device.c:pdfi_set_warning_file_line
pdf_misc.c:pdfi_set_warning_file_line
Line
Count
Source
579
2
{
580
    /* ignore problems while repairing a file */
581
2
    if (!ctx->repairing) {
582
2
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
2
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
2
    }
586
2
}
Unexecuted instantiation: pdf_optcontent.c:pdfi_set_warning_file_line
pdf_check.c:pdfi_set_warning_file_line
Line
Count
Source
579
282
{
580
    /* ignore problems while repairing a file */
581
282
    if (!ctx->repairing) {
582
282
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
282
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
282
    }
586
282
}
pdf_sec.c:pdfi_set_warning_file_line
Line
Count
Source
579
52
{
580
    /* ignore problems while repairing a file */
581
52
    if (!ctx->repairing) {
582
52
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
52
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
52
    }
586
52
}
Unexecuted instantiation: pdf_utf8.c:pdfi_set_warning_file_line
pdf_deref.c:pdfi_set_warning_file_line
Line
Count
Source
579
407
{
580
    /* ignore problems while repairing a file */
581
407
    if (!ctx->repairing) {
582
407
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
407
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
407
    }
586
407
}
Unexecuted instantiation: pdf_repair.c:pdfi_set_warning_file_line
Unexecuted instantiation: pdf_obj.c:pdfi_set_warning_file_line
pdf_doc.c:pdfi_set_warning_file_line
Line
Count
Source
579
41.3k
{
580
    /* ignore problems while repairing a file */
581
41.3k
    if (!ctx->repairing) {
582
41.3k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
41.3k
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
41.3k
    }
586
41.3k
}
pdf_fapi.c:pdfi_set_warning_file_line
Line
Count
Source
579
98
{
580
    /* ignore problems while repairing a file */
581
98
    if (!ctx->repairing) {
582
98
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
583
98
        if (ctx->args.verbose_warnings)
584
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
585
98
    }
586
98
}
587
588
static inline int pdfi_set_warning_stop_file_line(pdf_context *ctx, int gs_error, const char *gs_lib_function, pdf_warning pdfi_warning, const char *pdfi_function_name, const char *extra_info, const char *file_line)
589
18.0k
{
590
18.0k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
591
18.0k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
592
1
        if (gs_error < 0)
593
1
            return gs_error;
594
0
        else
595
0
            return gs_error_unknownerror;
596
1
    }
597
18.0k
    return 0;
598
18.0k
}
Unexecuted instantiation: zpdfops.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_loop_detect.c:pdfi_set_warning_stop_file_line
ghostpdf.c:pdfi_set_warning_stop_file_line
Line
Count
Source
589
211
{
590
211
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
591
211
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
592
0
        if (gs_error < 0)
593
0
            return gs_error;
594
0
        else
595
0
            return gs_error_unknownerror;
596
0
    }
597
211
    return 0;
598
211
}
Unexecuted instantiation: pdf_dict.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_array.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_xref.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_int.c:pdfi_set_warning_stop_file_line
pdf_file.c:pdfi_set_warning_stop_file_line
Line
Count
Source
589
16
{
590
16
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
591
16
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
592
0
        if (gs_error < 0)
593
0
            return gs_error;
594
0
        else
595
0
            return gs_error_unknownerror;
596
0
    }
597
16
    return 0;
598
16
}
Unexecuted instantiation: pdf_path.c:pdfi_set_warning_stop_file_line
pdf_colour.c:pdfi_set_warning_stop_file_line
Line
Count
Source
589
3.16k
{
590
3.16k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
591
3.16k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
592
0
        if (gs_error < 0)
593
0
            return gs_error;
594
0
        else
595
0
            return gs_error_unknownerror;
596
0
    }
597
3.16k
    return 0;
598
3.16k
}
Unexecuted instantiation: pdf_pattern.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_gstate.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_stack.c:pdfi_set_warning_stop_file_line
pdf_image.c:pdfi_set_warning_stop_file_line
Line
Count
Source
589
3.45k
{
590
3.45k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
591
3.45k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
592
1
        if (gs_error < 0)
593
1
            return gs_error;
594
0
        else
595
0
            return gs_error_unknownerror;
596
1
    }
597
3.45k
    return 0;
598
3.45k
}
Unexecuted instantiation: pdf_page.c:pdfi_set_warning_stop_file_line
pdf_annot.c:pdfi_set_warning_stop_file_line
Line
Count
Source
589
6.28k
{
590
6.28k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
591
6.28k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
592
0
        if (gs_error < 0)
593
0
            return gs_error;
594
0
        else
595
0
            return gs_error_unknownerror;
596
0
    }
597
6.28k
    return 0;
598
6.28k
}
Unexecuted instantiation: pdf_mark.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_font.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_font0.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_ciddec.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_font1.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_font1C.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_fontps.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_font3.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_fontTT.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_font11.c:pdfi_set_warning_stop_file_line
pdf_cmap.c:pdfi_set_warning_stop_file_line
Line
Count
Source
589
58
{
590
58
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
591
58
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
592
0
        if (gs_error < 0)
593
0
            return gs_error;
594
0
        else
595
0
            return gs_error_unknownerror;
596
0
    }
597
58
    return 0;
598
58
}
Unexecuted instantiation: pdf_fmap.c:pdfi_set_warning_stop_file_line
pdf_text.c:pdfi_set_warning_stop_file_line
Line
Count
Source
589
2.89k
{
590
2.89k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
591
2.89k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
592
0
        if (gs_error < 0)
593
0
            return gs_error;
594
0
        else
595
0
            return gs_error_unknownerror;
596
0
    }
597
2.89k
    return 0;
598
2.89k
}
Unexecuted instantiation: pdf_shading.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_func.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_trans.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_device.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_misc.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_optcontent.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_check.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_sec.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_utf8.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_deref.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_repair.c:pdfi_set_warning_stop_file_line
Unexecuted instantiation: pdf_obj.c:pdfi_set_warning_stop_file_line
pdf_doc.c:pdfi_set_warning_stop_file_line
Line
Count
Source
589
1.82k
{
590
1.82k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
591
1.82k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
592
0
        if (gs_error < 0)
593
0
            return gs_error;
594
0
        else
595
0
            return gs_error_unknownerror;
596
0
    }
597
1.82k
    return 0;
598
1.82k
}
pdf_fapi.c:pdfi_set_warning_stop_file_line
Line
Count
Source
589
98
{
590
98
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
591
98
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
592
0
        if (gs_error < 0)
593
0
            return gs_error;
594
0
        else
595
0
            return gs_error_unknownerror;
596
0
    }
597
98
    return 0;
598
98
}
599
600
static inline void pdfi_log_info_file_line(pdf_context *ctx, const char *pdfi_function, const char *info)
601
1.37k
{
602
1.37k
    if (!ctx->args.QUIET)
603
0
        outprintf(ctx->memory, "%s", info);
604
1.37k
}
Unexecuted instantiation: zpdfops.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_loop_detect.c:pdfi_log_info_file_line
Unexecuted instantiation: ghostpdf.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_dict.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_array.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_xref.c:pdfi_log_info_file_line
pdf_int.c:pdfi_log_info_file_line
Line
Count
Source
601
488
{
602
488
    if (!ctx->args.QUIET)
603
0
        outprintf(ctx->memory, "%s", info);
604
488
}
Unexecuted instantiation: pdf_file.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_path.c:pdfi_log_info_file_line
pdf_colour.c:pdfi_log_info_file_line
Line
Count
Source
601
890
{
602
890
    if (!ctx->args.QUIET)
603
0
        outprintf(ctx->memory, "%s", info);
604
890
}
Unexecuted instantiation: pdf_pattern.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_gstate.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_stack.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_image.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_page.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_annot.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_mark.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_font.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_font0.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_ciddec.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_font1.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_font1C.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_fontps.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_font3.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_fontTT.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_font11.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_cmap.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_fmap.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_text.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_shading.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_func.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_trans.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_device.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_misc.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_optcontent.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_check.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_sec.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_utf8.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_deref.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_repair.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_obj.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_doc.c:pdfi_log_info_file_line
Unexecuted instantiation: pdf_fapi.c:pdfi_log_info_file_line
605
606
#if defined(DEBUG) && defined(__FILE__) && defined(__LINE__)
607
#define DEBUG_FILE_LINE 1
608
#define pdfi_log_info(ctx, pdfi_function, info) pdfi_log_info_file_line(ctx, pdfi_function, info)
609
#define pdfi_set_warning_stop(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info) pdfi_set_warning_stop_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, __FILE__"("GS_STRINGIZE(__LINE__)")")
610
#define pdfi_set_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info) pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, __FILE__"("GS_STRINGIZE(__LINE__)")")
611
#define pdfi_set_error_stop(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info) pdfi_set_error_stop_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, __FILE__"("GS_STRINGIZE(__LINE__)")")
612
#define pdfi_set_error(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info) pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, __FILE__"("GS_STRINGIZE(__LINE__)")")
613
#else
614
#define DEBUG_FILE_LINE 0
615
1.37k
#define pdfi_log_info(ctx, pdfi_function, info) pdfi_log_info_file_line(ctx, pdfi_function, info)
616
18.0k
#define pdfi_set_warning_stop(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info) pdfi_set_warning_stop_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, NULL)
617
196k
#define pdfi_set_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info) pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, NULL)
618
1.29M
#define pdfi_set_error_stop(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info) pdfi_set_error_stop_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, NULL)
619
408k
#define pdfi_set_error(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info) pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, NULL)
620
#endif
621
622
/* Variants of the above that work in a printf style. */
623
int pdfi_set_error_var(pdf_context *ctx, int gs_error, const char *gs_lib_function, pdf_error pdfi_error, const char *pdfi_function_name, const char *fmt, ...);
624
int pdfi_set_warning_var(pdf_context *ctx, int gs_error, const char *gs_lib_function, pdf_warning pdfi_warning, const char *pdfi_function_name, const char *fmt, ...);
625
626
#define PURGE_CACHE_PER_PAGE 0
627
628
#if PURGE_CACHE_PER_PAGE
629
void pdfi_purge_obj_cache(pdf_context *ctx);
630
#endif
631
632
#endif