Place images in titles routed to ODS PDF


To place images in the title or footnote area of a PDF file, use the PREIMAGE= or POSTIMAGE= style attribute as shown in the following code:

   ods escapechar='^';
   options nodate nonumber orientation=portrait;
   ods pdf file="images.pdf" notoc;

   title j=l '^S={preimage="saslogo.jpg"}'
         j=r '^S={postimage="saslogo.jpg"}';
   footnote j=l '^S={preimage="saslogo.jpg"}'
            j=r '^S={postimage="saslogo.jpg"}';    
   proc print data=sashelp.cars(obs=3) noobs;
   run;

   ods _all_ close; 

See SAS Note 46333 for the recommended attributes for images included in PDF files generated by ODS.

See SAS Online Documentation for additional reference regarding the ODS ESCAPECHAR statement and the use of inline style formatting commands.


Output

images.pdf