I have removed the outputfmt=svg from the ods graphics statement. It is understanding that all ods pdf documents are vector graphics.
The ods pdf linesize statement gives the following error:
1896 ods pdf linesize 150; -------- 22 202 ERROR 22-322: Syntax error, expecting one of the following: ;, (, ACCESSIBLE, ACCESSIBLE_IDENTIFIER, ANCHOR, AUTHOR, BACKGROUND, BASE, BODY, BOOKMARK, BOOKMARKGEN, BOOKMARKLIST, BOX_SIZING, CLOSE, COLOR, COLUMNS, COMPRESS, CONTENTS, CSSSTYLE, DISPLAY, DOM, DPI, EXCLUDE, FILE, FONTSCALE, GFOOTNOTE, GTITLE, HOST, KEYWORDS, NAMED_DEST, NEWFILE, NOACCESSIBLE, NOACCESSIBLE_IDENTIFIER, NOBACKGROUND, NOBOOKMARKGEN, NOBOOKMARKLIST, NOCOLOR, NOCONTENTS, NOGFOOTNOTE, NOGTITLE, NOPDFNOTE, NOTOC, PACKAGE, PCL, PDF, PDFMARK, PDFNOTE, PDFTOC, PRINTER, PS, SAS, SELECT, SGE, SHOW, STARTPAGE, STYLE, SUBJECT, TEXT, TITLE, UNIFORM. ERROR 202-322: The option or parameter is not recognized and will be ignored.
I'm not sure if linesize can be used with ods pdf.
I have changed the font size for the title to 8 which doesn't wrap but it's unacceptable. It's left justified instead of centered on plot. Wrapping starts when the title length aligns with the left side of the lengend.
I have attached the updated plot.
%let dpi=350; ods graphics on/ reset=all border=off width=8.0in; ods pdf linesize 150; ods pdf dpi=&dpi file="G:\Data\Papers\Plots\graph1.pdf"; title j=c h=10pt f="Arial" "Figure 1. This is an example showing how sas is splitting of a title when I do not want SAS to do this" ; proc sgplot data=rates0 noautolegend noborder dattrmap=attrmap; series x=yeardx y=rate_pred/group=Group lineattrs=(pattern=solid thickness=2.0px) name="line" attrid=Group; scatter x=yeardx y=rate_pred/group=Group markerattrs=(symbol=diamondfilled size=7) attrid=Group; scatter x=yeardx1 y=rate_pred1/group=Group markerattrs=(symbol=circlefilled color=black size=11); xaxis values=(2004 to 2019 by 1) label="Year of visit" labelattrs=(Family='Arial' Size=9); yaxis values=(0 to 220 by 20) label="Rate (per 100,000)" labelattrs=(Family='Arial' Size=9); keylegend "line"/ location=inside position=topright linelength=.25in across=4 noborder valueattrs=(Family='Arial' Size=8); footnote j=l h=8pt f="Arial/bold" "*black dot indicates a spline location"; run; ods pdf close;
... View more