SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    874
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pdf Document Conversion

    Dear All,
    I need a guide how can I convert my office document such as .doc , .ppt etc into .pdf document and also I would like to have certain control where some of it I would not allowed to be printed but just viewable. Is this possible any guide please? Thank you.

  2. #2
    SitePoint Zealot
    Join Date
    Apr 2009
    Location
    South Florida
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you looking for server side solution? Some kind of PHP script to handle these file conversion?

  3. #3
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    874
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear Lphy,
    Yes you are right I need a server side script. I will have my office applications files uploaded so then this php will do the conversion into pdf is this possible? Thank you.

  4. #4
    SitePoint Evangelist AlienDev's Avatar
    Join Date
    Feb 2007
    Location
    UK
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very difficult to even convert PDF to XML reliably, so then XML to any other format will be just as hard. My opinion: don't bother.
    Me on StackOverflow | Blog & personal website.

    I mostly use: PHP, Java, JavaScript, Android.

  5. #5
    SitePoint Zealot
    Join Date
    Apr 2009
    Location
    South Florida
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For starting point checkout this opensource FPDF library for PHP
    http://www.fpdf.org/

    let us know what kind of server you hosing your site, if its a windows base server you may able install some third-party tools and use COM base PHP scripts to do the job

  6. #6
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    874
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear Lphy,
    Actually I have used this library before this is more of creating a pdf document. What I want is for e.g I have a word document file which will be converted on the server to a .pdf file? My server environment will be linux based. Any other suggestion please ? Thank you.

  7. #7
    SitePoint Zealot
    Join Date
    Apr 2009
    Location
    South Florida
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes FPDF is to generate PDF files, you can find PHP scripts to read DOC, XLS files and then you need to write conversion script to convert to PDF, It is going to be lot of coding. I havent seen any free PHP libraries which do this.

    You may able to install OpenOffice and use COM objects to automate something similar to what you trying to do. But these are very server intensive work, may easily bring down server if you handling lot of files


    OpenOffice PHP COM Documentation
    http://www.oooforum.org/forum/viewtopic.phtml?t=3502

  8. #8
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    874
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear Lphy,
    Thank you I will do some studies then ok. I will refer your resource then.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •