Back to index

tetex-bin  3.0
epdf.h
Go to the documentation of this file.
00001 /*
00002 Copyright (c) 1996-2004 Han The Thanh, <thanh@pdftex.org>
00003 
00004 This file is part of pdfTeX.
00005 
00006 pdfTeX 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 pdfTeX 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 pdfTeX; if not, write to the Free Software
00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 $Id: //depot/Build/source.development/TeX/texk/web2c/pdftexdir/epdf.h#15 $
00021 */
00022 
00023 extern "C" {
00024 
00025 #include <kpathsea/c-auto.h>
00026 
00027 /* the following code is extremly ugly but needed for including web2c/config.h */
00028 
00029 #include <kpathsea/c-proto.h>     /* define P?H macros */
00030 
00031 typedef const char *const_string; /* including kpathsea/types.h doesn't work on some systems */
00032 
00033 #define KPATHSEA_CONFIG_H         /* avoid including other kpathsea header files */
00034                                   /* from web2c/config.h */
00035 
00036 #ifdef CONFIG_H                   /* CONFIG_H has been defined by some xpdf */
00037 #undef CONFIG_H                   /* header file */
00038 #endif
00039 
00040 #include <web2c/c-auto.h>         /* define SIZEOF_LONG */
00041 #include <web2c/config.h>         /* define type integer */
00042 
00043 #include <web2c/pdftexdir/ptexmac.h>
00044 
00045 #define pdfbufsize      pdfbufmax
00046 
00047 extern float epdf_width;
00048 extern float epdf_height;
00049 extern float epdf_orig_x;
00050 extern float epdf_orig_y;
00051 extern integer epdf_selected_page;
00052 extern integer epdf_num_pages;
00053 extern integer epdf_page_box;
00054 extern integer epdf_always_use_pdf_pagebox;
00055 extern void *epdf_doc;
00056 extern void *epdf_xref;
00057 
00058 extern integer pdfstreamlength;
00059 extern integer pdfptr;
00060 typedef unsigned char eightbits  ;
00061 extern eightbits pdfbuf[];
00062 extern integer pdfbufmax;
00063 
00064 extern char notdef[];
00065 
00066 extern int is_subsetable(struct fm_entry *);
00067 extern int is_type1(struct fm_entry *);
00068 extern struct fm_entry * lookup_fontmap(char *);
00069 extern integer get_fontfile(struct fm_entry *);
00070 extern integer get_fontname(struct fm_entry *);
00071 extern integer pdfnewobjnum(void);
00072 extern integer read_pdf_info(char*, char*, integer, integer, integer, integer);
00073 extern void embed_whole_font(struct fm_entry *);
00074 extern void epdf_check_mem(void);
00075 extern void epdf_delete(void);
00076 extern void epdf_free(void);
00077 extern void mark_glyphs(struct fm_entry *, char *);
00078 extern void pdf_printf(const char *fmt,...);
00079 extern void pdf_puts(const char *);
00080 extern void pdfbeginstream(void);
00081 extern void pdfendobj(void);
00082 extern void pdfendstream(void);
00083 extern void pdfflush(void);
00084 extern void pdftex_fail(const char *fmt,...);
00085 extern void pdftex_warn(const char *fmt,...);
00086 extern void tex_printf(const char *, ...);
00087 extern void write_enc(char **, struct enc_entry *, integer);
00088 extern void write_epdf(void);
00089 extern void zpdfbegindict(integer);
00090 extern void zpdfbeginobj(integer);
00091 extern void zpdfcreateobj(integer, integer);
00092 extern void zpdfnewdict(integer, integer);
00093 
00094 /* utils.c */
00095 extern char *convertStringToPDFString(char *in);
00096 
00097 /* config.c */
00098 extern integer cfgpar(integer);
00099 
00100 /* avlstuff.c */
00101 extern void avl_put_obj (integer, integer);
00102 extern integer avl_find_obj (integer, integer, integer);
00103 }