summaryrefslogtreecommitdiff
path: root/lib/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pdf')
-rw-r--r--lib/pdf/CharOutputDev.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pdf/CharOutputDev.cc b/lib/pdf/CharOutputDev.cc
index 6f2ecc90..b7cf5916 100644
--- a/lib/pdf/CharOutputDev.cc
+++ b/lib/pdf/CharOutputDev.cc
@@ -912,6 +912,10 @@ void CharOutputDev::beginPage(GfxState *state, int pageNum)
{
this->currentpage = pageNum;
this->last_char_was_space = 1;
+ this->last_char_y = 0;
+ this->last_char_y_fontsize = 0;
+ this->last_ascent = 0;
+ this->last_descent = 0;
}
void GFXLink::draw(CharOutputDev*out, gfxdevice_t*dev)