python rule 34: if it exists there is a function for it
@Md.AlmasAli4 ай бұрын
How can I find all rules? Can you share the source?
@Eurotool4 ай бұрын
@@Md.AlmasAlirules of the internet joke
@d_mvp4 ай бұрын
@@Md.AlmasAli That's a joke.
@avishkar61814 ай бұрын
Few weeks back I was facing an interesting problem with docx . I wanted to extract the text from the file then translate them and put them back with the same formatting,styles, size etc for each word. We could achieve formatting properly but couldn’t do the same for styles and sizes. Is there anyway to do this? Would love to see a video about this
@frostpredator4 ай бұрын
You can use the docx library to deal with styles
@nopens4 ай бұрын
never got to watch this video, but today i had the need to convert 30+ docxs to pdf and immediately remembered that you can do this with python. What a time to be alive
@sundarravikumar45334 ай бұрын
Hi, run mh code in .exe file and i try to convert doc to pdf. It shows some server error failed. But code works fine. How can i rectify that doc to pdf part
@InviProgUz4 ай бұрын
Your videos are very useful👍 and like to me. 🇺🇿
@vaibhavgirase30212 ай бұрын
When I use to convert docx file to pdf but images or animation s of docx file are not show in converted pdf file and it shows like text file why ?
@sundarravikumar45334 ай бұрын
Docx2pdf not working while converting my code into .exe file using pyinstaller. It shows nonetype object has no attribute value. But mh code works fine.
@AviSchwartz14 ай бұрын
In Linux you are really not doing the conversion in Python but rather just using Python as a wrapper. In this case I would just use a shell script and be done with it.
@umaidstudyАй бұрын
This does not work for conda3_python in aws sagemaker can someone help
@cyanide_stewАй бұрын
Fj
@alexeykazmin75394 ай бұрын
how to convert many files at once?
@TimeCheckOfficial2 ай бұрын
add import os and make sure to contain your multiple docx files into one single folder and then convert its path
@psyraxx393 ай бұрын
This is what happened to Dr Disrespect
@artCoderr4 ай бұрын
Bro do some complex stuff. These kind of video in 2024 is very shitty
@harshabugatti4 ай бұрын
Getting this error "[WinError 2] The system cannot find the file specified" in windows...! I have executed same code (changed "file.docx" to "WordToPDF.docx")
@manifestasisanubari4 ай бұрын
It seems like the terminal is run not inside the same directory of the file
@harshabugatti4 ай бұрын
@@manifestasisanubari I tried the code in the same directory of the word file. Still no luck
@AtulMishra-r3zАй бұрын
Download 'LibraOffice' and set path so it run on window error you are getting is window error def convert_to_pdf(doc_path): # Define the output PDF path based on input DOC or DOCX path pdf_output_path = f"{doc_path.rsplit('.', 1)[0]}.pdf" # Full path to soffice.exe # libreoffice_path = r'C:\Program Files (x86)\LibreOffice\program\swriter.exe' # Use LibreOffice to convert both .doc and .docx to PDF subprocess.run(['libreoffice', '--headless', '--convert-to', 'pdf', doc_path, '--outdir', upload_dir]) return pdf_output_path