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.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.