Converting pptx to pdf issue

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

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.