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.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.