Hi

I am attaching a patch for an issue in GetMultiLineTextAsLines() of PdfPainter.


The issue  can be reproduced in the following scenario.

Construct a string as   string1+" "+string2.

Set the width of text area a value in between the width required for string1, 
and the width required for string1+" ".


For this case  GetMultiLineTextAsLines() will push string1+" " to first line. 
But its width is more than text area width, which is wrong.


For example with following settings issue can be reproduced

width=126

text="002: inst set, snow chains etc."

font= Arial, font size=11

If you draw mutiline text with above settings the first line will overflow text 
area slightly.


The patch will fix this. However, ideally the whole function needs to be 
rewritten to make it more compact and beautiful. Time constraints prevent me 
from this.


Regards Ali



::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information 
could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in 
transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on 
the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the 
author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, 
dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written 
consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please 
delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and 
other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------

Attachment: PdfPainter.patch
Description: PdfPainter.patch

------------------------------------------------------------------------------
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