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)  

xbb.c File Reference
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "dpxconf.h"
#include "dpxutil.h"
#include "numbers.h"
#include "system.h"
#include "mem.h"
#include "error.h"
#include "mfileio.h"
#include "pdfobj.h"
#include "pdfdoc.h"
#include "pdfparse.h"
#include "pdfdraw.h"
#include "bmpimage.h"
#include "jpegimage.h"
#include "jp2image.h"
#include "pngimage.h"
#include "dvipdfmx.h"
#include "pdflimits.h"
Include dependency graph for xbb.c:

Go to the source code of this file.

Functions

static void show_version (void)
 
static void show_usage (void)
 
static void usage (void)
 
static void do_time (FILE *file)
 
static char * make_xbb_filename (const char *name)
 
static void write_xbb (char *fname, double bbllx_f, double bblly_f, double bburx_f, double bbury_f, int pdf_version, int pagecount)
 
static void do_bmp (FILE *fp, char *filename)
 
static void do_jpeg (FILE *fp, char *filename)
 
static void do_jp2 (FILE *fp, char *filename)
 
static void do_pdf (FILE *fp, char *filename)
 
int extractbb (int argc, char *argv[])
 

Variables

static enum pdf_page_boundary PageBox = pdf_page_boundary__auto
 
static int Include_Page = 1
 
const char * extensions []
 
static int xbb_to_file = 1
 
static const char * optstrig = ":hB:p:qvObmx"
 
static struct option long_options []
 

Function Documentation

◆ do_bmp()

static void do_bmp ( FILE fp,
char *  filename 
)
static

Definition at line 189 of file xbb.c.

References bmp_get_bbox(), filename, fp, height, WARN(), width, and write_xbb().

Referenced by extractbb().

◆ do_jp2()

static void do_jp2 ( FILE fp,
char *  filename 
)
static

Definition at line 217 of file xbb.c.

References filename, fp, height, jp2_get_bbox(), WARN(), width, and write_xbb().

Referenced by extractbb().

◆ do_jpeg()

static void do_jpeg ( FILE fp,
char *  filename 
)
static

Definition at line 203 of file xbb.c.

References filename, fp, height, jpeg_get_bbox(), WARN(), width, and write_xbb().

Referenced by extractbb().

◆ do_pdf()

◆ do_time()

static void do_time ( FILE file)
static

◆ extractbb()

int extractbb ( int  argc,
char *  argv[] 
)

Definition at line 301 of file xbb.c.

◆ make_xbb_filename()

static char* make_xbb_filename ( const char *  name)
static

◆ show_usage()

static void show_usage ( void  )
static

Definition at line 62 of file xbb.c.

References my_name, and printf().

Referenced by extractbb().

◆ show_version()

static void show_version ( void  )
static

Definition at line 52 of file xbb.c.

References fprintf, my_name, fc-lang::stdout, and VERSION.

Referenced by extractbb().

◆ usage()

static void usage ( void  )
static

Definition at line 80 of file xbb.c.

References exit(), fprintf, my_name, and fc-lang::stdout.

Referenced by extractbb().

◆ write_xbb()

static void write_xbb ( char *  fname,
double  bbllx_f,
double  bblly_f,
double  bburx_f,
double  bbury_f,
int  pdf_version,
int  pagecount 
)
static

Variable Documentation

◆ extensions

const char* extensions[]
Initial value:
= {
".ai", ".AI", ".bmp", ".BMP", ".jpeg", ".JPEG", ".jpg", ".JPG",
".jp2", ".JP2", ".jpf", ".JPF", ".pdf", ".PDF", ".png", ".PNG"
}

Definition at line 101 of file xbb.c.

Referenced by _cairo_gl_has_extension(), _egl_make_current_surfaceless(), extmatch(), find_file(), FindFonts(), and make_xbb_filename().

◆ Include_Page

int Include_Page = 1
static

Definition at line 50 of file xbb.c.

Referenced by do_pdf(), and extractbb().

◆ long_options

struct option long_options[]
static
Initial value:
= {
{"help", 0, 0, 'h'},
{"version", 0, 0, 130},
{0, 0, 0, 0}
}

Definition at line 293 of file xbb.c.

Referenced by extractbb().

◆ optstrig

const char* optstrig = ":hB:p:qvObmx"
static

Definition at line 293 of file xbb.c.

Referenced by extractbb().

◆ PageBox

Definition at line 1 of file xbb.c.

Referenced by do_pdf(), and extractbb().

◆ xbb_to_file

int xbb_to_file = 1
static

Definition at line 106 of file xbb.c.

Referenced by extractbb(), and write_xbb().