Ask Your Question
0

Converting pptx to pdf issue [closed]

asked 2013-10-11 20:33:02 +0200

uday gravatar image

updated 2015-09-11 12:51:04 +0200

Alex Kemp gravatar image

Hi,

I am trying to convert the attached test.pptx. ( http://www.filedropper.com/test_27 ) to pdf with libreoffice 4.1.2 using a tool like jodconverter ( https://code.google.com/p/jodconverter/ ).

Libreoffice is being run in headless mode. And the command i use to convert pptx to pdf is - java -Doffice.home=/opt/libreoffice4.1 -jar jodconverter-core-3.0-beta-4.jar test.pptx converted.pdf

I am finding one major issue. When i open the file test.pptx with libreoffice impress test.pptx it shows the background image in green colour ( http://www.filedropper.com/whenopenedwithimpress ) but the document converted using libreoffice headless shows the background in black colour ( http://www.filedropper.com/convertedpdfblackbg ) . Not sure why this difference is...

Do i need to pass any extra params while converting ? Any suggestion would be of great help.

Thanks, Uday

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-11-12 01:59:08.537718

1 Answer

Sort by » oldest newest most voted
0

answered 2013-10-17 12:10:19 +0200

uday gravatar image

Hi,

Just answering this myself as i could figure out. I needed to convert the document to PDF1-A specification rather than pdf (PDF 0). So, passing an option selectPdfVersion '1' solved my issue.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-10-11 20:33:02 +0200

Seen: 3,140 times

Last updated: Oct 17 '13