bd40bc7c7a 02.15.10 Time of Publication: 8:45 pm. I had to make a opensource solution for creating simpel report analyses that's based on things like : - first page [name / title / #/ date] - some static info [like introduction, copyrights etc] - some dynamic info [outputted from php->dbase queries] combined with html tags/images etc. But both of these libraries does not have the importing functionality inbuilt. Alan Knowles Olaf, Yes modifying an existing pdf its not really where Wkhtml excels, I did write a svg to pdf convertor a long time ago that enabled the designers to deliver a pdf, e converted out to svg and added template style tags. Im writting this tutorial assuming you are using FPDF, but TCPDF implementation is very similar. $pdf->SetXY(50,20); $pdf->SetDrawColor(50,60,100); $pdf->Cell(100,10,'FPDF Tutorial',1,0,'C',0); The SetXY function sets the position of x and y coordinates, where we want the title to appear. Tom Cat', 0, 60, 80, 10, 10);$pdf->CreateTextBox('Street address', 0, 65, 80, 10, 10);$pdf->CreateTextBox('Zip, city name', 0, 70, 80, 10, 10);// invoice title / number$pdf->CreateTextBox('Invoice #201012345', 0, 90, 120, 20, 16);// date, order ref$pdf->CreateTextBox('Date: '.date('Y-m-d'), 0, 100, 0, 10, 10, '', 'R');$pdf->CreateTextBox('Order ref.: #6765765', 0, 105, 0, 10, 10, '', 'R'); Invoice Rows Now we create the information about the products we like put into the PDF invoice. We'll display the FPDF logo by calling the Image function and passing it the following parameters name of the file, the dimensions and the URL. RP Nevermind, was missing the CreateTextBox method.
The 2nd paramenter boxType,can take any one of the following values,. Part Two is to tell the renderer that we want to use that font, and to specify the size in points, with: pdfsetfont(). wrd.cm/2bJQGjT Follow Follow UsOn Facebook Don't miss our latest news, features and videos. But that was just an example. You are free to download and use this class or customise it to fit your needs. I have this question for you because you mentioned the creation of invoices in your comment. What I ended up doing was disabling Zlib compression for the PDF output pages using iniset: iniset('zlib.outputcompression','Off'); ?> Maybe this will help someone.