Kevin,
Thanks for the solution. Now that I see it, it's even quite simple and logical. And indeed, due to our orphan settings on the paragraphs that will have this background, we never run into the problem where the image hits the bottom of the page. That is to say, not in the multiple trials that I've run so far.
Met vriendelijke groet,
Remko de Hoop
Horlings & Eerbeek Automatisering B.V.
Industrieweg 24
3401 MA IJsselstein
Tel. 030-2468777
Fax. 030-2467610
www.horlingseneerbeek.nl<http://www.horlingseneerbeek.nl/>
RdHoop@HorlingsEnEerbeek.nl<mailto:RdHoop@HorlingsEnEerbeek.nl>
N.B. Ik ben op vrijdagen afwezig.
Bij problemen kunt u dan contact opnemen met onze helpdesk.
Helpdesk@HorlingsEnEerbeek.nl<mailto:Helpdesk@HorlingsEnEerbeek.nl>
[h&e-15-jr-50procent]
Van: Xep-support [mailto:xep-support-bounces@renderx.com] Namens Kevin Brown
Verzonden: vrijdag 9 oktober 2015 0:54
Aan: 'RenderX Community Support List'
Onderwerp: [xep-support] Re: Unable to prevent background repeat across page/column
See attached sample.
Kevin Brown
RenderX
From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Kevin Brown
Sent: Thursday, October 08, 2015 3:50 PM
To: 'RenderX Community Support List' <xep-support@renderx.com<mailto:xep-support@renderx.com>>
Subject: [xep-support] Re: Unable to prevent background repeat across page/column
Of course, you could be setting the height of that container to 20mm (not 1in) and setting the following block padding to -20mm - {font-height} of the heading.
By the way, this would have the effect that if the block-container height does not fit at the end of the page, it will move to the next page. This is as close as you can get unless you wanted to clip the image at the end.
Kevin Brown
RenderX
From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Kevin Brown
Sent: Thursday, October 08, 2015 3:45 PM
To: 'RenderX Community Support List' <xep-support@renderx.com<mailto:xep-support@renderx.com>>
Subject: [xep-support] Re: Unable to prevent background repeat across page/column
Thinking of this again and I have not tested all things, but what about doing something like this (essentially putting down the block-container with nothing in it except the background image and then setting the padding at the top of the following text content to recapture that height).
<fo:block-container height="1in" background-image="url(20.jpg)" rx:background-content-width="20mm"
rx:background-content-height="20mm" rx:background-scaling="uniform"
background-repeat="no-repeat" >
<fo:block><fo:leader/></fo:block>
</fo:block-container>
<fo:block padding-top="-1in - 12pt"><fo:leader/></fo:block>
<fo:block space-after="6pt" font-weight="bold" font-size="14pt">Heading</fo:block>
<fo:block space-after="6pt" >Accusam invidunt consetetur est ipsum lorem tempor dolore lorem aliquyam et. Sed aliquam dolores sea et quis consequat lorem dolor ipsum tempor sea justo diam consetetur sea. Nonumy aliquam et ut invidunt dolores diam justo amet elitr nonumy no nam consetetur aliquyam amet. In duo vero ad feugiat sit duis rebum. In in ex velit tempor voluptua magna ad dolores consequat. Et sed aliquyam nonumy nonumy eirmod duo clita invidunt ea et eirmod sea elitr. Diam molestie sit elitr sea no et liber et ut. Vero velit augue labore sadipscing sea aliquam et sanctus dolor duis labore et id. Dolor facilisis ut laoreet lorem autem consetetur consetetur lorem eum at ullamcorper eos eirmod clita est augue lorem et. Facilisis lorem dolor labore sadipscing duo eirmod stet facilisi ipsum eleifend ea. Labore diam et accusam eirmod magna nonumy gubergren.</fo:block>
Kevin Brown
RenderX
From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Kevin Brown
Sent: Thursday, October 08, 2015 3:19 PM
To: 'RenderX Community Support List' <xep-support@renderx.com<mailto:xep-support@renderx.com>>
Subject: [xep-support] Re: Unable to prevent background repeat across page/column
I believe there is no solution with pure XSL FO. The behavior you describe is according to the standard.
Your attempt is probably as close as you can get as you have not specified what the behavior you would expect if it is such that the image would not fit at the end of the page and yet your rules would allow for the paragraph to start. If you cannot solve or express that, you cannot even have a solution as there will always be a case where it does not work.
If you use the XEP Intermediate format and inject the images in the pages after composition, you can solve "part" of the problem. With this solution, you could place a rx:pinpoint marker at the place wherever you wished an image and then output that image in the XEP Intermediate Format only once for each rx:pinpoint. But you would also need to fully describe what is intended visual representation at the end of a page/column where the text fits and the image does not.
Kevin Brown
RenderX
From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Remko de Hoop
Sent: Thursday, October 08, 2015 8:44 AM
To: xep-support@renderx.com<mailto:xep-support@renderx.com>
Subject: [xep-support] Unable to prevent background repeat across page/column
Hello,
We are having a problem with unwanted repeating of a background image when a block spans a column or a page. Is there any way to disable this?
The offending block:
<fo:block background-image="url(20.jpg)"
rx:background-content-width="20mm"
rx:background-content-height="20mm"
rx:background-scaling="uniform"
background-repeat="no-repeat"
margin-left="0mm"
padding-left="2mm"
space-before="11pt">
The version of xep used: XEP 4.21 build 20121114
For an example of the resulting repeat, see page two of the pdf.
If this block continues in the next column on the page, or just onto the next page, the background image is repeated. I provided an extremely simplified stylesheet, datasource and resulting pdf with this e-mail.
I hope anyone can help, we already tried to let the block only wrap the title and first paragraph instead of all the paragraphs. This reduces the number of times the problem occurs but does not eliminate it. The generated pdf will normally contain a multitude of articles so there will always be a paragraph somewhere that will continue into the next column or page. Thus for simplification, my example wraps all paragraphs.
If anybody has a solution that prevents the repeating, I would be very happy to learn how that can be done.
Kind regards,
Remko de Hoop
Horlings & Eerbeek Automatisering B.V.
Industrieweg 24
3401 MA IJsselstein
Tel. 030-2468777
Fax. 030-2467610
www.horlingseneerbeek.nl<http://www.horlingseneerbeek.nl/>
RdHoop@HorlingsEnEerbeek.nl<mailto:RdHoop@HorlingsEnEerbeek.nl>
_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
This archive was generated by hypermail 2.1.8 : Mon Oct 12 2015 - 02:24:44 PDT