I have a problem trying to remove the margins in ods PDF.
I designed this with SAS Graph but i cannot find the options to completly remove Margins. I want to use full screen and I cannot do it
I also attach the pdf file.
Can some one help me? Thx in advance!!
This is the graphic:
This is the pdf part of the code:
OPTIONS LEFTMARGIN=0in RIGHTMARGIN=0in TOPMARGIN=0in BOTTOMMARGIN=0in;
ODS LISTING CLOSE;
ODS pdf file="&ruta&name..pdf" startpage=no;
goptions xpixels=912 ypixels=647;
proc greplay nofs igout=work.gseg tc=tempcat;
tdef custom des='Dashboard'
1/ llx=0.55 lly=44.27
2/ llx=0.55 lly=79.26
3/ llx=0.55 lly=0.77
4/ llx=0.55 lly=35.76
5/ llx=59.21 lly=0.77
6/ llx=59.21 lly=79.26
7/ llx=0 lly=87.77
1:rank1 2:Titulo1 3:rank2 4:Titulo2 5:slope 6:Titulo3 7:Header
ods pdf close ;
ods listing ;
I don't have time to check but I'd recommend looking at the style template, probably the TABLE or BODY element has some padding/margin in it. Most of the default elements do have a small amount. You could try running it with TAGSETS.STYLE_POPUP and seeing if it reports that margin coming from a particular element.
What style are using?
You can specify the custom style in your ods pdf statement, eg.
ODS pdf file="&ruta&name..pdf" startpage=no style=minimal;
That style will have some padding for the boundaries. You can modify that by creating a custom style.
Highly recommend http://support.sas.com/rnd/base/ods/scratch/tables-from-sc-paper.pdf for that purpose. Kevin Smith's explanations are very concise and to the point.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.