Issue with @top-right formatting on @page :first - Chemistry 24
Posted: Fri Sep 23, 2022 4:30 pm
I am trying to customize the header of the first page of a pdf document.
But the top right header is always displayed blank.
I can move the code in the top right to the top-center and it works, so I dont think it is a coding issue. The top-left header works.
I have the same code also being applied the the @page :right, :left. and it works.
Code: Select all
/*TITLE PAGE */
@page :first{
/*Header */
@top-left{
content:oxy_xpath('//*[contains(@class, "front-page/front-page")]/*/*[contains(@class, "topic/othermeta")][@name="bulletinservice"][1]/@content');
border-bottom: 2px solid grey;
vertical-align: bottom;
color:black;
font-weight:900;
font-size:12pt;
background-image: url("img/agfalogo_bulletin.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-position:left center;
}
@top-center{
content:" ";
border-bottom: 2px solid grey;
vertical-align: bottom;
}
@top-right{
content:oxy_xpath('//*[contains(@class, "front-page/front-page")]/*/*[contains(@class, "topic/othermeta")][@name="productname"][1]/@content') "\A" oxy_xpath('//*[contains(@class, "front-page/front-page")]/*/*[contains(@class, "topic/othermeta")][@name="releasenumber"][1]/@content');
border-bottom: 2px solid grey;
vertical-align: bottom;
color:black;
font-weight:900;
font-size:12pt;
}
....
}
I can move the code in the top right to the top-center and it works, so I dont think it is a coding issue. The top-left header works.
I have the same code also being applied the the @page :right, :left. and it works.