Coverage Report

Created: 2026-11-12 07:09

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/ghostpdl/pdf/ghostpdf.h
Line
Count
Source
1
/* Copyright (C) 2018-2026 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
711k
#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
23.5M
#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
589k
#define INITIAL_STACK_SIZE 32
91
485k
#define MAX_STACK_SIZE 524288
92
104k
#define MAX_OBJECT_CACHE_SIZE 200
93
6.63M
#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
31.7k
#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
    int  PDFCacheSize;
178
} cmd_args_t;
179
180
typedef struct encryption_state_s {
181
    /* Encryption, passwords and filter details */
182
    bool is_encrypted;
183
    int V;
184
    int Length;
185
    char *Password;
186
    int PasswordLen;
187
    int R;
188
    /* Revision 1-4 have O and E being 32 bytes, revision 5 and 6 48 bytes */
189
    char O[48];
190
    char U[48];
191
    /* OE and UE are used for revision 5 and 6 encryption */
192
    char OE[32];
193
    char UE[32];
194
    int P;
195
    pdf_string *EKey;
196
    bool EncryptMetadata;
197
    pdf_crypt_filter StrF;
198
    pdf_crypt_filter StmF;
199
    /* decrypting strings is complicated :-(
200
     * Streams are easy, because they can't be in compressed ObjStms, and they
201
     * have to be indirect objects. Strings can be indirect references or directly
202
     * defined, can be in compressed ObjStms and can appear inside content streams.
203
     * When they are in content streams we don't decrypt them, because the *stream*
204
     * was already decrypted. So when strings are directly or indirectly defined,
205
     * and *NOT* defined as part of a content stream, and not in an Objstm, we
206
     * need to decrypt them. We can handle the checking for ObjStm in the actual
207
     * decryption routine, where we also handle picking out the object number of the
208
     * enclosing parent, if its a directly defined string, but we cannot tell
209
     * whether we are executing a content stream or not, so we need to know that. This
210
     * flag is set whenever we are executing a content stream, it is temporarily reset
211
     * by pdfi_dereference() because indirect references can't appear in a content stream
212
     * so we know we need to decrypt any strings that are indirectly referenced. Note that
213
     * Form handling needs to set this flag for the duration of a Form content stream,
214
     * because we can execute Forms outside a page context (eg Annotations).
215
     */
216
    bool decrypt_strings;
217
} encryption_state_t;
218
219
typedef struct page_state_s {
220
    /* Page level PDF objects */
221
    /* DefaultGray, RGB and CMYK spaces */
222
    gs_color_space *DefaultGray_cs;
223
    gs_color_space *DefaultRGB_cs;
224
    gs_color_space *DefaultCMYK_cs;
225
    /* Last-ditch resource lookup */
226
    pdf_dict *CurrentPageDict;
227
    /* Page leve 'Default' transfer functions, black generation and under colour removal */
228
    pdf_transfer_t DefaultTransfers[4];
229
    pdf_transfer_t DefaultBG;
230
    pdf_transfer_t DefaultUCR;
231
    /* This tracks whether the current page uses transparency features */
232
    bool has_transparency;
233
    /* This tracks how many spots are on the current page */
234
    int num_spots;
235
    /* Does this page need overprint support? */
236
    bool needs_OP;
237
    /* Does this page have OP=true in ExtGState? */
238
    bool has_OP;
239
    /* Are we simulating overprint on this page? */
240
    bool simulate_op;
241
    double Size[4];
242
    double Crop[4];
243
    double UserUnit;
244
} page_state_t;
245
246
typedef struct text_state_s {
247
    /* we need the text enumerator in order to call gs_text_setcharwidth() for d0 and d1 */
248
    gs_text_enum_t *current_enum;
249
    /* Detect if we are inside a text block at any time. Nested text blocks are illegal and certain
250
     * marking operations are illegal inside text blocks. We also manipulate this when rendering
251
     * type 3 BuildChar procedures, as those marking operations are legal in a BuildChar, even
252
     * when we are in a text block.
253
     */
254
    int BlockDepth;
255
    /* We set this when in a clipping text rendering mode when we draw the first text
256
     * We use this (and the BlockDepth) to detect whether switching to a non-clipping
257
     * text mode is an error or not.
258
     */
259
    bool TextClip;
260
    /* This is to determine if we get Type 3 Charproc operators (d0 and d1) outside
261
     * a Type 3 BuildChar.
262
     */
263
    bool inside_CharProc;
264
    /* We need to know if we're in a type 3 CharProc which has executed a 'd1' operator.
265
     * Colour operators are technically invalid if we are in a 'd1' context and we must
266
     * ignore them.
267
     * OSS-fuzz #45320 has a type 3 font with a BuildChar which has a 'RG' before the
268
     * d1. This is (obviously) illegal because the spec says the first operation must
269
     * be either a d0 or d1, in addition because of the graphics state depth hackery
270
     * (see comments in pdf_d0() in pdf_font.c) this messes up the reference counting
271
     * of the colour spaces, leading to a crash. So what was a boolean flag is now an
272
     * enumerated type; pdf_type3_d_none, pdf_type3_d0 or pdf_type3_d1.
273
     */
274
    pdf_type3_d_type CharProc_d_type;
275
    /* If there is no current point when we do a BT we start by doing a 0 0 moveto in order
276
     * to establish an initial point. However, this also starts a path. When we finish
277
     * off with a BT we need to clear that path by doing a newpath, otherwise we might
278
     * end up drawing it. See /tests_private/comparefiles/Bug692867.pdf
279
     * We store the initial current poitn validity and if t was not initially valid
280
     * (ie no path) then we do a newpath on a ET.
281
     * BT/ET are not supposed to be nested, and path construction is not permitted inside
282
     * a BT/ET block.
283
     */
284
    bool initial_current_point_valid;
285
} text_state_t;
286
287
typedef struct device_state_s {
288
    /* Parameters/capabilities of the selected device */
289
    /* Needed to determine whether we need to reset the device to handle any spots
290
     * and whether we need to prescan the PDF file to determine how many spot colourants
291
     * (if any) are used in the file.
292
     */
293
    bool spot_capable;
294
    /* for avoiding charpath with pdfwrite */
295
    bool preserve_tr_mode;
296
    /* Are SMask's preserved by device (pdfwrite) */
297
    bool preserve_smask;
298
    bool ForOPDFRead;
299
    bool pdfmark;
300
    bool HighLevelDevice;
301
    /* These are derived from the device parameters rather than extracted from the device */
302
    /* But this is a convenient place to keep them. */
303
    /* Does current output device handle pdfmark */
304
    bool writepdfmarks;
305
    /* Should annotations be preserved or marked for current output device? */
306
    bool annotations_preserved;
307
    /* Should we pass on PageLabels (using a device param, not a pdfmark) */
308
    bool WantsPageLabels;
309
    /* Is the device capable of handling optional content */
310
    bool WantsOptionalContent;
311
    bool PassUserUnit;
312
    bool ModifiesPageSize;
313
    bool ModifiesPageOrder;
314
} device_state_t;
315
316
/*
317
 * resource_paths: for CMaps, iccprofiles, fonts... mainly build time settings and from
318
 * "-I" command line options.
319
 * font_paths: Specific to fonts: from the -sFONTPATH=<> option
320
 * We keep a running count (num_resource_paths) of all, and a one off count of paths that
321
 * came from the build (num_init_resource_paths) so we can keep the (weird) search order
322
 * that gs uses.
323
 */
324
typedef struct search_paths_s
325
{
326
    gs_param_string *resource_paths;
327
    int             num_resource_paths; /* total */
328
    int             num_init_resource_paths; /* number of paths that came from the build */
329
    gs_param_string *font_paths;
330
    int             num_font_paths;
331
    gs_param_string genericresourcedir;
332
    bool search_here_first;
333
} search_paths_t;
334
335
/* It seems Acrobat starts a brand new 'path context' when it runs Form XObjects
336
 * (Bug #709902), without disturbing the 'current path' in the enclosing state.
337
 * So whenever we start a Form XObject we want to keep any existing path record
338
 * but create a new one. When we finish the Form XObject we want to destroy
339
 * the one for the Form, and switch back to the one for the enclosing state
340
 * (if any).
341
 * It's easier to do this by putting the whole path state into it's own structure.
342
 */
343
typedef struct path_record_s
344
{
345
    /* PDF really doesn't have a path in the graphics state. This is different to
346
     * PostScript and has implications; changing the CTM partway through path
347
     * construction affects path segments already accumulated. The path is
348
     * unaffected by gsave and grestore. Previously we've unwound any pending
349
     * path and rerun it, this is causing problems so instead we'll do what
350
     * Acrobat obviously does and build the path outside the graphics state
351
     */
352
    /* We make allocations in chunks for the path to avoid lots of little
353
     * allocations, but we need to know where the end of the current allocation
354
     * is so that we can tell if we would overflow and increase it.
355
     */
356
    char *PathSegments;
357
    /* The current insertion point. */
358
    char *PathSegmentsCurrent;
359
    /* The current limit of the block */
360
    char *PathSegmentsTop;
361
    double *PathPts;
362
    double *PathPtsCurrent;
363
    double *PathPtsTop;
364
} path_record;
365
366
typedef struct pdf_context_s
367
{
368
    pdf_obj_common;
369
    void *instance;
370
    gs_memory_t *memory;
371
372
    /* command line argument storage */
373
    cmd_args_t args;
374
375
    /* Encryption state */
376
    encryption_state_t encryption;
377
378
    /* Text and text state parameters */
379
    text_state_t text;
380
381
    /* The state of the current page being processed */
382
    page_state_t page;
383
384
    device_state_t device_state;
385
386
387
    /* PDF interpreter state */
388
389
    /* State for handling the wacky W and W* operators */
390
    bool clip_active;
391
    bool do_eoclip;
392
393
    /* Doing a high level form for pdfwrite (annotations) */
394
    bool PreservePDFForm;
395
    /* If processing multiple files, the number of pages to add to /Page Destinations
396
     * when handling Outlines and Annotations. This is the number of pages in all
397
     * files completely processed so far.
398
     */
399
    int Pdfmark_InitialPage;
400
401
    /* Optional things from Root */
402
    pdf_dict *OCProperties;
403
    pdf_dict *Collection;
404
405
    /* Optional/Marked Content stuff */
406
    void *OFFlevels;
407
    uint64_t BMClevel;
408
    bool BDCWasOC;
409
410
    /* Bitfields recording whether any errors or warnings were encountered */
411
    char pdf_errors[PDF_ERROR_BYTE_SIZE];
412
    char pdf_warnings[PDF_WARNING_BYTE_SIZE];
413
414
    /* We need a gs_font_dir for gs_definefotn() */
415
    gs_font_dir * font_dir;
416
    /* Obviously we need a graphics state */
417
    gs_gstate *pgs;
418
419
    /* PDF really doesn't have a path in the graphics state. This is different to
420
     * PostScript and has implications; changing the CTM partway through path
421
     * construction affects path segments already accumulated. The path is
422
     * unaffected by gsvae and grestore. Previously we've unwound any pending
423
     * path and rerun it, this is causing problems so instead we'll do what
424
     * Acrobat obviously does and build the path outside the graphics state
425
     */
426
    path_record *PathRecord;
427
428
    /* set up by pdf_impl_set_device, this is the 'high water mark' for
429
     * restoring back to when we close a PDF file. This ensures the device
430
     * is correctly set up for any subesquent file to be run.
431
     */
432
    int job_gstate_level;
433
    /* This is currently used for Patterns, but I suspect needs to be changed to use
434
     * 'the enclosing context'
435
     */
436
    gs_gstate *DefaultQState;
437
438
439
    /* The input PDF filename and the stream for it */
440
    char *filename;
441
    pdf_c_stream *main_stream;
442
443
    /* Length of the main file */
444
    gs_offset_t main_stream_length;
445
    /* offset to the xref table */
446
    gs_offset_t startxref;
447
448
    /* Track whether file is a hybrid. Initially prefer XRefStm but
449
     * if we fail to read the structure using an XRefStm, try again
450
     * using the xref
451
     */
452
    bool prefer_xrefstm;
453
    bool is_hybrid;
454
    /* If we've already repaired the file once, and it still fails, don't try to repair it again */
455
    bool repaired;
456
    /* Repairing is true while the repair code is running, during this we ignore errors and warnings */
457
    bool repairing;
458
459
    /* The HeaderVersion is the declared version from the PDF header, but this
460
     * can be overridden by later trailer dictionaries, so the FinalVersion is
461
     * the version as finally read from the file. Note we don't currently use
462
     * these for anything, we might in future emit warnings if PDF files use features
463
     * inconsistent with the FinalVersion.
464
     */
465
    float HeaderVersion, FinalVersion;
466
467
    /* Document level PDF objects */
468
    xref_table_t *xref_table;
469
    /* Warning! Do not use ctx->Trailer directly as it may be replaced if the file is repaired.
470
     * See pdf_doc.c, pdf_read_Root()
471
     */
472
    pdf_dict *Trailer;
473
    pdf_dict *Root;
474
    pdf_dict *Info;
475
    pdf_dict *PagesTree;
476
    uint64_t num_pages;
477
    uint32_t *page_array; /* cache of page dict object_num's for pdfmark Dest */
478
    pdf_dict *AcroForm;
479
    bool NeedAppearances; /* From AcroForm, if any */
480
481
    /* The interpreter operand stack */
482
    uint32_t stack_size;
483
    pdf_obj **stack_bot;
484
    pdf_obj **stack_top;
485
    pdf_obj **stack_limit;
486
487
    /* The object cache */
488
    uint32_t cache_entries;
489
    pdf_obj_cache_entry *cache_LRU;
490
    pdf_obj_cache_entry *cache_MRU;
491
492
    /* The loop detection state */
493
    uint32_t loop_detection_size;
494
    uint32_t loop_detection_entries;
495
    uint64_t *loop_detection;
496
497
    /* A counter for nesting of arrays and dictionaries. We don't want to allow this
498
     * to be unbounded, because on exit we could end up exceeding the C execution stack
499
     * if we get too deeply nested.
500
     */
501
    uint32_t object_nesting;
502
503
    /* Used to set the 'parent' stream of a stream that gets created by dereferencing
504
     * We should not need this but badly fromed PDF files can use Resources defined in
505
     * an earlier (non-Page) stream object, and Acrobat handles this, so we need to.
506
     * We could haev done this more neatly if we'd known this during design :-(
507
     */
508
    pdf_stream *current_stream;
509
    stream_save current_stream_save;
510
511
    /* A name table :-( */
512
    pdfi_name_entry_t *name_table;
513
514
    gs_string *fontmapfiles;
515
    int num_fontmapfiles;
516
517
    search_paths_t search_paths;
518
    pdf_dict *pdffontmap;
519
    pdf_dict *pdfnativefontmap; /* Explicit mappings take precedence, hence we need separate dictionaries */
520
    pdf_dict *pdf_substitute_fonts;
521
    pdf_dict *pdfcidfmap;
522
    resource_font_cache_t *resource_font_cache;
523
    uint32_t resource_font_cache_size;
524
525
    gx_device *devbbox; /* Cached for use in pdfi_string_bbox */
526
    /* These function pointers can be replaced by ones intended to replicate
527
     * PostScript functionality when running inside the Ghostscript PostScript
528
     * interpreter.
529
     */
530
    int (*finish_page) (struct pdf_context_s *ctx);
531
    int (*get_glyph_name)(gs_font *font, gs_glyph index, gs_const_string *pstr);
532
    int (*get_glyph_index)(gs_font *font, byte *str, uint size, uint *glyph);
533
534
#if REFCNT_DEBUG
535
    uint64_t ref_UID;
536
#endif
537
#if CACHE_STATISTICS
538
    uint64_t hits;
539
    uint64_t misses;
540
    uint64_t compressed_hits;
541
    uint64_t compressed_misses;
542
#endif
543
#if PDFI_LEAK_CHECK
544
    gs_memory_status_t memstat;
545
#endif
546
}pdf_context;
547
548
659k
#define OBJ_CTX(o) ((pdf_context *)(o->ctx))
549
63.4k
#define OBJ_MEMORY(o) OBJ_CTX(o)->memory
550
551
int pdfi_add_paths_to_search_paths(pdf_context *ctx, const char *ppath, int l, bool fontpath);
552
int pdfi_add_initial_paths_to_search_paths(pdf_context *ctx, const char *ppath, int l);
553
int pdfi_add_fontmapfiles(pdf_context *ctx, const char *ppath, int l);
554
555
pdf_context *pdfi_create_context(gs_memory_t *pmem);
556
int pdfi_clear_context(pdf_context *ctx);
557
int pdfi_free_context(pdf_context *ctx);
558
559
int pdfi_get_name_index(pdf_context *ctx, char *name, int len, unsigned int *returned);
560
int pdfi_name_from_index(pdf_context *ctx, int index, unsigned char **name, unsigned int *len);
561
int pdfi_separation_name_from_index(gs_gstate *pgs, gs_separation_name index, unsigned char **name, unsigned int *len);
562
int pdfi_open_pdf_file(pdf_context *ctx, char *filename);
563
int pdfi_set_input_stream(pdf_context *ctx, stream *stm);
564
int pdfi_process_pdf_file(pdf_context *ctx, char *filename);
565
int pdfi_prep_collection(pdf_context *ctx, uint64_t *TotalFiles, char ***names_array);
566
int pdfi_finish_pdf_file(pdf_context *ctx);
567
int pdfi_close_pdf_file(pdf_context *ctx);
568
int pdfi_gstate_from_PS(pdf_context *ctx, gs_gstate *pgs, pdfi_switch_t *i_switch, gsicc_profile_cache_t *profile_cache);
569
void pdfi_gstate_to_PS(pdf_context *ctx, gs_gstate *pgs, pdfi_switch_t *i_switch);
570
int pdfi_output_page_info(pdf_context *ctx, uint64_t page_num);
571
572
void pdfi_report_errors(pdf_context *ctx);
573
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);
574
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);
575
576
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)
577
29.1M
{
578
    /* ignore problems while repairing a file */
579
29.1M
    if (!ctx->repairing) {
580
22.0M
        if (pdfi_error != 0)
581
21.4M
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
22.0M
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
22.0M
    }
585
29.1M
}
Unexecuted instantiation: zpdfops.c:pdfi_set_error_file_line
pdf_loop_detect.c:pdfi_set_error_file_line
Line
Count
Source
577
8.50k
{
578
    /* ignore problems while repairing a file */
579
8.50k
    if (!ctx->repairing) {
580
8.42k
        if (pdfi_error != 0)
581
8.42k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
8.42k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
8.42k
    }
585
8.50k
}
ghostpdf.c:pdfi_set_error_file_line
Line
Count
Source
577
72.7k
{
578
    /* ignore problems while repairing a file */
579
72.7k
    if (!ctx->repairing) {
580
72.7k
        if (pdfi_error != 0)
581
72.7k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
72.7k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
72.7k
    }
585
72.7k
}
pdf_dict.c:pdfi_set_error_file_line
Line
Count
Source
577
4
{
578
    /* ignore problems while repairing a file */
579
4
    if (!ctx->repairing) {
580
4
        if (pdfi_error != 0)
581
4
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
4
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
4
    }
585
4
}
Unexecuted instantiation: pdf_array.c:pdfi_set_error_file_line
pdf_xref.c:pdfi_set_error_file_line
Line
Count
Source
577
20.8k
{
578
    /* ignore problems while repairing a file */
579
20.8k
    if (!ctx->repairing) {
580
20.8k
        if (pdfi_error != 0)
581
20.8k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
20.8k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
20.8k
    }
585
20.8k
}
pdf_int.c:pdfi_set_error_file_line
Line
Count
Source
577
25.9M
{
578
    /* ignore problems while repairing a file */
579
25.9M
    if (!ctx->repairing) {
580
18.9M
        if (pdfi_error != 0)
581
18.4M
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
18.9M
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
18.9M
    }
585
25.9M
}
pdf_file.c:pdfi_set_error_file_line
Line
Count
Source
577
4.10k
{
578
    /* ignore problems while repairing a file */
579
4.10k
    if (!ctx->repairing) {
580
3.38k
        if (pdfi_error != 0)
581
3.38k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
3.38k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
3.38k
    }
585
4.10k
}
Unexecuted instantiation: pdf_path.c:pdfi_set_error_file_line
pdf_colour.c:pdfi_set_error_file_line
Line
Count
Source
577
149
{
578
    /* ignore problems while repairing a file */
579
149
    if (!ctx->repairing) {
580
149
        if (pdfi_error != 0)
581
149
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
149
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
149
    }
585
149
}
Unexecuted instantiation: pdf_pattern.c:pdfi_set_error_file_line
pdf_gstate.c:pdfi_set_error_file_line
Line
Count
Source
577
99
{
578
    /* ignore problems while repairing a file */
579
99
    if (!ctx->repairing) {
580
99
        if (pdfi_error != 0)
581
99
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
99
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
99
    }
585
99
}
Unexecuted instantiation: pdf_stack.c:pdfi_set_error_file_line
pdf_image.c:pdfi_set_error_file_line
Line
Count
Source
577
14.1k
{
578
    /* ignore problems while repairing a file */
579
14.1k
    if (!ctx->repairing) {
580
14.1k
        if (pdfi_error != 0)
581
14.1k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
14.1k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
14.1k
    }
585
14.1k
}
pdf_page.c:pdfi_set_error_file_line
Line
Count
Source
577
3.00k
{
578
    /* ignore problems while repairing a file */
579
3.00k
    if (!ctx->repairing) {
580
3.00k
        if (pdfi_error != 0)
581
680
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
3.00k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
3.00k
    }
585
3.00k
}
pdf_annot.c:pdfi_set_error_file_line
Line
Count
Source
577
61.8k
{
578
    /* ignore problems while repairing a file */
579
61.8k
    if (!ctx->repairing) {
580
61.8k
        if (pdfi_error != 0)
581
61.8k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
61.8k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
61.8k
    }
585
61.8k
}
Unexecuted instantiation: pdf_mark.c:pdfi_set_error_file_line
pdf_font.c:pdfi_set_error_file_line
Line
Count
Source
577
17.7k
{
578
    /* ignore problems while repairing a file */
579
17.7k
    if (!ctx->repairing) {
580
17.7k
        if (pdfi_error != 0)
581
17.7k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
17.7k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
17.7k
    }
585
17.7k
}
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
577
543
{
578
    /* ignore problems while repairing a file */
579
543
    if (!ctx->repairing) {
580
543
        if (pdfi_error != 0)
581
543
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
543
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
543
    }
585
543
}
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
577
3.12k
{
578
    /* ignore problems while repairing a file */
579
3.12k
    if (!ctx->repairing) {
580
3.12k
        if (pdfi_error != 0)
581
3.12k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
3.12k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
3.12k
    }
585
3.12k
}
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
577
167k
{
578
    /* ignore problems while repairing a file */
579
167k
    if (!ctx->repairing) {
580
167k
        if (pdfi_error != 0)
581
167k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
167k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
167k
    }
585
167k
}
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
577
2.07M
{
578
    /* ignore problems while repairing a file */
579
2.07M
    if (!ctx->repairing) {
580
1.98M
        if (pdfi_error != 0)
581
1.98M
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
1.98M
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
1.98M
    }
585
2.07M
}
pdf_repair.c:pdfi_set_error_file_line
Line
Count
Source
577
730k
{
578
    /* ignore problems while repairing a file */
579
730k
    if (!ctx->repairing) {
580
727k
        if (pdfi_error != 0)
581
727k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
727k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
727k
    }
585
730k
}
Unexecuted instantiation: pdf_obj.c:pdfi_set_error_file_line
pdf_doc.c:pdfi_set_error_file_line
Line
Count
Source
577
3.26k
{
578
    /* ignore problems while repairing a file */
579
3.26k
    if (!ctx->repairing) {
580
3.26k
        if (pdfi_error != 0)
581
3.26k
            ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
582
3.26k
        if (ctx->args.verbose_errors)
583
0
            pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
584
3.26k
    }
585
3.26k
}
Unexecuted instantiation: pdf_fapi.c:pdfi_set_error_file_line
Unexecuted instantiation: pdftop.c:pdfi_set_error_file_line
586
587
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)
588
21.9M
{
589
21.9M
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
21.9M
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
781
        if (gs_error < 0)
592
781
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
781
    }
