I will be thrilled to have the tests - a week or two delay is well worth it
to have test coverage.

As a starting point, there is a unit test for TextRenderInfo that includes
code for creating a PDF.  The LocationTextExtractionStrategyTest has quite a
few different scenarios involving rotating text, etc...

My biggest hangup here is that I just have no idea what the various
use-cases are that involve this functionality, so I could create tests, but
I'd have no idea if they were doing what you wanted or not.

I suppose one simple test would be to check that the baseline now doesn't
include the extra character space at the end - but what's the best way to
test this?  I suppose we could set a really large character space value,
render a word, then compute the length of the baseline.  But am I comparing
it against just a constant (i.e. 12.724)??  How do I even know what that
distance *should* be?  I'm sure there is a good answer (and when you tell
me, I'll feel a bit foolish)!


Dominika Tkaczyk-2 wrote
> I could try to generate a few small PDFs based on contents of my example
> PDFs and write some simple tests for them. Unfortunately it would probably
> take a few days, as I have never used iText to generate PDFs and I would
> have to familiarize myself with the process first.





--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/PdfContentStreamProcessor-not-handling-TJ-operator-correctly-maybe-tp4656117p4656406.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to