on-internet
← Community

Adding vertical text with fpdf/fpdi in php

Stack Overflow ·

I have a script that builds up a multi page pdf from a database blob. This pdf works and outputs fine current but I need to add a vertical line of text down the left hand side of each page. I have managed to get this to work for some of the pdfs but for some I get a corrupted file error. Does anyone have a different way of adding vertical text I can try using fpdf/fpdi. This is what I have so far: function buildBSIPDF($filename){ global $supplier; $pdf = new FPDI(); $i = 1; $pagecount = $pdf->setSourceFile($filename); //create text to append $sideline = "Some text here"; while($i <= $pagecount

Comments

Sign in or sign up to comment and upvote.

No comments yet.