596
21.9M
    return 0;
597
21.9M
}
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
588
53.3k
{
589
53.3k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
53.3k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
53.3k
    return 0;
597
53.3k
}
pdf_dict.c:pdfi_set_error_stop_file_line
Line
Count
Source
588
4
{
589
4
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
4
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
4
    return 0;
597
4
}
Unexecuted instantiation: pdf_array.c:pdfi_set_error_stop_file_line
pdf_xref.c:pdfi_set_error_stop_file_line
Line
Count
Source
588
17.7k
{
589
17.7k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
17.7k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
17.7k
    return 0;
597
17.7k
}
pdf_int.c:pdfi_set_error_stop_file_line
Line
Count
Source
588
20.9M
{
589
20.9M
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
20.9M
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
773
        if (gs_error < 0)
592
773
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
773
    }
596
20.9M
    return 0;
597
20.9M
}
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
588
145
{
589
145
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
145
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
145
    return 0;
597
145
}
Unexecuted instantiation: pdf_pattern.c:pdfi_set_error_stop_file_line
pdf_gstate.c:pdfi_set_error_stop_file_line
Line
Count
Source
588
99
{
589
99
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
99
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
99
    return 0;
597
99
}
Unexecuted instantiation: pdf_stack.c:pdfi_set_error_stop_file_line
pdf_image.c:pdfi_set_error_stop_file_line
Line
Count
Source
588
8.76k
{
589
8.76k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
8.76k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
8.76k
    return 0;
597
8.76k
}
pdf_page.c:pdfi_set_error_stop_file_line
Line
Count
Source
588
3.00k
{
589
3.00k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
3.00k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
4
        if (gs_error < 0)
592
4
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
4
    }
