Page 1 of 1
Empty Page Layout
Posted: Tue Jan 21, 2020 9:09 am
by Manohar_1024
Hello,
I want to get empty page.
I am
able to get it by using a backgroung image( a PNG witten as Empty Page).
But actually now i want get the
same thing as a text in the middle of the page by using CSS. Below is the code that i am using to get that
text in the center of my empty page.
Code: Select all
*[class ~= "map/map"] *[class ~= "topic/blank"] {
content: "Intentionally left blank";
display:block;
text-align:center;
margin-top: 2em;
}
@page :blank {
@top-left {content: none};
@top-right {content: none};
@bottom-left {content: none};
@bottom-right {content: none};
@top-center {content: none};
@bottom-center {content: none};
}
I am using DITA transformation using CSS.
Thank you,
Manohar.
Re: Empty Page Layout
Posted: Tue Jan 21, 2020 1:48 pm
by Costin
Hi,
This is not an oXygen XML issue, but a CSS customization.
However, you could try to set an outputclass attribute (say "blankPageAfter") on the topicref after you need the blank-page (with "Intentionally left blank" text) , then use something like:
Code: Select all
*[class ~= "blankPageAfter"]:after {
page: blank;
content: "Intentionally left blank";
text-align: center;
margin-top: 2em;
}
@page blank {
@top-left {content: none};
@top-right {content: none};
@bottom-left {content: none};
@bottom-right {content: none};
@top-center {content: none};
@bottom-center {content: none};
}
Re: Empty Page Layout
Posted: Fri Jan 24, 2020 10:31 am
by Manohar_1024
Hello,
I am getting the empty page after chapters and subchapters
But page number
restting for chapter and subchapter is getting effected. i am using the below CSS rule and an
output class "blankPageAfter" in chapter and subchapter topic refs.
Code: Select all
*[class ~= "blankPageAfter"]:after {
page: blankpage;
content: "Intentionally left blank page";
text-align: center;
display:block;
padding-top: 60%;
padding-bottom: 50%;
;
}
@page blankpage:left{
margin-right:2.5cm !important;
margin-left:1.5cm !important;
@top-left {content: none};
@top-right {content: none};
@bottom-left {content: none};
@bottom-right {content: none};
@top-center {content: none};
@bottom-center {content: none};
}
Previously i am able to achieve page numbering reset for chapter and subchapters but now it is not happening.
Code: Select all
*[class ~= "map/map"] *[class ~= "topic/topic"][is-chapter]:not([is-part]) > *[class ~= "topic/topic"] {
counter-increment:section1!important;
counter-reset:section2 tablecount figcount !important;
counter-reset:page 1 !important;
}
*[class ~= "map/map"] *[class ~= "topic/topic"][is-chapter]:not([is-part]) > *[class ~= "topic/topic"] > *[class ~= "topic/topic"] {
counter-increment:figcount!important;
counter-increment:page!important;
counter-increment:section2!important;
counter-reset:section3!important;
}
I am using deep chapter- scope parameter also and using CSS for pdf output transformation in DITA.
Thankyou,
Manohar.
Re: Empty Page Layout
Posted: Tue Jan 28, 2020 6:09 pm
by Costin
Then maybe adding also
Code: Select all
*[outputclass~="blankPageAfter"]:after{
counter-reset: page;
}
in your CSS could force the page reset.
Regards,
Costin