Exemplo n.º 1
1
 public function formarPdf($nombreArchivo, $seleccionar)
 {
     require 'PDF.php';
     $archivo = $nombreArchivo;
     $pdf = new PDF();
     //  $pdf->SetTitle($title);
     $pdf->AddPage();
     foreach ($seleccionar as $valor) {
         $fueNombre = utf8_decode($valor['fueNombre']);
         $notTitulo = utf8_decode($valor['notTitulo']);
         $notContenido = utf8_decode($valor['notContenido']);
         $notAutor = utf8_decode($valor['notAutor']);
         $notEnlace = utf8_decode($valor['notEnlace']);
         $fuenteIgual = strcmp($fueNombre, $fueNombreAnterior);
         if ($fuenteIgual == 0) {
             $mostrarFuente = "";
         } else {
             $mostrarFuente = $fueNombre;
         }
         $fueNombreAnterior = $fueNombre;
         $Fecha = '2016-06-01';
         /* $body=$body.'<br>';
            $body=$body.'<div>';
            $body=$body.'<h2 style="text-align: center; color:#1565c0;"> <u>'.$mostrarFuente.'</u></h2>';
            $body=$body.'<h4 style="text-align: left; color:#1565c0;">'.$notTitulo.'</h4>';
            $body=$body.'<p style="text-align: justify;" >'.$notContenido.'</p>';
            $body=$body.'<br><p style="text-align: justify;" ><small>'.$notAutor.'</small></p>';
            $body=$body.'<p style="text-align: justify;" ><small> <a href="'.$notEnlace.'">'.$notEnlace.'</a></small></p>';
            $body=$body.'</div>';*/
         $pdf->PrintChapter($mostrarFuente, $Fecha, $notTitulo, $notContenido);
     }
     /*$fuente=utf8_decode('Fuente de información');
       $Fecha='2016-06-01';
       $titulo=utf8_decode('Titulo de notica');
       $contenido=utf8_decode('Contenido de noticia');*/
     //$pdf->SetAuthor('Julio Verne');
     /*  $pdf->PrintChapter($fuente, $Fecha,$titulo,$contenido);
         $pdf->PrintChapter($fuente, $Fecha,$titulo,$contenido);
         $pdf->PrintChapter($fuente, $Fecha,$titulo,$contenido);
         $pdf->PrintChapter($fuente, $Fecha,$titulo,$contenido);
         $pdf->PrintChapter($fuente, $Fecha,$titulo,$contenido);
         $pdf->PrintChapter($fuente, $Fecha,$titulo,$contenido);
         $pdf->PrintChapter($fuente, $Fecha,$titulo,$contenido);
         $pdf->PrintChapter($fuente, $Fecha,$titulo,'ultimo');*/
     $pdf->Output();
     //  $pdf->Output($archivo,"f");
 }
