w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

epdf.c File Reference
#include "system.h"
#include "mem.h"
#include "mfileio.h"
#include "error.h"
#include "dvipdfmx.h"
#include "pdfobj.h"
#include "pdfdev.h"
#include "pdfdoc.h"
#include "pdfdraw.h"
#include "pdfparse.h"
#include "pdfximage.h"
#include "epdf.h"
#include "dpxutil.h"
Include dependency graph for epdf.c:

Go to the source code of this file.

Classes

struct  operator
 

Enumerations

enum  action {
  action_unknown , action_discard , action_path , action_rect ,
  action_trans , action_clip , action_save , action_restore ,
  action_unknown , action_discard , action_path , action_rect ,
  action_trans , action_clip , action_save , action_restore
}
 

Functions

static pdf_objget_page_content (pdf_file *pf, pdf_obj *page)
 
int pdf_include_page (pdf_ximage *ximage, FILE *image_file, const char *ident, load_options options)
 
static int get_numbers_from_stack (dpx_stack *stack, double *v, int n)
 
int pdf_copy_clip (FILE *image_file, int pageNo, double x_user, double y_user)
 

Variables

static struct operator operators []
 

Enumeration Type Documentation

◆ action

enum action
Enumerator
action_unknown 
action_discard 
action_path 
action_rect 
action_trans 
action_clip 
action_save 
action_restore 
action_unknown 
action_discard 
action_path 
action_rect 
action_trans 
action_clip 
action_save 
action_restore 

Definition at line 220 of file epdf.c.

Function Documentation

◆ get_numbers_from_stack()

static int get_numbers_from_stack ( dpx_stack stack,
double *  v,
int  n 
)
static

Definition at line 264 of file epdf.c.

References dpx_stack_pop(), error, i, n, pdf_number_value(), PDF_OBJ_NUMBERTYPE, pdf_release_obj(), and v.

Referenced by pdf_copy_clip().

◆ get_page_content()

◆ pdf_copy_clip()

◆ pdf_include_page()

Variable Documentation

◆ operators

struct operator operators[]
static
Initial value:
= {
{"b*", action_clip, 0},
{"B*", action_clip, 0},
{"cm", action_trans, 6},
{"f*", action_clip, 0},
{"re", action_rect, 4},
{"W*", action_path, 0},
{"b", action_clip, 0},
{"B", action_clip, 0},
{"c", action_path, 6},
{"f", action_clip, 0},
{"F", action_clip, 0},
{"h", action_path, 0},
{"l", action_path, 2},
{"m", action_path, 2},
{"n", action_path, 0},
{"q", action_save, 0},
{"Q", action_restore, 0},
{"s", action_clip, 0},
{"S", action_clip, 0},
{"v", action_path, 4},
{"W", action_path, 0},
{"y", action_path, 4}
}
@ action_clip
Definition: epdf.c:226
@ action_rect
Definition: epdf.c:224
@ action_save
Definition: epdf.c:227
@ action_restore
Definition: epdf.c:228
@ action_trans
Definition: epdf.c:225
@ action_path
Definition: epdf.c:223

Referenced by pdf_copy_clip().