Hello! Is there a way to automatically save the PDF files rather than have to click “Save” for each one of the sheets as they are printed? I’m currently using the node from Genius Loci (@Alban_de_Chasteigner ) package to create individual sheets and then another Genius Loci node afterwards to merge them all together in a single file.
Also, it appears there might be an issue if the same file name exists in the folder the files are being printed to. Can there be an option to overwrite existing files with the same name? In this example, only one of the sheets (F001) being printed exists in the folder location, but none of the sheets will print.
I hang up to this conversation because I’m also working on a similar script using the node Print PDF (multiple formats) from Genius Loci.
I’m still having problems trying to overwrite existing files; in fact, sometimes I have a list with some sheets with the same name of the existing ones and some with a different one (i.e. current revision updated), but in any case it returns the same error. I’m using PDF Creator and I set everything for Automatic saving and to overwrite existing files.
Could someone helps me if there’s any solution?
Did you associate the profile with the PDFCreator printer in the “printer” tab?
I have a working print/rename script based on the packages talked about in this thread with PDFCreator.
PDFCreator works great for me.
You can add a new printer in this prompt and add the desired profile, which is what I did.
After creating a printer called PDFCreator Dynamo and setting the correct profile it does not give me a save prompt and adds a suffix to files with an existing filename.
Just tried it out, if I set the profile to overwrite existing files the python script will output an error saying it cant make a file that already exists even though I edited te profile to overwrite files.
I don’t think the problem is with the pdf printer in this instance
That’s exactly the issue; the script and PDFCreator work well as long as there are no sheets to overwrite. In fact, I’m able to print the sheets from the script, but when I try to run it again it doesn’t work and shows me the error in the picture above. It could be solved filtering the sheets by revision, but sometimes could be useful print everything.