Doc ppt to PDF in Linux is still not a perfect solution, whether it is OpenOffice, or LibreOffice.
Opening a doc,ppt document may cause a layout disorder. LibreOffice is still not perfect, the proposal to install the latest version of stability, 4.3.3
Installed WPS for Linux, open doc,ppt root win under the same, but WPS does not provide a command or conversion interface.
So you want to be perfectly resolved doc,ppt the PDF or do it under Windows.
One, install Libreoffice,imagemagick
# yum Install ImageMagick LibreOffice
LibreOffice can be implemented doc,ppt turn PDF
ImageMagick can realize pdf transfer picture
Second, LibreOffice add fonts
LibreOffice with a small number of fonts, if LibreOffice find the font, it will default to use the song body, fifth words
# mount/dev/sda1/mnt/win7/
# cp-r/mnt/win7/windows/fonts//home/tank/.config/libreoffice/4/user/fonts
Re-open the Doc,ppt document and you'll find a lot more fonts.
LibreOffice Add fonts
LibreOffice Add fonts
Three, doc,ppt turn PDF
1, direct use of LibreOffice
The code is as follows |
Copy Code |
$ export display=:0.0 && libreoffice--headless--invisible--convert-to PDF 123.ppt Convert/home/tank/download/myppt/123.ppt->/home/tank/download/myppt/123.pdf using Impress_pdf_Export Overwriting:/home/tank/download/myppt/123.pdf |
2,pdf transfer Picture
The code is as follows |
Copy Code |
$ convert-verbose-density 150-trim 123.pdf-quality 70-sharpen 0x1.0 123.jpg "GS"-q-dquiet-dparanoidsafer-dbatch-dnopause-dnoprompt-dmaxbitmap=500000000-daligntopixels=0-dgridfittt=0- Sdevice=pnmraw "-dtextalphabits=4-dgraphicsalphabits=4"-r150x150 "-soutputfile=/tmp/magick-xxsi41xk" "-f/tmp/ MAGICK-XXKGR3HF ""-f/tmp/magick-xxqj4sez " /tmp/magick-xxsi41xk[0] PNM 1240x1754 1240x1754+0+0 8-bit directclass 18.67MB /TMP/MAGICK-XXSI41XK[1] PNM 1240x1754 1240x1754+0+0 8-bit directclass 18.67MB /TMP/MAGICK-XXSI41XK[2] PNM 1240x1754 1240x1754+0+0 8-bit directclass 18.67MB 123.pdf[0] PDF 1240x1754 1240x1754+0+0 16-bit directclass 18.67MB 123.pdf[0] PDF 1240x1754 1240x1754+0+0 16-bit directclass 18.67MB 123.pdf[0] PDF 1240x1754 1240x1754+0+0 16-bit directclass 18.67MB 123.pdf=>123-0.jpg[0] PDF 1240x1754=>546x1417 1240x1754+199+168 16-bit directclass 140kb 123.pdf=>123-1.jpg[1] PDF 1240x1754=>623x1417 1240x1754+199+168 16-bit directclass 108kb 123.PDF=>123-2.JPG[2] PDF 1240x1754=>653x703 1240x1754+199+168 16-bit directclass 68kb |
3, using Unoconv, realize doc,ppt turn PDF
code is as follows |
copy code |
# Yum Install http://pkgs.repoforge.org/unoconv/unoconv-0.5-1.el6.rf.noarch.rpm # Unoconv-f PDF 123.ppt //convert 123.ppt to pdf |