Hi Kevin,
You make a good point. In the full pdf though, I don't run into any situation where the image itself is to big for the end of our column/page. Possibly this is due to our use of orphans and widows. In any case, the situation you mention will occur a lot less then my current problem.
Come Monday, when I have time to dive into the stylesheets again, I'll look into the rx:pinpoint method. If I can use that to reduce my problem from the current and quite frequent one to the one you mention, I'll be a happy man. I'll also run a number of complete runs to see if my hypothesis that the problem of the image being spanned itself is less prevalent, is true.
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>
<mailto:Helpdesk@HorlingsEnEerbeek.nl>
________________________________
Van: Xep-support <xep-support-bounces@renderx.com> namens Kevin Brown <kevin@renderx.com>
Verzonden: vrijdag 9 oktober 2015 00:18
Aan: 'RenderX Community Support List'
Onderwerp: [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
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
Received on Thu Oct 8 15:35:03 2015
This archive was generated by hypermail 2.1.8 : Thu Oct 08 2015 - 15:35:08 PDT