Hi

Resending as there seems to be some technical issue

From: Jaseem Ali K T
Sent: 10 June 2016 01:41
To: 'Dominik Seichter' <domseich...@googlemail.com>
Cc: podofo-users@lists.sourceforge.net
Subject: RE: [Podofo-users] Issue in GetMultiLineTextAsLines


Hi all

Attaching the patch to fix the issue mentioned. The patch also fixes many other 
cases where empty lines will be created by DrawMultiLineText function. So the 
fix is mainly to prevent the creation of empty lines and to improve the 
handling spaces that come at the end of line.

I still do feel there are some areas which requires improvement in order to be 
comparable with existing word process softwares (It seems we need to have some 
gap at the edges).

The code may be refactored and optimized in future.


Regards
Ali

From: Dominik Seichter [mailto:domseich...@googlemail.com]
Sent: 09 June 2016 02:35
To: Jaseem Ali K T <jaseemal...@hcl.com<mailto:jaseemal...@hcl.com>>
Cc: 
podofo-users@lists.sourceforge.net<mailto:podofo-users@lists.sourceforge.net>
Subject: Re: [Podofo-users] Issue in GetMultiLineTextAsLines

Hi Jaseem,

Thanks for working on this! Looking forward to your patch and I am happy to 
include it into the next release.

Best regards,
 Dom

On Wed, Jun 8, 2016 at 7:35 PM, Jaseem Ali K T 
<jaseemal...@hcl.com<mailto:jaseemal...@hcl.com>> wrote:
Hi all,

I have almost completed the fix for this. While testing I have observed one 
more issue that character spacing is not correct when Identity encoding is 
used. For winansi encoding characters appear closely spaced. For identity 
encoding some space appears between characters

Regards
Jaseem


From: Jaseem Ali K T
Sent: 06 June 2016 23:49
To: 
'podofo-users@lists.sourceforge.net<mailto:podofo-users@lists.sourceforge.net>' 
<podofo-users@lists.sourceforge.net<mailto:podofo-users@lists.sourceforge.net>>
Subject: Issue in GetMultiLineTextAsLines


Hi all,

I have observed one more issue related to DrawMultiLineText of PdfPainter.

The issue happens when the rectangle width is less than individual character 
width. Suppose we have string ‘AB’ and the width of A and width of ‘B’ is 20 
each, width of rectangle is 15 and  we set vertical top alignment. In this case 
big gap will be displayed between each characters and between first character 
and top. In this case GetMultiLineTextAsLines will return a vector of size 4 as 
opposed 2 that we would expect.

If a single character can’t be perfectly fit in the width of rectangle , it 
should be still be drawn in that line itself rather than pushing it to next 
line(which will make it more ugly).

If anyone wants to reproduce the issue set the rectangle width as 30. Create 
font of size 48 with Arial and  with string ‘AB’ and draw multi line text

I might be able to fix the issue, but if anyone can find an optimized fix, fast 
enough, that would also be OK


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

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net<mailto:Podofo-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/podofo-users

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to