BookmarkSubscribeRSS Feed
SergioMiller
Fluorite | Level 6

Hi!!

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 Smiley Sad

I also attach the pdf file.

Can some one help me? Thx in advance!!

This is the graphic:

Infografia.PNG

This is the pdf part of the code:

goptions DEVICE=pdfc;

options orientation=landscape;

options nodate;

options nonumber;

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

   ulx=0.55  uly=79.26

      urx=58.66  ury=79.26

      lrx=58.66   lry=44.27

   2/ llx=0.55    lly=79.26

   ulx=0.55  uly=87

      urx=58.66  ury=87

      lrx=58.66   lry=79.26

   3/ llx=0.55    lly=0.77

   ulx=0.55  uly=35.76

      urx=58.66  ury=35.76

      lrx=58.66   lry=0.77

   4/ llx=0.55    lly=35.76

   ulx=0.55  uly=43.50

      urx=58.66  ury=43.50

      lrx=58.66   lry=35.76

   5/ llx=59.21   lly=0.77

   ulx=59.21  uly=79.26

      urx=99.45  ury=79.26

      lrx=99.45   lry=0.77

   6/ llx=59.21   lly=79.26

   ulx=59.21  uly=87

      urx=99.45  ury=87

      lrx=99.45   lry=79.26

   7/ llx=0  lly=87.77

   ulx=0  uly=100

      urx=100  ury=100

      lrx=100   lry=87.77

   template custom;

   treplay

  1:rank1 2:Titulo1 3:rank2 4:Titulo2 5:slope 6:Titulo3 7:Header

    des='' name="&name";

run;

quit;

ods pdf close ;

ods listing ;

8 REPLIES 8
snoopy369
Barite | Level 11

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.

SergioMiller
Fluorite | Level 6

I don't know how to use these options or what modify.

I search in google "TAGSETS STYLE" but I didn't find something that looks usefull for my problem.

Reeza
Super User

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;

SAS(R) 9.3 Output Delivery System: User's Guide, Second Edition

That style will have some padding for the boundaries. You can modify that by creating a custom style.

SergioMiller
Fluorite | Level 6

I wasn't using any style.

I tryied with style = minimal but it also has boundaries. I going to investigate how to create and use a custom Style with no boundaries...

snoopy369
Barite | Level 11

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.

Reeza
Super User

Is there such a thing as no style or does it use the default style?

SergioMiller
Fluorite | Level 6

You're right, I'm using SAS EG default style...

Reeza
Super User

If you're in EG, there's a style editor that is point and click Smiley Happy

Tools>Style Manager

Copy the style that want or are using and then modify the margins of 8px to 0px instead.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 8 replies
  • 2018 views
  • 0 likes
  • 3 in conversation