Back to index

tetex-bin  3.0
pdfdoc.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 PDFDOC_H
00027 #define PDFDOC_H
00028 
00029 #include "pdfobj.h"
00030 extern void pdf_doc_new_page (void);
00031 extern void pdf_doc_finish_page (void);
00032 extern pdf_obj *pdf_doc_this_page_ref (void);
00033 extern pdf_obj *pdf_doc_this_page (void);
00034 extern pdf_obj *pdf_doc_page_tree (void);
00035 extern pdf_obj *pdf_doc_catalog (void);
00036 extern void pdf_doc_creator (char *s);
00037 extern pdf_obj *pdf_doc_names (void);
00038 extern pdf_obj *pdf_doc_next_page_ref (void);
00039 extern pdf_obj *pdf_doc_prev_page_ref (void);
00040 extern pdf_obj *pdf_doc_ref_page (unsigned long page_no);
00041 
00042 extern void pdf_doc_add_to_page_resources (const char *name, pdf_obj
00043                                 *resources);
00044 extern void pdf_doc_add_to_page_fonts (const char *name, pdf_obj
00045                             *font);
00046 extern void pdf_doc_add_to_page_xobjects (const char *name, pdf_obj
00047                                 *xobject);
00048 extern pdf_obj *pdf_doc_current_page_resources(void);
00049 
00050 extern void pdf_doc_add_to_page_annots (pdf_obj *annot);
00051 
00052 extern void pdf_doc_add_dest (char *name, unsigned length, pdf_obj *array);
00053 
00054 extern void pdf_doc_start_article (char *name, pdf_obj *info);
00055 extern void pdf_doc_add_bead (char *name, pdf_obj *partial_dict);
00056 
00057 extern void pdf_doc_merge_with_docinfo (pdf_obj *dictionary);
00058 extern void pdf_doc_merge_with_catalog (pdf_obj *dictionary);
00059 
00060 extern void pdf_doc_add_to_page (char *buffer, unsigned length);
00061 
00062 extern void pdf_doc_change_outline_depth (int new_depth);
00063 extern void pdf_doc_add_outline (pdf_obj *dict);
00064 
00065 extern void pdf_doc_init (char *filename);
00066 extern void pdf_doc_close (void);
00067 
00068 extern void pdf_doc_comment (char *comment);
00069      
00070 extern void pdf_doc_set_verbose(void);
00071 extern void pdf_doc_set_debug(void);
00072 
00073 extern void pdf_doc_bop (char *string, unsigned length);
00074 extern void pdf_doc_eop (char *string, unsigned length);
00075 extern void pdf_doc_set_origin (double x, double y);
00076 extern void pdf_doc_this_bop (char *string, unsigned length);
00077 extern void pdf_doc_set_origin (double x, double y);
00078 extern void pdf_doc_this_eop (char *string, unsigned length);
00079 
00080 extern void doc_make_form_xobj (pdf_obj *stream, pdf_obj *bbox,
00081                             double refptx, double refpty,
00082                             double xscale, double yscale,
00083                             pdf_obj *resources, char *form_name);
00084 extern pdf_obj *begin_form_xobj (double xpos, double ypos,
00085                              double bbllx, double bblly,
00086                              double bburx, double bbury, char *form_name);
00087 extern void end_form_xobj (void);
00088 extern void pdf_doc_enable_thumbnails (void);
00089 extern void pdf_doc_begin_annot (pdf_obj *dict);
00090 extern void pdf_doc_set_box (void);
00091 extern void pdf_doc_end_annot (void);
00092 extern void pdf_doc_flush_annot (void);
00093 extern void pdf_doc_expand_box (double llx, double lly, double urx,
00094                             double ury);
00095 #endif /* PDFDOC_H */
00096