On Fri, 2017-07-28 at 20:59 +0000, Jaseem Ali K T wrote:
> For this case  GetMultiLineTextAsLines() will push string1+" " to
> first line. But its width is more than text area width, which is
> wrong.

        Hi,
it's a white space, and as such invisible (the most strikeout or
underline fonts can void this precedence).

> +                //skip the spaces appearing at the end of line
> +                while (IsSpaceChar(*(pszCurrentCharacter + 1)))
> +                    pszCurrentCharacter++;

I'm afraid that the function cannot do this. Simply because it doesn't
have enough information about the meaning of the content it is supposed
to split. It might be better to left the decision up to the caller, aka
 let it remove trailing white space on their own, if needed. The use
case for this is an ASCII graphics, like tables. You might break it
this way in certain cases.
        Bye,
        zyx

-- 
http://www.litePDF.cz                                 i...@litepdf.cz

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to