BookmarkSubscribeRSS Feed
Andy_Begg
Calcite | Level 5

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

5 REPLIES 5
ballardw
Super User

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.

Andy_Begg
Calcite | Level 5

Yes they both use the same template.

Cynthia_sas
SAS Super FREQ

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

Andy_Begg
Calcite | Level 5

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

The margins are specified in cm.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 5 replies
  • 2367 views
  • 0 likes
  • 4 in conversation