- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Using the following code:
ods escapechar = "^";
footnote height = 7pt 'Page ^{thispage} of ^{lastpage}';
The following result is shown:
What causes this?
- Tags:
- ods pdf
- page x of y
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
This works for me in SAS 9.4M5:
As you can see, I used the ESCAPECHAR functions in both the TITLE and the FOOTNOTE and they both worked in PDF. Since you didn't show all your code, it could be a style issue, a font issue or some other issue. There were, in the past, problems possible if you tried to use {thispage} and {lastpage} in code that included Graphics procedure output or background images. But you didn't show your code, so it's hard to tell. Here are some relevant Tech Support notes to check out.
http://support.sas.com/kb/56/041.html and
http://support.sas.com/kb/34/573.html
If none of the suggested fixes work for you, then I'd suggest opening a track with Tech Support.
Cynthia
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
This works for me in SAS 9.4M5:
As you can see, I used the ESCAPECHAR functions in both the TITLE and the FOOTNOTE and they both worked in PDF. Since you didn't show all your code, it could be a style issue, a font issue or some other issue. There were, in the past, problems possible if you tried to use {thispage} and {lastpage} in code that included Graphics procedure output or background images. But you didn't show your code, so it's hard to tell. Here are some relevant Tech Support notes to check out.
http://support.sas.com/kb/56/041.html and
http://support.sas.com/kb/34/573.html
If none of the suggested fixes work for you, then I'd suggest opening a track with Tech Support.
Cynthia
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Cynthia,
Thanks for the links to the KB notes. The PRINTERPATH = PDF option activation seems to have resolved the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I had the same issue with "Lastpage".
This problem is described here Problem Note 56041: The LASTPAGE inline style command might display garbled text in PDF files
The following line was a solution in my case:
options printerpath=pdf;