Re: vertical space and horizontal line issue

Hussein Shafie <[email protected]> Wed, 24 Oct 2018 16:48:26 +0200
Newsgroups gmane.text.xml.xfc.general
Message-ID <[email protected]>
On 10/24/2018 12:06 AM, Nelson, Robert wrote:
> I attached LinesAndSpacing.fo along with the results from XMLMind and FOP.
>
>
>
>   * Notice XMLMind has more vertical spacing especially around the word
>     “Owners” and at the bottom of the page.

I'm sorry but XMLmind XSL-FO Converter definitely does not support your 
"atypical" fo:list-blocks:

1) Your fo:list-blocks have provisional-distance-between-starts="0pt".

2) Your fo:list-blocks have "empty" fo:list-item-labels:

---
<fo:list-item-label end-indent="label-end()" text-align="right">
									
   <fo:block font-family="Arial" font-size="10pt + 1.0pt"
             font-weight="bold" line-height="10pt + 1.0pt + 1pt"/>
								</fo:list-item-label>
---

So what's the point of using fo:list-blocks in this case?

You can achieve exactly the results you want (whatever the XSL-FO 
processor you use) with very basic fo:blocks having margin-left attributes.

To prove you this, I've attached a modified LinesAndSpacing.fo and the 
corresponding LinesAndSpacing.rtf and LinesAndSpacing.pdf (generated 
using command-lie: fop -r -fo LinesAndSpacing.fo -pdf 
LinesAndSpacing.pdf; option "-r" needed because FOP *incorrectly* chokes 
on extension attributes like xfc:tab-position)





>   * Also notice the horizontal lines at the top and bottom of the page
>     donÂ’t cover the width of the page in the RTF but do in the PDF.

This one is easy. Simply add extension attribute 
xfc:tab-position="-0.1pt" to your fo:leaders. That is:

---
<fo:leader leader-length="100%" leader-pattern="rule" 
rule-thickness="1pt" start-indent="10pt" xfc:tab-position="-0.1pt"
xmlns:xfc="http://www.xmlmind.com/foconverter/xsl/extensions"/>
---

Explanations found in "4.3. Leaders", 
http://www.xmlmind.com/foconverter/_distrib/doc/user/implementation.html#leaders




>
>
>
> Any suggestions?  We are really hoping to get very close to the same
> results with the same XSL-FO.
>
>