Exemplo n.º 2
0
$pdf->Cell(82, $l, utf8_decode($rep02RG), 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(10, $l, utf8_decode('CPF:'), 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(48, $l, utf8_decode($rep02CPF), 0, 1, 'L');
$pdf->SetX($x);
$pdf->Cell(180, 5, '', 'B', 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(10, 5, '(D)', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(170, 5, 'PENALIDADES', 0, 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->PrintChapter('txt/proposta_padrao_pj.txt');
$pdf->SetX($x);
$pdf->MultiCell(180, 5, utf8_decode("DECLARO ESTAR CIENTE DA PENALIDADE PREVISTA NO CAMPO (D).  \n" . "TODAS AS INFORMAÇÕES PRECEDENTES SÃO FIRMADAS SOB AS PENAS DA LEI."), 'T');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(180, $l, "Data: _________ / _________ / " . "{$ano}" . ".", 0, 0, 'L');
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(40, $l, '', 0, 0, 'L');
$pdf->Cell(90, $l, 'ASSINATURA', 'T', 0, 'C');
        $this->y0 = $this->GetY();
    }
    function ChapterBody($file)
    {
        // Read text file
        $txt = file_get_contents($file);
        // Font
        $this->SetFont('Times', '', 12);
        // Output text in a 6 cm width column
        $this->MultiCell(60, 5, $txt);
        $this->Ln();
        // Mention
        $this->SetFont('', 'I');
        $this->Cell(0, 5, '(end of excerpt)');
        // Go back to first column
        $this->SetCol(0);
    }
    function PrintChapter($num, $title, $file)
    {
        // Add chapter
        $this->AddPage();
        $this->ChapterTitle($num, $title);
        $this->ChapterBody($file);
    }
}
$pdf = new PDF();
$title = 'COURT OF KENYA';
$pdf->SetTitle("Government Of Kenya");
$pdf->SetAuthor('Jules Verne');
$pdf->PrintChapter(1, 'A RUNAWAY REEF', '20k_c1.txt');
$pdf->Output();
$pdf->Cell(82, $l, utf8_decode($rep02RG), 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(10, $l, utf8_decode('CPF:'), 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(48, $l, utf8_decode($rep02CPF), 0, 1, 'L');
$pdf->SetX($x);
$pdf->Cell(180, 5, '', 'B', 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(10, 5, '(D)', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(170, 5, 'PENALIDADES', 0, 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->PrintChapter('txt/proposta_eventoexterno_pj.txt');
$pdf->SetX($x);
$pdf->MultiCell(180, 5, utf8_decode("DECLARO ESTAR CIENTE DA PENALIDADE PREVISTA NO CAMPO (D).  \n" . "TODAS AS INFORMAÇÕES PRECEDENTES SÃO FIRMADAS SOB AS PENAS DA LEI."), 'T');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(180, $l, "Data: _________ / _________ / " . "{$ano}" . ".", 0, 0, 'L');
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(40, $l, '', 0, 0, 'L');
$pdf->Cell(90, $l, 'ASSINATURA', 'T', 0, 'C');
$pdf->Cell(82, $l, utf8_decode($RG), 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(10, $l, utf8_decode('CPF:'), 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(48, $l, utf8_decode($CPF), 0, 1, 'L');
$pdf->SetX($x);
$pdf->Cell(180, 5, '', 'B', 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(10, 5, '(D)', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(170, 5, 'PENALIDADES', 0, 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->PrintChapter('txt/proposta_artistico_pj.txt');
$pdf->SetX($x);
$pdf->MultiCell(180, 5, utf8_decode("DECLARO ESTAR CIENTE DA PENALIDADE PREVISTA NO CAMPO (D).  \n" . "TODAS AS INFORMAÇÕES PRECEDENTES SÃO FIRMADAS SOB AS PENAS DA LEI."), 'T');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(180, $l, "Data: _________ / _________ / " . "{$ano}" . ".", 0, 0, 'L');
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(40, $l, '', 0, 0, 'L');
$pdf->Cell(90, $l, 'ASSINATURA', 'T', 0, 'C');
Exemplo n.º 6
0
        // Title
        $this->Cell(0, 6, "Chapter {$num} : {$label}", 0, 1, 'L', true);
        // Line break
        $this->Ln(4);
    }
    function ChapterBody($file)
    {
        // Read text file
        $txt = file_get_contents($file);
        // Times 12
        $this->SetFont('Times', '', 12);
        // Output justified text
        $this->MultiCell(0, 5, $txt);
        // Line break
        $this->Ln();
        // Mention in italics
        $this->SetFont('', 'I');
        //$this->Cell(0,5,'(end of excerpt)');
    }
    function PrintChapter($num, $title, $file)
    {
        $this->AddPage();
        //$this->ChapterTitle($num,$title);
        $this->ChapterBody($file);
    }
}
$pdf = new PDF();
$pdf->SetAuthor('CViA');
$pdf->PrintChapter(1, 'A PDF TEST', $text_file);
$pdf->Output();
unlink($text_file);
Exemplo n.º 7
0
 function saveBid()
 {
     // Check for request forgeries
     JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
     $app = JFactory::getApplication();
     $jbmail = JblanceHelper::get('helper.email');
     // create an instance of the class EmailHelper
     $projhelp = JblanceHelper::get('helper.project');
     // create an instance of the class ProjectHelper
     $finance = JblanceHelper::get('helper.finance');
     // create an instance of the class FinanceHelper
     $user = JFactory::getUser();
     $post = $app->input->post->getArray();
     $id = $app->input->get('id', 0, 'int');
     $row = JTable::getInstance('bid', 'Table');
     $message = JTable::getInstance('message', 'Table');
     $project_id = $app->input->get('project_id', 0, 'int');
     $proj_detail = $projhelp->getProjectDetails($project_id);
     $isNew = false;
     $now = JFactory::getDate();
     $config = JblanceHelper::getConfig();
     if ($id > 0) {
         $row->load($id);
     } else {
         $isNew = true;
     }
     // if the placed bid is new, check for bids left
     $lastSubscr = $finance->getLastSubscription($user->id);
     if ($isNew && ($lastSubscr->bids_allowed > 0 && $lastSubscr->bids_left <= 0)) {
         $msg = JText::sprintf('COM_JBLANCE_NOT_ALLOWED_TO_BID_PROJECT_LIMIT_EXCEEDED');
         $link = JRoute::_('index.php?option=com_jblance&view=membership&layout=planadd', false);
         $this->setRedirect($link, $msg, 'error');
         return false;
     }
     $post['user_id'] = $user->id;
     $post['outbid'] = $app->input->get('outbid', 0, 'int');
     if ($isNew) {
         $post['bid_date'] = $now->toSql();
         // deduce `charge per bid` if amount is > 0
         $plan = JblanceHelper::whichPlan($user->id);
         $chargePerBid = $plan->flChargePerBid;
         if ($chargePerBid > 0) {
             $transDtl = JText::_('COM_JBLANCE_CHARGE_PER_BID') . ' - ' . $proj_detail->project_title;
             JblanceHelper::updateTransaction($user->id, $transDtl, $chargePerBid, -1);
             $msg_debit = JText::sprintf('COM_JBLANCE_YOUR_ACCOUNT_DEBITED_WITH_CURRENCY_FOR_BIDDING_PROJECT', JblanceHelper::formatCurrency($chargePerBid));
             $app->enqueueMessage($msg_debit);
         }
     }
     //if the freelancer has denied the bid and is editing, reset the status. Edit option is available if the project is reopened by buyer.
     $row->status = '';
     if (!$row->save($post)) {
         JError::raiseError(500, $row->getError());
     }
     //if the project requires NDA and not signed
     $is_nda_signed = $app->input->get('is_nda_signed', 0, 'int');
     if ($proj_detail->is_nda && $is_nda_signed) {
         jimport('joomla.filesystem.folder');
         jbimport('pdflib.fpdf');
         if (!JFolder::exists(JBBIDNDA_PATH)) {
             if (JFolder::create(JBBIDNDA_PATH)) {
                 if (JFile::exists(JPATH_SITE . '/images/index.html')) {
                     JFile::copy(JPATH_SITE . '/images/index.html', JBBIDNDA_PATH . '/index.html');
                 }
             }
         }
         $new_doc = "nda_" . $row->id . "_" . $proj_detail->id . "_" . strtotime("now") . ".pdf";
         //file name format: nda_BIDID_PROJECTID_time.pdf
         $dest = JBBIDNDA_PATH . '/' . $new_doc;
         //replace texts in the file
         $dformat = $config->dateFormat;
         $ndaFile = JPATH_COMPONENT . '/images/nda.txt';
         $ndaText = file_get_contents($ndaFile);
         $siteURL = JURI::root();
         $projectName = $proj_detail->project_title;
         $startDate = JHtml::_('date', $proj_detail->start_date, $dformat . ' H:i:s', false);
         $bidderName = JFactory::getUser($row->user_id)->name;
         $bidDate = JHtml::_('date', $row->bid_date, $dformat . ' H:i:s', false);
         $publisherName = JFactory::getUser($proj_detail->publisher_userid)->name;
         $tags = array("[SITEURL]", "[PROJECTNAME]", "[STARTDATE]", "[BIDDERNAME]", "[BIDDATE]", "[PUBLISHERNAME]");
         $tagsValues = array("{$siteURL}", "{$projectName}", "{$startDate}", "{$bidderName}", "{$bidDate}", "{$publisherName}");
         $ndaText = str_replace($tags, $tagsValues, $ndaText);
         $pdf = new PDF();
         $title = JText::_('COM_JBLANCE_NON_DISCLOSURE_AGREEMENT');
         $pdf->SetTitle($title);
         $pdf->PrintChapter($ndaText);
         $pdf->Output($dest, 'F');
         $row->attachment = $title . ';' . $new_doc;
     }
     // save the changes after updating nda
     if (!$row->store()) {
         JError::raiseError(500, $row->getError());
     }
     $row->checkin();
     //update the project posting limit in the plan subscription table
     if ($isNew) {
         $finance = JblanceHelper::get('helper.finance');
         // create an instance of the class FinanceHelper
         $finance->updateBidsLeft($user->id);
     }
     //save and send PM
     $send_pm = $app->input->get('sendpm', 0, 'int');
     if ($send_pm) {
         //save the file attachment `if` checked
         $chkAttach = $app->input->get('chk-uploadmessage', 0, 'int');
         $attachedFile = $app->input->get('attached-file-uploadmessage', '', 'string');
         if ($chkAttach) {
             $post['attachment'] = $attachedFile;
         } else {
             $attFile = explode(';', $attachedFile);
             $filename = $attFile[1];
             $delete = JBMESSAGE_PATH . '/' . $filename;
             if (JFile::exists($delete)) {
                 unlink($delete);
             }
         }
         $post['date_sent'] = $now->toSql();
         $post['idFrom'] = $user->id;
         $post['idTo'] = $proj_detail->publisher_userid;
         $post['type'] = 'COM_JBLANCE_PROJECT';
         //check if messages to be moderated
         $reviewMessages = $config->reviewMessages;
         if ($reviewMessages) {
             $post['approved'] = 0;
         }
         if (!$message->save($post)) {
             JError::raiseError(500, $message->getError());
         }
         //if message does not require moderation, send PM notification email to recipient else send to admin for approval
         if ($reviewMessages) {
             $jbmail->sendAdminMessagePendingApproval($message->id);
         } else {
             $jbmail->sendMessageNotification($message->id);
         }
     }
     //send mail to publisher and outbid notify
     /* if($isNew){
     			$jbmail->sendNewBidNotification($row->id, $project_id);
     		} */
     $jbmail->sendNewBidNotification($row->id, $project_id, $isNew);
     //send out bid notification to bidders with higher amount
     $jbmail->sendOutBidNotification($row->id, $project_id);
     //Trigger the plugin event to feed the activity - buyer pick freelancer
     JPluginHelper::importPlugin('joombri');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBidAfterSave', array($row, $proj_detail->publisher_userid, $isNew));
     $msg = $isNew ? JText::_('COM_JBLANCE_BID_PLACED_SUCCESSFULLY') : JText::_('COM_JBLANCE_BID_EDITED_SUCCESSFULLY');
     $msg .= ' - ' . $proj_detail->project_title;
     $return = JRoute::_('index.php?option=com_jblance&view=project&layout=showmybid', false);
     $this->setRedirect($return, $msg);
 }
Exemplo n.º 8
0
        // Salto de l�nea
        $this->Ln(4);
    }
    function ChapterBody($file)
    {
        // Leemos el fichero
        $txt = file_get_contents($file);
        // Times 12
        $this->SetFont('Times', '', 12);
        // Imprimimos el texto justificado
        $this->MultiCell(0, 5, $txt);
        // Salto de l�nea
        $this->Ln();
        // Cita en it�lica
        $this->SetFont('', 'I');
        $this->Cell(0, 5, '(fin del extracto)');
    }
    function PrintChapter($num, $title, $file)
    {
        $this->AddPage();
        $this->ChapterTitle($num, $title);
        $this->ChapterBody($file);
    }
}
$pdf = new PDF();
$title = '20000 Leguas de Viaje Submarino';
$pdf->SetTitle($title);
$pdf->SetAuthor('Julio Verne');
$pdf->PrintChapter(1, 'UN RIZO DE HUIDA', '20k_c1.txt');
$pdf->PrintChapter(2, 'LOS PROS Y LOS CONTRAS', '20k_c2.txt');
$pdf->Output();
Exemplo n.º 9
0
$pdf->Cell(80, $l, utf8_decode($rg), 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(10, $l, utf8_decode('CPF:'), 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(50, $l, utf8_decode($cpf), 0, 1, 'L');
$pdf->SetX($x);
$pdf->Cell(180, 5, '', 'B', 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(10, 5, '(D)', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(170, 5, 'PENALIDADES', 0, 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->PrintChapter('penalidades.txt');
$pdf->SetX($x);
$pdf->Cell(180, 1, '', 'T', 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->MultiCell(180, 6, utf8_decode("DECLARO ESTAR CIENTE DA PENALIDADE PREVISTA NO CAMPO (C).  \n" . "TODAS AS INFORMAÇÕES PRECEDENTES SÃO FIRMADAS SOB AS PENAS DA LEI."));
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(180, $l, "Data: _________ / _________ / " . "{$ano}" . ".", 0, 0, 'L');
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
Exemplo n.º 10
0
                $this->Ln();
            }
        } else {
            $this->SetFont('Arial', '', 11);
            $this->SetTextColor(217, 83, 79);
            $this->Cell(0, 6, "This course does not have lesson", 0, 1, 'L', false);
            $this->Ln();
        }
        // Cita en itálica
        $this->SetFont('', 'I');
        $this->Cell(0, 5, '');
        // Volver a la primera columna
        //$this->SetCol(0);
    }
    function PrintChapter($num, $title, $file, $imgto, $aut, $count, $tp, $dt, $tot)
    {
        // Añadir capítulo
        $this->AddPage();
        $this->ChapterTitle($num, $title, $aut);
        $this->ChapterBody($file, $imgto, $count, $tp, $dt, $tot);
        //$this->lec($curid);
    }
}
$pdf = new PDF();
$title = "Document of the course: " . $titulo . "";
$pdf->SetTitle($title);
$autor = $autornam . " " . $autorape . " - " . $autorusr;
$pdf->SetAuthor($autor);
$pdf->PrintChapter(1, $titulo, $descripcion, $img, $autor, $count, $titleto, $descto, $teoto);
//$pdf->PrintChapter(2,$titulo,$descripcion,$img);
$pdf->Output();
Exemplo n.º 11
0
$pdf->Cell(100, $l, utf8_decode($Nome), 'T', 1, 'L');
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(100, $l, $RG, 0, 0, 'L');
//	QUEBRA DE PÁGINA
$pdf->AddPage('', '');
$pdf->SetXY($x, 35);
// SetXY - DEFINE O X (largura) E O Y (altura) NA PÁGINA
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(10, 5, '(C)', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(170, 5, 'PENALIDADES', 0, 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->PrintChapter('txt/proposta_oficinas_pf.txt');
$pdf->SetX($x);
$pdf->MultiCell(180, 6, utf8_decode("DECLARO ESTAR CIENTE DA PENALIDADE PREVISTA NO CAMPO (C).  \n" . "TODAS AS INFORMAÇÕES PRECEDENTES SÃO FIRMADAS SOB AS PENAS DA LEI."), 'T');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(180, $l, "Data: _________ / _________ / " . "{$ano}" . ".", 0, 0, 'L');
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
//RODAPÉ PERSONALIZADO
$pdf->SetXY($x, 262);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(100, $l, utf8_decode($Nome), 'T', 1, 'L');
$pdf->SetX($x);
Exemplo n.º 12
0
        $this->Ln(4);
    }
    function ChapterBody($file)
    {
        //Read text file
        $f = fopen($file, 'r');
        $txt = fread($f, filesize($file));
        fclose($f);
        //Times 12
        $this->SetFont('Times', '', 12);
        //Output justified text
        $this->MultiCell(0, 5, $txt);
        //Line break
        $this->Ln();
        //Mention in italics
        $this->SetFont('', 'I');
        $this->Cell(0, 5, '(end of excerpt)');
    }
    function PrintChapter($num, $title, $file)
    {
        $this->AddPage();
        $this->ChapterTitle($num, $title);
        $this->ChapterBody($file);
    }
}
$pdf = new PDF();
$title = '20000 Leagues Under the Seas';
$pdf->SetTitle($title);
$pdf->SetAuthor('Jules Verne');
$pdf->PrintChapter(1, 'A RUNAWAY REEF', 'text.txt');
$pdf->Output('doc.pdf', 'I');
Exemplo n.º 13
0
Arquivo: fpdf.php Projeto: flyeven/mu
        //$this->Cell(0,10, 'Summary');
        //Max and Min for Interest Profile
        //$this->Image('http://meetuniv.com//assets/pdfImages/interest_profile.png',10,210,80);
        $this->Image('http://meetuniv.com//assets/pdfImages/images1.jpg', 70, 185, 27);
        /*$this->Cell(0,190, $_GET['maxtext1']);
        		$this->Ln();
        		$this->Cell(0,-180, $_GET['mintext1']);
        		
        		 $this->Ln(); */
        //Max and Min for Motivation and Work
        //$this->Image('http://meetuniv.com//assets/pdfImages/motivation_and_work.png',10,210,80);
        $this->Image('http://meetuniv.com//assets/pdfImages/image2.jpg', 160, 185, 27);
        /*$this->Cell(0,190, $_GET['maxtext2']);
        		$this->Ln();
        		$this->Cell(0,-180, $_GET['mintext2']); */
        //$this->Ln();
    }
    function PrintChapter($file)
    {
        $this->AddPage();
        //$this->ChapterTitle($num,$title);
        $this->ChapterBody($file);
    }
}
$pdf = new PDF();
$title = 'THE CAREER BATTERY';
$pdf->SetTitle($title);
//$pdf->SetAuthor('Jules Verne');
$pdf->PrintChapter('http://meetuniv.com//assets/pdfText.html');
//$pdf->PrintChapter(2,'THE CAREER BATTERY','http://localhost/CodeIgniter1/assets/test.html');
$pdf->Output();
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(10, $l, utf8_decode('CPF:'), 0, 0, 'L');
$pdf->SetFont('Arial', '', 9);
$pdf->Cell(48, $l, utf8_decode($rep02CPF), 0, 1, 'L');
$pdf->SetX($x);
$pdf->Cell(180, 2, '', 'B', 1, 'C');
//$pdf->Ln();
$l = 3.5;
//DEFINE A ALTURA DA LINHA
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(10, $l, '(D)', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 8);
$pdf->Cell(170, 5, utf8_decode('OBSERVAÇÃO'), 0, 1, 'C');
$pdf->SetX($x);
$pdf->PrintChapter('txt/proposta_reversaolonga_observacao.txt');
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(10, $l, '', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 8);
$pdf->Cell(170, 5, utf8_decode('DECLARAÇÕES'), 0, 1, 'C');
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 8);
$pdf->MultiCell(0, $l, utf8_decode($txtPenalidade), 0, 'J');
//$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 9);
$pdf->Cell(180, $l, "Data: _________ / _________ / " . "{$ano}" . ".", 0, 0, 'L');
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
Exemplo n.º 15
0
    $archivo_sal = $anos . $dependencia . $sec . "_1";
}
if ($gen_rad == "false") {
    $rad_definitivo = $numrad;
    $radsal = substr($numrad, 1, 13);
    $rad_salida = $radsal;
    $radsal = $radsal . EAN13_DV($radsal);
    $archivo_sal = $rad_definitivo . "_1";
} else {
    $rad_definitivo = $numrad;
    $radsal = $numrad . EAN13_DV($radsal);
}
$pdf->AddPage();
$pdf->Image("escudo.jpg", 10, 8, 23);
$pdf->EAN13(160, 30, $radsal);
$pdf->PrintChapter(2, '2', $archivo);
//$title = "SUPERINTENDENCIA DE SERVICIOS PUBLICOS ";
//$pdf->SetTitle($title);
$title = "";
if ($radicar_documento) {
    $arpdf = "rad_salida/{$fano}/{$dependencia}/{$fmes}/2{$archivo_sal}.pdf";
    $pdf->Output($arpdf);
    echo "<B><CENTER><a href={$arpdf}?fecha_h={$fechah}> Ver Archivo Pdf </a><br>";
    if ($sec) {
        $plg_codi = str_pad($numero_pla, 4, "0", STR_PAD_left);
        $plg_comentarios = "";
        $plt_codi = $plt_codi;
        $rad_salida = "2" . $rad_salida;
        $isql = "update PL_GENERADO_PLG set PLT_CODI=2,RADI_NUME_SAL={$rad_salida},\n\t\t           PLG_ARCHIVO_FINAL='{$arpdf}',PLG_CREA_FECH=SYSDATE\t\t   \n\t\t           where PLG_CODI={$plantillaper1} and RADI_NUME_RADI={$numrad}";
        ora_commiton($handle);
        $cursor = ora_open($handle);
$pdf->Cell(82, $l, utf8_decode($rep02RG), 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(10, $l, utf8_decode('CPF:'), 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(48, $l, utf8_decode($rep02CPF), 0, 1, 'L');
$pdf->SetX($x);
$pdf->Cell(180, 5, '', 'B', 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(10, 5, '(D)', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(170, 5, 'PENALIDADES', 0, 1, 'C');
$pdf->Ln();
$pdf->SetX($x);
$pdf->PrintChapter('txt/proposta_com001-15_pj.txt');
$pdf->SetX($x);
$pdf->MultiCell(180, 5, utf8_decode("DECLARO ESTAR CIENTE DA PENALIDADE PREVISTA NO CAMPO (D).  \n" . "TODAS AS INFORMAÇÕES PRECEDENTES SÃO FIRMADAS SOB AS PENAS DA LEI."), 'T');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(180, $l, "Data: _________ / _________ / " . "{$ano}" . ".", 0, 0, 'L');
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
//RODAPÉ PERSONALIZADO
$pdf->SetXY($x, 262);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(85, $l, utf8_decode($rep01Nome), 'T', 0, 'L');
Exemplo n.º 17
0
Arquivo: fpdf.php Projeto: flyeven/mu
        if ($_GET['value'] == '1') {
            $this->Image('http://meetuniv.com/assets/pdfImages/upper_left.png', 12, 200, 90);
        } else {
            if ($_GET['value'] == '2') {
                $this->Image('http://meetuniv.com/assets/pdfImages/lower_right.png', 12, 200, 90);
            } else {
                if ($_GET['value'] == '3') {
                    $this->Image('http://meetuniv.com/assets/pdfImages/lower_right.png', 12, 200, 90);
                } else {
                    if ($_GET['value'] == '4') {
                        $this->Image('http://meetuniv.com/assets/pdfImages/upper_right.png', 12, 200, 90);
                    }
                }
            }
        }
        //$this->Cell(0,110,'some text');
    }
    function PrintChapter($file)
    {
        $this->AddPage();
        //$this->ChapterTitle($num,$title);
        $this->ChapterBody($file);
    }
}
$pdf = new PDF();
$title = 'THE CAREER BATTERY';
$pdf->SetTitle($title);
//$pdf->SetAuthor('Jules Verne');
$pdf->PrintChapter('http://meetuniv.com/assets/test.html');
//$pdf->PrintChapter(2,'THE CAREER BATTERY','http://localhost/CodeIgniter1/assets/test.html');
$pdf->Output();
Exemplo n.º 18
0
    }
    function ChapterBody($file)
    {
        //Read text file
        $f = fopen($file, 'r');
        $txt = fread($f, filesize($file));
        fclose($f);
        //Times 12
        $this->SetFont('Times', '', 12);
        //Output justified text
        $this->MultiCell(0, 5, $txt);
        //Line break
        $this->Ln();
        //Mention in italics
        $this->SetFont('', 'I');
        $this->Cell(0, 5, '(end of excerpt)');
    }
    function PrintChapter($num, $title, $file)
    {
        $this->AddPage();
        $this->ChapterTitle($num, $title);
        $this->ChapterBody($file);
    }
}
$pdf = new PDF();
$title = '20000 Leagues Under the Seas';
$pdf->SetTitle($title);
$pdf->SetAuthor('Jules Verne');
$pdf->PrintChapter(1, 'A RUNAWAY REEF', '20k_c1.txt');
$pdf->PrintChapter(2, 'THE PROS AND CONS', '20k_c2.txt');
$pdf->Output();
Exemplo n.º 19
0
// Increment the issue, since this is a new issue
$query_saveData = "UPDATE publications SET \n\t\t\t\t\t\t issue='{$newIssue}'  \n\t                     WHERE onlyCol=1";
$result_saveData = mysql_query($query_saveData, $cxn) or die("Couldn't execute query 1");
$pdf = new PDF();
$title = 'Mainely News';
$pdf->SetTitle($title);
$pdf->SetAuthor('Group');
$pdf->AddPage();
$pdf->SetFont('Times', '', 9);
// Birthdays and events ##################################################
$pdf->SetFont('Helvetica', '', 9);
$pdf->SetFont('', 'B');
//$pdf->PrintChapter(1,'','_________________________________________________');
//$pdf->Ln();
$pdf->Ln(3);
$pdf->PrintChapter(1, '', 'Announcements & Events');
$pdf->Ln(1);
$pdf->SetFont('Times', '', 9);
// Begin to format and print the paper
$query_getData = "SELECT userID, nameFull, event1, event2, event3 FROM userdata";
$result_getData = mysql_query($query_getData, $cxn) or die("Couldn't execute query 1");
// Print the paragraph updates
while ($content = mysql_fetch_assoc($result_getData)) {
    if ($content['nameFull'] != '') {
        //$pdf->SetFont('','I');
        //$pdf->PrintChapter(2,'','... '.$content['nameFull']);
        $pdf->SetFont('', '');
        if ($content['event1'] != '') {
            $pdf->PrintChapter(3, '', $content['event1'] . ' ... ' . $content['nameFull']);
            //$pdf->Ln();
        }