apge numbers
This commit is contained in:
parent
842fc81f54
commit
71d8497a3c
@ -29,6 +29,7 @@ e2hprocessor='http://totalism.org:7777/glia2?sourceMethod=post&sinkFormat=text/g
|
||||
chapters=[]
|
||||
outputs=[]
|
||||
counter=0
|
||||
page=0
|
||||
ooooo_graphs="https://pad.constantvzw.org/p/atnofs-insert"
|
||||
|
||||
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)
|
||||
|
||||
# searches for ooooo insert
|
||||
if 'ooooo' in line:
|
||||
ooooo_insert=line.split('(')[1].split(')')[-2]
|
||||
# if 'ooooo' in line:
|
||||
# ooooo_insert=line.split('(')[1].split(')')[-2]
|
||||
|
||||
oooooc=0
|
||||
ooooo_insert=0
|
||||
if ooooo_insert:
|
||||
all_graphs = requests.get(ooooo_graphs+'/export/txt')
|
||||
graphs=all_graphs.text.split('[graph]"""')
|
||||
@ -130,7 +132,8 @@ for chapter in chapters:
|
||||
outputs.append(localhost+pdffile)
|
||||
|
||||
counter+=1
|
||||
|
||||
pages=pages+pypdftk.get_num_pages(localhost+pdffile)
|
||||
|
||||
# compiling all the files in one big pdf!
|
||||
|
||||
output = pypdftk.concat(outputs,out_file=localhost+outputname)
|
||||
|
Loading…
Reference in New Issue
Block a user