Top Banner
Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC
24

Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Mar 29, 2015

Download

Documents

Marquise Titley
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC

Page 2: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Images

Page 3: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

SAS 913

SAS 920

Page 4: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

DPI – Dots per inch

700 x 250 at 150 DPI = 4.67 inches by 1.67 inches (SAS 913)

700 x 250 at 100 DPI = 7 inches by 2.5 inches (SAS 920)

Page 5: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Title placement vs. PDF Text

Page 6: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

SAS 920SAS 913

Page 7: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Startpage to the rescue!

ods escapechar = '^';

ods pdf file='text.pdf' startpage=now;

ods pdf startpage=no;

title 'Title statement';

ods pdf text = '^{style [just=center foreground=blue font_size=12pt] Text before the table}';

proc print data=sashelp.class(obs=5);run;

ods pdf close;

Page 8: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

ODS Layout

Page 9: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

ODS Layout in 9.2 – What Happened?

122 ods pdf close;

NOTE: ODS PDF printed 4 pages to c:\temp\9.2.pdf.

Page 10: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

ODS Layout – region statement

ods layout start columns=2 column_widths=(5in 5in);

ods region height=3.5in;

sasbyl
how to move down the red arrow/callout drawings??
Page 11: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Font improvements

Arial vs. Albany AMT

Times New Roman vs. Thorndale AMT

Courier New vs. Cumberland AMT

Page 12: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

PDF files in SAS 9.2, my how you’ve grown

Page 13: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Font Embedding

Page 14: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Font improvements – ignore themproc template; define style Styles.myPrinter; parent = styles.printer; class fonts / 'TitleFont2' = ("Times",12pt,bold italic) 'TitleFont' = ("Times",13pt,bold italic) 'StrongFont' = ("Times",10pt,bold) 'EmphasisFont' = ("Times",10pt,italic) 'FixedEmphasisFont' = ("Courier",9pt,italic) 'FixedStrongFont' = ("Courier",9pt,bold) 'FixedHeadingFont' = ("Courier",9pt,bold) 'BatchFixedFont' = ("SAS Monospace, Courier",6.7pt) 'FixedFont' = ("Courier",9pt) 'headingEmphasisFont' = ("Times",11pt,bold italic) 'headingFont' = ("Times",11pt,bold) 'docFont' = ("Times",10pt); end; run; ods pdf file="times_92.pdf" style=styles.myprinter;

Page 15: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Margin Control, SAS 913

.5 inch

Page 16: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

SAS 913

SAS 920

Page 17: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Text on Images

Page 18: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

ods pdf text = '^{style [foreground=black font_size=18pt just=right

backgroundimage="u:\pp\blkprttb.gif"]Interesting Text}';

ods pdf text = '^{style [cellwidth=8in cellheight=.5in foreground=black font_size=18pt

vjust=top just=right backgroundimage="u:\pp\blkprttb.gif"]Interesting Text}';

Text on Images

Page 19: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Proc Report - Spanrowsproc report data=sashelp.shoes nowd;

Page 20: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

proc report data=sashelp.shoes nowd SPANROWS;

Proc Report - Spanrows

Page 2…

Page 21: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

URLs in PDF

Page 22: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

ods pdf text = '^{style [url="http://www.sas.com" just=center linkcolor=white]

Here is the ^{style [color=blue]link} to SAS } ';

URLs in PDF

Page 23: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

ods pdf file='bookmark.pdf' bookmarkgen=off;

proc print data=sashelp.class(obs=3); run;

ods pdf bookmarkgen=on;

ods proclabel= “five obs proc print”;

proc print data=sashelp.class(obs=5) ; run;

Bookmark control

Page 24: Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.

Resources & Contact Information

Bari Lawhorn

Scott [email protected]

ODS Development [email protected]