The SAS Output Delivery System and reporting techniques

printing graphic images in SAS ODS PROC REPORT

Reply
N/A
Posts: 0

printing graphic images in SAS ODS PROC REPORT

A letter with a graphic image prints with a transparent background in MS Word but not when rendered as a pdf under SAS ODS Proc Report. The problem may occur in the method of display in the Adobe Acrobat reader or in the method specified by SAS. Has anyone encountered this problem and found a solution. Thanks in advance for any help that you might offer.
Sig
Super Contributor
Posts: 260

Re: printing graphic images in SAS ODS PROC REPORT

Posted in reply to deleted_user
The problem with PDF Files is that they don't include fonts as a default, and use only a limited selection of fonts : fonts like Symbol or Windings are not part of this selection.
A workaround is to include font definition in the PDF document ; this is called "embedded fonts". You can add fonts that you want to embed when producing PDF files with SAS, using the FONTREG procedure. This only works beginning with SAS 9.1.
Here is an example that does work under Windows...

PROC FONTREG ;
FONTFILE "C:\WINDOWS\Fonts\webdings.TTF" ;
RUN ;

ODS PDF FILE = "c:\temp\test.pdf" ;
PROC REPORT DATA = sashelp.class NOFS ;
COLUMN age sex weight ;
DEFINE age / GROUP ;
DEFINE sex / GROUP STYLE = [FONT_FACE = "Webdings"] ;
DEFINE weight / ANALYSIS MEAN ;
RUN ;
ODS PDF CLOSE ;


I hope this is what you meant by "graphic image prints".
Regards

Olivier
N/A
Posts: 0

Re: printing graphic images in SAS ODS PROC REPORT

Posted in reply to deleted_user
Thanks, Olivier, for the useful information about fonts.

I don't know at this point which font might take care of the grey background problem. Color printers appear to have the required fonts, but not Adobe displays or standard BW printers.

We are attempting to print a signature onto a letter. We scanned the signature from a letter. A pdf rendition of the letter and graphics signature file leaves a grey background behind the signature.

We'll see what happens when we specify typical graphics fonts....
SAS Super FREQ
Posts: 8,862

Re: printing graphic images in SAS ODS PROC REPORT

Posted in reply to deleted_user
This was in the Adobe knowledge base:
http://www.adobe.com/support/techdocs/330714.html

9. Adjust the transparency flattening. (Acrobat Professional only)

If a document contains transparent objects, Acrobat flattens the document before printing it. Flattening removes transparency information and converts images to a format the printer can interpret.
Adjust the transparency flattening to determine if transparency is causing the problem.


To adjust the transparency flattening:
1. Choose File > Print, and then click Advanced.
2. Choose Transparency Flattening from the menu.
3. Adjust the Raster/Vector Balance:
-- If you print to an inkjet printer, drag the Raster/Vector Balance slider to the lowest setting.
-- If you print to a PostScript printer, drag the Raster/Vector Balance slider to the highest setting.
4. Select Convert All Text To Outlines.
5. Deselect Clip Complex Regions, click OK, and then click Print.

Even though the note is for Acrobat Professional, it sounds like the behavior is something Adobe-related.
cynthia
Ask a Question
Discussion stats
  • 3 replies
  • 159 views
  • 0 likes
  • 3 in conversation