i want to display the stored image in fdpf.

Member Avatar
Member Avatar
+0 forum 40

Hi Hope,everyone is doing good out there. I need some help regarding which strategy to use for one of my projects. Here are the project details I want to generate PDF forms, by gathering data from user.There are different questions to ask and based on each answer,we will ask next question.i.e Where do you live? If s/he reply USA, next question will be regarding USA,if s/he reply Outside USA,next question will be different. I'll use FPDF to generate PDF on the go. But my question is how to implement questionnaire.Where should we store the values, either in session or Mysql …

Member Avatar
Member Avatar
+0 forum 6

Hello, In attachment image so i want to make Tree as output of PDF. i have built it but not exact. so can you make it some help if you know. Thank You.

Member Avatar
Member Avatar
+0 forum 3

Hi I make **FPDF output** of data in 3 simple columns with word wrap content. For E.g Like Table Structure. Title-1 | Title-2 | Title-3 Coln-1,Coln-2 | Coln-1,Coln-2 | Coln-1,Coln-2 If you given help with some snippets then better to understand. Thank you.

Member Avatar
Member Avatar
+0 forum 3

here i am using fpdf class to generate pdf document, how to print serial numbers in SL.NO. column in sequential order i.e. 1 2 3 4 5 ... so on. <?php include_once('include/dbConnect.inc.php'); require('fpdf.php'); $d=date('d_m_Y'); $agentid=mysql_real_escape_string($_GET['agent']); $agent_name=mysql_real_escape_string($_GET['agentname']); // Query to select an int column $query = "select count(*) as cnt from custreg where magentid = '$agentid'"; $result = mysql_query($query); $cntrow = mysql_fetch_row($result); class PDF extends FPDF { // Page header function Header() { global $agent_name; global $agentid; global $number; // Logo $this->Image('images/logo.png',10,6,30); // Arial bold 15 $this->SetFont('Arial','B',15); // Move to the right $this->Cell(80); // Title $this->Cell(5,1,'Customer Payment Details',0,0,'C'); $this->Cell(10,15,'Agent ID: '.$agentid.' …

Member Avatar
Member Avatar
+0 forum 2

will anybody please help me with this code..since it will give me this error: FPDF error: Some data has already been output, can't send PDF file... my php code below: <form method="POST" action=""> <input type="submit" name="print"value="PRINT"> </form> <?php if (isset($_POST['print'])) { require('fpdf/fpdf.php'); class PDF extends FPDF { // Page header function Header() { $this->SetFont('Arial','B',14); $this->Cell(30,10,'Negros Oriental High School','C'); $this->Ln(); $this->SetFont('Arial','',12); $this->Cell(0,0,'Dumaguete City'); $this->Ln(); $this->SetFont('Arial','',14); $this->Cell(0,20,'OFFICIAL RECEIPT'); $this->Ln(); } } // Instanciation of inherited class $pdf = new PDF(); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->Output(); } ?>

Member Avatar
Member Avatar
+0 forum 4

I had uploaded the image(blob field used) in DB.i want to show that image in pdf.how to write the code, please help me

Member Avatar
Member Avatar
+0 forum 2

Hello I have almost completed the code for pdf_labels. However, I am stuck on the fronts. First, the format is not exactly as it should be. Please follow the following URL to see what I am talking about. [URL="http://www.weststreet.org.uk/MembersDBLive/reports/labelTest.php"]http://www.weststreet.org.uk/MembersDBLive/reports/labelTest.php[/URL] As you can see, it starts with label 5 instead of 1, then labels 1 -4 are "doubled up" on labels 21 - 24. Below is the code that the labels currently uses [CODE]function PDF_Label($format, $unit='mm', $posX=1, $posY=1) { if (is_array($format)) { // Custom format $Tformat = $format; } else { // Built-in format if (!isset($this->_Avery_Labels[$format])) $this->Error('Unknown label format: '.$format); $Tformat …

Member Avatar
Member Avatar
+0 forum 1

Hi, I used fpdf lib to print pdf. And I want my php class be integrate in fpdf? Can anyone help me?

Member Avatar
Member Avatar
+0 forum 2

Dear All, I am using fpdf to generate a report but one of the field I need to be multicell as the contents can be few lines long. Below is the codes what happens now is that the multicell will be few lines long but the rest of it will be only one standard size and the content after multicell will be on the next line. So how to overcome all this problem. [CODE]$row_height = 5; // set the default $column_width = 15; $number_of_lines = ceil( $pdf->GetStringWidth($eventMessage) / ($column_width - 1) ); $cell_height = 5; $height_of_cell = ceil( $number_of_lines * …

Member Avatar
Member Avatar
+0 forum 4

i have downloaded and extracted fpdf into my root folder site folder.. i want to know how i can generate a pdf file when i press a button called print. please help? and wehre do i put this fpdf code? is it in the script that contains the output?

Member Avatar
Member Avatar
+0 forum 2

The End.