Hi,
The following code generates a Table of Contents inserted in the first page of the PDF.
However the term "Table of Contents" on this page is in English. Changing the local language doesn't change it to "Table des matières". Do you have any suggestion to fix it?
option locale=fr_FR;
ods pdf file ="&xxtest./reporting/test.pdf" contents;
proc print data=sashelp.class;
run;
ods pdf close;
Regards,
Thanks. Sending me the link made me realized that I hadn't considered the template. Here is the solution:
proc template; define style styles.test; parent=styles.pearl; class text / 'Content Title' = "Table des matières"; end; run; ods pdf file ="&xxtest./reporting/test.pdf" contents style=test; proc print data=sashelp.class; run; ods pdf close;
Text style element is defined in the default style template used by printer and therefore by pearl for PDF destinations.
Start a brand-new sas session with France version .
Hi,
I tried with the french Windowing Editor but it didn't change the title of the table of contents.
Wonder if you can use this approach for ODS PDF:
https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4265-2020.pdf
Thanks. Sending me the link made me realized that I hadn't considered the template. Here is the solution:
proc template; define style styles.test; parent=styles.pearl; class text / 'Content Title' = "Table des matières"; end; run; ods pdf file ="&xxtest./reporting/test.pdf" contents style=test; proc print data=sashelp.class; run; ods pdf close;
Text style element is defined in the default style template used by printer and therefore by pearl for PDF destinations.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.