From 8fd6eb1bd880c49fbbb9fafb0ba8f65dac4bf480 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Wed, 8 Aug 2012 21:13:29 +0800 Subject: [PATCH] dont' draw hidden object --- src/HTMLRenderer.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/HTMLRenderer.cc b/src/HTMLRenderer.cc index 35bb0fb..dc08dec 100644 --- a/src/HTMLRenderer.cc +++ b/src/HTMLRenderer.cc @@ -241,6 +241,12 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s) return; } + //hidden + if(state->getRender() & 3 == 3) + { + return; + } + // see if the line has to be closed due to state change check_state_change(state);