Creating an order invoice detail as pdf can be a most frequent requirement when dealing with web applications. In this article I like to explain how to create a more advanced pdf document in Drupal. We will be creating a order detail report using tcpdf. TCPDF in based on FPDF which contains more advanced features compared to FPDF.
GIMP is a powerful tool for editing images but did you know that you could edit PDF files with GIMP? You can import a PDF document into GIMP as multiple layers. However the default export to PDF option would only allow you to export the document as a one page PDF as if it was an image. Here is a plugin that would allow you to export all the layers in your GIMP XCF file as a multi-page PDF document. You can use this not just for editing PDF documents but also for any xcf file where you want to export layers into a PDF document.