Is there any tool to convert pdf to ppt/odp slides in Linux/ Ubuntu offline?
Here's my take on it from personal experience. It's a two-step process - convert the PDF into single jpegs, then import the jpegs into LibreOffice Impress. It works best if the pages in the PDF are landscape already.
1.) Make sure the package imagemagick is installed (apt install imagemagick
). Put your source PDF into a directory. Then in the terminal, navigate to that directory and run:
convert filename.pdf filename.jpg
This will spit out a jpeg of each page in the PDF. Move the PDF out of the directory to make step 2 easier.
2.) Open Impress. Go to Slide menu, Slide Layout -> Blank. This will remove the "Click to add title" and stuff. Then go to Insert -> Media -> Photo Album. Click add. Navigate to the directory with all your jpegs. Select all the jpegs (if you removed the PDF from the directory in step 1, just press CTRL + A to select all of them). Click Open. The next options depend on what the pages in the original PDF looked like - if they were landscape, you can probably choose Fill Screen, but you'll have to see what works best for your case.
Related videos on Youtube
Pavel Sayekat
Updated on September 18, 2022Comments
-
Pavel Sayekat over 1 year
I am looking for a tool that converts PDF into PPT files or supports any tweak to import PDF files into LibreOffice-impress, LibreOffice-Draw imports the PDF but that does not do the job. So far I am trying to use a workaround called pdftk+pdfchain to burst the pages of the PDF file into single page PDF files and then converting the single page PDF files into images using ImageMagic and importing them into a PPT slide.
-
Nick Weinberg almost 8 yearsPossibly related to superuser.com/questions/268244/how-to-convert-pdf-to-ppt-or-odp
-
Pavel Sayekat over 7 yearsas Nick Weinberg suggested, the
gs -dNOPAUSE -dBATCH -dSAFER -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sDEVICE=jpeg -r300 -sOutputFile='page-%00d.jpg' YOURFILE.pdf
command almost did the job that is to burst and then convert the pages to pictures, then just to import them to Libreoffice Impress, job done :) -
user643722 over 3 yearsThis question is increasingly relevant as the Linux version of MS Teams only allows the sharing of your entire screen, and not a single window...unless you have a set of powerpoint slides, which have special support. Neither of the two answers below provide a fully scripted solution.
-
-
macieksk over 4 years
convert -density 600 -resize 400% filename.pdf filename.png
worked for me to obtain high quality and good output resolution. -
Digger about 3 years(For ImageMagick version 1.3.20) If your source PDF is a multi-page document, a good Step 1 above would be
gs -dNOPAUSE -dBATCH -dSAFER -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sDEVICE=jpeg -r300 -sOutputFile='page-%00d.jpg' YOURFILE.pdf
(as seen in a comment to the original question).