This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding: utf-8 | |
#from pyPdf import PdfFileWriter, PdfFileReader | |
from PyPDF2 import PdfFileWriter, PdfFileReader | |
def Overlay(): | |
back_ground = PdfFileReader(open("template.pdf", "rb")) | |
page1 = back_ground.getPage(0) | |
over_lay = PdfFileReader(open("abst.pdf", "rb")) | |
page1.mergePage(over_lay.getPage(0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/env python | |
#coding: utf-8 | |
import subprocess | |
import numpy as np | |
start = 5 #開始番号 | |
goal = 100 #終了番号 | |
concentrate_ratio = 5 #[concentration] 切り抜き間隔(1だとすべての画像を使う) | |
dilute_ratio = 2 #[dilution] 引き伸ばし倍率 | |
def concentration(): |