Пример #1
0
$project_url = "https://github.com/rospdf/";
$project_version = "0.12.28";
$pdf = new Creport('a4', 'portrait', 'none', null);
// to test on windows xampp
if (strpos(PHP_OS, 'WIN') !== false) {
    $pdf->tempPath = 'C:/temp';
}
$start = microtime(true);
// IMPORTANT: To allow custom callbacks being executed
$pdf->allowedTags .= '|uline|rf:?.*?|dots:[0-9]+';
$pdf->ezSetMargins(50, 70, 50, 50);
// put a line top and bottom on all the pages
$all = $pdf->openObject();
$pdf->saveState();
$pdf->setStrokeColor(0, 0, 0, 1);
$pdf->line(20, 40, 578, 40);
$pdf->line(20, 822, 578, 822);
$pdf->addText(20, 30, 8, $project_url);
$pdf->addText(515, 30, 8, 'Version ' . $project_version);
$pdf->restoreState();
$pdf->closeObject();
// note that object can be told to appear on just odd or even pages by changing 'all' to 'odd'
// or 'even'.
$pdf->addObject($all, 'all');
$pdf->ezSetDy(-150);
$mainFont = 'Helvetica';
$codeFont = './src/fonts/Courier.afm';
// select a font
$pdf->selectFont($mainFont);
$pdf->ezText("PHP Pdf Class\n", 30, array('justification' => 'centre'));
$pdf->ezText("Native PDF document creation with PHP 5.X\n", 20, array('justification' => 'centre'));
Пример #2
0
 $pdf->selectFont('./fonts/Helvetica');
 $pdf->ezText('CONSULTOR', 20, array('justification' => 'center'));
 $pdf->ezText('AEVIVIENDA                                                                                      <c:uline>Registro #</c:uline>  ' . $idregistro_entidad, 11, array('justification' => 'center'));
 $pdf->ezText('www.aevivienda.gob.bo                                                                      <c:uline>Fecha Actual:</c:uline>  ' . $fecha, 11, array('justification' => 'center'));
 $pdf->ezText('');
 $pdf->ezText('DATOS GENERALES', 15, array('justification' => 'left'));
 $pdf->ezTable($data1, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7));
 $pdf->ezText('');
 $pdf->ezText('DATOS ESPECIFICOS', 15, array('justification' => 'left'));
 $pdf->ezTable($data12, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7));
 $pdf->ezText('');
 $pdf->ezText('DATOS COMPLEMENTARIOS', 15, array('justification' => 'left'));
 $pdf->ezTable($data13, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7));
 $footer = $pdf->openObject();
 $pdf->addText(500, 30, 8, "TECNICO");
 $pdf->line(490, 40, 600, 40);
 $pdf->addText(620, 30, 8, "LEGAL");
 $pdf->line(610, 40, 720, 40);
 $pdf->addText(740, 30, 8, "PROPONENTE");
 $pdf->line(730, 40, 840, 40);
 $pdf->closeObject();
 $pdf->addObject($footer, "all");
 $pdf->ezNewPage();
 $pdf->ezText('Consultor', 20, array('justification' => 'center'));
 $pdf->ezText('Formacion Academica', 15, array('justification' => 'left'));
 $pdf->ezTable($data2, '', 'Datos Provenientes Durante el Registro', array('width' => 650, 'maxWidth' => 650, 'fontSize' => 7, 'cols' => array('TITULO' => array('width' => 200), 'Universidad/Institucion' => array('width' => 200), 'Fecha Titulo en Provision Nacional' => array('width' => 100), 'Verifique' => array('width' => 50))));
 $pdf->ezText('');
 $pdf->ezText('');
 $pdf->ezText('PostGrado', 15, array('justification' => 'left'));
 $pdf->ezTable($data3, '', 'Datos Provenientes Durante el Registro', array('width' => 650, 'maxWidth' => 650, 'fontSize' => 7, 'cols' => array('CURSO/POSTGRADO' => array('width' => 150), 'NroHoras' => array('width' => 50), 'Fecha Conclusion' => array('width' => 80), 'Universidad/Institucion' => array('width' => 150), 'Tipo Postgrado' => array('width' => 100), 'Verifique' => array('width' => 50))));
 $pdf->ezText('');
