The SAS Output Delivery System and reporting techniques

Underlining text in a PDF

Reply
New Contributor
Posts: 4

Underlining text in a PDF

Does anyone have any insight as to why the underlining that should appear under the text appears in different locations based on the height of the region it is in?

[pre]
OPTIONS NODATE NONUMBER ORIENTATION=portrait PAPERSIZE=letter;

ODS LISTING CLOSE;

ODS ESCAPECHAR='^';

ODS PDF FILE="underline.pdf" NOTOC;

ODS LAYOUT START x=0 pct y=0 pct width=100 pct height=100 pct;
PROC GSLIDE;
RUN;
QUIT;

ODS REGION x=0 in y=0 in width=5 in height=1 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]This underlined line of text is in a region that is 0 inches down and is 1 inch high.}";

ODS REGION x=0 in y=1 in width=1.5 in height=1 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]1 in. down, 1 in. high}";

ODS REGION x=1.5 in y=1 in width=1.5 in height=2 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]1 in. down, 2 in. high}";

ODS REGION x=3 in y=3 in width=1.5 in height=1 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]3 in. down, 1 in. high}";

ODS REGION x=4.5 in y=3 in width=1.5 in height=3 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]3 in. down, 2 in. high}";

ODS REGION x=6 in y=3 in width=1.5 in height=4 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]3 in. down, 4 in. high}";

ODS LAYOUT END;

ODS _ALL_ CLOSE;
ODS LISTING;
[/pre]
SAS Super FREQ
Posts: 8,743

Re: Underlining text in a PDF

Hi:
ODS LAYOUT is still "pre-production", so you might want to check with Tech Support. I'm not exactly sure how text_decoration and ODS TEXT= work in the context of ODS LAYOUT and ODS REGION.

Since ODS LAYOUT is still "pre-production" if you open a track with Tech Support, they will be able to ask the ODS LAYOUT developers how/why and how to fix types of questions.

cynthia
New Contributor
Posts: 4

Re: Underlining text in a PDF

FYI to anyone else grappling with this: don't knock yourself out trying to get it to work correctly; I've had it confirmed from SAS tech support that this is a defect.
Ask a Question
Discussion stats
  • 2 replies
  • 177 views
  • 0 likes
  • 2 in conversation