merge (concatenate) a 'png' file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nader Emami

    merge (concatenate) a 'png' file

    Hello,

    I am looking for a solution of the next problem. I have to produce a A4
    page in which two 'png' pictures above the page and some text at below
    of the page have been made. I have used the 'fpdf' file to produce the
    text of this file in 'pdf' format.
    But I don't know how I can make a 'pdf' format from a 'png' format
    inside a 'php' script! Would somebody help me to solve this problem?

    With regards
    Nader
  • Toby Inkster

    #2
    Re: merge (concatenate) a 'png' file

    Nader Emami wrote:
    But I don't know how I can make a 'pdf' format from a 'png' format
    inside a 'php' script! Would somebody help me to solve this problem?
    If ImageMagick is installed on the server, you could call /usr/bin/convert
    with system(). This would be able to convert from PDF to PNG. There are
    probably some ImageMagick wrapper modules in PEAR.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact

    Comment

    Working...