The SAS Output Delivery System and reporting techniques

ODS PDF vs RTF - same PROC REPORT but output differs!

Reply
Occasional Contributor
Posts: 11

ODS PDF vs RTF - same PROC REPORT but output differs!

Hello,

In my PROC REPORT I am creating both PDF and RTF files.

When I specify a long footnote the RTF accommodates it on one line where as the PDF flows onto the next line.

For the sake of the example say the footnote is:

footnote1 "This is the exceptionally long footnote that is causing a problem";

The RTF output would display it as follows (fits onto one line):

This is the exceptionally long footnote that is causing a problem

The PDF would display it as follows (flows onto the next line):

This is the exceptionally long footnote that is causing

a problem

Does anyone have an idea what would be causing this? It's almost as if the page sizes are different between the two formats.

Regards

Andrew

Grand Advisor
Posts: 9,748

Re: ODS PDF vs RTF - same PROC REPORT but output differs!

Did you specify the same style for both output formats? The default RTF and PDF may use different font sizes. Also the margin settings may be different for the different destinations.

Occasional Contributor
Posts: 11

Re: ODS PDF vs RTF - same PROC REPORT but output differs!

Yes they both use the same template.

SAS Super FREQ
Posts: 8,645

Re: ODS PDF vs RTF - same PROC REPORT but output differs!

Hi:

  But the fact is that RTF and PDF measure things differently. For example, if you specified font sizes as just relative numbers (without a unit of measure), then RTF would convert the size of the font to TWIPS (twentieths of a printers point), while PDF uses Point sizes. So, in fact, the same template could result with different font sizes used for each document. And, depending on the system options in effect, such as orientation, the page margins might be different. Depending on how you create an RTF file, the Word.dot template could/might change the margins on file open.

  For true debugging, I'd recommend working with Tech Support.

cynthia

Occasional Contributor
Posts: 11

Re: ODS PDF vs RTF - same PROC REPORT but output differs!

Both fonts are specified as 9pt and use the Courier New font.

The margins are specified in cm.

Esteemed Advisor
Esteemed Advisor
Posts: 6,726

Re: ODS PDF vs RTF - same PROC REPORT but output differs!

There will be small differences as have been mentioned above, and also other tiny things which can change outputs.  You will notice it a lot, even the same program run on different systems can shows slight differences - try a compare between RTF files on different systems, you may find that a column shows as different because its a minute fraction off.  This is because RTF is an interpreted markup language.  Each time it is loaded the Word (or RTF reader) installed on your particular system, with your particular settings, and the output generated by a specific SAS setup on a system, can generate slightly different results.  I would suspect with your particular problem that there is a column default hidden behind PDF somewhere which doesn't allow room for the full footnote.  Going to be difficult to track it down though.  Why not just produce the RTF, then print that from Word to PDF? Alternatively post a small sample data/proc report with your template so that we can re-run locally and see what comes out.

Post a Question
Discussion Stats
  • 5 replies
  • 625 views
  • 0 likes
  • 4 in conversation