<p>Can anyone recommend a good server-side PDF generation tool that would work in a Linux environment. I want easy as possible, pass it a XHTML file (with images) and have it generate a PDF from the <strong>rendered</strong> source.</p>

<p>I don't have a massive budget, but anything under $1000 should be alright.</p>

<p>Andrew</p>

[{'answer_id': 14916, 'author': 'Thomas Owens', 'author_id': 572, 'author_profile': 'https://Stackoverflow.com/users/572', 'pm_score': 1, 'selected': False, 'text': '<p>I sounds like <a href="http://www.fpdf.org/" rel="nofollow noreferrer">FPDF</a> might be of help...</p>\n\n<p>Also, the creation of PDF documents is called "PDF printing". I believe that might help you find other resources.</p>\n'}, {'answer_id': 15131, 'author': 'Craig', 'author_id': 1611, 'author_profile': 'https://Stackoverflow.com/users/1611', 'pm_score': 0, 'selected': False, 'text': '<p>I did some searching, what about <a href="http://tbookdtd.sourceforge.net/" rel="nofollow noreferrer">tbookdtd</a>?\nIt\'s downloadable <a href="http://sourceforge.net/project/showfiles.php?group_id=48834" rel="nofollow noreferrer">here</a> but it hasn\'t been active since 2005.  It appears to convert the xml to Latex, into PDF.</p>\n'}, {'answer_id': 15499, 'author': 'Daniel Fone', 'author_id': 1848, 'author_profile': 'https://Stackoverflow.com/users/1848', 'pm_score': 0, 'selected': False, 'text': '<p>Have you investigated PHP\'s <a href="http://php.net/manual/en/intro.pdf.php" rel="nofollow noreferrer" title="php.net">documentation</a>? There\'s also PHP <a href="http://php.net/manual/en/faq.using.php#faq.using.freepdf" rel="nofollow noreferrer" title="php.net">FAQ</a> with a few different links. PHP primarily supports <a href="http://www.pdflib.com/products/pdflib-family/" rel="nofollow noreferrer" title="www.pdflib.com">PDFlib</a>.</p>\n'}, {'answer_id': 18255, 'author': 'kaybenleroll', 'author_id': 277, 'author_profile': 'https://Stackoverflow.com/users/277', 'pm_score': 0, 'selected': False, 'text': '<p>I have recently came across <a href="http://www.digitaljunkies.ca/dompdf/" rel="nofollow noreferrer">dompdf</a> which I have used to convert pages created in HTML into PDF documents. It uses PHP5 (assuming using PHP does not bother you). This is also assuming that you don\'t want to statically create HTML files on the file system and then convert them using some kind of command-line tool?</p>\n\n<p>One problem I found with dompdf is that you don\'t get a whole lot of configuration options natively, but it is open-source and doesn\'t seem to be too large, so you could probably jury-rig something up pretty easily.</p>\n'}, {'answer_id': 18277, 'author': 'Johannes', 'author_id': 925, 'author_profile': 'https://Stackoverflow.com/users/925', 'pm_score': 0, 'selected': False, 'text': '<p>If you do have a budget take a look at the following <a href="http://www.openedgesoft.com/" rel="nofollow noreferrer">OpenEdge</a>. I know that they did excatly what you want for us. A linux based PDF generation system.\nI\'d ask what they can do for you. Val Cassidy is the persons name.</p>\n<p>BTW: I\'m not getting anything for this and I don\'t even work for bespoke company anymore nor for OpenEdge ...</p>\n'}, {'answer_id': 113425, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>You might want to take a look at FOP, which stands for Formatting Objects Processor. It can generate PDF files on linux since it is Java based. From their site:</p>\n\n<blockquote>\n  <p>Apache FOP (Formatting Objects Processor) is a print formatter driven\n  by XSL formatting objects (XSL-FO) and an output independent formatter. \n  It is a Java application that reads a formatting object (FO) tree\n  and renders the resulting pages to a specified output. Output formats \n  currently supported include PDF, PS, PCL, AFP, XML (area tree \n  representation), Print, AWT and PNG, and to a lesser extent, RTF and \n  TXT. The primary output target is PDF.</p>\n</blockquote>\n\n<p>You can find it <a href="http://xmlgraphics.apache.org/fop/" rel="nofollow noreferrer">here</a></p>\n'}, {'answer_id': 114311, 'author': 'stephen mulcahy', 'author_id': 6994, 'author_profile': 'https://Stackoverflow.com/users/6994', 'pm_score': 0, 'selected': False, 'text': '<p>You could take a look at using OpenOffice via the <a href="http://api.openoffice.org/" rel="nofollow noreferrer">OpenOffice API</a> to load your XHTML document and export a PDF version. There is a bit of a learning curve to using the OpenOffice API but it is very powerful and can be run in server mode on systems without any graphical interface. It performs well - we\'ve used it on some internal projects.</p>\n'}, {'answer_id': 114334, 'author': 'Mark Nold', 'author_id': 4134, 'author_profile': 'https://Stackoverflow.com/users/4134', 'pm_score': 2, 'selected': True, 'text': '<p>I used <a href="http://www.easysw.com/htmldoc/" rel="nofollow noreferrer">HTMLDoc</a> about 8 years ago and it did a good job of turning HTML tables with some basic formatting into a decent PDF report. There also seems to be an <a href="https://www.msweet.org/projects.php?Z1" rel="nofollow noreferrer">open source version</a> as well.</p>\n'}]
['https://Stackoverflow.com/questions/14911', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1776/']