Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

process_glyph_displacement function error #92

Open
wants to merge 1 commit into from

3 participants

@nbvehrfr

fixed error in process_glyph_displacement function

@yob
Owner
yob commented

Thanks for the pull request, but unfortunately this breaks a number of specs (See https://travis-ci.org/yob/pdf-reader/builds/6036569).

It's possible the specs are wrong, but more investigation is required. What was the problem that lead to this patch?

@nbvehrfr
@nmadura

I suspect that the pull request I just submitted will address this issue.

Specifically commit 36a62b2 that is contained within that pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 4, 2013
  1. @nbvehrfr
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/pdf/reader/page_state.rb
View
2  lib/pdf/reader/page_state.rb
@@ -325,7 +325,7 @@ def process_glyph_displacement(w0, tj, word_boundary)
tx = glyph_width
else
glyph_width = ((w0 - (tj/1000.0)) * fs) * th
- tx = glyph_width + ((tc + tw) * th)
+ tx = glyph_width + ((tc + tw) * fs * th)
end
ty = 0
Something went wrong with that request. Please try again.