The SAS Output Delivery System and reporting techniques

ods pdf -- frame/border around entire page

Accepted Solution Solved
Reply
Contributor
Posts: 37
Accepted Solution

ods pdf -- frame/border around entire page

any suggestions how I put a frame/border around the entire page, in an ods pdf output?

(I've got a number of layout pieces, and would like them all enclosed in a single frame - what the boss wants)

thanks,

Dave

 

 


Accepted Solutions
Solution
‎12-06-2017 03:07 PM
Super Contributor
Super Contributor
Posts: 260

Re: ods pdf -- frame/border around entire page

[ Edited ]

I would have guessed BORDER or FRAME rather than ANNOTATE.

 

 

proc gslide border
    cframe="black"
    wframe=4;

 

http://documentation.sas.com/?docsetId=graphref&docsetVersion=9.4&docsetTarget=n15s6i8fnays79n1u46q5...

 

"The BORDER option draws a box around the entire graphics output area."

View solution in original post


All Replies
Super Contributor
Super Contributor
Posts: 260

Re: ods pdf -- frame/border around entire page

It looks to me like you would create a region that was the whole page and then have your layout pieces inside that.

 

This :

 

http://www2.sas.com/proceedings/sugi31/159-31.pdf

 

shows a page background with blue and parts inside it.

 

Where it has

ods region
x=0 pct
y=0 pct
height=100 pct
width =100 pct;
goptions cback=cyan;

you may be able to figure out how to set a border instead of a background color.

 

HTH.

 

Contributor
Posts: 37

Re: ods pdf -- frame/border around entire page

thanks for the reply. I had seen the paper you referred to, but was hoping to avoid gslide.  I did try, but am not getting the hoped-for results:


options nodate nonumber;

title;

 
ods pdf file = "C:\a\test.pdf" NOGTITLE ;

%ANNOMAC

data anno;
%bar(0,0,100,100,cyan,e,1);
XSYS='3';
YSYS='3';
output;
run;

 

ods layout start;
ods region
x=0 pct
y=0 pct
height=100 pct
width =100 pct;
proc gslide anno=anno;
run; quit;
ods layout end;
ods pdf close;

Solution
‎12-06-2017 03:07 PM
Super Contributor
Super Contributor
Posts: 260

Re: ods pdf -- frame/border around entire page

[ Edited ]

I would have guessed BORDER or FRAME rather than ANNOTATE.

 

 

proc gslide border
    cframe="black"
    wframe=4;

 

http://documentation.sas.com/?docsetId=graphref&docsetVersion=9.4&docsetTarget=n15s6i8fnays79n1u46q5...

 

"The BORDER option draws a box around the entire graphics output area."

Contributor
Posts: 37

Re: ods pdf -- frame/border around entire page

that works - thanks!

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 232 views
  • 0 likes
  • 2 in conversation