Пример #3
0
// ---------- COLUMN HEADER VALUES END ----------
$prev_dept = "ZZZZ";
$curr_dept = " ";
$curr_progid = "XXXXXXXX";
$prev_progid = " ";
$total_flag = "no";
$new_page_flag = "no";
// ---------- PRINTS HEADER AND FOOTER BEGINS ----------
$pdf->selectFont('Helvetica-Bold');
$all = $pdf->openObject();
$pdf->saveState();
$pdf->addText($title_position, $ypos, $font_size_14, $title);
$ypos = $ypos - $row_spacing;
$pdf->selectFont('Helvetica');
$pdf->setLineStyle(1, 'round');
$pdf->line(76, 516, 770, 516);
// column header line
$pdf->restoreState();
$pdf->closeObject();
$pdf->addObject($all, 'all');
// ---------- HEADER AND FOOTER ENDS ----------
$pdf->ezSetMargins(75, 40, 75, 75);
while ($i < 1) {
    $curr_progid = "AGS211";
    $curr_deptid = "AGS";
    $curr_pgmno = "211";
    $nar_p[0] = "<u>A. Statement of Program Objectives</u>\n\nTo assist in protecting the rights of public and private land ownership by\nproviding land surveying services.";
    $nar_p[1] = "<u>B.Description of Request and Compliance with Section 37-68(1)(A)(B)</u>\n\nNo new programs are being proposed at this time. The program complies\nwith Section 37-68(1)(A)(B).";
    $nar_p[2] = "<u>C. Description of Activities Performed</u>\n\nMajor activities include statewide field surveying services and furnishing of maps and descriptions of all government and selected private lands as a service to State Agencies who require this program's technical assistance. Maps and descriptions are utilized by these agencies for various types of land transactions.\nChecking and processing all Land Court and File Plan maps referred by the Land Court and the Bureau of Conveyances, respectively, prior to these maps being adjudicated and recorded.\nAssist the Department of Land and Natural Resources (DLNR) by reviewing all shoreline applications statewide. Maps are reviewed, checked on the ground and recommendations are forwarded to the Chairman of the Board of Land and Natural Resources.\nThe State is required to respond through the Circuit Courts on all Quiet Title Actions in which the State is cited as the defendant. The interest of the State as well as the general public are thoroughly researched and reported to the Attorney General. The program is also involved in litigation as expert witnesses.";
    $nar_p[3] = "<u>D. Statement of Key Policies Pursued</u>\n\nIn support of the Hawaii State Plan, the program provides office and field land surveying services to facilitate the achievements of priority directives of the agencies serviced. Included as part of the policy is the protection of the State government and individuals property rights. For the State's socio-cultural advancement with regard to housing, the program will assist in effectively accommodating the housing needs of Hawaii's people. Subdivision maps submitted on behalf of government agencies such as the Hawaii Public Housing Authority, the Department of Hawaiian Home Lands, the Federal Government, and the private sector are checked and processed in a timely manner. To aid in exercising an overall conservation ethic in the use of Hawaii's resources, the program reviews all shoreline certification applications to insure conformance with existing shoreline administrative rules and statutes.\n";
    $nar_p[4] = "<u>E. Identification of Important Program Relationships</u>\n\nAlthough essential activities exist between this program and other government agencies as well as others in the private sector, respective objectives of the parties involved are distinct and do not warrant integration. On land litigations, the Department of the Attorney General relies on the program's expertise and professional knowledge as expert witness.";
Пример #4
0
set_time_limit(1800);
include 'pdf/class.ezpdf.php';
class Creport extends Cezpdf
{
    var $reportContents = array();
    function Creport($p, $o)
    {
        $this->Cezpdf($p, $o);
    }
}
$pdf = new Creport('a4', 'portrait');
$pdf->ezSetMargins(30, 30, 30, 30);
$all = $pdf->openObject();
$pdf->saveState();
$pdf->setStrokeColor(0, 0, 0, 1);
$pdf->line(30, 60, 565, 60);
$pdf->line(30, 780, 565, 780);
$pdf->addText(230, 810, 8, 'Berkeley and District Skittles League');
$fixtureString = "Fixtures {$bdslSeason}";
$pdf->addText(255, 800, 8, $fixtureString);
$pdf->addJpegFromFile('resource/logo.jpg', 525, 786, 40);
$pdf->addText(30, 788, 12, $team);
$pdf->addText(30, 50, 8, 'www.berkeleydsl.org.uk');
$pdf->addText(490, 50, 8, $mydate);
$pdf->restoreState();
$pdf->closeObject();
$pdf->addObject($all, 'all');
$pdf->ezSetDy(-40);
$mainFont = '/pdf/fonts/Helvetica.afm';
$codeFont = '/pdf/fonts/Courier.afm';
$pdf->selectFont($mainFont);