Empty Page Layout

Post here questions and problems related to editing and publishing DITA content.
Manohar_1024
Posts: 53
Joined: Wed Mar 27, 2019 10:12 am

Empty Page Layout

Post 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.
Costin
Posts: 846
Joined: Mon Dec 05, 2011 6:04 pm

Re: Empty Page Layout

Post 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};
}
Costin Sandoi
oXygen XML Editor and Author Support
Manohar_1024
Posts: 53
Joined: Wed Mar 27, 2019 10:12 am

Re: Empty Page Layout

Post 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.
Costin
Posts: 846
Joined: Mon Dec 05, 2011 6:04 pm

Re: Empty Page Layout

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
Post Reply