beta-0.89.2
[luatex.git] / source / texk / web2c / luatexdir / pdf / pdfpage.h
blob175fbcc6c7e41214cfe5e947efbc844773f46e88
1 /* pdfpage.h
3 Copyright 2009 Taco Hoekwater <taco@luatex.org>
5 This file is part of LuaTeX.
7 LuaTeX is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2 of the License, or (at your
10 option) any later version.
12 LuaTeX is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License along
18 with LuaTeX; if not, see <http://www.gnu.org/licenses/>.
21 #ifndef PDFPAGE_H
22 # define PDFPAGE_H
24 # define is_pagemode(p) ((p)->mode == PMODE_PAGE)
25 # define is_textmode(p) ((p)->mode == PMODE_TEXT)
26 # define is_chararraymode(p) ((p)->mode == PMODE_CHARARRAY)
27 # define is_charmode(p) ((p)->mode == PMODE_CHAR)
29 # define setpdffloat(a,b,c) do {(a).m = (b); (a).e = (c);} while (0)
31 # ifdef hz
32 /* AIX 4.3 defines hz as 100 in system headers */
33 # undef hz
34 # endif
36 void synch_pos_with_cur(posstructure * pos, posstructure * refpos, scaledpos cur);
37 boolean calc_pdfpos(pdfstructure * p, scaledpos pos);
38 void pdf_end_string_nl(PDF pdf);
39 void pdf_goto_pagemode(PDF pdf);
40 void pdf_goto_textmode(PDF pdf);
41 void init_pdf_pagecalculations(PDF pdf);
42 void pdf_print_cm(PDF pdf, pdffloat * cm);
43 void pdf_set_pos(PDF pdf, scaledpos pos);
44 void pdf_set_pos_temp(PDF pdf, scaledpos pos);
45 void print_pdf_matrix(PDF pdf, pdffloat * tm);
47 #endif