AlJohri / docx2pdf

MIT License
497 stars 94 forks source link

Images not showing in PDF #64

Closed StraggleMuffin closed 2 years ago

StraggleMuffin commented 2 years ago

I'm using the batch convert(filepath) on about 40 documents with very similar layouts. However, when converting from docx to pdf the same final image, a png of a signature, turns into placeholder text. I have disabled picture placeholder in the word document options and the registry yet the issue still remains.

This is what the image turns into: image

This issue however resolves if the word documents are saved into pdf's individually hence why I regard this as an issue. Any assistance would be appreciated :)

StraggleMuffin commented 2 years ago

Just went into the module and rewrote some of it and it's now working with images.

AlJohri commented 2 years ago

Awesome @StraggleMuffin ! Can you submit a pull request with those changes? Or share a git diff of how you fixed this for the next person that runs into this issue?

StraggleMuffin commented 1 year ago

Not really sure how to do that I've not used github before. But I just implemented a "time delay" using time.sleep(time_delay) where I set it at 0.5 seconds for the number of images I had per document. Sorry on not being able to be more helpful