Development convert .odt to .pdf via PHP?

Discussion in 'Software' started by OneSeventeen, 8 Nov 2005.

  1. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    I'd like to convert some .odt files to .pdf in PHP, I'm assuming I can just use commands like:
    `odt2pdf -i myfile.odt -o myfile.pdf`
    but the problem is, odt2pdf doesn't exist (at least not that I know of), so is there a linux equivalent to what I want to do? Or maybe a PHP class that does this?

    Or better yet, if it is possible to run OOo from the command line and do this sort of stuff...

    Ideas?
     
  2. simon w

    simon w What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,302
    Likes Received:
    0
  3. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    yeah, unfortunately that requires X server to be installed, which I don't use :(

    I guess I was hoping there was a missing PHP module that I hadn't heard of before that did something like this.
     
  4. simon w

    simon w What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,302
    Likes Received:
    0
  5. Hwulex

    Hwulex What's a Dremel?

    Joined:
    1 Feb 2002
    Posts:
    4,007
    Likes Received:
    1
    ODT => HTML => PDF!?

    God no, don't do it!
     
  6. simon w

    simon w What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,302
    Likes Received:
    0
    I was thinking along the lines of extending fpdf with the sxv/odt parsing code from that class.


    I'm told that only the X libraries would be needed to run openoffice via a virtual frame buffer.
     

Share This Page