dickreckard 2 years ago
parent
commit
13e7fc9478
  1. 3
      pdf-compile.py

3
pdf-compile.py

@ -15,6 +15,7 @@ PAGEDJSCLI = localconf.PAGEDJSCLI
BASECSS = 'https://hub.vvvvvvaria.org/rosa/pad/p/design-trial_2.css/export/txt' BASECSS = 'https://hub.vvvvvvaria.org/rosa/pad/p/design-trial_2.css/export/txt'
localhost = '/var/www/html/pdfs/' localhost = '/var/www/html/pdfs/'
localgs = '/var/www/html/svgs/'
localurl = 'http://localhost/pdfs/' localurl = 'http://localhost/pdfs/'
outputname='atnofs-compiled.pdf' outputname='atnofs-compiled.pdf'
@ -66,7 +67,7 @@ if ooooo_insert:
file.write(dot.text) file.write(dot.text)
graph = pygraphviz.AGraph('dot/'+str(oooooc)+'.dot') graph = pygraphviz.AGraph('dot/'+str(oooooc)+'.dot')
graph.layout(prog="dot") graph.layout(prog="dot")
graph.draw('dot/'+str(oooooc)+'.svg') graph.draw(localgs+'+str(oooooc)+'.svg')
oooooc+=1 oooooc+=1
#then iterates over all chapters to get the pdf versions #then iterates over all chapters to get the pdf versions

Loading…
Cancel
Save