diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-25 11:44:31 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-25 11:44:31 +0000 |
commit | 293f60fc4c5da55d6d60cd5efae8fc3db6d1b964 (patch) | |
tree | 35e6ec4d552e8b3f820c3b7af4f92c40368ed8c5 /term.h | |
parent | 51184530e5f6227337cd723f15e86a6c926f7286 (diff) | |
download | mandoc-293f60fc4c5da55d6d60cd5efae8fc3db6d1b964.tar.gz |
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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 { |