NRajkumar / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

character rectaangles overlap other lines #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a document with a single font, no italics or bold so every line should 
consist of 1 segment 
2. call FPDFText_CountBoundedSegments

What is the expected output? What do you see instead?
Should get one but actually get many segments

What version of the product are you using? On what operating system?
I pulled down from GIT a couple months ago and build according to the 
directions. I am using pdfium on windows 7.

Please provide any additional information below.

The problem is in CPDF_TextPage::CountBoundedSegments. Characters from the 
previous and next lines will very very slightly overlap the line being 
processed and so the code thinks those characters are part of the line. I 
attached the file i am using

Original issue reported on code.google.com by seifertk...@gmail.com on 30 Oct 2014 at 7:07

Attachments: