Back to index

tetex-bin  3.0
pdfdev.h
Go to the documentation of this file.
00001 /*  $Header$
00002 
00003     This is dvipdfm, a DVI to PDF translator.
00004     Copyright (C) 1998, 1999 by Mark A. Wicks
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019     
00020     The author may be contacted via the e-mail address
00021 
00022        mwicks@kettering.edu
00023 */
00024 
00025        
00026 #ifndef PDFDEV_H
00027 #define PDFDEV_H
00028 
00029 #include "numbers.h"
00030 #include "pdfobj.h"
00031 
00032 typedef signed long spt_t;
00033 
00034 extern void dev_init(double scale, double x_offset, double y_offset);
00035 extern void dev_set_verbose (void);
00036 extern double pdf_dev_scale (void);
00037 extern void dev_close (void);
00038 extern void dev_read_mapfile (char *filename);
00039 extern int dev_locate_font (const char *name, spt_t ptsize);
00040 extern int dev_font_tfm (int dev_font_id);
00041 extern spt_t dev_font_sptsize (int dev_font_id);
00042 extern void dev_close_all_fonts (void);
00043 extern void dev_bop (void);
00044 extern void dev_eop (void);
00045 extern void dev_reselect_font (void);
00046 extern void dev_set_string (spt_t xpos, spt_t ypos, unsigned char *ch,
00047                          int len, spt_t width, int font_id);
00048 extern void dev_set_page_size (double width, double height);
00049 extern void dev_rule (spt_t xpos, spt_t ypos, spt_t width, spt_t height);
00050 extern double dev_phys_x (void);
00051 extern double dev_phys_y (void);
00052 extern void dev_begin_rgb_color (double r, double g, double b);
00053 extern void dev_set_def_rgb_color (double r, double g, double b);
00054 extern void dev_begin_cmyk_color (double c, double m, double y, double k);
00055 extern void dev_set_def_cmyk_color (double c, double m, double y, double k);
00056 extern void dev_begin_gray (double value);
00057 extern void dev_set_def_gray (double value);
00058 extern void dev_begin_named_color (char *s);
00059 extern void dev_set_def_named_color (char *s);
00060 extern void dev_end_color (void);
00061 extern void dev_do_color(void);
00062 extern void dev_bg_rgb_color (double r, double g, double b);
00063 extern void dev_bg_cmyk_color (double c, double m, double y, double k);
00064 extern void dev_bg_gray (double value);
00065 extern void dev_bg_named_color (char *s);
00066 extern void dev_begin_xform (double xscale, double yscale, double
00067                           rotate, double x_user, double y_user);
00068 extern void dev_end_xform (void);
00069 extern int  dev_xform_depth (void);
00070 extern void dev_close_all_xforms (int depth);
00071 
00072 extern void dev_add_comment (char *comment);
00073 extern void dev_do_special (void *buffer, UNSIGNED_QUAD size,
00074                          spt_t x_user, spt_t y_user);
00075 extern double dev_page_height(void);
00076 extern double dev_page_width(void);
00077 /* graphics_mode() would normally be local, but it is needed by the
00078    MetaPost inclusion routine */
00079 extern void graphics_mode (void);
00080 extern void dev_stack_depth (unsigned int depth);
00081 extern void dev_tag_depth (void);
00082 extern void dev_set_box (void);
00083 extern void dev_untag_depth (void);
00084 extern void dev_expand_box (spt_t width, spt_t height, spt_t depth);
00085 extern void dev_link_annot (unsigned char flag);
00086 #endif /* PDFDEV_H */
00087 
00088 
00089 
00090 
00091