596
3.00k
    return 0;
597
3.00k
}
pdf_annot.c:pdfi_set_error_stop_file_line
Line
Count
Source
588
61.8k
{
589
61.8k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
61.8k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
4
        if (gs_error < 0)
592
4
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
4
    }
596
61.8k
    return 0;
597
61.8k
}
Unexecuted instantiation: pdf_mark.c:pdfi_set_error_stop_file_line
pdf_font.c:pdfi_set_error_stop_file_line
Line
Count
Source
588
17.7k
{
589
17.7k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
17.7k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
17.7k
    return 0;
597
17.7k
}
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
588
3.03k
{
589
3.03k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
3.03k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
3.03k
    return 0;
597
3.03k
}
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
588
167k
{
589
167k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
167k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
167k
    return 0;
597
167k
}
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
588
553k
{
589
553k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
553k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
553k
    return 0;
597
553k
}
pdf_repair.c:pdfi_set_error_stop_file_line
Line
Count
Source
588
84.4k
{
589
84.4k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
84.4k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
84.4k
    return 0;
597
84.4k
}
Unexecuted instantiation: pdf_obj.c:pdfi_set_error_stop_file_line
pdf_doc.c:pdfi_set_error_stop_file_line
Line
Count
Source
588
3.18k
{
589
3.18k
    pdfi_set_error_file_line(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info, file_line);
590
3.18k
    if (ctx->args.pdfstoponerror || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
591
0
        if (gs_error < 0)
592
0
            return gs_error;
593
0
        else
594
0
            return gs_error_unknownerror;
595
0
    }
596
3.18k
    return 0;
597
3.18k
}
Unexecuted instantiation: pdf_fapi.c:pdfi_set_error_stop_file_line
Unexecuted instantiation: pdftop.c:pdfi_set_error_stop_file_line
598
599
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)
600
2.28M
{
601
    /* ignore problems while repairing a file */
602
2.28M
    if (!ctx->repairing) {
603
1.89M
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
1.89M
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
1.89M
    }
607
2.28M
}
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
600
4.46k
{
601
    /* ignore problems while repairing a file */
602
4.46k
    if (!ctx->repairing) {
603
4.46k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
4.46k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
4.46k
    }
607
4.46k
}
pdf_dict.c:pdfi_set_warning_file_line
Line
Count
Source
600
2.13k
{
601
    /* ignore problems while repairing a file */
602
2.13k
    if (!ctx->repairing) {
603
2.12k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
2.12k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
2.12k
    }
607
2.13k
}
Unexecuted instantiation: pdf_array.c:pdfi_set_warning_file_line
pdf_xref.c:pdfi_set_warning_file_line
Line
Count
Source
600
15.1k
{
601
    /* ignore problems while repairing a file */
602
15.1k
    if (!ctx->repairing) {
603
15.1k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
15.1k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
15.1k
    }
607
15.1k
}
pdf_int.c:pdfi_set_warning_file_line
Line
Count
Source
600
877k
{
601
    /* ignore problems while repairing a file */
602
877k
    if (!ctx->repairing) {
603
493k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
493k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
493k
    }
607
877k
}
pdf_file.c:pdfi_set_warning_file_line
Line
Count
Source
600
326
{
601
    /* ignore problems while repairing a file */
602
326
    if (!ctx->repairing) {
603
324
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
324
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
324
    }
607
326
}
pdf_path.c:pdfi_set_warning_file_line
Line
Count
Source
600
78.8k
{
601
    /* ignore problems while repairing a file */
602
78.8k
    if (!ctx->repairing) {
603
78.8k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
78.8k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
78.8k
    }
607
78.8k
}
pdf_colour.c:pdfi_set_warning_file_line
Line
Count
Source
600
84.4k
{
601
    /* ignore problems while repairing a file */
602
84.4k
    if (!ctx->repairing) {
603
84.4k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
84.4k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
84.4k
    }
607
84.4k
}
pdf_pattern.c:pdfi_set_warning_file_line
Line
Count
Source
600
276
{
601
    /* ignore problems while repairing a file */
602
276
    if (!ctx->repairing) {
603
276
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
276
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
276
    }
607
276
}
pdf_gstate.c:pdfi_set_warning_file_line
Line
Count
Source
600
116k
{
601
    /* ignore problems while repairing a file */
602
116k
    if (!ctx->repairing) {
603
116k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
116k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
116k
    }
607
116k
}
pdf_stack.c:pdfi_set_warning_file_line
Line
Count
Source
600
34.2k
{
601
    /* ignore problems while repairing a file */
602
34.2k
    if (!ctx->repairing) {
603
34.2k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
34.2k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
34.2k
    }
607
34.2k
}
pdf_image.c:pdfi_set_warning_file_line
Line
Count
Source
600
45.2k
{
601
    /* ignore problems while repairing a file */
602
45.2k
    if (!ctx->repairing) {
603
45.2k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
45.2k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
45.2k
    }
607
45.2k
}
pdf_page.c:pdfi_set_warning_file_line
Line
Count
Source
600
9.89k
{
601
    /* ignore problems while repairing a file */
602
9.89k
    if (!ctx->repairing) {
603
9.89k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
9.89k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
9.89k
    }
607
9.89k
}
pdf_annot.c:pdfi_set_warning_file_line
Line
Count
Source
600
66.7k
{
601
    /* ignore problems while repairing a file */
602
66.7k
    if (!ctx->repairing) {
603
66.7k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
66.7k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
66.7k
    }
607
66.7k
}
Unexecuted instantiation: pdf_mark.c:pdfi_set_warning_file_line
pdf_font.c:pdfi_set_warning_file_line
Line
Count
Source
600
3.85k
{
601
    /* ignore problems while repairing a file */
602
3.85k
    if (!ctx->repairing) {
603
3.85k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
3.85k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
3.85k
    }
607
3.85k
}
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
pdf_fontps.c:pdfi_set_warning_file_line
Line
Count
Source
600
2
{
601
    /* ignore problems while repairing a file */
602
2
    if (!ctx->repairing) {
603
2
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
2
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
2
    }
607
2
}
pdf_font3.c:pdfi_set_warning_file_line
Line
Count
Source
600
3
{
601
    /* ignore problems while repairing a file */
602
3
    if (!ctx->repairing) {
603
3
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
3
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
3
    }
607
3
}
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
600
710
{
601
    /* ignore problems while repairing a file */
602
710
    if (!ctx->repairing) {
603
710
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
710
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
710
    }
607
710
}
Unexecuted instantiation: pdf_fmap.c:pdfi_set_warning_file_line
pdf_text.c:pdfi_set_warning_file_line
Line
Count
Source
600
403k
{
601
    /* ignore problems while repairing a file */
602
403k
    if (!ctx->repairing) {
603
403k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
403k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
403k
    }
607
403k
}
pdf_shading.c:pdfi_set_warning_file_line
Line
Count
Source
600
756
{
601
    /* ignore problems while repairing a file */
602
756
    if (!ctx->repairing) {
603
756
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
756
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
756
    }
607
756
}
Unexecuted instantiation: pdf_func.c:pdfi_set_warning_file_line
pdf_trans.c:pdfi_set_warning_file_line
Line
Count
Source
600
125
{
601
    /* ignore problems while repairing a file */
602
125
    if (!ctx->repairing) {
603
125
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
125
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
125
    }
607
125
}
Unexecuted instantiation: pdf_device.c:pdfi_set_warning_file_line
pdf_misc.c:pdfi_set_warning_file_line
Line
Count
Source
600
607
{
601
    /* ignore problems while repairing a file */
602
607
    if (!ctx->repairing) {
603
607
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
607
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
607
    }
607
607
}
Unexecuted instantiation: pdf_optcontent.c:pdfi_set_warning_file_line
pdf_check.c:pdfi_set_warning_file_line
Line
Count
Source
600
6.96k
{
601
    /* ignore problems while repairing a file */
602
6.96k
    if (!ctx->repairing) {
603
6.96k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
6.96k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
6.96k
    }
607
6.96k
}
pdf_sec.c:pdfi_set_warning_file_line
Line
Count
Source
600
710
{
601
    /* ignore problems while repairing a file */
602
710
    if (!ctx->repairing) {
603
710
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
710
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
710
    }
607
710
}
Unexecuted instantiation: pdf_utf8.c:pdfi_set_warning_file_line
pdf_deref.c:pdfi_set_warning_file_line
Line
Count
Source
600
3.87k
{
601
    /* ignore problems while repairing a file */
602
3.87k
    if (!ctx->repairing) {
603
3.87k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
3.87k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
3.87k
    }
607
3.87k
}
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
600
522k
{
601
    /* ignore problems while repairing a file */
602
522k
    if (!ctx->repairing) {
603
522k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
522k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
522k
    }
607
522k
}
pdf_fapi.c:pdfi_set_warning_file_line
Line
Count
Source
600
1.90k
{
601
    /* ignore problems while repairing a file */
602
1.90k
    if (!ctx->repairing) {
603
1.90k
        ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
604
1.90k
        if (ctx->args.verbose_warnings)
605
0
            pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
606
1.90k
    }
607
1.90k
}
Unexecuted instantiation: pdftop.c:pdfi_set_warning_file_line
608
609
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)
610
417k
{
611
417k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
417k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
7
        if (gs_error < 0)
614
7
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
7
    }
