Пример #1
0
<?php

error_reporting(E_ALL);
set_time_limit(1800);
set_include_path('../src/' . PATH_SEPARATOR . get_include_path());
include 'Cezpdf.php';
require_once "Mail.php";
class Creport extends Cezpdf
{
    function Creport($p, $o)
    {
        $this->__construct($p, $o, 'none');
    }
}
$pdf = new Creport('a4', 'portrait');
$pdf->ezSetMargins(20, 20, 20, 20);
$mainFont = 'Times-Roman';
// select a font
$pdf->selectFont($mainFont);
$size = 12;
$height = $pdf->getFontHeight($size);
// modified to use the local file if it can
$pdf->openHere('Fit');
$pdf->ezText("PNG grayscaled with alpha channel");
$pdf->ezImage('images/test_grayscaled_alpha.png', 0, 0, 'none', 'right');
if (isset($_GET['d']) && $_GET['d']) {
    $pdfcode = $pdf->ezOutput(1);
    $pdfcode = str_replace("\n", "\n<br>", htmlspecialchars($pdfcode));
    echo '<html><body>';
    echo trim($pdfcode);
    echo '</body></html>';
Пример #2
0
    }
}
// I am in NZ, so will design my page for A4 paper.. but don't get me started on that.
// (defaults to legal)
// this code has been modified to use ezpdf.
$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';
Пример #3
0
$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.";
    $nar_p[5] = "<u>F. Description of Major External Trends Affecting the Program</u>\n\nThe amendment to Chapters 205 and 669, HRS, Shoreline Setback Act and Quiet Title Actions, significantly increased the program's workload. Special attention is concentrated in preserving the public's rights to access along beaches, forest lands and historic sites. In addition, previously unaccounted for old school grants, government remnants, and government roads have been claimed on behalf of the State. Numerous illegal use of Government lands especially along shorelines have been detected and reported to the DLNR. Subsequent actions by the DLNR have resulted in the sale or lease of lands or assessment of penalties that resulted in increased revenues.";
    $nar_p[6] = "<u>G. Discussion of Cost, Effectiveness, and Program Size Data</u>\n\nAcquisition of computers, scanners and electronic surveying instruments together with the use of e-mail and the internet have expedited services and dramatically improved accessibility to the public and government agencies requesting survey maps and survey information. However, limited funding and staff reductions negatively impacts the program's effectiveness.";
    $nar_p[7] = "<u>H. Discussion of Program Revenues</u>\n\nRevenues for this program are derived from the sale of copies of maps and descriptions and prints of Land Court and File Plan maps. Fees are also assessed for the checking and processing of all Land Court and File Plan subdivision maps and field check of original Land Court Applications.";
    $nar_p[8] = "<u>I. Summary of Analysis Performed</u>\n\nAn in-depth program analysis has not been performed for this program.";
    $nar_p[9] = "<u>J. Further Considerations</u>\n\nRapidly changing technology in the field of computers and surveying equipment requires the program's constant need to update its software and equipment. The continued observations of the latest developments in equipment methodology are a necessary ingredient for a successful operation.";
    $title_hdr = "LAND SURVEY";
Пример #4
0
$localTime = time();
$localTime = $localTime - 60 * 60 * 1;
$mydate = date("G:i jS M Y", $localTime);
error_reporting(E_ALL);
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');
Пример #5
0
set_time_limit(1800);
set_include_path('../assets/pdf-php/' . PATH_SEPARATOR . get_include_path());
include 'Cezpdf.php';
class Creport extends Cezpdf
{
    function Creport($p, $o)
    {
        $this->__construct($p, $o, '', array(0.2, 0.8, 0.8));
    }
}
$pdf = new Creport('a4', 'portrait');
// to test on windows xampp
if (strpos(PHP_OS, 'WIN') !== false) {
    $pdf->tempPath = '../';
}
$pdf->ezSetMargins(5, 5, 5, 5);
$mainFont = 'Times-Roman';
// select a font
$pdf->selectFont($mainFont);
$size = 12;
$height = $pdf->getFontHeight($size);
// modified to use the local file if it can
$pdf->openHere('Fit');
//$border['width'] = 1;
$pdf->ezImage('img/logo2.png', '25', '125', '', 'left', '');
$pdf->ezText('');
$pdf->ezText('');
$meio = array();
$json = file_get_contents('..\\json\\fornecedor.json');
$lendo = json_decode($json, true);
$x = 0;
Пример #6
0
set_time_limit(1800);
set_include_path('../assets/pdf-php/' . PATH_SEPARATOR . get_include_path());
include 'Cezpdf.php';
class Creport extends Cezpdf
{
    function Creport($p, $o)
    {
        $this->__construct($p, $o, '', array(0.2, 0.8, 0.8));
    }
}
$pdf = new Creport('a4', 'portrait');
// to test on windows xampp
if (strpos(PHP_OS, 'WIN') !== false) {
    $pdf->tempPath = '../';
}
$pdf->ezSetMargins(10, 10, 20, 20);
$mainFont = 'Times-Roman';
// select a font
$pdf->selectFont($mainFont);
$size = 12;
$height = $pdf->getFontHeight($size);
// modified to use the local file if it can
$pdf->openHere('Fit');
//$border['width'] = 1;
$pdf->ezText('');
$pdf->ezImage('img/logo2.png', '', '175', '', 'left', '');
$pdf->ezText('');
$pdf->ezText('Materiais', 25);
$pdf->ezText('');
$meio = array();
$json = file_get_contents('..\\json\\material.json');