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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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