summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <default@localhost.localdomain>2019-12-30 20:23:00 -0300
committerdefault <default@localhost.localdomain>2019-12-30 20:23:06 -0300
commit676de7e59f0627b5ab7c40b3ea129073ca3d8ed9 (patch)
treeb3b16a79ae370d0320278591e799d7b6fcc1ba08
parent7a99167c6cb90211b2605bfef8026505d7df8089 (diff)
Save page numbers before PDF canvas
The PDF canvas save fails if any bookmarks are unresolved, which means we lose the update about which page numbers things are on. Approximate page numbers are better than none, I say.
-rwxr-xr-xgenpdf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/genpdf.py b/genpdf.py
index 8b9ca70..dc1f60a 100755
--- a/genpdf.py
+++ b/genpdf.py
@@ -741,8 +741,8 @@ def main(path):
render(pagenos, corpus, bookmarkname, canvas, root, fonts)
- canvas.save()
pagenos.save()
+ canvas.save()
if __name__ == '__main__':
cgitb.enable(format='text')