BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I have created a ods pdf where i am using following code

proc report data = detail2_all_1 headline headskip nowindows

style(report)=[bordercolor = black background=_undef_ rules=rows frame = void]
style(header)=[just =left font_face = arial font_weight = Bold font_size = 8pt font_style = italic background = white]
style(column)=[just =left font_face = arial font_style = Italic font_size = 8pt]
ls =200;

i am getting the result all fine except for one thing.

I am getting horizontal lines ni between each record with varying thickness. Some lines are dark and some are light.

Is here any way to control the thicknes sof the lines here?

Thanks,
Amar
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
Frequently with ODS PDF output, Acrobat Reader is opened at less than 100% size for zooming. What I have noticed is that lines in PDF output can appear thicker or thinner on a report, depending on the zoom level. Sometimes, it even looks like lines are disappearing. This is a function of screen resolution and how the "image" of the report in PDF is zoomed up or down.

If you increase the ZOOM level to 100%, usually the lines will get more regular in appearance. I always notice that if/when I print the output, there is no difference between one line and another.

If you continue to have issues with ODS PDF appearance that zooming doesn't fix, it is possible (but unlikely) that some cells have a different borderwidth than other cells. You might work with Tech Support on debugging this. However, I would recommend the zooming or printing approach first -- to see if there's really a difference in the lines.

cynthia
Ksharp
Super User
Hi.
I agree with Cynthia. It looks like zoom make this problem.
When I run the following code and open it from c:\ without bookmark and set zoom=150%
Problem is dispeared.
The best thing to find it out is to print a page with your printer and see whether line thinner or thicker.


ods pdf file='c:\x.pdf' 
;



proc report data =

sashelp.class
headline headskip nowindows style=default



 



style(report)=[bordercolor

= black background=_undef_ rules=rows frame = void]



style(header)=[just =left font_face
= arial font_weight = Bold font_size =
8pt font_style =
italic background = white]



style(column)=[just =left font_face
= arial font_style = Italic
font_size =
8pt]



ls =200;



run;



ods pdf close;


[pre]


Ksharp
[/pre]

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1209 views
  • 0 likes
  • 3 in conversation