The SAS Output Delivery System and reporting techniques

company logo appears too large after migration from SAS 9.1.3 to SAS 9.3

Reply
Super Contributor
Posts: 307

company logo appears too large after migration from SAS 9.1.3 to SAS 9.3

We have many reports that include the company logo at the top of each page using the TITLE1 and PREIMAGE technique as follows . . .

ods listing close;

ods escapechar='^';

... more SAS statements . . .

%let style = PrinterListing;

%let outfile = "some output path\some file name.pdf";

ods printer pdf startpage = no sas file = &outfile uniform notoc;

    title j=l '^S={preimage="our logo path\our corporate logo.jpg"}';

. . . more SAS statements

In SAS 9.1.3, the logo appeared "just the right size" in PDF.

After moving to SAS 9.3, the logo appears too large.

(In fact, all of the text and graphics elements in PDF output in SAS 9.3 appear larger than under SAS 9.1.3.)

I've searched the forum and the internet for a solution. Unfortunately, I haven't been able to find anything with an obvious answer.

Anyone ideas?

Super User
Posts: 10,483

Re: company logo appears too large after migration from SAS 9.1.3 to SAS 9.3

Some styles, even with the same name, changed between 9.1, 9.2 and 9.3. I had similar issues with appearance an fit of fonts.
Since PrinterListing doesn't appear to be a SAS supplied style from my list of 9.3 styles.  You may need to rebuild it and be careful with the code if this was based on a SAS supplied style as inheritance sources changed across versions, especially 9.1 to 9.2.

Super Contributor
Posts: 307

Re: company logo appears too large after migration from SAS 9.1.3 to SAS 9.3

@ballardw . . . Good catch on the "printerlisting" style. I was in such a hurry to answer my specific issue that I completely omitted to consider that this style may have been a custom style or one that was not included in 9.3. The contractor ramming through the migration should have considered this, of course. Obviously, we are now forced to deal with our style templates!

Super Contributor
Posts: 307

Re: company logo appears too large after migration from SAS 9.1.3 to SAS 9.3

@ ballardw . . . we rem'd out the style=PrinterListing command and this seems to have resolved the issue with font sizes being too large. Thanks for pointing me in that direction.

SAS Super FREQ
Posts: 8,742

Re: company logo appears too large after migration from SAS 9.1.3 to SAS 9.3

Hi, there was a paper by Scott Huntley and Bari Lawhorn on the font and sizing changes between SAS 9.1/9.2 http://support.sas.com/resources/papers/proceedings10/035-2010.pdf and then this paper:http://support.sas.com/resources/papers/proceedings14/SAS038-2014.pdf has an updated section on PDF specifically for Graphs. If you can't resolve your issue after reading these papers, then my suggestion is to open a track with Tech Support.

  

cynthia

Super Contributor
Posts: 307

Re: company logo appears too large after migration from SAS 9.1.3 to SAS 9.3

@ Cynthia . . . Thanks for those links. I'm reading them through and will let you know how it goes . . .

Super Contributor
Posts: 307

Re: company logo appears too large after migration from SAS 9.1.3 to SAS 9.3

@ Cynthia . . . after perusing those papers, it seems that the authors are saying that (for ODS PDF output, at least) DPI determines image size when PREIMAGE is used in a title/footnote statement. This appears to be confirmed according to this paper by Scott Huntley and yourself: http://www.mwsug.org/proceedings/2014/SS/MWSUG-2014-SS03.pdf. Refer to bottom of page 23 - 25.

The recommendation seems to be to ensure graphics for ODS PDF have a DPI=150.

Super Contributor
Posts: 307

Re: company logo appears too large after migration from SAS 9.1.3 to SAS 9.3

@Cynthia . . . further to my earlier reply, I replaced the logo with one that is 150 DPI and sized appropriately. This seems to have resolved the logo issue. Thank you for pointing me in that direction.

Ask a Question
Discussion stats
  • 7 replies
  • 675 views
  • 6 likes
  • 3 in conversation