Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MS office DOCX/PPTX to PDF #1429

Open
manoharsompalli opened this issue Sep 10, 2024 · 1 comment
Open

MS office DOCX/PPTX to PDF #1429

manoharsompalli opened this issue Sep 10, 2024 · 1 comment

Comments

@manoharsompalli
Copy link

Hello,

I am think of writing a converter for microsoft office to PDF, i want to begin with doc file.
Idea is convert docx file to an intermediate state and from intermediate to Pdf.

What i am looking for:

convert docx to some defined AST using python-docx ?

Thanks

@abrefael
Copy link

abrefael commented Dec 31, 2024

You can use Libreoffice. Just:

/usr/bin/soffice --headless --convert-to pdf:writer_pdf_Export --outdir _OUTPUT__DIR PDF_FILE_.pdf

for doc\docx\odt.
or

/usr/bin/soffice --headless --convert-to pdf:impress_pdf_Export --outdir _OUTPUT__DIR PDF_FILE_.pdf

for ppt\pptx\odp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants