aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-25 11:44:31 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-25 11:44:31 +0000
commit0236a2d85af70886c7725a1f28a04ad4216a5d4d (patch)
treea1a4136aa89d8b5016190592a94ff6b4ff86ecc2 /term.h
parent0e2017eae6791396ef69390438420f7e18dda0e0 (diff)
downloadmandoc-0236a2d85af70886c7725a1f28a04ad4216a5d4d.tar.gz
mandoc-0236a2d85af70886c7725a1f28a04ad4216a5d4d.tar.zst
mandoc-0236a2d85af70886c7725a1f28a04ad4216a5d4d.zip
Initial PDF shim over PS. This produces working PDF output with -Tpdf.
It's currently missing the xref table, so you'll get a warning in most PDF viewers). It also produces lots of redundant output, which will go away once I get a better handle on the PDF spec. The code doesn't really touch any existing functionality; it's a bunch of conditionals atop the -Tps (term_ps.c) implementation. I'm checking it in now to have it exist and be auditable. It needs clean-up, polish, and general care (and xref!).
Diffstat (limited to 'term.h')
-rw-r--r--term.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/term.h b/term.h
index 3e1d4df0..3033d8bd 100644
--- a/term.h
+++ b/term.h
@@ -1,4 +1,4 @@
-/* $Id: term.h,v 1.74 2010/07/13 23:53:20 schwarze Exp $ */
+/* $Id: term.h,v 1.75 2010/07/25 11:44:31 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -27,7 +27,8 @@ enum termenc {
enum termtype {
TERMTYPE_CHAR,
- TERMTYPE_PS
+ TERMTYPE_PS,
+ TERMTYPE_PDF
};
enum termfont {
@@ -63,6 +64,9 @@ struct termp_ps {
size_t left; /* body left (AFM units) */
size_t header; /* header pos (AFM units) */
size_t footer; /* footer pos (AFM units) */
+ size_t pdfbytes;
+ size_t pdflastpg;
+ size_t pdfbody;
};
struct termp {