Data visualization with SAS programming

ENTRYTITLE appearing truncated in PDF output

Reply
Frequent Contributor
Posts: 83

ENTRYTITLE appearing truncated in PDF output

I created a PDF, but the title, created using ENTRYTITLE appears truncated, but in the middle of a letter.  I can copy and paste the entire text.  Selecting a smaller font size "displays" the title as expect.  This was from 10pt to 8pt.

 

This is created using SAS v9.4 on the Unix OS with

 

ods listing

          style           = custom

          gpath         = "results"

          image_dpi = 350

          ;

 

ods graphics on

                   / reset  = all

                     imagename = "this"

                     imagefmt     = "pdf"

                     ;

 

I would appreciate any suggestions or directions.

 

Thank you,

 

Kevin 

                 

Super User
Posts: 11,343

Re: ENTRYTITLE appearing truncated in PDF output

Posted in reply to KevinViel

Please provide some example data in the form of a datastep and the entire code using that data to replicate the problem.

 

Since the limited amount of example code you show doesn't include ENTRYTITLE anywhere it is very hard to tell what the issues may be.

Frequent Contributor
Posts: 83

Re: ENTRYTITLE appearing truncated in PDF output

I will review the code.  I may not be able to post much, since it is for a client.

 

I reiterate that the appearance of the title in the PDF is truncated, unevenly in the middle of a letter.  I can copy and paste the ENTIRE title.

 

I suspect that the area for the ENTRYTITLE is being encroached upon by the area of the plot (WALLDISPLAY?).  What troubles me about that suspicion is that the truncation is "eratic".  Its not like a line is missing, rather only a portion of the line is showing.

 

Thank you,

 

Kevin

Contributor
Posts: 22

Re: ENTRYTITLE appearing truncated in PDF output

Posted in reply to KevinViel

I'm seeing the exact same thing - for the ENTRYTITLE text written to a PDF output, the last letter is only half-printed (the left-side of the letter is shown, but not the right-half). Seems as though SAS isn't telling the PDF the entire width of the title.

 

For example, my code was this:

proc template;
define statgraph LabPHEData;
dynamic _WEEK _Y1 _Y2 _GROUP_BY;
begingraph / datacolors=(YELLOW ORANGE RED);
   entrytitle halign=center textattrs=(FAMILY='Calibri' SIZE=8pt WEIGHT=bold) 'Influenza Positive Tests Reported by Our State Laboratory of Public Health (SLPH) and PHE Facilities';

and the output looks like what's in the attachment.

 

 

I solved the problem by adding a space (or two) to the end of the text, so my code became

entrytitle halign=center textattrs=(FAMILY='Calibri' SIZE=8pt WEIGHT=bold) 'Influenza Positive Tests Reported by Our State Laboratory of Public Health (SLPH) and PHE Facilities  ';

Capture.PNG
Ask a Question
Discussion stats
  • 3 replies
  • 352 views
  • 0 likes
  • 3 in conversation