The SAS Output Delivery System and reporting techniques

PDF proc report: break within word and cell heading

Reply
Regular Contributor
Regular Contributor
Posts: 156

PDF proc report: break within word and cell heading

Dear all,

I have a proc report which displays nicely in HTML. When I change to ODS PDF I get some wired breaks. I have cell values (a group variable) where a break occurs within a word, e.g. the German word "Folgetagsbearbeitung" displays like this:
Folgetagsbearbeitun
g

Then I have breaks in cell headings where a blank is. This doesn't happen in HTML.

How can I suppress both of these breaks?

Best wishes
Eva
SAS Super FREQ
Posts: 8,862

Re: PDF proc report: break within word and cell heading

Hi:
HTML and PDF are 2 inherently different destinations. HTML tables can be as wide as they need to be because the underlying principal of HTML is that the content on the page will be rendered with a browser. PDF output is not meant to be edited -- it is meant to be viewed with Adobe Acrobat Reader. This means that PDF output is bound by the physical limitations of a "page" -- insofar as orientation and margins are set within your SAS session -- they will have an effect on your PDF output and PDF will slightly adjust the cellwidth of table cells, in necessary to fit into a PDF page, so unlike HTML, a PDF document CANNOT be as wide as it needs to be. Just because something looks OK in HTML does not mean it will look equally OK in a "paged" destination.

You might need to work with your PROC REPORT step and test out different STYLE= attribute settings to see whether you can "tweak" the PDF output to be as you want. These settings include any or all of these suggestions:
1) changing orientation from PORTRAIT to LANDSCAPE
2) changing document margins (these first 2 are changed on an OPTIONS statement
3) changing the report table OUTPUTWIDTH in the PROC REPORT statement
4) changing CELLWIDTH and CELLPADDING and/or FONT_SIZE in the PROC REPORT statement or the DEFINE statement for a particular cell.

If you search previous forum postings for a post which contains the words "very wide", you will see an example of a program that illustrates these techniques.

cynthia
Regular Contributor
Regular Contributor
Posts: 156

Re: PDF proc report: break within word and cell heading

Posted in reply to Cynthia_sas
Dear Cynthia,

thanx a lot. Cellwidth did it!

Best wishes
Eva
Ask a Question
Discussion stats
  • 2 replies
  • 134 views
  • 0 likes
  • 2 in conversation