Data visualization with SAS programming

How to use "Full Screen" option with ods PDF?

Reply
Occasional Contributor
Posts: 12

How to use "Full Screen" option with ods PDF?

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 ;

Super Contributor
Posts: 314

Re: How to use "Full Screen" option with ods PDF?

Posted in reply to SergioMiller

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.

Occasional Contributor
Posts: 12

Re: How to use "Full Screen" option with ods PDF?

Posted in reply to snoopy369

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.

Super User
Posts: 21,582

Re: How to use "Full Screen" option with ods PDF?

Posted in reply to SergioMiller

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.

Occasional Contributor
Posts: 12

Re: How to use "Full Screen" option with ods PDF?

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...

Super Contributor
Posts: 314

Re: How to use "Full Screen" option with ods PDF?

Posted in reply to SergioMiller

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.

Super User
Posts: 21,582

Re: How to use "Full Screen" option with ods PDF?

Posted in reply to SergioMiller

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

Occasional Contributor
Posts: 12

Re: How to use "Full Screen" option with ods PDF?

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

Super User
Posts: 21,582

Re: How to use "Full Screen" option with ods PDF?

Posted in reply to SergioMiller

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.

Ask a Question
Discussion stats
  • 8 replies
  • 592 views
  • 0 likes
  • 3 in conversation