1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Create Some Thumbs / Images Of The First Page

Discussion in 'PHP' started by rasfoiesc, Feb 6, 2013.

  1. #1
    I want to create some thumbs / images of the first page of each .doc and displayed it to the left of the title.

    See for example:

    http://www.rasfoiesc.com/legal/drept/index18.php here is a list of doc. On the left i want to be the thumb too.

    - so i want to generate images thumbs for eache Word / doc .


    How can i do that?
     
    rasfoiesc, Feb 6, 2013 IP
  2. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #2
    There are PHP libraries available that will let you read MS-Word documents to some extent. I don't know if any of them would allow you to render them as images with their original formatting, but you could display the first page of text with some formatting that would look pretty good.

    You may have to create the thumbnails manually in order to display them as they would appear as printed documents.
     
    rainborick, Feb 6, 2013 IP
  3. shofstetter

    shofstetter Well-Known Member

    Messages:
    178
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    120
    #3
    shofstetter, Feb 6, 2013 IP