For example, a transform matrix that flip everything horizontally, such
that text are going to the left.

Just like I mentioned, min/max x/y should be determined (again) after any
transformations.




On Fri, Apr 5, 2013 at 11:41 PM, John Hewson <notifications@github.com>wrote:

> In src/HTMLRenderer/text.cc:
>
> >
> >          if(is_space && (param->space_as_offset))
> >          {
> >              // ignore horiz_scaling, as it's merged in CTM
> > -            text_line_buf->append_offset((dx1 * cur_font_size + cur_letter_space + cur_word_space) * draw_text_scale);
> > +            text_line_buf->append_offset((char_dx * state->getFontSize() + state->getCharSpace() + state->getWordSpace()) * draw_text_scale);
> > +        }
> > +        else if(x + dev_total_dx + dev_dx < xMin - EPS || x + dev_total_dx > xMax + EPS ||
>
> I'm not sure how likely that is to happen? This should solve it...
>
> x + max(dev_total_dx, dev_total_dx + dev_dx) < xMin
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/coolwanglu/pdf2htmlEX/pull/114/files#r3675192>
> .
>