618
417k
    return 0;
619
417k
}
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
610
4.46k
{
611
4.46k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
4.46k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
4.46k
    return 0;
619
4.46k
}
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
610
326
{
611
326
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
326
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
326
    return 0;
619
326
}
pdf_path.c:pdfi_set_warning_stop_file_line
Line
Count
Source
610
78.8k
{
611
78.8k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
78.8k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
78.8k
    return 0;
619
78.8k
}
pdf_colour.c:pdfi_set_warning_stop_file_line
Line
Count
Source
610
32.2k
{
611
32.2k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
32.2k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
32.2k
    return 0;
619
32.2k
}
Unexecuted instantiation: pdf_pattern.c:pdfi_set_warning_stop_file_line
pdf_gstate.c:pdfi_set_warning_stop_file_line
Line
Count
Source
610
8.74k
{
611
8.74k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
8.74k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
8.74k
    return 0;
619
8.74k
}
Unexecuted instantiation: pdf_stack.c:pdfi_set_warning_stop_file_line
pdf_image.c:pdfi_set_warning_stop_file_line
Line
Count
Source
610
45.2k
{
611
45.2k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
45.2k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
7
        if (gs_error < 0)
614
7
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
7
    }
618
45.2k
    return 0;
619
45.2k
}
pdf_page.c:pdfi_set_warning_stop_file_line
Line
Count
Source
610
7.05k
{
611
7.05k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
7.05k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
7.05k
    return 0;
619
7.05k
}
pdf_annot.c:pdfi_set_warning_stop_file_line
Line
Count
Source
610
66.7k
{
611
66.7k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
66.7k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
66.7k
    return 0;
619
66.7k
}
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
610
710
{
611
710
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
710
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
710
    return 0;
619
710
}
Unexecuted instantiation: pdf_fmap.c:pdfi_set_warning_stop_file_line
pdf_text.c:pdfi_set_warning_stop_file_line
Line
Count
Source
610
130k
{
611
130k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
130k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
130k
    return 0;
619
130k
}
pdf_shading.c:pdfi_set_warning_stop_file_line
Line
Count
Source
610
270
{
611
270
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
270
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
270
    return 0;
619
270
}
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
610
40.6k
{
611
40.6k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
40.6k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
40.6k
    return 0;
619
40.6k
}
pdf_fapi.c:pdfi_set_warning_stop_file_line
Line
Count
Source
610
1.90k
{
611
1.90k
    pdfi_set_warning_file_line(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info, file_line);
612
1.90k
    if (ctx->args.pdfstoponwarning || gs_error == gs_error_Fatal || gs_error == gs_error_VMerror) {
613
0
        if (gs_error < 0)
614
0
            return gs_error;
615
0
        else
616
0
            return gs_error_unknownerror;
617
0
    }
618
1.90k
    return 0;
619
1.90k
}
Unexecuted instantiation: pdftop.c:pdfi_set_warning_stop_file_line
620
621
static inline void pdfi_log_info_file_line(pdf_context *ctx, const char *pdfi_function, const char *info)
622
19.0k
{
623
19.0k
    if (!ctx->args.QUIET)
624
0
        outprintf(ctx->memory, "%s", info);
625
19.0k
}
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
622
8.29k
{
623
8.29k
    if (!ctx->args.QUIET)
624
0
        outprintf(ctx->memory, "%s", info);
625
8.29k
}
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
622
10.7k
{
623
10.7k
    if (!ctx->args.QUIET)
624
0
        outprintf(ctx->memory, "%s", info);
625
10.7k
}
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
Unexecuted instantiation: pdftop.c:pdfi_log_info_file_line
626
627
#if defined(DEBUG) && defined(__FILE__) && defined(__LINE__)
628
#define DEBUG_FILE_LINE 1
629
#define pdfi_log_info(ctx, pdfi_function, info) pdfi_log_info_file_line(ctx, pdfi_function, info)
630
#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__)")")
631
#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__)")")
632
#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__)")")
633
#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__)")")
634
#else
635
#define DEBUG_FILE_LINE 0
636
19.0k
#define pdfi_log_info(ctx, pdfi_function, info) pdfi_log_info_file_line(ctx, pdfi_function, info)
637
417k
#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)
638
1.86M
#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)
639
21.9M
#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)
640
7.17M
#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)
641
#endif
642
643
/* Variants of the above that work in a printf style. */
644
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, ...);
645
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, ...);
646
647
#define PURGE_CACHE_PER_PAGE 0
648
649
#if PURGE_CACHE_PER_PAGE
650
void pdfi_purge_obj_cache(pdf_context *ctx);
651
#endif
652
653
#endif