apge numbers

This commit is contained in:
friend 2022-12-14 00:54:09 +01:00
parent 842fc81f54
commit 71d8497a3c

View File

@ -29,6 +29,7 @@ e2hprocessor='http://totalism.org:7777/glia2?sourceMethod=post&sinkFormat=text/g
chapters=[] chapters=[]
outputs=[] outputs=[]
counter=0 counter=0
page=0
ooooo_graphs="https://pad.constantvzw.org/p/atnofs-insert" ooooo_graphs="https://pad.constantvzw.org/p/atnofs-insert"
indexmd = requests.get('https://pad.vvvvvvaria.org/atnofs-index.md/export/txt').text indexmd = requests.get('https://pad.vvvvvvaria.org/atnofs-index.md/export/txt').text
@ -53,10 +54,11 @@ with open(localhost+'index.md') as file:
chapters.append(line) chapters.append(line)
# searches for ooooo insert # searches for ooooo insert
if 'ooooo' in line: # if 'ooooo' in line:
ooooo_insert=line.split('(')[1].split(')')[-2] # ooooo_insert=line.split('(')[1].split(')')[-2]
oooooc=0 oooooc=0
ooooo_insert=0
if ooooo_insert: if ooooo_insert:
all_graphs = requests.get(ooooo_graphs+'/export/txt') all_graphs = requests.get(ooooo_graphs+'/export/txt')
graphs=all_graphs.text.split('[graph]"""') graphs=all_graphs.text.split('[graph]"""')
@ -130,7 +132,8 @@ for chapter in chapters:
outputs.append(localhost+pdffile) outputs.append(localhost+pdffile)
counter+=1 counter+=1
pages=pages+pypdftk.get_num_pages(localhost+pdffile)
# compiling all the files in one big pdf! # compiling all the files in one big pdf!
output = pypdftk.concat(outputs,out_file=localhost+outputname) output = pypdftk.concat(outputs,out_file=localhost+outputname)