Change the form of the name given to each page of the PDF from "page.%d" to

"page.%dx"; this works around an acroread bug that causes targets not to be
recognized if their name is a prefix of another target in the file.
This commit is contained in:
Fred Drake 1998-04-15 14:53:28 +00:00
parent d671e8fb87
commit a88d681255
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ def write_toc(toc, fp):
def write_toc_entry(entry, fp, layer):
stype, snum, title, pageno, toc = entry
s = "\\pdfoutline goto name{page.%d}" % pageno
s = "\\pdfoutline goto name{page.%dx}" % pageno
if toc:
s = "%s count -%d" % (s, len(toc))
if snum: