[xep-support] Re: How do I use bleeds

From: Kevin Brown <kevin@renderx.com>
Date: Mon Sep 15 2014 - 17:54:01 PDT

Daniel:

 

How is this?

 

<?xml version="1.0" encoding="UTF-8"?>
<?xep-pdf-initial-zoom fit-height?>
<?xep-pdf-bleed 0.125in?>
<?xep-pdf-crop-mark-width 0.1pt?>
<?xep-pdf-crop-offset 0.5in 0.25in?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:rx="http://www.renderx.com/XSL/Extensions"
            xmlns:svg="http://www.w3.org/2000/svg" id="d7e1" font-family="TvNordCondEF" font-size="10pt" language="en"
            xml:lang="en">
            <rx:meta-info>
                        <rx:meta-field name="creator" value="RRD-Montage"/>
                        <rx:meta-field name="title" value="2015-Default(Benefit Snapshot)"/>
            </rx:meta-info>
            <fo:layout-master-set>
                        <fo:simple-page-master master-name="fc-any-page" page-height="11in" page-width="8.5in">
                                    <fo:region-body margin="0.75in" margin-bottom="0.25in" margin-left="0.5in"/>
                                    <fo:region-before
                                                margin="-0.125in"
                                                background-image="url(BSS_fc_background_off.pdf)"
                                                background-repeat="no-repeat" extent="12in"
                                                rx:background-content-width="100%"
                                                rx:background-content-height="100%"
                                    />
                        </fo:simple-page-master>
                        <fo:page-sequence-master master-name="fc-page">
                                    <fo:repeatable-page-master-alternatives>
                                                <fo:conditional-page-master-reference master-reference="fc-any-page" page-position="any" odd-or-even="any"/>
                                    </fo:repeatable-page-master-alternatives>
                        </fo:page-sequence-master>


 

From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Kevin Brown
Sent: Monday, September 15, 2014 1:37 PM
To: 'RenderX Community Support List'; 'Daniel Boughton'
Subject: [xep-support] Re: How do I use bleeds

 

Daniel:

 

Can you send me (directly, not through the list) a short sample and let me test through my harness please. I want to be sure I am doing what you want.

 

Kevin

 

 

From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Daniel Boughton
Sent: Monday, September 15, 2014 9:03 AM
To: RenderX Community Support List
Subject: [xep-support] Re: How do I use bleeds

 

Thanks Ken.

 

I was really hoping there was a solution that allowed me to still use the bleed processing instructions, but I guess this will have to do.

 

 

 

On Mon, Sep 15, 2014 at 10:38 AM, G. Ken Holman <gkholman@cranesoftwrights.com> wrote:

At 2014-09-15 10:22 -0500, Daniel Boughton wrote:

One of our customers sent us background images for there documents which are 8.75" x 11.25" including a 1/8" bleed so that the finished page size is 8.5" x 11". Â I have tried several scenarios and I cannot get the effect I am looking for. Â

If I define my page size as 8.5" x 11" with a 1/8" bleed, I also have to use a negative 1/8" horizontal and vertical position on the background to get it centered on the page. Â This is close, but I actually want the contents of the image to "spill" into the bleed area so that when the page is trimmed there is no chance of white space showing up on the borders of the page.

I also tried defining my page size as 8.75" x 11.25" and used a negative 1/8" bleed. Â The problem is that XEP trimmed the image in the bleed area so we still run the risk of getting white edges on the document when it gets trimmed. Does anyone know if there is a way to get XEP to leave the image alone in the bleed area?

The following code will work, but it is not portable to other XSL-FO processors:

<?xml version="1.0" encoding="US-ASCII"?><!--bleed.fo-->
<root xmlns="http://www.w3.org/1999/XSL/Format"
      font-family="Times" font-size="20pt">

  <layout-master-set>
    <simple-page-master master-name="frame"
                        page-height="11.25in" page-width="8.75in">
      <region-body region-name="frame-body"
                        margin-top=".125in" margin-bottom=".125in"
                        margin-left=".125in" margin-right=".125in"/>
      <region-end region-name="frame-end" extent="8.75in"
                   background-image='url("harbour.jpg")'/>
    </simple-page-master>
  </layout-master-set>

  <page-sequence master-reference="frame">
    <flow flow-name="frame-body">
      <block>This is a test</block>
      <block>This is a test</block>
      <block>This is a test</block>
      <block>This is a test</block>
      <block>This is a test</block>
    </flow>
  </page-sequence>
</root>

It happens that XEP places the perimeter regions on the page before placing the body region on the page and so the body region shows on top. Other processors place the perimeter regions after the body region and so the above approach doesn't work because the end region's background obscures the body region.

The specification does not prescribe a Z-level for regions and so all processors are conformant in this regard regardless of their choice of order.

In the above the body useable area is 8.5x11 within the margins, but the end region is the full page size and thus occupies the edge for the bleed. Note that I chose the end region just because it is a region I seldom use and I can focus on the before/after regions for headers/footers (while accommodating the bleed space!) without thinking about their backgrounds.

I hope this helps.

. . . . . . . . . Ken

--
Contact us for world-wide XML consulting and instructor-led training |
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/video.htm <http://www.CraneSoftwrights.com/links/video..htm>  |
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/f/ |
G. Ken Holman                   mailto:gkholman@CraneSoftwrights.com |
Google+ profile:      http://plus.google.com/+GKenHolman-Crane/about |
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal |
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
u>5417081010101824354640!
_______________________________________________
(*) 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
 
-- 
__________________________________________________________________________________
Daniel Boughton | Technical Analyst | RR Donnelley
655 Brighton Beach Rd | Menasha, WI 54952 
Office: 920.751..7603 | Cell: 920.450.3581 | Fax: 920.751.7686
 <http://inside.rrd.net/insiderrd/pages/google/rrd_google_signature.aspx> daniel.r.boughton@rrd.com
 <http://www.rrdonnelley.com/> http://www.rrdonnelley.com
!DSPAM:87,54170dbc10109215813963! 



_______________________________________________
(*) 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 Sep 25 01:53:16 2014

This archive was generated by hypermail 2.1.8 : Thu Sep 25 2014 - 01:53:17 PDT