Back to index

tetex-bin  3.0
Functions
colorsp.h File Reference
#include "pdfparse.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int color_special (char *buffer, UNSIGNED_QUAD size)
void color_special_ignore_colors (void)

Function Documentation

int color_special ( char *  buffer,
UNSIGNED_QUAD  size 
)

Definition at line 203 of file colorsp.c.

{
  char *start = buffer, *end;
  int result = 0;
  end = buffer + size;
  skip_white (&start, end);
  if (!strncmp (start, "color", strlen("color"))) {
    start += strlen("color");
    result = 1; /* This is a color special */
    if (!ignore_colors)
      do_color_special (&start, end);
  } else if (!strncmp (start, "background", strlen("background"))) {
    start += strlen("background");
    result = 1; /* This is a color special */
    if (!ignore_colors)
      do_background_special (&start, end);
  } else if (!strncmp (start, "landscape", strlen("landscape"))) {
    set_landscape_mode();
    result = 1;
  } else if (!strncmp (start, "papersize", strlen("papersize"))) {
    local_set_paper_size(&start, end);
    result = 1;
  }
  return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 34 of file colorsp.c.

{
  ignore_colors = 1;
}

Here is the caller graph for this function: