|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
horizontal alignment of external-graphichi,
i want to set a externel graphic in a box. the vertical-aligment is ok but the horizontal-alignment makes trouble... the code: (fop 0.95 / fop-pdf-images/ ...) <?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="test" page-height="29.7cm" page-width="21cm" margin-top="0cm" margin-bottom="0cm" margin-left="0cm" margin-right="0cm"> <fo:region-body margin-top="0cm" margin-bottom="0cm"/> <fo:region-before extent="0cm"/> <fo:region-after extent="0cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="test"> <fo:flow flow-name="xsl-region-body"> <fo:block-container height="5cm" width="5cm" top="5cm" left="5cm" position="absolute" border="1pt solid black" overflow="hidden" display-align="center"> <fo:block text-align="center"> <fo:external-graphic src="url('/tmp/picture.pdf')"/> </fo:block> </fo:block-container> </fo:flow> </fo:page-sequence> </fo:root> whats wrong...? mfg -ip- --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: horizontal alignment of external-graphicWould you please describe in a bit more detail what you want to
accomplish? When I run your example with a PDF of my own as image, FOP does with the image exactly what the FO tells it to. I assume you're expecting something else, so I need a bit more information to be able to tell you what you need to change. On 12.09.2009 21:01:29 ingo peter wrote: > hi, > i want to set a externel graphic in a box. > the vertical-aligment is ok but the horizontal-alignment makes trouble... > > the code: (fop 0.95 / fop-pdf-images/ ...) > > <?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="test" > page-height="29.7cm" > page-width="21cm" > margin-top="0cm" > margin-bottom="0cm" > margin-left="0cm" > margin-right="0cm"> > <fo:region-body margin-top="0cm" margin-bottom="0cm"/> > <fo:region-before extent="0cm"/> > <fo:region-after extent="0cm"/> > </fo:simple-page-master> > </fo:layout-master-set> > <fo:page-sequence master-reference="test"> > <fo:flow flow-name="xsl-region-body"> > <fo:block-container height="5cm" width="5cm" top="5cm" left="5cm" position="absolute" border="1pt solid black" > overflow="hidden" display-align="center"> > <fo:block text-align="center"> > <fo:external-graphic src="url('/tmp/picture.pdf')"/> > </fo:block> > </fo:block-container> > </fo:flow> > </fo:page-sequence> > </fo:root> > > whats wrong...? > mfg > -ip- Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: horizontal alignment of external-graphicHi,
As Jeremias wrote, there is nothing wrong with this code. I have placed my own image into the box, it had come out as intended. Cheers, Venkat. Jeremias Maerki wrote: > Would you please describe in a bit more detail what you want to > accomplish? When I run your example with a PDF of my own as image, FOP > does with the image exactly what the FO tells it to. I assume you're > expecting something else, so I need a bit more information to be able to > tell you what you need to change. > > On 12.09.2009 21:01:29 ingo peter wrote: > >> hi, >> i want to set a externel graphic in a box. >> the vertical-aligment is ok but the horizontal-alignment makes trouble... >> >> the code: (fop 0.95 / fop-pdf-images/ ...) >> >> <?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="test" >> page-height="29.7cm" >> page-width="21cm" >> margin-top="0cm" >> margin-bottom="0cm" >> margin-left="0cm" >> margin-right="0cm"> >> <fo:region-body margin-top="0cm" margin-bottom="0cm"/> >> <fo:region-before extent="0cm"/> >> <fo:region-after extent="0cm"/> >> </fo:simple-page-master> >> </fo:layout-master-set> >> <fo:page-sequence master-reference="test"> >> <fo:flow flow-name="xsl-region-body"> >> <fo:block-container height="5cm" width="5cm" top="5cm" left="5cm" position="absolute" border="1pt solid black" >> overflow="hidden" display-align="center"> >> <fo:block text-align="center"> >> <fo:external-graphic src="url('/tmp/picture.pdf')"/> >> </fo:block> >> </fo:block-container> >> </fo:flow> >> </fo:page-sequence> >> </fo:root> >> >> whats wrong...? >> mfg >> -ip- >> > > > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: fop-users-unsubscribe@... > For additional commands, e-mail: fop-users-help@... > > > --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: horizontal alignment of external-graphichi and pardon,
i "have been out of service" for more then 2 weeks.... ... my problem is to center a pdf of undefined size in a box. (mostly creater the the box) ... with the shown code i can center it so i have left and right the same (negative) distance from border. so the vertical-center ist ok. ... but my picture allways begins on the top on of the box. the distance to the top border is 0. so the horizontal-center is not ok. ...i hope i gave you a detailed explanation of my problem??? mfg -ip- Hi, As Jeremias wrote, there is nothing wrong with this code. I have placed my own image into the box, it had come out as intended. Cheers, Venkat. Jeremias Maerki wrote: > Would you please describe in a bit more detail what you want to > accomplish? When I run your example with a PDF of my own as image, FOP > does with the image exactly what the FO tells it to. I assume you're > expecting something else, so I need a bit more information to be able to > tell you what you need to change. > > On 12.09.2009 21:01:29 ingo peter wrote: > >> hi, >> i want to set a externel graphic in a box. >> the vertical-aligment is ok but the horizontal-alignment makes trouble... >> >> the code: (fop 0.95 / fop-pdf-images/ ...) >> >> <?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="test" >> page-height="29.7cm" >> page-width="21cm" >> margin-top="0cm" >> margin-bottom="0cm" >> margin-left="0cm" >> margin-right="0cm"> >> <fo:region-body margin-top="0cm" margin-bottom="0cm"/> >> <fo:region-before extent="0cm"/> >> <fo:region-after extent="0cm"/> >> </fo:simple-page-master> >> </fo:layout-master-set> >> <fo:page-sequence master-reference="test"> >> <fo:flow flow-name="xsl-region-body"> >> <fo:block-container height="5cm" width="5cm" top="5cm" left="5cm" position="absolute" border="1pt solid black" >> overflow="hidden" display-align="center"> >> <fo:block text-align="center"> >> <fo:external-graphic src="url('/tmp/picture.pdf')"/> >> </fo:block> >> </fo:block-container> >> </fo:flow> >> </fo:page-sequence> >> </fo:root> >> >> whats wrong...? >> mfg >> -ip- >> > > > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: fop-users-unsubscribe@... > For additional commands, e-mail: fop-users-help@... > > > --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: horizontal alignment of external-graphicOk, it's clear to me now, but I can't reproduce the problem you describe.
In my test the image gets nicely centered (vertically and horizontally) inside the block-container. Why don't you send me your FO and the referenced PDF file to my e-mail address directly and I'll try to run exactly what you have. Maybe we can figure this out then. On 02.10.2009 10:14:18 ingo peter wrote: > hi and pardon, > i "have been out of service" for more then 2 weeks.... > > ... my problem is to center a pdf of undefined size in a box. (mostly creater the the box) > ... with the shown code i can center it so i have left and right the same (negative) distance from border. so the vertical-center ist ok. > ... but my picture allways begins on the top on of the box. the distance to the top border is 0. so the horizontal-center is not ok. > > ...i hope i gave you a detailed explanation of my problem??? > > mfg > -ip- > > > Hi, > > As Jeremias wrote, there is nothing wrong with this code. I have placed > my own image into the box, it had come out as intended. > > Cheers, > Venkat. > > Jeremias Maerki wrote: > > Would you please describe in a bit more detail what you want to > > accomplish? When I run your example with a PDF of my own as image, FOP > > does with the image exactly what the FO tells it to. I assume you're > > expecting something else, so I need a bit more information to be able to > > tell you what you need to change. > > > > On 12.09.2009 21:01:29 ingo peter wrote: > > > >> hi, > >> i want to set a externel graphic in a box. > >> the vertical-aligment is ok but the horizontal-alignment makes trouble... > >> > >> the code: (fop 0.95 / fop-pdf-images/ ...) > >> > >> <?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="test" > >> page-height="29.7cm" > >> page-width="21cm" > >> margin-top="0cm" > >> margin-bottom="0cm" > >> margin-left="0cm" > >> margin-right="0cm"> > >> <fo:region-body margin-top="0cm" margin-bottom="0cm"/> > >> <fo:region-before extent="0cm"/> > >> <fo:region-after extent="0cm"/> > >> </fo:simple-page-master> > >> </fo:layout-master-set> > >> <fo:page-sequence master-reference="test"> > >> <fo:flow flow-name="xsl-region-body"> > >> <fo:block-container height="5cm" width="5cm" top="5cm" left="5cm" position="absolute" border="1pt solid black" > >> overflow="hidden" display-align="center"> > >> <fo:block text-align="center"> > >> <fo:external-graphic src="url('/tmp/picture.pdf')"/> > >> </fo:block> > >> </fo:block-container> > >> </fo:flow> > >> </fo:page-sequence> > >> </fo:root> > >> > >> whats wrong...? > >> mfg > >> -ip- > >> > > > > Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |