Today, when building a PDF, the bottom border disappeared, and I can't figure out why.
I realized that I can't conditionalize (AFAIK) anything in the page layouts (I wanted to conditionalize the color of these borders), so I simply copied the page layout and modified the copy (not optimal, I know). Looking at the code of the original, I noticed that the footer content element was not centered. This was the footer frame in the normal page:
Code: Select all
<Frame Flow="footer" Anchors="" Right="0in" X="0in" Y="9.25in" ColumnCount="1" PaddingLeft="0in" PaddingRight="0in" PaddingTop="0in" PaddingBottom="0in" FlowIndex="1" Height="0.5in" VerticalAlign="middle" TextAlign="center" BorderTopStyle="solid" BorderTopWidth="3pt" BorderTopColor="#f68d39" Width="6.5in" Bottom="-72px">
<Content>
<xhtml:html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xhtml:head>
</xhtml:head>
<xhtml:body>
<xhtml:p xhtml:style="text-align: center;">- <MadCap:variable xhtml:name="System.PageNumber" /> -</xhtml:p>
</xhtml:body>
</xhtml:html>
</Content>
</Frame>
And this was the footer frame in the title page:
Code: Select all
<Frame Flow="footer" Anchors="" Right="0px" X="0in" Y="9.25in" ColumnCount="1" PaddingLeft="0in" PaddingRight="0in" PaddingTop="0in" PaddingBottom="0in" FlowIndex="1" Height="0.5in" BorderTopStyle="solid" BorderTopWidth="3pt" BorderTopColor="#f68d39" VerticalAlign="middle" TextAlign="center" Width="6.5in" Bottom="-72px">
<Content>
<xhtml:html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xhtml:head>
</xhtml:head>
<xhtml:body>
<xhtml:p>- <MadCap:variable xhtml:name="System.PageNumber" /> -</xhtml:p>
</xhtml:body>
</xhtml:html>
</Content>
</Frame>
So, in Notepad++, I copied the attribute in the xhtml:p element from the normal page to the title page. Somewhere along the line in this process, when I was testing the PDF output, the border defined in the header disappeared. This is that code:
Code: Select all
<Frame Flow="header" Anchors="" Right="0in" X="0in" Y="-0.75in" ColumnCount="1" PaddingLeft="0in" PaddingRight="0in" PaddingTop="0in" PaddingBottom="0in" Height="0.5in" VerticalAlign="bottom" TextAlign="left" BorderBottomStyle="solid" BorderBottomWidth="3pt" BorderBottomColor="#f68d39" Width="6.5in" Bottom="888px">
<Content>
<xhtml:html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xhtml:body>Chapter <MadCap:variable xhtml:name="Heading.Level1" /></xhtml:body>
</xhtml:html>
</Content>
</Frame>
At first I thought that the output was using the title page for everything, but the content still shows up, just not the rule at the bottom of the frame that indicates the divider between header and content. And I see the rule in the page layout editor. So I'm at a loss at this point to figure out what's going wrong.