[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] [ERROR] Error in content-width property value'scale-to-fit' with FOP
Thank you for your reply .... in fact I have choose this solution. I knew for the % and pixel unit too -:) I have made experience. Isabelle Bob Stayton a écrit : >Hi Isabelle, >With the current FOP, many of the image scaling property values are not >supported. The content-width="scale-to-fit" is a legitimate value in other >XSL-FO processors, but FOP doesn't support it. You can turn off the noise >by setting the contentwidth attribute in the graphic element to the same >value as the width attribute. > ><graphic align="center" fileref="images/graph_fold.png" width="100" >contentwidth="100"/> > >All this does is avoid the error message, because the content-width property >has no effect in FOP as near as I can tell. Only the width FO property >affects the size. > >I was wondering if you were sure you wanted to use a unitless value like >"100". That is interpreted as 100 pixels, and a pixel has no standard size. >If you mean 100%, then you would normally add the % sign. However, FOP also >doesn't support % (you get a similar error message), so you might want to >consider adding a physical unit such as cm or in. > >Bob Stayton >Sagehill Enterprises >DocBook Consulting >bobs@sagehill.net > > >----- Original Message ----- >From: "Isabelle DENGHIEN - IFR49" <denghien@shfj.cea.fr> >To: "Docbook-apps" <docbook-apps@lists.oasis-open.org> >Sent: Wednesday, September 07, 2005 2:31 AM >Subject: [docbook-apps] [ERROR] Error in content-width property value >'scale-to-fit' with FOP > > > > >>Hello, >> >>I don't understand the behavior of FOP for image sizing. >>I would like change size of image, it works but sometimes I have error >>messages : >> >> >>*Case 1 :* >>If i have this into my xml file : >><graphic align="center" fileref="images/graph_fold.png" width="100"/> >> >>then the output is correct but I have this message of FOP : >>[ERROR] Error in content-width property value 'scale-to-fit': >>org.apache.fop.fo.expr.PropertyException: No conversion defined >>[ERROR] Error in content-height property value 'scale-to-fit': >>org.apache.fop.fo.expr.PropertyException: No conversion defined >> >>in fact, into .fo, there is : >>content-width="scale-to-fit" >> >> >>*Case 2 :* >>To delete this problem, I wrote : >><graphic align="center" fileref="images/graph_fold.png" width="100" >>scalefit="1"/> >> >>but there is the same problem. >> >> >>*Case 3 :* >>To delete error message, I must write this : >> <graphic align="center" fileref="images/graph_fold.png" width="100" >>contentwidth="1"/> >>and contentwidth attribute can take any value ! Is it a bug of FOP ? >> >> >>Can anyone tell me if there is another way ? >> >>Thank you so much, >> >>Isabelle >> >> >> >>-- >>************************ >>Isabelle DENGHIEN >>SHFJ-IFR49 >>4 place du General Leclerc >>91401 Orsay Cedex France >> >>http://www.ifr49.org >>Tel +33 (0) 1 69 86 77 81 >>Fax +33 (0) 1 69 86 78 16 >>Mail:denghien@shfj.cea.fr >> >> >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >>For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >> >> >> >> >> > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > > > -- ************************ Isabelle DENGHIEN SHFJ-IFR49 4 place du General Leclerc 91401 Orsay Cedex France http://www.ifr49.org Tel +33 (0) 1 69 86 77 81 Fax +33 (0) 1 69 86 78 16 Mail:denghien@shfj.cea.fr
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]