wavesbta.blogg.se

Bullzip pdf printer community edition
Bullzip pdf printer community edition




bullzip pdf printer community edition bullzip pdf printer community edition

I tried the accepted answer but wasn't particularly keen on the bloated PDFs Word was producing which was usually an order of magnitude bigger than expected. # key point 2: wait for the COM Server to prepare well.ĭoc=(in_file) # open docx file 1ĭoc.SaveAs(out_file, FileFormat=wdFormatPDF) # conversionĭoc = (in_file2) # open docx file 2ĭoc.SaveAs(out_file2, FileFormat=wdFormatPDF) # conversion # key point 1: make word visible before open a new document Out_file2=r'absolute path of outputpdf file 2' In_file2=r'absolute path of input docx file 2' Out_file=r'absolute path of output pdf file 1'

bullzip pdf printer community edition

In_file=r'absolute path of input docx file 1' # be careful about the slash '\', use '\\' or '/' or raw string r"." If you have encountered the same problems, try to follow these two steps. So I add a delay before I tried to open a document.Īfter doing these two steps, the program will work perfectly with no failure anymore. The crash error "COMError: (-2147418111, 'Call was rejected by callee.', (None, None, None, 0, None))" means that the COM Server may not be able to response so quickly. After doing (1), the program will work well sometimes but may fail often. If I do not do this on my computer, the program will crash when I try to open a document in the invisible model, then the 'Word.Application' object will be deleted by OS. (Actually, even I myself cannot explain why this works. The first time when I created the 'Word.Application' object, I should make it (the word app) visible before open any documents. Steven's answer is right, but it will fail on my computer. I have worked on this problem for half a day, so I think I should share some of my experience on this matter.






Bullzip pdf printer community edition