C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

problems with fontsize when rendering RTF

rated by 0 users
This post has 4 Replies | 2 Followers

Not Ranked
Posts 1
Tim_Luyten Posted: Thu, Jun 14 2007 3:35 AM
When rendering rtf to a pdf, sometimes(haven't been able to simulate this consistently) the fontsize increases from it's rtf size(12) to pdf size(14) which results in page overflows.

We've tested this with the same rtf file and sometimes this happens.

A few weeks ago they moved the server to a new Win2003 en from then on it happens occasionally.

I know it's not much info, but i couldn't dig up more because it's the same version of the component and of my code. So the only thing that can influence this behaviour is the server installation.

Included you'll find the 2 pdf's created by the same process, with exactly the same input
Any idea's.
Top 10 Contributor
Posts 2,707
Hi Tim

The only thing that occurs to me is that perhaps the C1Pdf is using
different versions of the system libraries to render rtf.

C1Pdf will use the "msftedit.dll" library if available. That's the latest
one, with good table support. If that one is not installed in the system, it
will fall back on the "riched20.dll" which does the same stuff except not as
well.

My guess is one of your systems has themore advanced dll installed, and the
other doesn't. (Although of course both should render text with the same
size...)

Another possibility is that one of the systems has a good printer drivers
installed (300+ dpi) and the other doesn't. That diver is used to create a
reference dc where the rtf is rendered. Better resolution drivers yield
better results. Note that you don't need a printer to be physically present,
just installed so the drivers are available.
Not Ranked
Posts 1
akapruwan replied on Tue, Mar 10 2009 3:11 AM

Hi Tim,

I have also got same problem when I am rendering RTF to PDF. I have noticed that font size get change according to text-type. I mean if text is heading type then difference of font is +4.5 and if  text type is normal then difference of font size is +2. But I noticed that this is working fine with Adobe v7/6 and problem coming with v8.1, 9.

Have you found any solution for that? Actually component one technical support suggested that we have to upgrade C1.PDF2 build with 2.1.20091.89, and I am using Build "2.1.20073.67".

Thanks for any help

Anil

Top 100 Contributor
Posts 51
Hi,One of our clients have encountered a weird problem while rendering rtf text. We couldn’t reproduce the problem on our system. They say that it’s intermittent and the problem is seen from all the client machines. The rtf text is getting cut off sometimes. You can see from the attached pictures that there is a line intended for the rtf text but the text itself is missing from that line (See drug Irinotecan, the line after ‘Apply ice if’ is getting cut off. There is a line below but no text is printed on that line) . Here are the specifications:1.    C1Preview version : 2.0.20063.410062.    Operating system Windows XP version 2002 SP23.    Adobe Acrobat 9.04.    HP color Laser Jet 4550 PCLThere is one client machine that is Windows 2003 and the printer is not installed on that machine and if you do a print preview or print to ‘fine print’ the problem is not seen on that machine.One of our clinets had similar problem before but that was because they were using Windows 2000 which does not include msftedit.dll. I have looked for this dll on their machine and it exits the system being Windows XP.Please let me know if you have any suggestions or you have heard of similar problem before.Thanks in advance.

 

Top 10 Contributor
Posts 1,394
C1_Dima replied on Tue, May 12 2009 11:56 PM
This was a bug in C1Preview, now fixed - here is the discussion.
Cheers, Dima.
Page 1 of 1 (5 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.