[xep-support] Newspaper Layout Column Separator

Alexander Peshkov peshkov at renderx.com
Mon Jun 21 05:07:52 PDT 2004


Hello Jez,

There was a similar question a while ago on the XSL FO list at
yahoogroups.com: http://groups.yahoo.com/group/XSL-FO/message/4732
There was a more complicated requirement: to draw a bar only till the
end of the actual column content. Let me recite my answer:

You can draw a rule in SVG and place it into the background of the
body-region (block with span="all" in this case should have
background-color="white"). The only shortcoming of this approach is
that this rule will be drawn through all the page even if columns are
shorter.
There is another solution which gives you desired result although it's
a kind of hack:
 - wrap whole text in a fo:block with left/right borders as thick as
   required rule and left/right padding with the size equal to
   (column-gap width minus rule width) divided by two.
   This way you have desired rule between columns and undesired
   border on either sides.
 - add symmetrical region-start/region-end which have extents as
   wide as region-body margin minus padding of fo:block (calculated
   above). Place in appropriate static contents fo:block-container
   with height="100%" and background-color="white" (it should have
   some non-empty content, i.e. block with empty leader inside).
   These containers will be drawn atop of the side borders and will
   hide them.

Best regards,
Alexander Peshkov                             mailto:peshkov at renderx.com
RenderX


JB> I've created a PDF that uses newspaper layout (column-count = 2) for certain pages by using the "column-count" and "column-gap" attributes in the appropriate page-master.
 
JB> Ideally, I'd like to display a vertical line in the column gap section of the newspaper layout pages.  
 
JB> I'd be grateful for any advice on the best way to achieve this.
 
JB> Thanks
 
JB> Jez Brewster
 
 
 

JB> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the
JB> person responsible for delivering to the intended recipient, please be advised that it has been sent in error and therefore any use is strictly prohibited. 
JB> If you are not the intended recipient, or if you are concerned about the content of this email, please notify our IT helpdesk on +44 20 7675 7000. 
JB> ___________________________________________________________________
JB> This message has been checked for all known viruses through the MessageLabs Virus Control Center.


-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list