At 08:18 AM 3/27/2006, Daniel Farinha wrote:
that's also an interesting solution, and something that had occurred to me previously. It has the advantage of providing a very strict comparison (1 pixel out of place and the test would fail), but like you pointed out that's also a disadvantage because you're dependent on the reliability of the bitmap generator. It might be something worth looking at further down the line.

as long as you use the same generator for both bitmaps - it's fine...Just don't try to compare output from two different ones.


For the time being though, something like jpdfunit might just fill that gap in my unit tests. All I currently need is to know high-level info. i.e. if there's some text in a particular format and if a table contains the right number of cells, and data, etc. It's not perfect, but sounds like a step in the right direction.

Well, since there are no "tables" in a PDF - you won't get anything like that.


LDR

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                             215-938-0880 (fax)



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to