Quantcast
Channel: PTC Community : All Content - Arbortext
Viewing all articles
Browse latest Browse all 1645

How to deal with the box across pages?

$
0
0

Dear all,

 

I using the FOSI and the APP source edit for the box, but when the box across pages, we lost 2 line, can I add it in the source edit? thanks!

 

复件 ptc_1114_3.png

 

the APP source:

 

the example is:

var fish = formatting.fish[ template.stylerFish ];
var block = arguments[0];
var paragraph = block.defaultParagraph;
var style = block.defaultStyle;
var contextProp = arguments[1];

//Create a rule to apply to the block
//Rule is 2pt thick, solid, red and applied to all sides of the block

var rule = new fRule;
rule.sides = fRule.SIDE_BOX;
rule.thickness = "2pt";
rule.lineColor = "red";
rule.lineStyle = fRuleLine.LINE_SOLID;

//Apply the rule to the block
block.rules.addRule(rule);

//Add some padding to the block to provide some space between the rule and the content
block.paddingTop = block.paddingBottom = block.paddingLeft = block.paddingRight = "3pt";

 

 

and the "box" also can get the border:

 

var block = arguments[0];
var paragraph = block.defaultParagraph;
var style = block.defaultStyle;

//Apply a -2.999pt rule to the block to offset the main rule
var rule = new fRule();
with (rule) {
   thickness = "-2.999pt";
   lineColor = "None";
   sides = "tblr";
}
block.rules.addRule(rule);

//Apply the main rule to the block
var rule = new fRule();
with (rule) {
   //Line thickness
   thickness = "1pt";
   //Line colour
   lineColor = "Black";
   //Sides (top, bottom, left and right)
   sides = "tblr";
   //Fill colour specifies background for boxing
   fillColor = "#FFFFFF";
}
block.rules.addRule(rule);

//Apply a final rule to the block to remove the offset
var rule = new fRule();
with (rule) {
   thickness = "2pt";
   lineColor = "None";
   sides = "tblr";
}
block.rules.addRule(rule);

 

 

 

the FOSI source:

boxing toffset=3pt boffset=3pt loffset=2pt roffset=2pt thick=1pt inclr=#FFFFFF

 

 

 

Can I add the lines for the end/head of pages by update the source? Or could you give me any tips please?

Your assistance will be highly appreciated in this regard.

Thanking you


Viewing all articles
Browse latest Browse all 1645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>