Browse Source

apge numbers

master
friend 2 years ago
parent
commit
71d8497a3c
  1. 7
      pdf-compile.py

7
pdf-compile.py

@ -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,6 +132,7 @@ 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!

Loading…
Cancel
Save