Usage Note 24492: Using ODS RTF and PDF, when more than one J= is specified on a title or footnote, the text might wrap
When multiple J= options are used on a TITLE or FOOTNOTE statement, in the RTF and PDF destinations, the space for this TITLE or FOOTNOTE is divided into equal parts. For example, if all three possible J= options are specified, each J= text portion is allotted one third of the width of the page, minus the left and right margin settings. If two J= options are specified, each portion will be allocated one half the width of the page, minus the left and right margins. If one portion of the TITLE or FOOTNOTE takes up more than its allotment of the space, the text will wrap.
One workaround is to reduce the font size for the text. Another workaround is to separate the text into multiple TITLEs or FOOTNOTEs.
Problem code:
options nodate nonumber orientation=portrait;
ods rtf file="wrap.rtf" style=printer;
ods pdf file="wrap.pdf" style=printer;
title 'Problem' ;
footnote j=l "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" j=r "YYYYYYYYYYYYYYYYY";
proc print data=sashelp.class;
run;
ods _all_ close;
Workaround 1: reduce the font size
ods escapechar="^";
ods rtf file="fix1.rtf"; ods pdf file="fix1.pdf";
title 'Solution' ;
footnote j=l "^S={font_size=9.5pt}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" j=r "^S={font_size=9.5pt}YYYYYYYYYYYYYYYYY";
proc print data=sashelp.class;
run;
ods _all_ close;
Workaround 2: multiple TITLE statements
ods rtf file="fix2.rtf";
ods pdf file="fix2.pdf";
title j=l 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' ;
title2 j=c 'YYYYYYYYYYYYYYYYY';
proc print data=sashelp.class;
run;
ods _all_ close;
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Usage Note |
Priority: | low |
Topic: | Third Party ==> Output ==> RTF SAS Reference ==> ODS (Output Delivery System) System Administration ==> Printing Third Party ==> Output ==> PDF
|
Date Modified: | 2019-04-24 15:18:26 |
Date Created: | 2006-02-22 10:11:11 |