--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support
LinesAndSpacing.fo (text/x-xslfo, 8.2 KB)
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
         xmlns:xfc="http://www.xmlmind.com/foconverter/xsl/extensions">
	<fo:layout-master-set>
		<fo:simple-page-master margin-bottom="0.5in" margin-left="0.5in" margin-right="0.5in" margin-top="0.5in" master-name="single-first" page-height="11in" page-width="8.5in">
			<fo:region-body margin-bottom="0.76in" margin-top="0in"/>
			<fo:region-before display-align="before" extent="0in" region-name="HeaderFirst"/>
			<fo:region-after display-align="after" extent="0.76in" region-name="FooterFirst"/>
		</fo:simple-page-master>
		<fo:page-sequence-master master-name="single-column">
			<fo:repeatable-page-master-alternatives>
				<fo:conditional-page-master-reference master-reference="single-first" page-position="first"/>
			</fo:repeatable-page-master-alternatives>
		</fo:page-sequence-master>
	</fo:layout-master-set>
	<fo:declarations>
		<x:xmpmeta xmlns:x="adobe:ns:meta/">
			<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
				<rdf:Description rdf:about="">
					<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Sample Document</dc:title>
				</rdf:Description>
			</rdf:RDF>
		</x:xmpmeta>
	</fo:declarations>
	<fo:page-sequence initial-page-number="1" language="English" master-reference="single-column">
		<fo:static-content flow-name="FooterFirst">
			<fo:block>
				<fo:leader leader-length="100%" leader-pattern="rule" rule-thickness=".75pt" xfc:tab-position="-0.1pt"/>
			</fo:block>
			<fo:table role="doNotReadElement" table-layout="fixed" width="100%" wrap-option="wrap">
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="7"  text-align="start">
							<fo:block font-family="Arial" font-size="6pt"/>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="1">
							<fo:block/>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="7" >
							<fo:block font-family="Arial" font-size="6pt" text-align="center"/>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="1">
							<fo:block/>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="8" >
							<fo:block font-family="Arial" font-size="6pt" text-align="end"/>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="15"  text-align="start">
							<fo:block font-family="Arial" font-size="6pt">Sample Document</fo:block>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="1">
							<fo:block/>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="8" >
							<fo:block font-family="Arial" font-size="6pt" text-align="end"/>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="15"  text-align="start">
							<fo:block font-family="Arial" font-size="6pt"/>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="1">
							<fo:block/>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="8" >
							<fo:block font-family="Arial" font-size="6pt" text-align="end"/>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="15"  text-align="start">
							<fo:block font-family="Arial" font-size="6pt">Bankers Systems</fo:block>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="1">
							<fo:block/>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="8" >
							<fo:block font-family="Arial" font-size="6pt" text-align="end">02/2018</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="7"  text-align="start">
							<fo:block font-family="Arial" font-size="6pt">Wolters Kluwer Financial Services 2018</fo:block>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="1">
							<fo:block/>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="7" >
							<fo:block font-family="Arial" font-size="6pt" text-align="center">2018102318.2.0.1989-J20081203N</fo:block>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="1">
							<fo:block/>
						</fo:table-cell>
						<fo:table-cell number-columns-spanned="8" >
							<!--<fo:block font-family="Arial" font-size="6pt" text-align="end">Page <fo:page-number/> of <fo:page-number-citation ref-id="end-page"/>
							</fo:block>-->
							<fo:block/>
							
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</fo:static-content>
		<fo:flow flow-name="xsl-region-body" font-family="Times New Roman" font-size="10pt + 1.0pt" line-height="10pt + 1.0pt + 1pt">
			<fo:block padding-after="1em" padding-after.conditionality="retain" span="all">
				<fo:block padding-after="6pt" span="all">
					<fo:block font-family="Arial" font-size="18pt" font-weight="bold" line-height="19pt" role="H1" space-before="6pt" text-align="center">Sample Document</fo:block>
					<fo:block font-family="Arial" font-size="12pt" font-weight="bold" line-height="13pt" space-before="6pt" text-align="center">(The line below should span the width of the page)</fo:block>
					<fo:block span="all">
						<fo:leader leader-length="100%" leader-pattern="rule" rule-thickness="1pt" start-indent="10pt" xfc:tab-position="-0.1pt"/>
					</fo:block>
				</fo:block>
			</fo:block>
			<fo:wrapper widows="3">
				<fo:block keep-together.within-column="auto" keep-with-next="auto" role="P" space-before="6pt" start-indent="from-parent(start-indent)" text-indent="0pt">I have read the foregoing statement, or the rules of the Chief Financial Officer relative thereto, and understand my rights and privileges and those of the lender relative to the placing of such insurance.</fo:block>
                                <fo:block font-family="Times New Roman" font-size="10pt + 1.0pt" id="d13e39" keep-together.within-column="always" line-height="10pt + 1.0pt + 1pt" space-before="6pt">Dated: July 22, 2009</fo:block>
				<fo:block font-family="Times New Roman" font-size="10pt + 1.0pt" font-weight="bold" keep-with-next="always" line-height="10pt + 1.0pt + 1pt" space-after="12pt" space-before="12pt">Owners</fo:block>
				<fo:block font-family="Times New Roman" font-size="10pt + 1.0pt" font-weight="bold" keep-with-next="always" line-height="10pt + 1.0pt + 1pt" space-before="12pt">ABC, Inc.</fo:block>
				<fo:block font-family="Times New Roman" font-size="10pt + 1.0pt" font-style="italic" keep-with-next="always" line-height="10pt + 1.0pt + 1pt" margin-left="12pt">a Georgia corporation</fo:block>
				<fo:block font-family="Times New Roman" font-size="10pt + 1.0pt" font-weight="bold" keep-with-next="always" line-height="10pt + 1.0pt + 1pt" space-before="12pt" margin-left="0.5in">DEF, Inc.</fo:block>
			</fo:wrapper>
		</fo:flow>
	</fo:page-sequence>
</fo:root>
LinesAndSpacing.rtf (application/rtf, 4.4 KB) - not displayed
LinesAndSpacing.pdf (application/pdf, 5.7 KB) - not displayed