我首先需要通过应用“适合图纸”选项来保存所有visio文件,然后再将它们保存为PDF文件。但是我对宏不是很熟悉。有人可以帮我吗?
我的文件夹结构是这样的:
最后,每个visio文件都需要有一个pdf文件,所有图表都应适合图纸。我使用的是Visio 2013。
答案 0 :(得分:2)
希望此代码可以提供帮助!
In [19]: import io
...:
...: from boto3.session import Session
...:
...: s3 = Session().resource("s3")
...: bucket = s3.Bucket("test-threads")
...: buf = io.BytesIO(open('100mb.txt', 'rb').read())
...:
...: bucket.upload_fileobj(buf, 'mykey', Callback=ProgressPercentage("mykey", buf))
mykey 262144 of 104857600.0 (0.25% done, 0.00s elapsed
mykey 524288 of 104857600.0 (0.50% done, 0.00s elapsed
mykey 786432 of 104857600.0 (0.75% done, 0.01s elapsed
mykey 1048576 of 104857600.0 (1.00% done, 0.01s elapsed
mykey 1310720 of 104857600.0 (1.25% done, 0.01s elapsed
mykey 1572864 of 104857600.0 (1.50% done, 0.02s elapsed