Re: Thoughts on Bug 48237

2009-11-24 Thread Venkat Reddy

Hi Peter,

There is no bug with this functionality. You can have a look at the FO 
file that I have used...


1. Update the configuration file for the image mode (b+w  or  color)
2. Run the following command from the command prompt...
   *C:\mywork\FOP\fop-0.95 fop -c C:\fop.xconf -fo 
C:\mywork\JavaXSLTSamples\XSLFOSamples\hello.fo -afp 
C:\mywork\JavaXSLTSamples\XSLFOSamples\hellotest.afp

*
According to the mode, the image will be rendered with color or black 
and white...


Thanks,
Venkat.


Peter Hancock wrote:
At present FOP does not respect an image color setting of 'b+w' when 
rendering svg to afp (see Bug 48237)


According to the AFP spec 
(http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320DT=20001002123303 
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320DT=20001002123303) 
it does not seem possible to specify a grayscale color space, and so 
my  question is how should colour be controlled?


Since AFPGraphics2D is responsible for setting the color on the MODCA 
GraphicsObject prior to calling drawing  methods,  would a sensible 
fix to the problem be to convert the awt.Color before calling this setter?


Any thoughts would be most welcome,

Pete


?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
	fo:layout-master-set
		fo:simple-page-master master-name=page
			fo:region-body 
margin-right=0.5in 
margin-left=0.5in 
margin-bottom=1in 
margin-top=0.5in 
region-name=body/
		/fo:simple-page-master
	/fo:layout-master-set
	fo:page-sequence master-reference=page
	fo:flow flow-name=body
		fo:block break-before=page top=4in
		Testing image fo:external-graphic src=C:\mywork\JavaXSLTSamples\XSLFOSamples\blue.png/ in between words
		/fo:block
	/fo:flow
	/fo:page-sequence
/fo:root

DO NOT REPLY [Bug 48237] afp renderer does not respect image color settings for svg

2009-11-24 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48237

--- Comment #1 from Venkat Reddy vanukuri.ven...@googlemail.com 2009-11-24 
08:58:35 UTC ---
Hi Peter,

There is no bug with this functionality. You can have a look at the FO file
that I have used...

1. Update the configuration file for the image mode (b+w  or  color)
2. Run the following command from the command prompt...
C:\mywork\FOP\fop-0.95 fop -c C:\fop.xconf -fo
C:\mywork\JavaXSLTSamples\XSLFOSamples\hello.fo -afp
C:\mywork\JavaXSLTSamples\XSLFOSamples\hellotest.afp

According to the mode, the image will be rendered with color or black and
white...

Thanks,
Venkat.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 48237] afp renderer does not respect image color settings for svg

2009-11-24 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48237

--- Comment #2 from Venkat Reddy vanukuri.ven...@googlemail.com 2009-11-24 
08:59:36 UTC ---
Created an attachment (id=24606)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=24606)
Input FO file

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


RE: Support for Arabic in FOP

2009-11-24 Thread Sérgio Lopes

Hi Prakash, 

I need fop to be able to handle arabic text. I tried to generate a PDF file
with the Sebastian fop code, but the arabic text is not correctly shaped. I
must be doing something wrong...
Can you please send me an example?

Thanks in advance.

best regards,
Sérgio Lopes



Prakash sen wrote:
 
 Hi,
 
I am not sure on the licensing part as sebastian did some changes in
 FOP code and he provided me the jars. And as per what i had checked those
 jar print arabic correctly. 
 Possibly he will only be able to answer and I am nots ure whether the
 change was made keeping FOP standards. He was planning to do bidi
 algorithm, no idea whether he worked on it later and whether he
 contribuited the below change to FOP. 
 
 Below were his comments - 
 If I set the writing-mode to rl-tb my text is flipped vertical. This
 happens 
 because the CTM class rotates the transformation matrix for rendering 
 according to the writing mode. If I want to write right-to-left this has 
 nothing to do with mirroring of cause and I disabled it, because I want to 
 print arabic text. So what is the purpose of mirroring in rl-tb 
 writing-mode? What errors will appear if I disable the CTM.getWMctm() 
 function that does the mirroring according to the writing-mode?
 I achived printing (pdf) arabic text after some weeks of work ignoring any 
 xsl:fo recommendations. The most things I did in the TextLayoutManager.
 Now 
 I'm thinking about implementing it according to the recommendations and
 the 
 BIDI algorithm.
 
 Hi Prakash,
 you can download the version of FOP that I use to print Arabic script from
 www.anneundsebp.de/fop/fop.html
 
 I hope it works for you. Unfortunately I don't understand Arabic but I
 know
 that there are still some problems with the type setting. Maybe you can
 inform me about bugs you'll find.
 I'll add some explanations and the source code in a few days.
 
 Regards
 Sebastian
 
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Volunteering-to-work-on-FOP-development-tp25442059p26499904.html
Sent from the FOP - Dev mailing list archive at Nabble.com.