04-18-2014 03:54 PM
Hello EG Users,
I am generating simple PDF report that has numerical matrix and plot. I want to fit all this data on one single page, just the way it has been generated in microsoft excel so far.
I read about STARTPAGE option available for ODS PDF statement:
ods pdf startpage=OFF style=sasweb ;
I tried NEVER, NO values, but yet the pdf file has two pages, one for numerical matrix and other for plot.
I would appreciate suggestions on how to go about fitting everything on one page.
04-18-2014 04:20 PM
Since PDF does recognize pages if the size of the plot plus a table is too large for the physical layout then the items will appear on different pages because the chart can't be split. You might be able to get things to fit by changing font sizes for the text / table output, reducing margins or controlling the size of the chart.
04-18-2014 10:54 PM
Here's an example using ODS GRAPHICS where ALL 19 rows of SASHELP.CLASS fit on the same page as a 4"x6" bar chart done with ODS GRAPHICS. Screen shot of output shows that both outputs fit on 1 page. You would need different options (GOPTIONS) if the graph procedure were SAS/GRAPH, but the concept would be the same.
ods listing close;
ods pdf file='c:\temp\onepagexy.pdf' startpage=no notoc;
proc print data=sashelp.class;
ods graphics / height=4in width=6in;
proc sgplot data=sashelp.class;
vbar age / response=height stat=mean;
ods pdf close;