sivarajankumar / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

textStyle() does not change color on more than one page. #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
//16 pt font
myPDF.addPage();
myPDF.textStyle( new RGBColor ( 0x000000 ), 1 );
myPDF.setFont(FontFamily.ARIAL, Style.NORMAL, 16);
myPDF.addText("some text at 16pt black",36,38);

myPDF.textStyle( new RGBColor ( 0xCCCCCC), 1 );
myPDF.setFont(FontFamily.ARIAL, Style.NORMAL, 10);
myPDF.addText("some text at 10pt grey",36,50);

myPDF.addPage();

myPDF.textStyle( new RGBColor ( 0x000000 ), 1 );
myPDF.setFont(FontFamily.ARIAL, Style.NORMAL, 16);
myPDF.addText("some text at 16pt black",36,38);

myPDF.textStyle( new RGBColor ( 0xCCCCCC), 1 );
myPDF.setFont(FontFamily.ARIAL, Style.NORMAL, 10);
myPDF.addText("some text at 10pt grey",36,50);

What is the expected output? What do you see instead?
I would think it would reset the color of the font to black on the second
page.  Instead it keeps the page text on the second page only gray.  The
size does change though.

What version of the product are you using? On what operating system?
latest released 1.4.4 -- Windows/IE & FF

Original issue reported on code.google.com by pcross616 on 21 Aug 2008 at 10:53

GoogleCodeExporter commented 8 years ago
Hi,

It is a bug and will be fixed in the next release.
I will post an update in a few days and let you know here when it is available.

best,

Thibault

Original comment by thibault.imbert on 5 Sep 2008 at 9:48

GoogleCodeExporter commented 8 years ago
I assume this will be included in the 1.5 release?  Since that has new font 
support?
Thx for the great package...

-Pete

Original comment by pcross616 on 22 Oct 2008 at 12:32

GoogleCodeExporter commented 8 years ago
Any update on this?

Original comment by pcross616 on 11 May 2009 at 10:33