Ask Your Question
0

Batch convert only selected pages

asked 2018-09-04 14:52:50 +0100

Jaiden gravatar image

Hello, I need to convert several pptx and odp presentations to pdf format but only selected pages. I found out that libreoffice --convert-to pdf my_file.odp converts my_file to pdf but it converts all slides. Is there any efficient way to tell libreoffice to only convert i.e. pages/slides 1, 2 and 5?

edit retag flag offensive close merge delete

Comments

You should really add what operating system you are on for questions like this. It makes a lot of difference if you're on Windows or Linux.

floris v gravatar imagefloris v ( 2018-09-04 22:06:17 +0100 )edit

I use Linux, debian stretch.

Jaiden gravatar imageJaiden ( 2018-09-04 22:56:37 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-09-04 22:05:27 +0100

floris v gravatar image

updated 2018-09-06 16:22:30 +0100

One obvious solution is to print to PDF, something you can easily do in Windows. Just select Print, select the General tab of the Print window, select Print to PDF. The rest is simple.

EDITI found this link: https://topconsultant.be/how-to/libre... Apparently you should play with the PageRange property and figure out how to include things like "1;4-12;56-59".

edit flag offensive delete link more

Comments

Yeah, I can do it via GUI but I have quite a lot of presentations so I wrote script that would select the pages I need but now I need to pass this information to the libreoffice from terminal. I tried to look for a filter that would select only the pages I need during libreoffice conversion however I didn't find any.

Jaiden gravatar imageJaiden ( 2018-09-04 23:03:14 +0100 )edit

It seems that we have to tear out essential information from you to be able to help you. You should be more forthcoming. Don't leave us guessing. Tell us what you got so far, and where exactly you are stuck. Post part of the script if necessary. All that I can say right now is that if you call the Export command in Writer to do the conversion, you won't be able to set a pages range because IIRC the Export command works only on entire files.

floris v gravatar imagefloris v ( 2018-09-04 23:46:27 +0100 )edit

I am able to convert entire presentation to pdf. However I only need to convert certain pages. I can convert the entire presentation and then use other tool to export only the pages I need. But if the presentations are big then the conversion takes quite a lot of time. So I am looking for a way to batch convert only certain pages to pdf.

Jaiden gravatar imageJaiden ( 2018-09-06 09:53:17 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-09-04 14:52:50 +0100

Seen: 35 times

Last updated: Sep 06 '18