BookmarkSubscribeRSS Feed
VijayKumar
Calcite | Level 5

Hi ,

To add a logo to the first pdf page , I created a style as below

proc template;

     define style lg;

     parent=styles.printer;

     style body from document /

     background=_undef_

     backgroundimage="logo.jpg";

     end;

run;

But this logo gets added to every pdf page which is not the requirement.  I used ODS PDF style=none after the first page..., but still no success.

Please help!


1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  If you search for previous forum postings, you will see that this question has come up several times.

https://communities.sas.com/message/10450#10450
https://communities.sas.com/message/56745#56745

 

This Tech Support note explains how to use a style template to insert a banner image into PDF output:

http://support.sas.com/kb/5/285.html  (Note that they use STYLE TABLE as the recommended template approach, and NOT STYLE BODY, as you show in your attempt.)

  

  Otherwise, this Tech Support note:

http://support.sas.com/kb/36/707.html

shows how to use the PREIMAGE style attribute to insert a logo into a title statement. You can use the PREIMAGE attribute either with or without the URL= attribute shown in this note.

  Do note, that if you use the PREIMAGE technique, you cannot also use the ESCAPECHAR and/or functions for page numbering:

http://support.sas.com/kb/34/573.html

 

cynthia

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
  • 1 reply
  • 374 views
  • 0 likes
  • 2 in conversation