Browse Source

pagesssss

master
friend 2 years ago
parent
commit
4da5373d16
  1. 2
      pdf-compile.py

2
pdf-compile.py

@ -100,7 +100,7 @@ for chapter in chapters:
style = requests.get(chapter.replace('pad/','stylesheet.css')) style = requests.get(chapter.replace('pad/','stylesheet.css'))
if page > 0: if page > 0:
style+='@page:first { counter-increment: page '+page+'; }' style+='@page:first { counter-increment: page '+str(page)+'; }'
stylefile=localhost+'.'+name+'/stylesheet.css' stylefile=localhost+'.'+name+'/stylesheet.css'
with open(stylefile, 'w') as file: with open(stylefile, 'w') as file:

Loading…
Cancel
Save