Imported Upstream version 0.6.26
This commit is contained in:
parent
bebe87317f
commit
a6b4158f1f
3
.gitignore
vendored
3
.gitignore
vendored
@ -36,3 +36,6 @@ scripts/rrd_convert.pl
|
|||||||
scripts/rrd_converter.pl
|
scripts/rrd_converter.pl
|
||||||
|
|
||||||
man/npcd.8
|
man/npcd.8
|
||||||
|
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
10
ChangeLog
10
ChangeLog
@ -1,4 +1,12 @@
|
|||||||
**pnp-0.6.?? ??/??/2015**
|
**pnp-0.6.?? ??/??/2017**
|
||||||
|
|
||||||
|
**pnp-0.6.26 08/21/2017**
|
||||||
|
* Bugfix: Use complete option arguments for compatibility with rrdtool 1.6.0 (sbraz)
|
||||||
|
* Bugfix: Zoom on a special template not possbile (stinnux)
|
||||||
|
* Update: Update for FPDF (1.81) and FPDI (1.6.1) (Jan T. Bein )
|
||||||
|
* Bugfix: address behaviour of rrdtool1.5+ tp not export timestamp by default
|
||||||
|
* Feature: Template for icinga2's built-in icinga check (Tontonitch)
|
||||||
|
* Bugfix: fix non well formed numeric value encountered (sni)
|
||||||
|
|
||||||
**pnp-0.6.25 01/03/2015**
|
**pnp-0.6.25 01/03/2015**
|
||||||
* Update: FPDF Update to Version 1.7
|
* Update: FPDF Update to Version 1.7
|
||||||
|
22
configure
vendored
22
configure
vendored
@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.61 for pnp 0.6.25.
|
# Generated by GNU Autoconf 2.61 for pnp 0.6.26.
|
||||||
#
|
#
|
||||||
# Report bugs to <pnp4nagios-devel@lists.sourceforge.net>.
|
# Report bugs to <pnp4nagios-devel@lists.sourceforge.net>.
|
||||||
#
|
#
|
||||||
@ -574,8 +574,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
|
|||||||
# Identity of this package.
|
# Identity of this package.
|
||||||
PACKAGE_NAME='pnp'
|
PACKAGE_NAME='pnp'
|
||||||
PACKAGE_TARNAME='pnp'
|
PACKAGE_TARNAME='pnp'
|
||||||
PACKAGE_VERSION='0.6.25'
|
PACKAGE_VERSION='0.6.26'
|
||||||
PACKAGE_STRING='pnp 0.6.25'
|
PACKAGE_STRING='pnp 0.6.26'
|
||||||
PACKAGE_BUGREPORT='pnp4nagios-devel@lists.sourceforge.net'
|
PACKAGE_BUGREPORT='pnp4nagios-devel@lists.sourceforge.net'
|
||||||
|
|
||||||
ac_unique_file="src/"
|
ac_unique_file="src/"
|
||||||
@ -1219,7 +1219,7 @@ if test "$ac_init_help" = "long"; then
|
|||||||
# Omit some internal or obsolete options to make the list less imposing.
|
# Omit some internal or obsolete options to make the list less imposing.
|
||||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||||
cat <<_ACEOF
|
cat <<_ACEOF
|
||||||
\`configure' configures pnp 0.6.25 to adapt to many kinds of systems.
|
\`configure' configures pnp 0.6.26 to adapt to many kinds of systems.
|
||||||
|
|
||||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||||
|
|
||||||
@ -1284,7 +1284,7 @@ fi
|
|||||||
|
|
||||||
if test -n "$ac_init_help"; then
|
if test -n "$ac_init_help"; then
|
||||||
case $ac_init_help in
|
case $ac_init_help in
|
||||||
short | recursive ) echo "Configuration of pnp 0.6.25:";;
|
short | recursive ) echo "Configuration of pnp 0.6.26:";;
|
||||||
esac
|
esac
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
|
|
||||||
@ -1380,7 +1380,7 @@ fi
|
|||||||
test -n "$ac_init_help" && exit $ac_status
|
test -n "$ac_init_help" && exit $ac_status
|
||||||
if $ac_init_version; then
|
if $ac_init_version; then
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
pnp configure 0.6.25
|
pnp configure 0.6.26
|
||||||
generated by GNU Autoconf 2.61
|
generated by GNU Autoconf 2.61
|
||||||
|
|
||||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
||||||
@ -1394,7 +1394,7 @@ cat >config.log <<_ACEOF
|
|||||||
This file contains any messages produced by compilers while
|
This file contains any messages produced by compilers while
|
||||||
running configure, to aid debugging if configure makes a mistake.
|
running configure, to aid debugging if configure makes a mistake.
|
||||||
|
|
||||||
It was created by pnp $as_me 0.6.25, which was
|
It was created by pnp $as_me 0.6.26, which was
|
||||||
generated by GNU Autoconf 2.61. Invocation command line was
|
generated by GNU Autoconf 2.61. Invocation command line was
|
||||||
|
|
||||||
$ $0 $@
|
$ $0 $@
|
||||||
@ -1764,9 +1764,9 @@ _ACEOF
|
|||||||
|
|
||||||
|
|
||||||
PKG_NAME=pnp4nagios
|
PKG_NAME=pnp4nagios
|
||||||
PKG_VERSION="0.6.25"
|
PKG_VERSION="0.6.26"
|
||||||
PKG_HOME_URL="http://www.pnp4nagios.org/pnp/start"
|
PKG_HOME_URL="http://www.pnp4nagios.org/pnp/start"
|
||||||
PKG_REL_DATE="03-01-2015"
|
PKG_REL_DATE="08-21-2017"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -6330,7 +6330,7 @@ exec 6>&1
|
|||||||
# report actual input values of CONFIG_FILES etc. instead of their
|
# report actual input values of CONFIG_FILES etc. instead of their
|
||||||
# values after options handling.
|
# values after options handling.
|
||||||
ac_log="
|
ac_log="
|
||||||
This file was extended by pnp $as_me 0.6.25, which was
|
This file was extended by pnp $as_me 0.6.26, which was
|
||||||
generated by GNU Autoconf 2.61. Invocation command line was
|
generated by GNU Autoconf 2.61. Invocation command line was
|
||||||
|
|
||||||
CONFIG_FILES = $CONFIG_FILES
|
CONFIG_FILES = $CONFIG_FILES
|
||||||
@ -6379,7 +6379,7 @@ Report bugs to <bug-autoconf@gnu.org>."
|
|||||||
_ACEOF
|
_ACEOF
|
||||||
cat >>$CONFIG_STATUS <<_ACEOF
|
cat >>$CONFIG_STATUS <<_ACEOF
|
||||||
ac_cs_version="\\
|
ac_cs_version="\\
|
||||||
pnp config.status 0.6.25
|
pnp config.status 0.6.26
|
||||||
configured by $0, generated by GNU Autoconf 2.61,
|
configured by $0, generated by GNU Autoconf 2.61,
|
||||||
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ(2.61)
|
AC_PREREQ(2.61)
|
||||||
AC_INIT(pnp, 0.6.25, pnp4nagios-devel@lists.sourceforge.net)
|
AC_INIT(pnp, 0.6.26, pnp4nagios-devel@lists.sourceforge.net)
|
||||||
AC_CONFIG_SRCDIR(src/)
|
AC_CONFIG_SRCDIR(src/)
|
||||||
AC_CONFIG_HEADERS(include/config.h:include/config.h.in)
|
AC_CONFIG_HEADERS(include/config.h:include/config.h.in)
|
||||||
AC_PREFIX_DEFAULT(/usr/local/pnp4nagios)
|
AC_PREFIX_DEFAULT(/usr/local/pnp4nagios)
|
||||||
@ -11,9 +11,9 @@ AC_DEFINE([DEFAULT_NAGIOS_USER], [nagios], [Default Nagios User])
|
|||||||
AC_DEFINE([DEFAULT_NAGIOS_GROUP], [nagios], [Default Nagios Group])
|
AC_DEFINE([DEFAULT_NAGIOS_GROUP], [nagios], [Default Nagios Group])
|
||||||
|
|
||||||
PKG_NAME=pnp4nagios
|
PKG_NAME=pnp4nagios
|
||||||
PKG_VERSION="0.6.25"
|
PKG_VERSION="0.6.26"
|
||||||
PKG_HOME_URL="http://www.pnp4nagios.org/pnp/start"
|
PKG_HOME_URL="http://www.pnp4nagios.org/pnp/start"
|
||||||
PKG_REL_DATE="03-01-2015"
|
PKG_REL_DATE="08-21-2017"
|
||||||
AC_SUBST(PKG_NAME)
|
AC_SUBST(PKG_NAME)
|
||||||
AC_SUBST(PKG_VERSION)
|
AC_SUBST(PKG_VERSION)
|
||||||
AC_SUBST(PKG_HOME_URL)
|
AC_SUBST(PKG_HOME_URL)
|
||||||
|
@ -1044,6 +1044,7 @@ sub parse_perfstring {
|
|||||||
my $check_multi_blockcount = 0;
|
my $check_multi_blockcount = 0;
|
||||||
my $multi_parent = cleanup( $NAGIOS{SERVICEDESC} );
|
my $multi_parent = cleanup( $NAGIOS{SERVICEDESC} );
|
||||||
my $auth_servicedesc = $NAGIOS{DISP_SERVICEDESC};
|
my $auth_servicedesc = $NAGIOS{DISP_SERVICEDESC};
|
||||||
|
my $seen_multi_label = "";
|
||||||
while ($perfstring) {
|
while ($perfstring) {
|
||||||
( $perfstring, %p ) = _parse($perfstring);
|
( $perfstring, %p ) = _parse($perfstring);
|
||||||
if ( !$p{label} ) {
|
if ( !$p{label} ) {
|
||||||
@ -1052,8 +1053,19 @@ sub parse_perfstring {
|
|||||||
@perfs = ();
|
@perfs = ();
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $p{label} =~ /$seen_multi_label/ ) {
|
||||||
|
# multi label format for each perfdata item (e.g Icinga2)
|
||||||
|
# we're in a sub tree of a multi block, adjust label for further processing
|
||||||
|
my $tmp_prefix = $seen_multi_label."::";
|
||||||
|
$p{label} =~ s/$tmp_prefix//;
|
||||||
|
}
|
||||||
|
|
||||||
if ( $p{label} =~ /^[']?([a-zA-Z0-9\.\-_\s\/\#]+)::([a-zA-Z0-9\.\-_\s]+)::([^=]+)[']?$/ ) {
|
if ( $p{label} =~ /^[']?([a-zA-Z0-9\.\-_\s\/\#]+)::([a-zA-Z0-9\.\-_\s]+)::([^=]+)[']?$/ ) {
|
||||||
@multi = ( $1, $2, $3 );
|
@multi = ( $1, $2, $3 );
|
||||||
|
|
||||||
|
$seen_multi_label = $multi[0]."::".$multi[1];
|
||||||
|
|
||||||
if ( $count == 0 ) {
|
if ( $count == 0 ) {
|
||||||
print_log( "DEBUG: First check_multi block", 3 );
|
print_log( "DEBUG: First check_multi block", 3 );
|
||||||
|
|
||||||
|
@ -47,10 +47,10 @@ printstatus_npcd(){
|
|||||||
exit 0
|
exit 0
|
||||||
elif test $? -eq 2; then
|
elif test $? -eq 2; then
|
||||||
echo "$servicename is not running but subsystem locked"
|
echo "$servicename is not running but subsystem locked"
|
||||||
exit 2
|
exit 3
|
||||||
else
|
else
|
||||||
echo "$servicename is not running"
|
echo "$servicename is not running"
|
||||||
exit 1
|
exit 3
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ case "$1" in
|
|||||||
status_npcd
|
status_npcd
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "$servicename already started..."
|
echo "$servicename already started..."
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo -n "Starting $servicename:"
|
echo -n "Starting $servicename:"
|
||||||
touch $NpcdRunFile
|
touch $NpcdRunFile
|
||||||
@ -109,7 +109,7 @@ case "$1" in
|
|||||||
status_npcd
|
status_npcd
|
||||||
if ! [ $? -eq 0 ]; then
|
if ! [ $? -eq 0 ]; then
|
||||||
echo "$servicename was not running... could not stop"
|
echo "$servicename was not running... could not stop"
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo -n "Stopping $servicename: "
|
echo -n "Stopping $servicename: "
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ my %conf = (
|
|||||||
);
|
);
|
||||||
|
|
||||||
Getopt::Long::Configure('bundling');
|
Getopt::Long::Configure('bundling');
|
||||||
my ( $opt_V, $opt_h, $opt_c, $opt_l, $opt_x, $opt_p );
|
my ( $opt_V, $opt_h, $opt_c, $opt_l, $opt_x, $opt_p, $opt_s, $opt_o, $opt_r );
|
||||||
# defaults
|
# defaults
|
||||||
$opt_x = 1;
|
$opt_x = 1;
|
||||||
|
|
||||||
@ -59,15 +59,22 @@ GetOptions(
|
|||||||
"c|check_command=s" => \$opt_c,
|
"c|check_command=s" => \$opt_c,
|
||||||
"p|cfg_dir=s" => \$opt_p,
|
"p|cfg_dir=s" => \$opt_p,
|
||||||
"l|list_commands" => \$opt_l,
|
"l|list_commands" => \$opt_l,
|
||||||
|
"s|stepwise" => \$opt_s,
|
||||||
"x|no_structure_check" => \$opt_x,
|
"x|no_structure_check" => \$opt_x,
|
||||||
|
"o|log_old_xml" => \$opt_o,
|
||||||
"d|dry-run" => \$conf{DRY_RUN},
|
"d|dry-run" => \$conf{DRY_RUN},
|
||||||
"t|tmp_dir=s" => \$conf{TMP_DIR},
|
"t|tmp_dir=s" => \$conf{TMP_DIR},
|
||||||
"force" => \$conf{FORCE},
|
"force" => \$conf{FORCE},
|
||||||
|
"r|read=s" => \$opt_r,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (defined($opt_r)) {
|
||||||
|
$opt_c = "ALL";
|
||||||
|
}
|
||||||
|
|
||||||
print_help() if $opt_h;
|
print_help() if $opt_h;
|
||||||
print_help_opt_p() if !$opt_p;
|
print_help_opt_p() if !$opt_p;
|
||||||
print_help() if !$opt_c and !$opt_l;
|
print_help() if (!$opt_c and !$opt_l) and (!$opt_r);
|
||||||
print_version() if $opt_V;
|
print_version() if $opt_V;
|
||||||
|
|
||||||
if($opt_p){
|
if($opt_p){
|
||||||
@ -100,14 +107,22 @@ main();
|
|||||||
|
|
||||||
sub main{
|
sub main{
|
||||||
check_storage_type();
|
check_storage_type();
|
||||||
find(\&wanted_xml_files, $conf{RRDPATH});
|
if ($opt_o) {
|
||||||
|
create_dir($conf{TMP_DIR});
|
||||||
|
open(OLDXMLLOG, ">", $conf{TMP_DIR}."/pnp_old_xml_files.list");
|
||||||
|
print OLDXMLLOG "- generated by rrd_convert.pl - \n";
|
||||||
|
print OLDXMLLOG "The following XML files are older than $conf{XML_MAX_AGE} seconds:\n\n";
|
||||||
|
}
|
||||||
|
build_worklist();
|
||||||
|
close(OLDXMLLOG);
|
||||||
summary();
|
summary();
|
||||||
if($opt_l){ # List commands and exit
|
if($opt_l){ # List commands and exit
|
||||||
summary_command_list();
|
summary_command_list();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
if($#worklist+1 > 0 ){
|
if($#worklist+1 > 0 ){
|
||||||
my $answer = read_choice("Start Converter [n|y]?");
|
my $question = "Start converter? " . ($opt_s ? "(Each conversion will be prompted.) " : "");
|
||||||
|
my $answer = read_choice($question . "[n|y]");
|
||||||
unless ( $answer =~ m/^y$/i ){
|
unless ( $answer =~ m/^y$/i ){
|
||||||
print "Exit...\n";
|
print "Exit...\n";
|
||||||
exit;
|
exit;
|
||||||
@ -123,7 +138,16 @@ sub main{
|
|||||||
write_custom_template();
|
write_custom_template();
|
||||||
my $t0 = [gettimeofday];
|
my $t0 = [gettimeofday];
|
||||||
my $i = 0;
|
my $i = 0;
|
||||||
|
my $answered = "";
|
||||||
foreach my $xmlfile ( @worklist ) {
|
foreach my $xmlfile ( @worklist ) {
|
||||||
|
if($opt_s && ($answered !~ $xmlfile)){
|
||||||
|
my $answer = read_choice("Continue with $xmlfile [n|y]?");
|
||||||
|
unless ( $answer =~ m/^y$/i ){
|
||||||
|
print "Exit... (remember to remove the custom template, if created in this run!)\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
$answered = $xmlfile;
|
||||||
|
}
|
||||||
$i++;
|
$i++;
|
||||||
undef %ds_list;
|
undef %ds_list;
|
||||||
undef %original_ds_list;
|
undef %original_ds_list;
|
||||||
@ -183,15 +207,45 @@ sub check_ds_list{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub wanted_xml_files{
|
sub build_worklist {
|
||||||
|
if ($opt_r) {
|
||||||
|
process_xml_files($opt_r);
|
||||||
|
close XMLLIST;
|
||||||
|
}else{
|
||||||
|
find(\&find_xml_files, $conf{RRDPATH});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# bulk mode, find all XML files
|
||||||
|
sub find_xml_files{
|
||||||
if(m/.xml$/){
|
if(m/.xml$/){
|
||||||
#printf("File: %s\n",$File::Find::name);
|
#printf("File: %s\n",$File::Find::name);
|
||||||
my $xmlfile = $File::Find::name;
|
xml2worklist($File::Find::name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# file mode, process file with XML filenames
|
||||||
|
sub process_xml_files{
|
||||||
|
my $xmllist = shift;
|
||||||
|
-r $xmllist or die "Cannot open $xmllist: $!";
|
||||||
|
open XMLLIST, "<$opt_r";
|
||||||
|
foreach (<XMLLIST>) {
|
||||||
|
my $file = $_;
|
||||||
|
chomp($file);
|
||||||
|
m/.xml$/ && xml2worklist($file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sub xml2worklist {
|
||||||
|
my $xmlfile = shift;
|
||||||
my ($rrdfile) = $xmlfile =~ /^(.*)\.xml$/;
|
my ($rrdfile) = $xmlfile =~ /^(.*)\.xml$/;
|
||||||
$rrdfile .= ".rrd";
|
$rrdfile .= ".rrd";
|
||||||
my $mtime = (stat($xmlfile))[9];
|
my $mtime = (stat($xmlfile))[9];
|
||||||
if ( $mtime < $max_age ){
|
if ( $mtime < $max_age ){
|
||||||
$stats{old_xml}++;
|
$stats{old_xml}++;
|
||||||
|
if ($opt_o) {
|
||||||
|
print OLDXMLLOG $xmlfile . ": " . scalar localtime($mtime) ."\n";
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
open(XML, $xmlfile);
|
open(XML, $xmlfile);
|
||||||
@ -218,7 +272,6 @@ sub wanted_xml_files{
|
|||||||
}
|
}
|
||||||
close(XML);
|
close(XML);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
sub parse_xml_filename{
|
sub parse_xml_filename{
|
||||||
my $xmlfile = shift;
|
my $xmlfile = shift;
|
||||||
@ -327,7 +380,7 @@ sub restore_files(){
|
|||||||
|
|
||||||
sub backup_rrd_file{
|
sub backup_rrd_file{
|
||||||
my $rrdfile = shift;
|
my $rrdfile = shift;
|
||||||
if ( $conf{RRD_BACKUP} == 1 ){
|
if ( $conf{RRD_BACKUP} == 1 && $conf{'DRY_RUN'} == 0 ){
|
||||||
move($rrdfile, $rrdfile.".backup");
|
move($rrdfile, $rrdfile.".backup");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -479,7 +532,7 @@ sub change_config {
|
|||||||
|
|
||||||
sub check_storage_type{
|
sub check_storage_type{
|
||||||
if($conf{'RRD_STORAGE_TYPE'} eq "MULTIPLE"){
|
if($conf{'RRD_STORAGE_TYPE'} eq "MULTIPLE"){
|
||||||
print "RRD_STORAGE_TYPE is already set to ".$conf{'RRD_STORAGE_TYPE'}."\n";
|
print "RRD_STORAGE_TYPE is already globally set to ".$conf{'RRD_STORAGE_TYPE'}."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sub check_custom_template {
|
sub check_custom_template {
|
||||||
@ -500,6 +553,8 @@ sub check_custom_template {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub write_custom_template {
|
sub write_custom_template {
|
||||||
|
# do not write custom template in --read mode
|
||||||
|
return if $opt_r;
|
||||||
my $command = $opt_c;
|
my $command = $opt_c;
|
||||||
if ( $conf{DRY_RUN} == 1 ){
|
if ( $conf{DRY_RUN} == 1 ){
|
||||||
print "No config check while DRY_RUN = 1\n";
|
print "No config check while DRY_RUN = 1\n";
|
||||||
@ -535,8 +590,11 @@ sub print_help{
|
|||||||
print " [ --dry-run ]\n";
|
print " [ --dry-run ]\n";
|
||||||
print " [ --tmp_dir=<temp directory> ]\n";
|
print " [ --tmp_dir=<temp directory> ]\n";
|
||||||
print " [ --no_structure_check ]\n";
|
print " [ --no_structure_check ]\n";
|
||||||
|
print " [ --log_old_xml ]\n";
|
||||||
|
print " [ --stepwise ]\n";
|
||||||
|
print " [ --read=<file with XML filenames> ]\n";
|
||||||
print "\n";
|
print "\n";
|
||||||
print "This script is used to switch to RRD_STORAGE_TYPE = MULTIPLE for a given Nagios Check Command\n";
|
print "This script is used to switch to RRD_STORAGE_TYPE = MULTIPLE for all RRDs/a given Nagios Check Command/single RRDs \n";
|
||||||
print "More info online http://docs.pnp4nagios.org/pnp-0.6/rrd_convert\n";
|
print "More info online http://docs.pnp4nagios.org/pnp-0.6/rrd_convert\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ $no = 1 unless (defined $no);
|
|||||||
my $ds = `$rrdtool info $rrd | grep '^ds' | grep 'value' | wc -l`;
|
my $ds = `$rrdtool info $rrd | grep '^ds' | grep 'value' | wc -l`;
|
||||||
# determine the decimal sign
|
# determine the decimal sign
|
||||||
$sign = `$rrdtool info $rrd | grep '^ds' | grep 'value' | tail -1`;
|
$sign = `$rrdtool info $rrd | grep '^ds' | grep 'value' | tail -1`;
|
||||||
($sign) = $sign =~ /.* \d(.)\d+/;
|
($sign) = $sign =~ /.* -?\d(.)\d+/;
|
||||||
my $end = ($action eq "insert" ? $ds+$no : $ds);
|
my $end = ($action eq "insert" ? $ds+$no : $ds);
|
||||||
if (($start < 1) or ($start > $ds + 1)) {
|
if (($start < 1) or ($start > $ds + 1)) {
|
||||||
print "ERROR: number ($start) must be within 1..".($ds+1)."\n";
|
print "ERROR: number ($start) must be within 1..".($ds+1)."\n";
|
||||||
@ -188,7 +188,7 @@ sub processing {
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
# value enclosed in XML tags
|
# value enclosed in XML tags
|
||||||
if (/<(\S+)>\s+(\S+)\s+</) {
|
if (/<(\S+)>\s*(\S+)\s*</) {
|
||||||
$xml{$1} = $2;
|
$xml{$1} = $2;
|
||||||
}
|
}
|
||||||
next unless ($out);
|
next unless ($out);
|
||||||
|
@ -28,6 +28,12 @@ class Image_Controller extends System_Controller {
|
|||||||
if($this->input->get('graph_height') != "" )
|
if($this->input->get('graph_height') != "" )
|
||||||
$this->rrdtool->config->conf['graph_height'] = intval($this->input->get('graph_height'));
|
$this->rrdtool->config->conf['graph_height'] = intval($this->input->get('graph_height'));
|
||||||
|
|
||||||
|
if($this->input->get('graph_only') !== null)
|
||||||
|
$this->rrdtool->config->conf['graph_only'] = 1;
|
||||||
|
|
||||||
|
if($this->input->get('no_legend') !== null)
|
||||||
|
$this->rrdtool->config->conf['no_legend'] = 1;
|
||||||
|
|
||||||
$this->data->getTimeRange($this->start,$this->end,$this->view);
|
$this->data->getTimeRange($this->start,$this->end,$this->view);
|
||||||
|
|
||||||
if($this->tpl != ""){
|
if($this->tpl != ""){
|
||||||
|
@ -121,6 +121,7 @@ class pnp_Core {
|
|||||||
preg_match('/^(-?[0-9\.,]+)\s*(\S?)(\S?)/',$value,$matches);
|
preg_match('/^(-?[0-9\.,]+)\s*(\S?)(\S?)/',$value,$matches);
|
||||||
|
|
||||||
$mag = 0;
|
$mag = 0;
|
||||||
|
$value = $matches[1];
|
||||||
while ($value >= $base){
|
while ($value >= $base){
|
||||||
$value /= $base;
|
$value /= $base;
|
||||||
$mag++;
|
$mag++;
|
||||||
|
@ -444,6 +444,35 @@ class rrd_Core {
|
|||||||
return $line;
|
return $line;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# http://stackoverflow.com/questions/3512311/how-to-generate-lighter-darker-color-with-php
|
||||||
|
public static function colbright($hex, $steps) {
|
||||||
|
if($hex === FALSE){
|
||||||
|
throw new Kohana_exception("rrd::". __FUNCTION__ . "() First Parameter 'hex' is missing");
|
||||||
|
}
|
||||||
|
if($steps === FALSE){
|
||||||
|
throw new Kohana_exception("rrd::". __FUNCTION__ . "() Second Parameter 'steps' is missing");
|
||||||
|
}
|
||||||
|
// Steps should be between -255 and 255. Negative = darker, positive = lighter
|
||||||
|
$steps = max(-255, min(255, $steps));
|
||||||
|
|
||||||
|
// Normalize into a six character long hex string
|
||||||
|
$hex = str_replace('#', '', $hex);
|
||||||
|
if (strlen($hex) == 3) {
|
||||||
|
$hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Split into three parts: R, G and B
|
||||||
|
$color_parts = str_split($hex, 2);
|
||||||
|
$return = '#';
|
||||||
|
|
||||||
|
foreach ($color_parts as $color) {
|
||||||
|
$color = hexdec($color); // Convert to decimal
|
||||||
|
$color = max(0,min(255,$color + $steps)); // Adjust color
|
||||||
|
$return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
|
||||||
|
}
|
||||||
|
return $return;
|
||||||
|
}
|
||||||
|
|
||||||
public static function debug($data=FALSE){
|
public static function debug($data=FALSE){
|
||||||
if($data != FALSE){
|
if($data != FALSE){
|
||||||
ob_start();
|
ob_start();
|
||||||
|
@ -1019,13 +1019,23 @@ class Data_Model extends System_Model
|
|||||||
foreach($xml->meta->legend->entry as $key=>$value){
|
foreach($xml->meta->legend->entry as $key=>$value){
|
||||||
$csv .= ";" . $value ;
|
$csv .= ";" . $value ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* from rrdtool 1.5 on, timestamp ( value->t ) is not set anymore
|
||||||
|
* from 1.6 on it can be reactivated by -- showrime option to rrdtool xport
|
||||||
|
* here we take care of the timestamp ourselves regardless which
|
||||||
|
* rrdtool version is used
|
||||||
|
*/
|
||||||
|
$timestamp2 = $xml->meta->start;
|
||||||
|
$step = $xml->meta->step;
|
||||||
$csv .= "\n";
|
$csv .= "\n";
|
||||||
foreach($xml->data->row as $key=>$value){
|
foreach($xml->data->row as $key=>$value){
|
||||||
$csv .= (string) $value->t ;
|
$csv .= $timestamp2;
|
||||||
foreach($value->v as $item){
|
foreach($value->v as $item){
|
||||||
$csv .= ";".floatval((string) $item);
|
$csv .= ";".floatval((string) $item);
|
||||||
}
|
}
|
||||||
$csv .= "\n";
|
$csv .= "\n";
|
||||||
|
$timestamp2 = $timestamp2 + $step;
|
||||||
}
|
}
|
||||||
return $csv;
|
return $csv;
|
||||||
}
|
}
|
||||||
|
@ -106,9 +106,12 @@ class Rrdtool_Model extends System_Model
|
|||||||
if ($height > 0){
|
if ($height > 0){
|
||||||
$command .= " --height=$height";
|
$command .= " --height=$height";
|
||||||
}
|
}
|
||||||
if ($height < 81 ){
|
if ($height < 81 || (isset($conf['graph_only']) && $conf['graph_only'])){
|
||||||
$command .= " --only-graph";
|
$command .= " --only-graph";
|
||||||
}
|
}
|
||||||
|
elseif (isset($conf['no_legend']) && $conf['no_legend']){
|
||||||
|
$command .= " --no-legend";
|
||||||
|
}
|
||||||
|
|
||||||
$command .= $RRD_CMD;
|
$command .= $RRD_CMD;
|
||||||
|
|
||||||
|
21
share/pnp/application/vendor/fpdf/LICENSE
vendored
Executable file
21
share/pnp/application/vendor/fpdf/LICENSE
vendored
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2015 Setasign - Jan Slabon, https://www.setasign.com
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
30
share/pnp/application/vendor/fpdf/composer.json
vendored
Executable file
30
share/pnp/application/vendor/fpdf/composer.json
vendored
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"name": "setasign/fpdi",
|
||||||
|
"version": "1.6.1",
|
||||||
|
"homepage": "https://www.setasign.com/fpdi",
|
||||||
|
"description": "FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. Because it is also possible to use FPDI with TCPDF, there are no fixed dependencies defined. Please see suggestions for packages which evaluates the dependencies automatically.",
|
||||||
|
"type": "library",
|
||||||
|
"keywords": ["pdf", "fpdi", "fpdf"],
|
||||||
|
"license": "MIT",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Jan Slabon",
|
||||||
|
"email": "jan.slabon@setasign.com",
|
||||||
|
"homepage": "https://www.setasign.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"filters/",
|
||||||
|
"fpdi.php",
|
||||||
|
"fpdf_tpl.php",
|
||||||
|
"fpdi_pdf_parser.php",
|
||||||
|
"pdf_context.php"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"setasign/fpdf": "FPDI will extend this class but as it is also possible to use \"tecnickcom/tcpdf\" as an alternative there's no fixed dependency configured.",
|
||||||
|
"setasign/fpdi-fpdf": "Use this package to automatically evaluate dependencies to FPDF.",
|
||||||
|
"setasign/fpdi-tcpdf": "Use this package to automatically evaluate dependencies to TCPDF."
|
||||||
|
}
|
||||||
|
}
|
63
share/pnp/application/vendor/fpdf/doc/__construct.htm
vendored
Executable file
63
share/pnp/application/vendor/fpdf/doc/__construct.htm
vendored
Executable file
@ -0,0 +1,63 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>__construct</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>__construct</h1>
|
||||||
|
<code>__construct([<b>string</b> orientation [, <b>string</b> unit [, <b>mixed</b> size]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This is the class constructor. It allows to set up the page size, the orientation and the
|
||||||
|
unit of measure used in all methods (except for font sizes).
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>orientation</code></dt>
|
||||||
|
<dd>
|
||||||
|
Default page orientation. Possible values are (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li><code>P</code> or <code>Portrait</code></li>
|
||||||
|
<li><code>L</code> or <code>Landscape</code></li>
|
||||||
|
</ul>
|
||||||
|
Default value is <code>P</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>unit</code></dt>
|
||||||
|
<dd>
|
||||||
|
User unit. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>pt</code>: point</li>
|
||||||
|
<li><code>mm</code>: millimeter</li>
|
||||||
|
<li><code>cm</code>: centimeter</li>
|
||||||
|
<li><code>in</code>: inch</li>
|
||||||
|
</ul>
|
||||||
|
A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This
|
||||||
|
is a very common unit in typography; font sizes are expressed in that unit.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
Default value is <code>mm</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>size</code></dt>
|
||||||
|
<dd>
|
||||||
|
The size used for pages. It can be either one of the following values (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li><code>A3</code></li>
|
||||||
|
<li><code>A4</code></li>
|
||||||
|
<li><code>A5</code></li>
|
||||||
|
<li><code>Letter</code></li>
|
||||||
|
<li><code>Legal</code></li>
|
||||||
|
</ul>
|
||||||
|
or an array containing the width and the height (expressed in the unit given by <code>unit</code>).<br>
|
||||||
|
<br>
|
||||||
|
Default value is <code>A4</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
Example with a custom 100x150 mm page size:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>$pdf = new FPDF('P','mm',array(100,150));</code></pre>
|
||||||
|
</div>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
63
share/pnp/application/vendor/fpdf/doc/acceptpagebreak.htm
vendored
Executable file
63
share/pnp/application/vendor/fpdf/doc/acceptpagebreak.htm
vendored
Executable file
@ -0,0 +1,63 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>AcceptPageBreak</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>AcceptPageBreak</h1>
|
||||||
|
<code><b>boolean</b> AcceptPageBreak()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Whenever a page break condition is met, the method is called, and the break is issued or not
|
||||||
|
depending on the returned value. The default implementation returns a value according to the
|
||||||
|
mode selected by SetAutoPageBreak().
|
||||||
|
<br>
|
||||||
|
This method is called automatically and should not be called directly by the application.
|
||||||
|
<h2>Example</h2>
|
||||||
|
The method is overriden in an inherited class in order to obtain a 3 column layout:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>class PDF extends FPDF
|
||||||
|
{
|
||||||
|
var $col = 0;
|
||||||
|
|
||||||
|
function SetCol($col)
|
||||||
|
{
|
||||||
|
// Move position to a column
|
||||||
|
$this->col = $col;
|
||||||
|
$x = 10+$col*65;
|
||||||
|
$this->SetLeftMargin($x);
|
||||||
|
$this->SetX($x);
|
||||||
|
}
|
||||||
|
|
||||||
|
function AcceptPageBreak()
|
||||||
|
{
|
||||||
|
if($this->col<2)
|
||||||
|
{
|
||||||
|
// Go to next column
|
||||||
|
$this->SetCol($this->col+1);
|
||||||
|
$this->SetY(10);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Go back to first column and issue page break
|
||||||
|
$this->SetCol(0);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$pdf = new PDF();
|
||||||
|
$pdf->AddPage();
|
||||||
|
$pdf->SetFont('Arial','',12);
|
||||||
|
for($i=1;$i<=300;$i++)
|
||||||
|
$pdf->Cell(0,5,"Line $i",0,1);
|
||||||
|
$pdf->Output();</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
55
share/pnp/application/vendor/fpdf/doc/addfont.htm
vendored
Executable file
55
share/pnp/application/vendor/fpdf/doc/addfont.htm
vendored
Executable file
@ -0,0 +1,55 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>AddFont</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>AddFont</h1>
|
||||||
|
<code>AddFont(<b>string</b> family [, <b>string</b> style [, <b>string</b> file]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Imports a TrueType, OpenType or Type1 font and makes it available. It is necessary to generate a font
|
||||||
|
definition file first with the MakeFont utility.
|
||||||
|
<br>
|
||||||
|
The definition file (and the font file itself when embedding) must be present in the font directory.
|
||||||
|
If it is not found, the error "Could not include font definition file" is raised.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>family</code></dt>
|
||||||
|
<dd>
|
||||||
|
Font family. The name can be chosen arbitrarily. If it is a standard family name, it will
|
||||||
|
override the corresponding font.
|
||||||
|
</dd>
|
||||||
|
<dt><code>style</code></dt>
|
||||||
|
<dd>
|
||||||
|
Font style. Possible values are (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li>empty string: regular</li>
|
||||||
|
<li><code>B</code>: bold</li>
|
||||||
|
<li><code>I</code>: italic</li>
|
||||||
|
<li><code>BI</code> or <code>IB</code>: bold italic</li>
|
||||||
|
</ul>
|
||||||
|
The default value is regular.
|
||||||
|
</dd>
|
||||||
|
<dt><code>file</code></dt>
|
||||||
|
<dd>
|
||||||
|
The font definition file.
|
||||||
|
<br>
|
||||||
|
By default, the name is built from the family and style, in lower case with no space.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>$pdf->AddFont('Comic','I');</code></pre>
|
||||||
|
</div>
|
||||||
|
is equivalent to:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>$pdf->AddFont('Comic','I','comici.php');</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
26
share/pnp/application/vendor/fpdf/doc/addlink.htm
vendored
Executable file
26
share/pnp/application/vendor/fpdf/doc/addlink.htm
vendored
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>AddLink</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>AddLink</h1>
|
||||||
|
<code><b>int</b> AddLink()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Creates a new internal link and returns its identifier. An internal link is a clickable area
|
||||||
|
which directs to another place within the document.
|
||||||
|
<br>
|
||||||
|
The identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is
|
||||||
|
defined with SetLink().
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="write.htm">Write</a>,
|
||||||
|
<a href="image.htm">Image</a>,
|
||||||
|
<a href="link.htm">Link</a>,
|
||||||
|
<a href="setlink.htm">SetLink</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
61
share/pnp/application/vendor/fpdf/doc/addpage.htm
vendored
Executable file
61
share/pnp/application/vendor/fpdf/doc/addpage.htm
vendored
Executable file
@ -0,0 +1,61 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>AddPage</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>AddPage</h1>
|
||||||
|
<code>AddPage([<b>string</b> orientation [, <b>mixed</b> size [, <b>int</b> rotation]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Adds a new page to the document. If a page is already present, the Footer() method is called
|
||||||
|
first to output the footer. Then the page is added, the current position set to the top-left
|
||||||
|
corner according to the left and top margins, and Header() is called to display the header.
|
||||||
|
<br>
|
||||||
|
The font which was set before calling is automatically restored. There is no need to call
|
||||||
|
SetFont() again if you want to continue with the same font. The same is true for colors and
|
||||||
|
line width.
|
||||||
|
<br>
|
||||||
|
The origin of the coordinate system is at the top-left corner and increasing ordinates go
|
||||||
|
downwards.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>orientation</code></dt>
|
||||||
|
<dd>
|
||||||
|
Page orientation. Possible values are (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li><code>P</code> or <code>Portrait</code></li>
|
||||||
|
<li><code>L</code> or <code>Landscape</code></li>
|
||||||
|
</ul>
|
||||||
|
The default value is the one passed to the constructor.
|
||||||
|
</dd>
|
||||||
|
<dt><code>size</code></dt>
|
||||||
|
<dd>
|
||||||
|
Page size. It can be either one of the following values (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li><code>A3</code></li>
|
||||||
|
<li><code>A4</code></li>
|
||||||
|
<li><code>A5</code></li>
|
||||||
|
<li><code>Letter</code></li>
|
||||||
|
<li><code>Legal</code></li>
|
||||||
|
</ul>
|
||||||
|
or an array containing the width and the height (expressed in user unit).<br>
|
||||||
|
<br>
|
||||||
|
The default value is the one passed to the constructor.
|
||||||
|
</dd>
|
||||||
|
<dt><code>rotation</code></dt>
|
||||||
|
<dd>
|
||||||
|
Angle by which to rotate the page. It must be a multiple of 90; positive values
|
||||||
|
mean clockwise rotation. The default value is <code>0</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="__construct.htm">__construct</a>,
|
||||||
|
<a href="header.htm">Header</a>,
|
||||||
|
<a href="footer.htm">Footer</a>,
|
||||||
|
<a href="setmargins.htm">SetMargins</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
45
share/pnp/application/vendor/fpdf/doc/aliasnbpages.htm
vendored
Executable file
45
share/pnp/application/vendor/fpdf/doc/aliasnbpages.htm
vendored
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>AliasNbPages</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>AliasNbPages</h1>
|
||||||
|
<code>AliasNbPages([<b>string</b> alias])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines an alias for the total number of pages. It will be substituted as the document is
|
||||||
|
closed.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>alias</code></dt>
|
||||||
|
<dd>
|
||||||
|
The alias. Default value: <code>{nb}</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>class PDF extends FPDF
|
||||||
|
{
|
||||||
|
function Footer()
|
||||||
|
{
|
||||||
|
// Go to 1.5 cm from bottom
|
||||||
|
$this->SetY(-15);
|
||||||
|
// Select Arial italic 8
|
||||||
|
$this->SetFont('Arial','I',8);
|
||||||
|
// Print current and total page numbers
|
||||||
|
$this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$pdf = new PDF();
|
||||||
|
$pdf->AliasNbPages();</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="pageno.htm">PageNo</a>,
|
||||||
|
<a href="footer.htm">Footer</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
104
share/pnp/application/vendor/fpdf/doc/cell.htm
vendored
Executable file
104
share/pnp/application/vendor/fpdf/doc/cell.htm
vendored
Executable file
@ -0,0 +1,104 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Cell</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Cell</h1>
|
||||||
|
<code>Cell(<b>float</b> w [, <b>float</b> h [, <b>string</b> txt [, <b>mixed</b> border [, <b>int</b> ln [, <b>string</b> align [, <b>boolean</b> fill [, <b>mixed</b> link]]]]]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Prints a cell (rectangular area) with optional borders, background color and character string.
|
||||||
|
The upper-left corner of the cell corresponds to the current position. The text can be aligned
|
||||||
|
or centered. After the call, the current position moves to the right or to the next line. It is
|
||||||
|
possible to put a link on the text.
|
||||||
|
<br>
|
||||||
|
If automatic page breaking is enabled and the cell goes beyond the limit, a page break is
|
||||||
|
done before outputting.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>w</code></dt>
|
||||||
|
<dd>
|
||||||
|
Cell width. If <code>0</code>, the cell extends up to the right margin.
|
||||||
|
</dd>
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Cell height.
|
||||||
|
Default value: <code>0</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>txt</code></dt>
|
||||||
|
<dd>
|
||||||
|
String to print.
|
||||||
|
Default value: empty string.
|
||||||
|
</dd>
|
||||||
|
<dt><code>border</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if borders must be drawn around the cell. The value can be either a number:
|
||||||
|
<ul>
|
||||||
|
<li><code>0</code>: no border</li>
|
||||||
|
<li><code>1</code>: frame</li>
|
||||||
|
</ul>
|
||||||
|
or a string containing some or all of the following characters (in any order):
|
||||||
|
<ul>
|
||||||
|
<li><code>L</code>: left</li>
|
||||||
|
<li><code>T</code>: top</li>
|
||||||
|
<li><code>R</code>: right</li>
|
||||||
|
<li><code>B</code>: bottom</li>
|
||||||
|
</ul>
|
||||||
|
Default value: <code>0</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>ln</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates where the current position should go after the call. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>0</code>: to the right</li>
|
||||||
|
<li><code>1</code>: to the beginning of the next line</li>
|
||||||
|
<li><code>2</code>: below</li>
|
||||||
|
</ul>
|
||||||
|
Putting <code>1</code> is equivalent to putting <code>0</code> and calling Ln() just after.
|
||||||
|
Default value: <code>0</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>align</code></dt>
|
||||||
|
<dd>
|
||||||
|
Allows to center or align the text. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>L</code> or empty string: left align (default value)</li>
|
||||||
|
<li><code>C</code>: center</li>
|
||||||
|
<li><code>R</code>: right align</li>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
<dt><code>fill</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the cell background must be painted (<code>true</code>) or transparent (<code>false</code>).
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>link</code></dt>
|
||||||
|
<dd>
|
||||||
|
URL or identifier returned by AddLink().
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>// Set font
|
||||||
|
$pdf->SetFont('Arial','B',16);
|
||||||
|
// Move to 8 cm to the right
|
||||||
|
$pdf->Cell(80);
|
||||||
|
// Centered text in a framed 20*10 mm cell and line break
|
||||||
|
$pdf->Cell(20,10,'Title',1,1,'C');</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>,
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>,
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="setlinewidth.htm">SetLineWidth</a>,
|
||||||
|
<a href="addlink.htm">AddLink</a>,
|
||||||
|
<a href="ln.htm">Ln</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>,
|
||||||
|
<a href="write.htm">Write</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
21
share/pnp/application/vendor/fpdf/doc/close.htm
vendored
Executable file
21
share/pnp/application/vendor/fpdf/doc/close.htm
vendored
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Close</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Close</h1>
|
||||||
|
<code>Close()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Terminates the PDF document. It is not necessary to call this method explicitly because Output()
|
||||||
|
does it automatically.
|
||||||
|
<br>
|
||||||
|
If the document contains no page, AddPage() is called to prevent from getting an invalid document.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="output.htm">Output</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
26
share/pnp/application/vendor/fpdf/doc/error.htm
vendored
Executable file
26
share/pnp/application/vendor/fpdf/doc/error.htm
vendored
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Error</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Error</h1>
|
||||||
|
<code>Error(<b>string</b> msg)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This method is automatically called in case of a fatal error; it simply throws an exception
|
||||||
|
with the provided message.<br>
|
||||||
|
An inherited class may override it to customize the error handling but the method should
|
||||||
|
never return, otherwise the resulting document would probably be invalid.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>msg</code></dt>
|
||||||
|
<dd>
|
||||||
|
The error message.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
35
share/pnp/application/vendor/fpdf/doc/footer.htm
vendored
Executable file
35
share/pnp/application/vendor/fpdf/doc/footer.htm
vendored
Executable file
@ -0,0 +1,35 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Footer</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Footer</h1>
|
||||||
|
<code>Footer()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This method is used to render the page footer. It is automatically called by AddPage() and
|
||||||
|
Close() and should not be called directly by the application. The implementation in FPDF is
|
||||||
|
empty, so you have to subclass it and override the method if you want a specific processing.
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>class PDF extends FPDF
|
||||||
|
{
|
||||||
|
function Footer()
|
||||||
|
{
|
||||||
|
// Go to 1.5 cm from bottom
|
||||||
|
$this->SetY(-15);
|
||||||
|
// Select Arial italic 8
|
||||||
|
$this->SetFont('Arial','I',8);
|
||||||
|
// Print centered page number
|
||||||
|
$this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
|
||||||
|
}
|
||||||
|
}</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="header.htm">Header</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
18
share/pnp/application/vendor/fpdf/doc/getpageheight.htm
vendored
Executable file
18
share/pnp/application/vendor/fpdf/doc/getpageheight.htm
vendored
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>GetPageHeight</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>GetPageHeight</h1>
|
||||||
|
<code><b>float</b> GetPageHeight()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the current page height.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="getpagewidth.htm">GetPageWidth</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
18
share/pnp/application/vendor/fpdf/doc/getpagewidth.htm
vendored
Executable file
18
share/pnp/application/vendor/fpdf/doc/getpagewidth.htm
vendored
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>GetPageWidth</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>GetPageWidth</h1>
|
||||||
|
<code><b>float</b> GetPageWidth()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the current page width.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="getpageheight.htm">GetPageHeight</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
23
share/pnp/application/vendor/fpdf/doc/getstringwidth.htm
vendored
Executable file
23
share/pnp/application/vendor/fpdf/doc/getstringwidth.htm
vendored
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>GetStringWidth</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>GetStringWidth</h1>
|
||||||
|
<code><b>float</b> GetStringWidth(<b>string</b> s)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the length of a string in user unit. A font must be selected.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>s</code></dt>
|
||||||
|
<dd>
|
||||||
|
The string whose length is to be computed.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
20
share/pnp/application/vendor/fpdf/doc/getx.htm
vendored
Executable file
20
share/pnp/application/vendor/fpdf/doc/getx.htm
vendored
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>GetX</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>GetX</h1>
|
||||||
|
<code><b>float</b> GetX()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the abscissa of the current position.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setx.htm">SetX</a>,
|
||||||
|
<a href="gety.htm">GetY</a>,
|
||||||
|
<a href="sety.htm">SetY</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
20
share/pnp/application/vendor/fpdf/doc/gety.htm
vendored
Executable file
20
share/pnp/application/vendor/fpdf/doc/gety.htm
vendored
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>GetY</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>GetY</h1>
|
||||||
|
<code><b>float</b> GetY()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the ordinate of the current position.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="sety.htm">SetY</a>,
|
||||||
|
<a href="getx.htm">GetX</a>,
|
||||||
|
<a href="setx.htm">SetX</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
37
share/pnp/application/vendor/fpdf/doc/header.htm
vendored
Executable file
37
share/pnp/application/vendor/fpdf/doc/header.htm
vendored
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Header</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Header</h1>
|
||||||
|
<code>Header()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This method is used to render the page header. It is automatically called by AddPage() and
|
||||||
|
should not be called directly by the application. The implementation in FPDF is empty, so
|
||||||
|
you have to subclass it and override the method if you want a specific processing.
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>class PDF extends FPDF
|
||||||
|
{
|
||||||
|
function Header()
|
||||||
|
{
|
||||||
|
// Select Arial bold 15
|
||||||
|
$this->SetFont('Arial','B',15);
|
||||||
|
// Move to the right
|
||||||
|
$this->Cell(80);
|
||||||
|
// Framed title
|
||||||
|
$this->Cell(30,10,'Title',1,0,'C');
|
||||||
|
// Line break
|
||||||
|
$this->Ln(20);
|
||||||
|
}
|
||||||
|
}</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="footer.htm">Footer</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
99
share/pnp/application/vendor/fpdf/doc/image.htm
vendored
Executable file
99
share/pnp/application/vendor/fpdf/doc/image.htm
vendored
Executable file
@ -0,0 +1,99 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Image</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Image</h1>
|
||||||
|
<code>Image(<b>string</b> file [, <b>float</b> x [, <b>float</b> y [, <b>float</b> w [, <b>float</b> h [, <b>string</b> type [, <b>mixed</b> link]]]]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Puts an image. The size it will take on the page can be specified in different ways:
|
||||||
|
<ul>
|
||||||
|
<li>explicit width and height (expressed in user unit or dpi)</li>
|
||||||
|
<li>one explicit dimension, the other being calculated automatically in order to keep the original proportions</li>
|
||||||
|
<li>no explicit dimension, in which case the image is put at 96 dpi</li>
|
||||||
|
</ul>
|
||||||
|
Supported formats are JPEG, PNG and GIF. The GD extension is required for GIF.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
For JPEGs, all flavors are allowed:
|
||||||
|
<ul>
|
||||||
|
<li>gray scales</li>
|
||||||
|
<li>true colors (24 bits)</li>
|
||||||
|
<li>CMYK (32 bits)</li>
|
||||||
|
</ul>
|
||||||
|
For PNGs, are allowed:
|
||||||
|
<ul>
|
||||||
|
<li>gray scales on at most 8 bits (256 levels)</li>
|
||||||
|
<li>indexed colors</li>
|
||||||
|
<li>true colors (24 bits)</li>
|
||||||
|
</ul>
|
||||||
|
For GIFs: in case of an animated GIF, only the first frame is displayed.<br>
|
||||||
|
<br>
|
||||||
|
Transparency is supported.<br>
|
||||||
|
<br>
|
||||||
|
The format can be specified explicitly or inferred from the file extension.<br>
|
||||||
|
<br>
|
||||||
|
It is possible to put a link on the image.<br>
|
||||||
|
<br>
|
||||||
|
Remark: if an image is used several times, only one copy is embedded in the file.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>file</code></dt>
|
||||||
|
<dd>
|
||||||
|
Path or URL of the image.
|
||||||
|
</dd>
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of the upper-left corner. If not specified or equal to <code>null</code>, the current abscissa
|
||||||
|
is used.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of the upper-left corner. If not specified or equal to <code>null</code>, the current ordinate
|
||||||
|
is used; moreover, a page break is triggered first if necessary (in case automatic page breaking is enabled)
|
||||||
|
and, after the call, the current ordinate is moved to the bottom of the image.
|
||||||
|
</dd>
|
||||||
|
<dt><code>w</code></dt>
|
||||||
|
<dd>
|
||||||
|
Width of the image in the page. There are three cases:
|
||||||
|
<ul>
|
||||||
|
<li>If the value is positive, it represents the width in user unit</li>
|
||||||
|
<li>If the value is negative, the absolute value represents the horizontal resolution in dpi</li>
|
||||||
|
<li>If the value is not specified or equal to zero, it is automatically calculated</li>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Height of the image in the page. There are three cases:
|
||||||
|
<ul>
|
||||||
|
<li>If the value is positive, it represents the height in user unit</li>
|
||||||
|
<li>If the value is negative, the absolute value represents the vertical resolution in dpi</li>
|
||||||
|
<li>If the value is not specified or equal to zero, it is automatically calculated</li>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
<dt><code>type</code></dt>
|
||||||
|
<dd>
|
||||||
|
Image format. Possible values are (case insensitive): <code>JPG</code>, <code>JPEG</code>, <code>PNG</code> and <code>GIF</code>.
|
||||||
|
If not specified, the type is inferred from the file extension.
|
||||||
|
</dd>
|
||||||
|
<dt><code>link</code></dt>
|
||||||
|
<dd>
|
||||||
|
URL or identifier returned by AddLink().
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>// Insert a logo in the top-left corner at 300 dpi
|
||||||
|
$pdf->Image('logo.png',10,10,-300);
|
||||||
|
// Insert a dynamic image from a URL
|
||||||
|
$pdf->Image('http://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World',60,30,90,0,'PNG');</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="addlink.htm">AddLink</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
59
share/pnp/application/vendor/fpdf/doc/index.htm
vendored
Executable file
59
share/pnp/application/vendor/fpdf/doc/index.htm
vendored
Executable file
@ -0,0 +1,59 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>FPDF 1.81 Reference Manual</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>FPDF 1.81 Reference Manual</h1>
|
||||||
|
<a href="__construct.htm">__construct</a> - constructor<br>
|
||||||
|
<a href="acceptpagebreak.htm">AcceptPageBreak</a> - accept or not automatic page break<br>
|
||||||
|
<a href="addfont.htm">AddFont</a> - add a new font<br>
|
||||||
|
<a href="addlink.htm">AddLink</a> - create an internal link<br>
|
||||||
|
<a href="addpage.htm">AddPage</a> - add a new page<br>
|
||||||
|
<a href="aliasnbpages.htm">AliasNbPages</a> - define an alias for number of pages<br>
|
||||||
|
<a href="cell.htm">Cell</a> - print a cell<br>
|
||||||
|
<a href="close.htm">Close</a> - terminate the document<br>
|
||||||
|
<a href="error.htm">Error</a> - fatal error<br>
|
||||||
|
<a href="footer.htm">Footer</a> - page footer<br>
|
||||||
|
<a href="getpageheight.htm">GetPageHeight</a> - get current page height<br>
|
||||||
|
<a href="getpagewidth.htm">GetPageWidth</a> - get current page width<br>
|
||||||
|
<a href="getstringwidth.htm">GetStringWidth</a> - compute string length<br>
|
||||||
|
<a href="getx.htm">GetX</a> - get current x position<br>
|
||||||
|
<a href="gety.htm">GetY</a> - get current y position<br>
|
||||||
|
<a href="header.htm">Header</a> - page header<br>
|
||||||
|
<a href="image.htm">Image</a> - output an image<br>
|
||||||
|
<a href="line.htm">Line</a> - draw a line<br>
|
||||||
|
<a href="link.htm">Link</a> - put a link<br>
|
||||||
|
<a href="ln.htm">Ln</a> - line break<br>
|
||||||
|
<a href="multicell.htm">MultiCell</a> - print text with line breaks<br>
|
||||||
|
<a href="output.htm">Output</a> - save or send the document<br>
|
||||||
|
<a href="pageno.htm">PageNo</a> - page number<br>
|
||||||
|
<a href="rect.htm">Rect</a> - draw a rectangle<br>
|
||||||
|
<a href="setauthor.htm">SetAuthor</a> - set the document author<br>
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a> - set the automatic page breaking mode<br>
|
||||||
|
<a href="setcompression.htm">SetCompression</a> - turn compression on or off<br>
|
||||||
|
<a href="setcreator.htm">SetCreator</a> - set document creator<br>
|
||||||
|
<a href="setdisplaymode.htm">SetDisplayMode</a> - set display mode<br>
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a> - set drawing color<br>
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a> - set filling color<br>
|
||||||
|
<a href="setfont.htm">SetFont</a> - set font<br>
|
||||||
|
<a href="setfontsize.htm">SetFontSize</a> - set font size<br>
|
||||||
|
<a href="setkeywords.htm">SetKeywords</a> - associate keywords with document<br>
|
||||||
|
<a href="setleftmargin.htm">SetLeftMargin</a> - set left margin<br>
|
||||||
|
<a href="setlinewidth.htm">SetLineWidth</a> - set line width<br>
|
||||||
|
<a href="setlink.htm">SetLink</a> - set internal link destination<br>
|
||||||
|
<a href="setmargins.htm">SetMargins</a> - set margins<br>
|
||||||
|
<a href="setrightmargin.htm">SetRightMargin</a> - set right margin<br>
|
||||||
|
<a href="setsubject.htm">SetSubject</a> - set document subject<br>
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a> - set text color<br>
|
||||||
|
<a href="settitle.htm">SetTitle</a> - set document title<br>
|
||||||
|
<a href="settopmargin.htm">SetTopMargin</a> - set top margin<br>
|
||||||
|
<a href="setx.htm">SetX</a> - set current x position<br>
|
||||||
|
<a href="setxy.htm">SetXY</a> - set current x and y positions<br>
|
||||||
|
<a href="sety.htm">SetY</a> - set current y position and optionally reset x<br>
|
||||||
|
<a href="text.htm">Text</a> - print a string<br>
|
||||||
|
<a href="write.htm">Write</a> - print flowing text<br>
|
||||||
|
</body>
|
||||||
|
</html>
|
38
share/pnp/application/vendor/fpdf/doc/line.htm
vendored
Executable file
38
share/pnp/application/vendor/fpdf/doc/line.htm
vendored
Executable file
@ -0,0 +1,38 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Line</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Line</h1>
|
||||||
|
<code>Line(<b>float</b> x1, <b>float</b> y1, <b>float</b> x2, <b>float</b> y2)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Draws a line between two points.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x1</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of first point.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y1</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of first point.
|
||||||
|
</dd>
|
||||||
|
<dt><code>x2</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of second point.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y2</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of second point.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setlinewidth.htm">SetLineWidth</a>,
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
46
share/pnp/application/vendor/fpdf/doc/link.htm
vendored
Executable file
46
share/pnp/application/vendor/fpdf/doc/link.htm
vendored
Executable file
@ -0,0 +1,46 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Link</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Link</h1>
|
||||||
|
<code>Link(<b>float</b> x, <b>float</b> y, <b>float</b> w, <b>float</b> h, <b>mixed</b> link)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Puts a link on a rectangular area of the page. Text or image links are generally put via Cell(),
|
||||||
|
Write() or Image(), but this method can be useful for instance to define a clickable area inside
|
||||||
|
an image.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of the upper-left corner of the rectangle.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of the upper-left corner of the rectangle.
|
||||||
|
</dd>
|
||||||
|
<dt><code>w</code></dt>
|
||||||
|
<dd>
|
||||||
|
Width of the rectangle.
|
||||||
|
</dd>
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Height of the rectangle.
|
||||||
|
</dd>
|
||||||
|
<dt><code>link</code></dt>
|
||||||
|
<dd>
|
||||||
|
URL or identifier returned by AddLink().
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="addlink.htm">AddLink</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="write.htm">Write</a>,
|
||||||
|
<a href="image.htm">Image</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
28
share/pnp/application/vendor/fpdf/doc/ln.htm
vendored
Executable file
28
share/pnp/application/vendor/fpdf/doc/ln.htm
vendored
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Ln</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Ln</h1>
|
||||||
|
<code>Ln([<b>float</b> h])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Performs a line break. The current abscissa goes back to the left margin and the ordinate
|
||||||
|
increases by the amount passed in parameter.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
The height of the break.
|
||||||
|
<br>
|
||||||
|
By default, the value equals the height of the last printed cell.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="cell.htm">Cell</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
76
share/pnp/application/vendor/fpdf/doc/multicell.htm
vendored
Executable file
76
share/pnp/application/vendor/fpdf/doc/multicell.htm
vendored
Executable file
@ -0,0 +1,76 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>MultiCell</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>MultiCell</h1>
|
||||||
|
<code>MultiCell(<b>float</b> w, <b>float</b> h, <b>string</b> txt [, <b>mixed</b> border [, <b>string</b> align [, <b>boolean</b> fill]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This method allows printing text with line breaks. They can be automatic (as soon as the
|
||||||
|
text reaches the right border of the cell) or explicit (via the \n character). As many cells
|
||||||
|
as necessary are output, one below the other.
|
||||||
|
<br>
|
||||||
|
Text can be aligned, centered or justified. The cell block can be framed and the background
|
||||||
|
painted.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>w</code></dt>
|
||||||
|
<dd>
|
||||||
|
Width of cells. If <code>0</code>, they extend up to the right margin of the page.
|
||||||
|
</dd>
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Height of cells.
|
||||||
|
</dd>
|
||||||
|
<dt><code>txt</code></dt>
|
||||||
|
<dd>
|
||||||
|
String to print.
|
||||||
|
</dd>
|
||||||
|
<dt><code>border</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if borders must be drawn around the cell block. The value can be either a number:
|
||||||
|
<ul>
|
||||||
|
<li><code>0</code>: no border</li>
|
||||||
|
<li><code>1</code>: frame</li>
|
||||||
|
</ul>
|
||||||
|
or a string containing some or all of the following characters (in any order):
|
||||||
|
<ul>
|
||||||
|
<li><code>L</code>: left</li>
|
||||||
|
<li><code>T</code>: top</li>
|
||||||
|
<li><code>R</code>: right</li>
|
||||||
|
<li><code>B</code>: bottom</li>
|
||||||
|
</ul>
|
||||||
|
Default value: <code>0</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>align</code></dt>
|
||||||
|
<dd>
|
||||||
|
Sets the text alignment. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>L</code>: left alignment</li>
|
||||||
|
<li><code>C</code>: center</li>
|
||||||
|
<li><code>R</code>: right alignment</li>
|
||||||
|
<li><code>J</code>: justification (default value)</li>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
<dt><code>fill</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the cell background must be painted (<code>true</code>) or transparent (<code>false</code>).
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>,
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>,
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="setlinewidth.htm">SetLineWidth</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="write.htm">Write</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
46
share/pnp/application/vendor/fpdf/doc/output.htm
vendored
Executable file
46
share/pnp/application/vendor/fpdf/doc/output.htm
vendored
Executable file
@ -0,0 +1,46 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Output</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Output</h1>
|
||||||
|
<code><b>string</b> Output([<b>string</b> dest [, <b>string</b> name [, <b>boolean</b> isUTF8]]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Send the document to a given destination: browser, file or string. In the case of a browser, the
|
||||||
|
PDF viewer may be used or a download may be forced.
|
||||||
|
<br>
|
||||||
|
The method first calls Close() if necessary to terminate the document.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>dest</code></dt>
|
||||||
|
<dd>
|
||||||
|
Destination where to send the document. It can be one of the following:
|
||||||
|
<ul>
|
||||||
|
<li><code>I</code>: send the file inline to the browser. The PDF viewer is used if available.</li>
|
||||||
|
<li><code>D</code>: send to the browser and force a file download with the name given by <code>name</code>.</li>
|
||||||
|
<li><code>F</code>: save to a local file with the name given by <code>name</code> (may include a path).</li>
|
||||||
|
<li><code>S</code>: return the document as a string.</li>
|
||||||
|
</ul>
|
||||||
|
The default value is <code>I</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>name</code></dt>
|
||||||
|
<dd>
|
||||||
|
The name of the file. It is ignored in case of destination <code>S</code>.<br>
|
||||||
|
The default value is <code>doc.pdf</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if <code>name</code> is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).
|
||||||
|
Only used for destinations <code>I</code> and <code>D</code>.<br>
|
||||||
|
The default value is <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="close.htm">Close</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
18
share/pnp/application/vendor/fpdf/doc/pageno.htm
vendored
Executable file
18
share/pnp/application/vendor/fpdf/doc/pageno.htm
vendored
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>PageNo</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>PageNo</h1>
|
||||||
|
<code><b>int</b> PageNo()</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Returns the current page number.
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="aliasnbpages.htm">AliasNbPages</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
48
share/pnp/application/vendor/fpdf/doc/rect.htm
vendored
Executable file
48
share/pnp/application/vendor/fpdf/doc/rect.htm
vendored
Executable file
@ -0,0 +1,48 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Rect</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Rect</h1>
|
||||||
|
<code>Rect(<b>float</b> x, <b>float</b> y, <b>float</b> w, <b>float</b> h [, <b>string</b> style])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Outputs a rectangle. It can be drawn (border only), filled (with no border) or both.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of upper-left corner.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of upper-left corner.
|
||||||
|
</dd>
|
||||||
|
<dt><code>w</code></dt>
|
||||||
|
<dd>
|
||||||
|
Width.
|
||||||
|
</dd>
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Height.
|
||||||
|
</dd>
|
||||||
|
<dt><code>style</code></dt>
|
||||||
|
<dd>
|
||||||
|
Style of rendering. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>D</code> or empty string: draw. This is the default value.</li>
|
||||||
|
<li><code>F</code>: fill</li>
|
||||||
|
<li><code>DF</code> or <code>FD</code>: draw and fill</li>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setlinewidth.htm">SetLineWidth</a>,
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>,
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
33
share/pnp/application/vendor/fpdf/doc/setauthor.htm
vendored
Executable file
33
share/pnp/application/vendor/fpdf/doc/setauthor.htm
vendored
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetAuthor</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetAuthor</h1>
|
||||||
|
<code>SetAuthor(<b>string</b> author [, <b>boolean</b> isUTF8])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the author of the document.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>author</code></dt>
|
||||||
|
<dd>
|
||||||
|
The name of the author.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setcreator.htm">SetCreator</a>,
|
||||||
|
<a href="setkeywords.htm">SetKeywords</a>,
|
||||||
|
<a href="setsubject.htm">SetSubject</a>,
|
||||||
|
<a href="settitle.htm">SetTitle</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
33
share/pnp/application/vendor/fpdf/doc/setautopagebreak.htm
vendored
Executable file
33
share/pnp/application/vendor/fpdf/doc/setautopagebreak.htm
vendored
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetAutoPageBreak</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetAutoPageBreak</h1>
|
||||||
|
<code>SetAutoPageBreak(<b>boolean</b> auto [, <b>float</b> margin])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Enables or disables the automatic page breaking mode. When enabling, the second parameter is
|
||||||
|
the distance from the bottom of the page that defines the triggering limit. By default, the
|
||||||
|
mode is on and the margin is 2 cm.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>auto</code></dt>
|
||||||
|
<dd>
|
||||||
|
Boolean indicating if mode should be on or off.
|
||||||
|
</dd>
|
||||||
|
<dt><code>margin</code></dt>
|
||||||
|
<dd>
|
||||||
|
Distance from the bottom of the page.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>,
|
||||||
|
<a href="acceptpagebreak.htm">AcceptPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
31
share/pnp/application/vendor/fpdf/doc/setcompression.htm
vendored
Executable file
31
share/pnp/application/vendor/fpdf/doc/setcompression.htm
vendored
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetCompression</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetCompression</h1>
|
||||||
|
<code>SetCompression(<b>boolean</b> compress)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Activates or deactivates page compression. When activated, the internal representation of
|
||||||
|
each page is compressed, which leads to a compression ratio of about 2 for the resulting
|
||||||
|
document.
|
||||||
|
<br>
|
||||||
|
Compression is on by default.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<strong>Note:</strong> the Zlib extension is required for this feature. If not present, compression
|
||||||
|
will be turned off.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>compress</code></dt>
|
||||||
|
<dd>
|
||||||
|
Boolean indicating if compression must be enabled.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
34
share/pnp/application/vendor/fpdf/doc/setcreator.htm
vendored
Executable file
34
share/pnp/application/vendor/fpdf/doc/setcreator.htm
vendored
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetCreator</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetCreator</h1>
|
||||||
|
<code>SetCreator(<b>string</b> creator [, <b>boolean</b> isUTF8])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the creator of the document. This is typically the name of the application that
|
||||||
|
generates the PDF.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>creator</code></dt>
|
||||||
|
<dd>
|
||||||
|
The name of the creator.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setauthor.htm">SetAuthor</a>,
|
||||||
|
<a href="setkeywords.htm">SetKeywords</a>,
|
||||||
|
<a href="setsubject.htm">SetSubject</a>,
|
||||||
|
<a href="settitle.htm">SetTitle</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
45
share/pnp/application/vendor/fpdf/doc/setdisplaymode.htm
vendored
Executable file
45
share/pnp/application/vendor/fpdf/doc/setdisplaymode.htm
vendored
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetDisplayMode</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetDisplayMode</h1>
|
||||||
|
<code>SetDisplayMode(<b>mixed</b> zoom [, <b>string</b> layout])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the way the document is to be displayed by the viewer. The zoom level can be set: pages can be
|
||||||
|
displayed entirely on screen, occupy the full width of the window, use real size, be scaled by a
|
||||||
|
specific zooming factor or use viewer default (configured in the Preferences menu of Adobe Reader).
|
||||||
|
The page layout can be specified too: single at once, continuous display, two columns or viewer
|
||||||
|
default.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>zoom</code></dt>
|
||||||
|
<dd>
|
||||||
|
The zoom to use. It can be one of the following string values:
|
||||||
|
<ul>
|
||||||
|
<li><code>fullpage</code>: displays the entire page on screen</li>
|
||||||
|
<li><code>fullwidth</code>: uses maximum width of window</li>
|
||||||
|
<li><code>real</code>: uses real size (equivalent to 100% zoom)</li>
|
||||||
|
<li><code>default</code>: uses viewer default mode</li>
|
||||||
|
</ul>
|
||||||
|
or a number indicating the zooming factor to use.
|
||||||
|
</dd>
|
||||||
|
<dt><code>layout</code></dt>
|
||||||
|
<dd>
|
||||||
|
The page layout. Possible values are:
|
||||||
|
<ul>
|
||||||
|
<li><code>single</code>: displays one page at once</li>
|
||||||
|
<li><code>continuous</code>: displays pages continuously</li>
|
||||||
|
<li><code>two</code>: displays two pages on two columns</li>
|
||||||
|
<li><code>default</code>: uses viewer default mode</li>
|
||||||
|
</ul>
|
||||||
|
Default value is <code>default</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
41
share/pnp/application/vendor/fpdf/doc/setdrawcolor.htm
vendored
Executable file
41
share/pnp/application/vendor/fpdf/doc/setdrawcolor.htm
vendored
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetDrawColor</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetDrawColor</h1>
|
||||||
|
<code>SetDrawColor(<b>int</b> r [, <b>int</b> g, <b>int</b> b])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the color used for all drawing operations (lines, rectangles and cell borders). It
|
||||||
|
can be expressed in RGB components or gray scale. The method can be called before the first
|
||||||
|
page is created and the value is retained from page to page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>r</code></dt>
|
||||||
|
<dd>
|
||||||
|
If <code>g</code> et <code>b</code> are given, red component; if not, indicates the gray level.
|
||||||
|
Value between 0 and 255.
|
||||||
|
</dd>
|
||||||
|
<dt><code>g</code></dt>
|
||||||
|
<dd>
|
||||||
|
Green component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
<dt><code>b</code></dt>
|
||||||
|
<dd>
|
||||||
|
Blue component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="line.htm">Line</a>,
|
||||||
|
<a href="rect.htm">Rect</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
40
share/pnp/application/vendor/fpdf/doc/setfillcolor.htm
vendored
Executable file
40
share/pnp/application/vendor/fpdf/doc/setfillcolor.htm
vendored
Executable file
@ -0,0 +1,40 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetFillColor</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetFillColor</h1>
|
||||||
|
<code>SetFillColor(<b>int</b> r [, <b>int</b> g, <b>int</b> b])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the color used for all filling operations (filled rectangles and cell backgrounds).
|
||||||
|
It can be expressed in RGB components or gray scale. The method can be called before the first
|
||||||
|
page is created and the value is retained from page to page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>r</code></dt>
|
||||||
|
<dd>
|
||||||
|
If <code>g</code> and <code>b</code> are given, red component; if not, indicates the gray level.
|
||||||
|
Value between 0 and 255.
|
||||||
|
</dd>
|
||||||
|
<dt><code>g</code></dt>
|
||||||
|
<dd>
|
||||||
|
Green component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
<dt><code>b</code></dt>
|
||||||
|
<dd>
|
||||||
|
Blue component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="rect.htm">Rect</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
92
share/pnp/application/vendor/fpdf/doc/setfont.htm
vendored
Executable file
92
share/pnp/application/vendor/fpdf/doc/setfont.htm
vendored
Executable file
@ -0,0 +1,92 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetFont</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetFont</h1>
|
||||||
|
<code>SetFont(<b>string</b> family [, <b>string</b> style [, <b>float</b> size]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Sets the font used to print character strings. It is mandatory to call this method
|
||||||
|
at least once before printing text or the resulting document would not be valid.
|
||||||
|
<br>
|
||||||
|
The font can be either a standard one or a font added via the AddFont() method. Standard fonts
|
||||||
|
use the Windows encoding cp1252 (Western Europe).
|
||||||
|
<br>
|
||||||
|
The method can be called before the first page is created and the font is kept from page
|
||||||
|
to page.
|
||||||
|
<br>
|
||||||
|
If you just wish to change the current font size, it is simpler to call SetFontSize().
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<strong>Note:</strong> the font definition files must be accessible. They are searched successively in:
|
||||||
|
<ul>
|
||||||
|
<li>The directory defined by the <code>FPDF_FONTPATH</code> constant (if this constant is defined)</li>
|
||||||
|
<li>The <code>font</code> directory located in the same directory as <code>fpdf.php</code> (if it exists)</li>
|
||||||
|
<li>The directories accessible through <code>include()</code></li>
|
||||||
|
</ul>
|
||||||
|
Example using <code>FPDF_FONTPATH</code>:
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>define('FPDF_FONTPATH','/home/www/font');
|
||||||
|
require('fpdf.php');</code></pre>
|
||||||
|
</div>
|
||||||
|
If the file corresponding to the requested font is not found, the error "Could not include font
|
||||||
|
definition file" is raised.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>family</code></dt>
|
||||||
|
<dd>
|
||||||
|
Family font. It can be either a name defined by AddFont() or one of the standard families (case
|
||||||
|
insensitive):
|
||||||
|
<ul>
|
||||||
|
<li><code>Courier</code> (fixed-width)</li>
|
||||||
|
<li><code>Helvetica</code> or <code>Arial</code> (synonymous; sans serif)</li>
|
||||||
|
<li><code>Times</code> (serif)</li>
|
||||||
|
<li><code>Symbol</code> (symbolic)</li>
|
||||||
|
<li><code>ZapfDingbats</code> (symbolic)</li>
|
||||||
|
</ul>
|
||||||
|
It is also possible to pass an empty string. In that case, the current family is kept.
|
||||||
|
</dd>
|
||||||
|
<dt><code>style</code></dt>
|
||||||
|
<dd>
|
||||||
|
Font style. Possible values are (case insensitive):
|
||||||
|
<ul>
|
||||||
|
<li>empty string: regular</li>
|
||||||
|
<li><code>B</code>: bold</li>
|
||||||
|
<li><code>I</code>: italic</li>
|
||||||
|
<li><code>U</code>: underline</li>
|
||||||
|
</ul>
|
||||||
|
or any combination. The default value is regular.
|
||||||
|
Bold and italic styles do not apply to <code>Symbol</code> and <code>ZapfDingbats</code>.
|
||||||
|
</dd>
|
||||||
|
<dt><code>size</code></dt>
|
||||||
|
<dd>
|
||||||
|
Font size in points.
|
||||||
|
<br>
|
||||||
|
The default value is the current size. If no size has been specified since the beginning of
|
||||||
|
the document, the value taken is 12.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>// Times regular 12
|
||||||
|
$pdf->SetFont('Times');
|
||||||
|
// Arial bold 14
|
||||||
|
$pdf->SetFont('Arial','B',14);
|
||||||
|
// Removes bold
|
||||||
|
$pdf->SetFont('');
|
||||||
|
// Times bold, italic and underlined 14
|
||||||
|
$pdf->SetFont('Times','BIU');</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="addfont.htm">AddFont</a>,
|
||||||
|
<a href="setfontsize.htm">SetFontSize</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>,
|
||||||
|
<a href="write.htm">Write</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
25
share/pnp/application/vendor/fpdf/doc/setfontsize.htm
vendored
Executable file
25
share/pnp/application/vendor/fpdf/doc/setfontsize.htm
vendored
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetFontSize</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetFontSize</h1>
|
||||||
|
<code>SetFontSize(<b>float</b> size)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the size of the current font.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>size</code></dt>
|
||||||
|
<dd>
|
||||||
|
The size (in points).
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
33
share/pnp/application/vendor/fpdf/doc/setkeywords.htm
vendored
Executable file
33
share/pnp/application/vendor/fpdf/doc/setkeywords.htm
vendored
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetKeywords</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetKeywords</h1>
|
||||||
|
<code>SetKeywords(<b>string</b> keywords [, <b>boolean</b> isUTF8])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Associates keywords with the document, generally in the form 'keyword1 keyword2 ...'.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>keywords</code></dt>
|
||||||
|
<dd>
|
||||||
|
The list of keywords.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setauthor.htm">SetAuthor</a>,
|
||||||
|
<a href="setcreator.htm">SetCreator</a>,
|
||||||
|
<a href="setsubject.htm">SetSubject</a>,
|
||||||
|
<a href="settitle.htm">SetTitle</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
30
share/pnp/application/vendor/fpdf/doc/setleftmargin.htm
vendored
Executable file
30
share/pnp/application/vendor/fpdf/doc/setleftmargin.htm
vendored
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetLeftMargin</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetLeftMargin</h1>
|
||||||
|
<code>SetLeftMargin(<b>float</b> margin)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the left margin. The method can be called before creating the first page.
|
||||||
|
<br>
|
||||||
|
If the current abscissa gets out of page, it is brought back to the margin.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>margin</code></dt>
|
||||||
|
<dd>
|
||||||
|
The margin.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="settopmargin.htm">SetTopMargin</a>,
|
||||||
|
<a href="setrightmargin.htm">SetRightMargin</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>,
|
||||||
|
<a href="setmargins.htm">SetMargins</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
29
share/pnp/application/vendor/fpdf/doc/setlinewidth.htm
vendored
Executable file
29
share/pnp/application/vendor/fpdf/doc/setlinewidth.htm
vendored
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetLineWidth</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetLineWidth</h1>
|
||||||
|
<code>SetLineWidth(<b>float</b> width)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the line width. By default, the value equals 0.2 mm. The method can be called before
|
||||||
|
the first page is created and the value is retained from page to page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>width</code></dt>
|
||||||
|
<dd>
|
||||||
|
The width.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="line.htm">Line</a>,
|
||||||
|
<a href="rect.htm">Rect</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
34
share/pnp/application/vendor/fpdf/doc/setlink.htm
vendored
Executable file
34
share/pnp/application/vendor/fpdf/doc/setlink.htm
vendored
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetLink</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetLink</h1>
|
||||||
|
<code>SetLink(<b>int</b> link [, <b>float</b> y [, <b>int</b> page]])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the page and position a link points to.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>link</code></dt>
|
||||||
|
<dd>
|
||||||
|
The link identifier returned by AddLink().
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of target position; <code>-1</code> indicates the current position.
|
||||||
|
The default value is <code>0</code> (top of page).
|
||||||
|
</dd>
|
||||||
|
<dt><code>page</code></dt>
|
||||||
|
<dd>
|
||||||
|
Number of target page; <code>-1</code> indicates the current page. This is the default value.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="addlink.htm">AddLink</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
37
share/pnp/application/vendor/fpdf/doc/setmargins.htm
vendored
Executable file
37
share/pnp/application/vendor/fpdf/doc/setmargins.htm
vendored
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetMargins</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetMargins</h1>
|
||||||
|
<code>SetMargins(<b>float</b> left, <b>float</b> top [, <b>float</b> right])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the left, top and right margins. By default, they equal 1 cm. Call this method to change
|
||||||
|
them.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>left</code></dt>
|
||||||
|
<dd>
|
||||||
|
Left margin.
|
||||||
|
</dd>
|
||||||
|
<dt><code>top</code></dt>
|
||||||
|
<dd>
|
||||||
|
Top margin.
|
||||||
|
</dd>
|
||||||
|
<dt><code>right</code></dt>
|
||||||
|
<dd>
|
||||||
|
Right margin. Default value is the left one.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setleftmargin.htm">SetLeftMargin</a>,
|
||||||
|
<a href="settopmargin.htm">SetTopMargin</a>,
|
||||||
|
<a href="setrightmargin.htm">SetRightMargin</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
28
share/pnp/application/vendor/fpdf/doc/setrightmargin.htm
vendored
Executable file
28
share/pnp/application/vendor/fpdf/doc/setrightmargin.htm
vendored
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetRightMargin</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetRightMargin</h1>
|
||||||
|
<code>SetRightMargin(<b>float</b> margin)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the right margin. The method can be called before creating the first page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>margin</code></dt>
|
||||||
|
<dd>
|
||||||
|
The margin.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setleftmargin.htm">SetLeftMargin</a>,
|
||||||
|
<a href="settopmargin.htm">SetTopMargin</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>,
|
||||||
|
<a href="setmargins.htm">SetMargins</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
33
share/pnp/application/vendor/fpdf/doc/setsubject.htm
vendored
Executable file
33
share/pnp/application/vendor/fpdf/doc/setsubject.htm
vendored
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetSubject</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetSubject</h1>
|
||||||
|
<code>SetSubject(<b>string</b> subject [, <b>boolean</b> isUTF8])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the subject of the document.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>subject</code></dt>
|
||||||
|
<dd>
|
||||||
|
The subject.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setauthor.htm">SetAuthor</a>,
|
||||||
|
<a href="setcreator.htm">SetCreator</a>,
|
||||||
|
<a href="setkeywords.htm">SetKeywords</a>,
|
||||||
|
<a href="settitle.htm">SetTitle</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
40
share/pnp/application/vendor/fpdf/doc/settextcolor.htm
vendored
Executable file
40
share/pnp/application/vendor/fpdf/doc/settextcolor.htm
vendored
Executable file
@ -0,0 +1,40 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetTextColor</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetTextColor</h1>
|
||||||
|
<code>SetTextColor(<b>int</b> r [, <b>int</b> g, <b>int</b> b])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the color used for text. It can be expressed in RGB components or gray scale. The
|
||||||
|
method can be called before the first page is created and the value is retained from page to
|
||||||
|
page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>r</code></dt>
|
||||||
|
<dd>
|
||||||
|
If <code>g</code> et <code>b</code> are given, red component; if not, indicates the gray level.
|
||||||
|
Value between 0 and 255.
|
||||||
|
</dd>
|
||||||
|
<dt><code>g</code></dt>
|
||||||
|
<dd>
|
||||||
|
Green component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
<dt><code>b</code></dt>
|
||||||
|
<dd>
|
||||||
|
Blue component (between 0 and 255).
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setdrawcolor.htm">SetDrawColor</a>,
|
||||||
|
<a href="setfillcolor.htm">SetFillColor</a>,
|
||||||
|
<a href="text.htm">Text</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
33
share/pnp/application/vendor/fpdf/doc/settitle.htm
vendored
Executable file
33
share/pnp/application/vendor/fpdf/doc/settitle.htm
vendored
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetTitle</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetTitle</h1>
|
||||||
|
<code>SetTitle(<b>string</b> title [, <b>boolean</b> isUTF8])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the title of the document.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>title</code></dt>
|
||||||
|
<dd>
|
||||||
|
The title.
|
||||||
|
</dd>
|
||||||
|
<dt><code>isUTF8</code></dt>
|
||||||
|
<dd>
|
||||||
|
Indicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>
|
||||||
|
Default value: <code>false</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setauthor.htm">SetAuthor</a>,
|
||||||
|
<a href="setcreator.htm">SetCreator</a>,
|
||||||
|
<a href="setkeywords.htm">SetKeywords</a>,
|
||||||
|
<a href="setsubject.htm">SetSubject</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
28
share/pnp/application/vendor/fpdf/doc/settopmargin.htm
vendored
Executable file
28
share/pnp/application/vendor/fpdf/doc/settopmargin.htm
vendored
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetTopMargin</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetTopMargin</h1>
|
||||||
|
<code>SetTopMargin(<b>float</b> margin)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the top margin. The method can be called before creating the first page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>margin</code></dt>
|
||||||
|
<dd>
|
||||||
|
The margin.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setleftmargin.htm">SetLeftMargin</a>,
|
||||||
|
<a href="setrightmargin.htm">SetRightMargin</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>,
|
||||||
|
<a href="setmargins.htm">SetMargins</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
29
share/pnp/application/vendor/fpdf/doc/setx.htm
vendored
Executable file
29
share/pnp/application/vendor/fpdf/doc/setx.htm
vendored
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetX</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetX</h1>
|
||||||
|
<code>SetX(<b>float</b> x)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the abscissa of the current position. If the passed value is negative, it is relative
|
||||||
|
to the right of the page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
The value of the abscissa.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="getx.htm">GetX</a>,
|
||||||
|
<a href="gety.htm">GetY</a>,
|
||||||
|
<a href="sety.htm">SetY</a>,
|
||||||
|
<a href="setxy.htm">SetXY</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
31
share/pnp/application/vendor/fpdf/doc/setxy.htm
vendored
Executable file
31
share/pnp/application/vendor/fpdf/doc/setxy.htm
vendored
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetXY</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetXY</h1>
|
||||||
|
<code>SetXY(<b>float</b> x, <b>float</b> y)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Defines the abscissa and ordinate of the current position. If the passed values are negative,
|
||||||
|
they are relative respectively to the right and bottom of the page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
The value of the abscissa.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
The value of the ordinate.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setx.htm">SetX</a>,
|
||||||
|
<a href="sety.htm">SetY</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
33
share/pnp/application/vendor/fpdf/doc/sety.htm
vendored
Executable file
33
share/pnp/application/vendor/fpdf/doc/sety.htm
vendored
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>SetY</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>SetY</h1>
|
||||||
|
<code>SetY(<b>float</b> y [, <b>boolean</b> resetX])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Sets the ordinate and optionally moves the current abscissa back to the left margin. If the value
|
||||||
|
is negative, it is relative to the bottom of the page.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
The value of the ordinate.
|
||||||
|
</dd>
|
||||||
|
<dt><code>resetX</code></dt>
|
||||||
|
<dd>
|
||||||
|
Whether to reset the abscissa. Default value: <code>true</code>.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="getx.htm">GetX</a>,
|
||||||
|
<a href="gety.htm">GetY</a>,
|
||||||
|
<a href="setx.htm">SetX</a>,
|
||||||
|
<a href="setxy.htm">SetXY</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
39
share/pnp/application/vendor/fpdf/doc/text.htm
vendored
Executable file
39
share/pnp/application/vendor/fpdf/doc/text.htm
vendored
Executable file
@ -0,0 +1,39 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Text</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Text</h1>
|
||||||
|
<code>Text(<b>float</b> x, <b>float</b> y, <b>string</b> txt)</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
Prints a character string. The origin is on the left of the first character, on the baseline.
|
||||||
|
This method allows to place a string precisely on the page, but it is usually easier to use
|
||||||
|
Cell(), MultiCell() or Write() which are the standard methods to print text.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>x</code></dt>
|
||||||
|
<dd>
|
||||||
|
Abscissa of the origin.
|
||||||
|
</dd>
|
||||||
|
<dt><code>y</code></dt>
|
||||||
|
<dd>
|
||||||
|
Ordinate of the origin.
|
||||||
|
</dd>
|
||||||
|
<dt><code>txt</code></dt>
|
||||||
|
<dd>
|
||||||
|
String to print.
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="cell.htm">Cell</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>,
|
||||||
|
<a href="write.htm">Write</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
51
share/pnp/application/vendor/fpdf/doc/write.htm
vendored
Executable file
51
share/pnp/application/vendor/fpdf/doc/write.htm
vendored
Executable file
@ -0,0 +1,51 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>Write</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="../fpdf.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Write</h1>
|
||||||
|
<code>Write(<b>float</b> h, <b>string</b> txt [, <b>mixed</b> link])</code>
|
||||||
|
<h2>Description</h2>
|
||||||
|
This method prints text from the current position. When the right margin is reached (or the \n
|
||||||
|
character is met) a line break occurs and text continues from the left margin. Upon method exit,
|
||||||
|
the current position is left just at the end of the text.
|
||||||
|
<br>
|
||||||
|
It is possible to put a link on the text.
|
||||||
|
<h2>Parameters</h2>
|
||||||
|
<dl class="param">
|
||||||
|
<dt><code>h</code></dt>
|
||||||
|
<dd>
|
||||||
|
Line height.
|
||||||
|
</dd>
|
||||||
|
<dt><code>txt</code></dt>
|
||||||
|
<dd>
|
||||||
|
String to print.
|
||||||
|
</dd>
|
||||||
|
<dt><code>link</code></dt>
|
||||||
|
<dd>
|
||||||
|
URL or identifier returned by AddLink().
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Example</h2>
|
||||||
|
<div class="doc-source">
|
||||||
|
<pre><code>// Begin with regular font
|
||||||
|
$pdf->SetFont('Arial','',14);
|
||||||
|
$pdf->Write(5,'Visit ');
|
||||||
|
// Then put a blue underlined link
|
||||||
|
$pdf->SetTextColor(0,0,255);
|
||||||
|
$pdf->SetFont('','U');
|
||||||
|
$pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');</code></pre>
|
||||||
|
</div>
|
||||||
|
<h2>See also</h2>
|
||||||
|
<a href="setfont.htm">SetFont</a>,
|
||||||
|
<a href="settextcolor.htm">SetTextColor</a>,
|
||||||
|
<a href="addlink.htm">AddLink</a>,
|
||||||
|
<a href="multicell.htm">MultiCell</a>,
|
||||||
|
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
|
||||||
|
<hr style="margin-top:1.5em">
|
||||||
|
<div style="text-align:center"><a href="index.htm">Index</a></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
102
share/pnp/application/vendor/fpdf/filters/FilterASCII85.php
vendored
Normal file → Executable file
102
share/pnp/application/vendor/fpdf/filters/FilterASCII85.php
vendored
Normal file → Executable file
@ -1,38 +1,34 @@
|
|||||||
<?php
|
<?php
|
||||||
//
|
/**
|
||||||
// FPDI - Version 1.3.1
|
* This file is part of FPDI
|
||||||
//
|
*
|
||||||
// Copyright 2004-2009 Setasign - Jan Slabon
|
* @package FPDI
|
||||||
//
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
// you may not use this file except in compliance with the License.
|
* @version 1.6.1
|
||||||
// You may obtain a copy of the License at
|
*/
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
//
|
|
||||||
|
|
||||||
if (!defined('ORD_z'))
|
/**
|
||||||
define('ORD_z',ord('z'));
|
* Class FilterASCII85
|
||||||
if (!defined('ORD_exclmark'))
|
*/
|
||||||
define('ORD_exclmark', ord('!'));
|
class FilterASCII85
|
||||||
if (!defined('ORD_u'))
|
{
|
||||||
define('ORD_u', ord('u'));
|
/**
|
||||||
if (!defined('ORD_tilde'))
|
* Decode ASCII85 encoded string
|
||||||
define('ORD_tilde', ord('~'));
|
*
|
||||||
|
* @param string $in
|
||||||
|
* @return string
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
public function decode($in)
|
||||||
|
{
|
||||||
|
$ord = array(
|
||||||
|
'~' => ord('~'),
|
||||||
|
'z' => ord('z'),
|
||||||
|
'u' => ord('u'),
|
||||||
|
'!' => ord('!')
|
||||||
|
);
|
||||||
|
|
||||||
class FilterASCII85 {
|
|
||||||
|
|
||||||
function error($msg) {
|
|
||||||
die($msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
function decode($in) {
|
|
||||||
$out = '';
|
$out = '';
|
||||||
$state = 0;
|
$state = 0;
|
||||||
$chn = null;
|
$chn = null;
|
||||||
@ -42,27 +38,29 @@ class FilterASCII85 {
|
|||||||
for ($k = 0; $k < $l; ++$k) {
|
for ($k = 0; $k < $l; ++$k) {
|
||||||
$ch = ord($in[$k]) & 0xff;
|
$ch = ord($in[$k]) & 0xff;
|
||||||
|
|
||||||
if ($ch == ORD_tilde) {
|
if ($ch == $ord['~']) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (preg_match('/^\s$/',chr($ch))) {
|
if (preg_match('/^\s$/',chr($ch))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($ch == ORD_z && $state == 0) {
|
if ($ch == $ord['z'] && $state == 0) {
|
||||||
$out .= chr(0) . chr(0) . chr(0) . chr(0);
|
$out .= chr(0) . chr(0) . chr(0) . chr(0);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($ch < ORD_exclmark || $ch > ORD_u) {
|
if ($ch < $ord['!'] || $ch > $ord['u']) {
|
||||||
$this->error('Illegal character in ASCII85Decode.');
|
throw new Exception('Illegal character in ASCII85Decode.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$chn[$state++] = $ch - ORD_exclmark;
|
$chn[$state++] = $ch - $ord['!'];
|
||||||
|
|
||||||
if ($state == 5) {
|
if ($state == 5) {
|
||||||
$state = 0;
|
$state = 0;
|
||||||
$r = 0;
|
$r = 0;
|
||||||
for ($j = 0; $j < 5; ++$j)
|
for ($j = 0; $j < 5; ++$j) {
|
||||||
$r = $r * 85 + $chn[$j];
|
$r = (int)($r * 85 + $chn[$j]);
|
||||||
|
}
|
||||||
|
|
||||||
$out .= chr($r >> 24);
|
$out .= chr($r >> 24);
|
||||||
$out .= chr($r >> 16);
|
$out .= chr($r >> 16);
|
||||||
$out .= chr($r >> 8);
|
$out .= chr($r >> 8);
|
||||||
@ -71,18 +69,20 @@ class FilterASCII85 {
|
|||||||
}
|
}
|
||||||
$r = 0;
|
$r = 0;
|
||||||
|
|
||||||
if ($state == 1)
|
if ($state == 1) {
|
||||||
$this->error('Illegal length in ASCII85Decode.');
|
throw new Exception('Illegal length in ASCII85Decode.');
|
||||||
|
}
|
||||||
|
|
||||||
if ($state == 2) {
|
if ($state == 2) {
|
||||||
$r = $chn[0] * 85 * 85 * 85 * 85 + ($chn[1]+1) * 85 * 85 * 85;
|
$r = $chn[0] * 85 * 85 * 85 * 85 + ($chn[1]+1) * 85 * 85 * 85;
|
||||||
$out .= chr($r >> 24);
|
$out .= chr($r >> 24);
|
||||||
}
|
|
||||||
else if ($state == 3) {
|
} else if ($state == 3) {
|
||||||
$r = $chn[0] * 85 * 85 * 85 * 85 + $chn[1] * 85 * 85 * 85 + ($chn[2]+1) * 85 * 85;
|
$r = $chn[0] * 85 * 85 * 85 * 85 + $chn[1] * 85 * 85 * 85 + ($chn[2]+1) * 85 * 85;
|
||||||
$out .= chr($r >> 24);
|
$out .= chr($r >> 24);
|
||||||
$out .= chr($r >> 16);
|
$out .= chr($r >> 16);
|
||||||
}
|
|
||||||
else if ($state == 4) {
|
} else if ($state == 4) {
|
||||||
$r = $chn[0] * 85 * 85 * 85 * 85 + $chn[1] * 85 * 85 * 85 + $chn[2] * 85 * 85 + ($chn[3]+1) * 85 ;
|
$r = $chn[0] * 85 * 85 * 85 * 85 + $chn[1] * 85 * 85 * 85 + $chn[2] * 85 * 85 + ($chn[3]+1) * 85 ;
|
||||||
$out .= chr($r >> 24);
|
$out .= chr($r >> 24);
|
||||||
$out .= chr($r >> 16);
|
$out .= chr($r >> 16);
|
||||||
@ -92,7 +92,15 @@ class FilterASCII85 {
|
|||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
|
||||||
function encode($in) {
|
/**
|
||||||
$this->error("ASCII85 encoding not implemented.");
|
* NOT IMPLEMENTED
|
||||||
|
*
|
||||||
|
* @param string $in
|
||||||
|
* @return string
|
||||||
|
* @throws LogicException
|
||||||
|
*/
|
||||||
|
public function encode($in)
|
||||||
|
{
|
||||||
|
throw new LogicException("ASCII85 encoding not implemented.");
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,33 +0,0 @@
|
|||||||
<?php
|
|
||||||
//
|
|
||||||
// FPDI - Version 1.3.1
|
|
||||||
//
|
|
||||||
// Copyright 2004-2009 Setasign - Jan Slabon
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
//
|
|
||||||
|
|
||||||
require_once('FilterASCII85.php');
|
|
||||||
|
|
||||||
class FilterASCII85_FPDI extends FilterASCII85 {
|
|
||||||
|
|
||||||
var $fpdi;
|
|
||||||
|
|
||||||
function FPDI_FilterASCII85(&$fpdi) {
|
|
||||||
$this->fpdi =& $fpdi;
|
|
||||||
}
|
|
||||||
|
|
||||||
function error($msg) {
|
|
||||||
$this->fpdi->error($msg);
|
|
||||||
}
|
|
||||||
}
|
|
43
share/pnp/application/vendor/fpdf/filters/FilterASCIIHexDecode.php
vendored
Executable file
43
share/pnp/application/vendor/fpdf/filters/FilterASCIIHexDecode.php
vendored
Executable file
@ -0,0 +1,43 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* This file is part of FPDI
|
||||||
|
*
|
||||||
|
* @package FPDI
|
||||||
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
|
* @version 1.6.1
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class FilterASCIIHexDecode
|
||||||
|
*/
|
||||||
|
class FilterASCIIHexDecode
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Converts an ASCII hexadecimal encoded string into it's binary representation.
|
||||||
|
*
|
||||||
|
* @param string $data The input string
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function decode($data)
|
||||||
|
{
|
||||||
|
$data = preg_replace('/[^0-9A-Fa-f]/', '', rtrim($data, '>'));
|
||||||
|
if ((strlen($data) % 2) == 1) {
|
||||||
|
$data .= '0';
|
||||||
|
}
|
||||||
|
|
||||||
|
return pack('H*', $data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts a string into ASCII hexadecimal representation.
|
||||||
|
*
|
||||||
|
* @param string $data The input string
|
||||||
|
* @param boolean $leaveEOD
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function encode($data, $leaveEOD = false)
|
||||||
|
{
|
||||||
|
return current(unpack('H*', $data)) . ($leaveEOD ? '' : '>');
|
||||||
|
}
|
||||||
|
}
|
180
share/pnp/application/vendor/fpdf/filters/FilterLZW.php
vendored
Normal file → Executable file
180
share/pnp/application/vendor/fpdf/filters/FilterLZW.php
vendored
Normal file → Executable file
@ -1,154 +1,164 @@
|
|||||||
<?php
|
<?php
|
||||||
//
|
/**
|
||||||
// FPDI - Version 1.3.1
|
* This file is part of FPDI
|
||||||
//
|
*
|
||||||
// Copyright 2004-2009 Setasign - Jan Slabon
|
* @package FPDI
|
||||||
//
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
// you may not use this file except in compliance with the License.
|
* @version 1.6.1
|
||||||
// You may obtain a copy of the License at
|
*/
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
//
|
|
||||||
|
|
||||||
class FilterLZW {
|
|
||||||
|
|
||||||
var $sTable = array();
|
|
||||||
var $data = null;
|
|
||||||
var $dataLength = 0;
|
|
||||||
var $tIdx;
|
|
||||||
var $bitsToGet = 9;
|
|
||||||
var $bytePointer;
|
|
||||||
var $bitPointer;
|
|
||||||
var $nextData = 0;
|
|
||||||
var $nextBits = 0;
|
|
||||||
var $andTable = array(511, 1023, 2047, 4095);
|
|
||||||
|
|
||||||
function error($msg) {
|
|
||||||
die($msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to decode LZW compressed data.
|
* Class FilterLZW
|
||||||
*
|
|
||||||
* @param string data The compressed data.
|
|
||||||
*/
|
*/
|
||||||
function decode($data) {
|
class FilterLZW
|
||||||
|
{
|
||||||
|
protected $_sTable = array();
|
||||||
|
protected $_data = null;
|
||||||
|
protected $_dataLength = 0;
|
||||||
|
protected $_tIdx;
|
||||||
|
protected $_bitsToGet = 9;
|
||||||
|
protected $_bytePointer;
|
||||||
|
protected $_bitPointer;
|
||||||
|
protected $_nextData = 0;
|
||||||
|
protected $_nextBits = 0;
|
||||||
|
protected $_andTable = array(511, 1023, 2047, 4095);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Decodes LZW compressed data.
|
||||||
|
*
|
||||||
|
* @param string $data The compressed data.
|
||||||
|
* @throws Exception
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function decode($data)
|
||||||
|
{
|
||||||
if ($data[0] == 0x00 && $data[1] == 0x01) {
|
if ($data[0] == 0x00 && $data[1] == 0x01) {
|
||||||
$this->error('LZW flavour not supported.');
|
throw new Exception('LZW flavour not supported.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->initsTable();
|
$this->_initsTable();
|
||||||
|
|
||||||
$this->data = $data;
|
$this->_data = $data;
|
||||||
$this->dataLength = strlen($data);
|
$this->_dataLength = strlen($data);
|
||||||
|
|
||||||
// Initialize pointers
|
// Initialize pointers
|
||||||
$this->bytePointer = 0;
|
$this->_bytePointer = 0;
|
||||||
$this->bitPointer = 0;
|
$this->_bitPointer = 0;
|
||||||
|
|
||||||
$this->nextData = 0;
|
$this->_nextData = 0;
|
||||||
$this->nextBits = 0;
|
$this->_nextBits = 0;
|
||||||
|
|
||||||
$oldCode = 0;
|
$oldCode = 0;
|
||||||
|
|
||||||
$string = '';
|
$unCompData = '';
|
||||||
$uncompData = '';
|
|
||||||
|
|
||||||
while (($code = $this->getNextCode()) != 257) {
|
while (($code = $this->_getNextCode()) != 257) {
|
||||||
if ($code == 256) {
|
if ($code == 256) {
|
||||||
$this->initsTable();
|
$this->_initsTable();
|
||||||
$code = $this->getNextCode();
|
$code = $this->_getNextCode();
|
||||||
|
|
||||||
if ($code == 257) {
|
if ($code == 257) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$uncompData .= $this->sTable[$code];
|
if (!isset($this->_sTable[$code])) {
|
||||||
|
throw new Exception('Error while decompression LZW compressed data.');
|
||||||
|
}
|
||||||
|
|
||||||
|
$unCompData .= $this->_sTable[$code];
|
||||||
$oldCode = $code;
|
$oldCode = $code;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if ($code < $this->tIdx) {
|
if ($code < $this->_tIdx) {
|
||||||
$string = $this->sTable[$code];
|
$string = $this->_sTable[$code];
|
||||||
$uncompData .= $string;
|
$unCompData .= $string;
|
||||||
|
|
||||||
$this->addStringToTable($this->sTable[$oldCode], $string[0]);
|
$this->_addStringToTable($this->_sTable[$oldCode], $string[0]);
|
||||||
$oldCode = $code;
|
$oldCode = $code;
|
||||||
} else {
|
} else {
|
||||||
$string = $this->sTable[$oldCode];
|
$string = $this->_sTable[$oldCode];
|
||||||
$string = $string . $string[0];
|
$string = $string . $string[0];
|
||||||
$uncompData .= $string;
|
$unCompData .= $string;
|
||||||
|
|
||||||
$this->addStringToTable($string);
|
$this->_addStringToTable($string);
|
||||||
$oldCode = $code;
|
$oldCode = $code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $uncompData;
|
return $unCompData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the string table.
|
* Initialize the string table.
|
||||||
*/
|
*/
|
||||||
function initsTable() {
|
protected function _initsTable()
|
||||||
$this->sTable = array();
|
{
|
||||||
|
$this->_sTable = array();
|
||||||
|
|
||||||
for ($i = 0; $i < 256; $i++)
|
for ($i = 0; $i < 256; $i++)
|
||||||
$this->sTable[$i] = chr($i);
|
$this->_sTable[$i] = chr($i);
|
||||||
|
|
||||||
$this->tIdx = 258;
|
$this->_tIdx = 258;
|
||||||
$this->bitsToGet = 9;
|
$this->_bitsToGet = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a new string to the string table.
|
* Add a new string to the string table.
|
||||||
*/
|
*/
|
||||||
function addStringToTable ($oldString, $newString='') {
|
protected function _addStringToTable($oldString, $newString = '')
|
||||||
|
{
|
||||||
$string = $oldString . $newString;
|
$string = $oldString . $newString;
|
||||||
|
|
||||||
// Add this new String to the table
|
// Add this new String to the table
|
||||||
$this->sTable[$this->tIdx++] = $string;
|
$this->_sTable[$this->_tIdx++] = $string;
|
||||||
|
|
||||||
if ($this->tIdx == 511) {
|
if ($this->_tIdx == 511) {
|
||||||
$this->bitsToGet = 10;
|
$this->_bitsToGet = 10;
|
||||||
} else if ($this->tIdx == 1023) {
|
} else if ($this->_tIdx == 1023) {
|
||||||
$this->bitsToGet = 11;
|
$this->_bitsToGet = 11;
|
||||||
} else if ($this->tIdx == 2047) {
|
} else if ($this->_tIdx == 2047) {
|
||||||
$this->bitsToGet = 12;
|
$this->_bitsToGet = 12;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the next 9, 10, 11 or 12 bits
|
/**
|
||||||
function getNextCode() {
|
* Returns the next 9, 10, 11 or 12 bits
|
||||||
if ($this->bytePointer == $this->dataLength) {
|
*
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
protected function _getNextCode()
|
||||||
|
{
|
||||||
|
if ($this->_bytePointer == $this->_dataLength) {
|
||||||
return 257;
|
return 257;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->nextData = ($this->nextData << 8) | (ord($this->data[$this->bytePointer++]) & 0xff);
|
$this->_nextData = ($this->_nextData << 8) | (ord($this->_data[$this->_bytePointer++]) & 0xff);
|
||||||
$this->nextBits += 8;
|
$this->_nextBits += 8;
|
||||||
|
|
||||||
if ($this->nextBits < $this->bitsToGet) {
|
if ($this->_nextBits < $this->_bitsToGet) {
|
||||||
$this->nextData = ($this->nextData << 8) | (ord($this->data[$this->bytePointer++]) & 0xff);
|
$this->_nextData = ($this->_nextData << 8) | (ord($this->_data[$this->_bytePointer++]) & 0xff);
|
||||||
$this->nextBits += 8;
|
$this->_nextBits += 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
$code = ($this->nextData >> ($this->nextBits - $this->bitsToGet)) & $this->andTable[$this->bitsToGet-9];
|
$code = ($this->_nextData >> ($this->_nextBits - $this->_bitsToGet)) & $this->_andTable[$this->_bitsToGet-9];
|
||||||
$this->nextBits -= $this->bitsToGet;
|
$this->_nextBits -= $this->_bitsToGet;
|
||||||
|
|
||||||
return $code;
|
return $code;
|
||||||
}
|
}
|
||||||
|
|
||||||
function encode($in) {
|
/**
|
||||||
$this->error("LZW encoding not implemented.");
|
* NOT IMPLEMENTED
|
||||||
|
*
|
||||||
|
* @param string $in
|
||||||
|
* @return string
|
||||||
|
* @throws LogicException
|
||||||
|
*/
|
||||||
|
public function encode($in)
|
||||||
|
{
|
||||||
|
throw new LogicException("LZW encoding not implemented.");
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,33 +0,0 @@
|
|||||||
<?php
|
|
||||||
//
|
|
||||||
// FPDI - Version 1.3.1
|
|
||||||
//
|
|
||||||
// Copyright 2004-2009 Setasign - Jan Slabon
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
//
|
|
||||||
|
|
||||||
require_once('FilterLZW.php');
|
|
||||||
|
|
||||||
class FilterLZW_FPDI extends FilterLZW {
|
|
||||||
|
|
||||||
var $fpdi;
|
|
||||||
|
|
||||||
function FilterLZW_FPDI(&$fpdi) {
|
|
||||||
$this->fpdi =& $fpdi;
|
|
||||||
}
|
|
||||||
|
|
||||||
function error($msg) {
|
|
||||||
$this->fpdi->error($msg);
|
|
||||||
}
|
|
||||||
}
|
|
@ -5,4 +5,6 @@ $up = -100;
|
|||||||
$ut = 50;
|
$ut = 50;
|
||||||
for($i=0;$i<=255;$i++)
|
for($i=0;$i<=255;$i++)
|
||||||
$cw[chr($i)] = 600;
|
$cw[chr($i)] = 600;
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -5,4 +5,6 @@ $up = -100;
|
|||||||
$ut = 50;
|
$ut = 50;
|
||||||
for($i=0;$i<=255;$i++)
|
for($i=0;$i<=255;$i++)
|
||||||
$cw[chr($i)] = 600;
|
$cw[chr($i)] = 600;
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -5,4 +5,6 @@ $up = -100;
|
|||||||
$ut = 50;
|
$ut = 50;
|
||||||
for($i=0;$i<=255;$i++)
|
for($i=0;$i<=255;$i++)
|
||||||
$cw[chr($i)] = 600;
|
$cw[chr($i)] = 600;
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -5,4 +5,6 @@ $up = -100;
|
|||||||
$ut = 50;
|
$ut = 50;
|
||||||
for($i=0;$i<=255;$i++)
|
for($i=0;$i<=255;$i++)
|
||||||
$cw[chr($i)] = 600;
|
$cw[chr($i)] = 600;
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -16,4 +16,6 @@ $cw = array(
|
|||||||
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
|
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
|
||||||
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -16,4 +16,6 @@ $cw = array(
|
|||||||
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
|
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
|
||||||
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
|
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -16,4 +16,6 @@ $cw = array(
|
|||||||
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
|
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
|
||||||
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
|
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -16,4 +16,6 @@ $cw = array(
|
|||||||
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
|
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
|
||||||
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -16,4 +16,5 @@ $cw = array(
|
|||||||
chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,
|
chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,
|
||||||
chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,
|
chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,
|
||||||
chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);
|
chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);
|
||||||
|
$uv = array(32=>160,33=>33,34=>8704,35=>35,36=>8707,37=>array(37,2),39=>8715,40=>array(40,2),42=>8727,43=>array(43,2),45=>8722,46=>array(46,18),64=>8773,65=>array(913,2),67=>935,68=>array(916,2),70=>934,71=>915,72=>919,73=>921,74=>977,75=>array(922,4),79=>array(927,2),81=>920,82=>929,83=>array(931,3),86=>962,87=>937,88=>926,89=>936,90=>918,91=>91,92=>8756,93=>93,94=>8869,95=>95,96=>63717,97=>array(945,2),99=>967,100=>array(948,2),102=>966,103=>947,104=>951,105=>953,106=>981,107=>array(954,4),111=>array(959,2),113=>952,114=>961,115=>array(963,3),118=>982,119=>969,120=>958,121=>968,122=>950,123=>array(123,3),126=>8764,160=>8364,161=>978,162=>8242,163=>8804,164=>8725,165=>8734,166=>402,167=>9827,168=>9830,169=>9829,170=>9824,171=>8596,172=>array(8592,4),176=>array(176,2),178=>8243,179=>8805,180=>215,181=>8733,182=>8706,183=>8226,184=>247,185=>array(8800,2),187=>8776,188=>8230,189=>array(63718,2),191=>8629,192=>8501,193=>8465,194=>8476,195=>8472,196=>8855,197=>8853,198=>8709,199=>array(8745,2),201=>8835,202=>8839,203=>8836,204=>8834,205=>8838,206=>array(8712,2),208=>8736,209=>8711,210=>63194,211=>63193,212=>63195,213=>8719,214=>8730,215=>8901,216=>172,217=>array(8743,2),219=>8660,220=>array(8656,4),224=>9674,225=>9001,226=>array(63720,3),229=>8721,230=>array(63723,10),241=>9002,242=>8747,243=>8992,244=>63733,245=>8993,246=>array(63734,9));
|
||||||
?>
|
?>
|
||||||
|
@ -16,4 +16,6 @@ $cw = array(
|
|||||||
chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
|
chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
|
||||||
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
|
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -16,4 +16,6 @@ $cw = array(
|
|||||||
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
|
chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
|
||||||
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -16,4 +16,6 @@ $cw = array(
|
|||||||
chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
|
chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
|
||||||
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);
|
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -16,4 +16,6 @@ $cw = array(
|
|||||||
chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
||||||
chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
|
chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
|
||||||
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444);
|
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444);
|
||||||
|
$enc = 'cp1252';
|
||||||
|
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
|
||||||
?>
|
?>
|
||||||
|
@ -16,4 +16,5 @@ $cw = array(
|
|||||||
chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918,
|
chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918,
|
||||||
chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874,
|
chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874,
|
||||||
chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0);
|
chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0);
|
||||||
|
$uv = array(32=>32,33=>array(9985,4),37=>9742,38=>array(9990,4),42=>9755,43=>9758,44=>array(9996,28),72=>9733,73=>array(10025,35),108=>9679,109=>10061,110=>9632,111=>array(10063,4),115=>9650,116=>9660,117=>9670,118=>10070,119=>9687,120=>array(10072,7),128=>array(10088,14),161=>array(10081,7),168=>9827,169=>9830,170=>9829,171=>9824,172=>array(9312,10),182=>array(10102,31),213=>8594,214=>array(8596,2),216=>array(10136,24),241=>array(10161,14));
|
||||||
?>
|
?>
|
||||||
|
21
share/pnp/application/vendor/fpdf/fpdf.css
vendored
Executable file
21
share/pnp/application/vendor/fpdf/fpdf.css
vendored
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
body {font-family:"Times New Roman",serif}
|
||||||
|
h1 {font:bold 135% Arial,sans-serif; color:#4000A0; margin-bottom:0.9em}
|
||||||
|
h2 {font:bold 95% Arial,sans-serif; color:#900000; margin-top:1.5em; margin-bottom:1em}
|
||||||
|
dl.param dt {text-decoration:underline}
|
||||||
|
dl.param dd {margin-top:1em; margin-bottom:1em}
|
||||||
|
dl.param ul {margin-top:1em; margin-bottom:1em}
|
||||||
|
tt, code, kbd {font-family:"Courier New",Courier,monospace; font-size:82%}
|
||||||
|
div.source {margin-top:1.4em; margin-bottom:1.3em}
|
||||||
|
div.source pre {display:table; border:1px solid #24246A; width:100%; margin:0em; font-family:inherit; font-size:100%}
|
||||||
|
div.source code {display:block; border:1px solid #C5C5EC; background-color:#F0F5FF; padding:6px; color:#000000}
|
||||||
|
div.doc-source {margin-top:1.4em; margin-bottom:1.3em}
|
||||||
|
div.doc-source pre {display:table; width:100%; margin:0em; font-family:inherit; font-size:100%}
|
||||||
|
div.doc-source code {display:block; background-color:#E0E0E0; padding:4px}
|
||||||
|
.kw {color:#000080; font-weight:bold}
|
||||||
|
.str {color:#CC0000}
|
||||||
|
.cmt {color:#008000}
|
||||||
|
p.demo {text-align:center; margin-top:-0.9em}
|
||||||
|
a.demo {text-decoration:none; font-weight:bold; color:#0000CC}
|
||||||
|
a.demo:link {text-decoration:none; font-weight:bold; color:#0000CC}
|
||||||
|
a.demo:hover {text-decoration:none; font-weight:bold; color:#0000FF}
|
||||||
|
a.demo:active {text-decoration:none; font-weight:bold; color:#0000FF}
|
864
share/pnp/application/vendor/fpdf/fpdf.php
vendored
864
share/pnp/application/vendor/fpdf/fpdf.php
vendored
File diff suppressed because it is too large
Load Diff
507
share/pnp/application/vendor/fpdf/fpdf_tpl.php
vendored
Normal file → Executable file
507
share/pnp/application/vendor/fpdf/fpdf_tpl.php
vendored
Normal file → Executable file
@ -1,81 +1,92 @@
|
|||||||
<?php
|
<?php
|
||||||
//
|
|
||||||
// FPDF_TPL - Version 1.1.3
|
|
||||||
//
|
|
||||||
// Copyright 2004-2009 Setasign - Jan Slabon
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
//
|
|
||||||
|
|
||||||
class FPDF_TPL extends FPDF {
|
|
||||||
/**
|
/**
|
||||||
* Array of Tpl-Data
|
* This file is part of FPDI
|
||||||
|
*
|
||||||
|
* @package FPDI
|
||||||
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
|
* @version 1.6.1
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!class_exists('fpdi_bridge')) {
|
||||||
|
require_once('fpdi_bridge.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class FPDF_TPL
|
||||||
|
*/
|
||||||
|
class FPDF_TPL extends fpdi_bridge
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Array of template data
|
||||||
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
var $tpls = array();
|
protected $_tpls = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Current Template-ID
|
* Current Template-Id
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
var $tpl = 0;
|
public $tpl = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* "In Template"-Flag
|
* "In Template"-Flag
|
||||||
|
*
|
||||||
* @var boolean
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
var $_intpl = false;
|
protected $_inTpl = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Nameprefix of Templates used in Resources-Dictonary
|
* Name prefix of templates used in Resources dictionary
|
||||||
* @var string A String defining the Prefix used as Template-Object-Names. Have to beginn with an /
|
*
|
||||||
|
* @var string A String defining the Prefix used as Template-Object-Names. Have to begin with an /
|
||||||
*/
|
*/
|
||||||
var $tplprefix = "/TPL";
|
public $tplPrefix = "/TPL";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resources used By Templates and Pages
|
* Resources used by templates and pages
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
var $_res = array();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Last used Template data
|
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
var $lastUsedTemplateData = array();
|
protected $_res = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start a Template
|
* Last used template data
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
public $lastUsedTemplateData = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Start a template.
|
||||||
*
|
*
|
||||||
* This method starts a template. You can give own coordinates to build an own sized
|
* This method starts a template. You can give own coordinates to build an own sized
|
||||||
* Template. Pay attention, that the margins are adapted to the new templatesize.
|
* template. Pay attention, that the margins are adapted to the new template size.
|
||||||
* If you want to write outside the template, for example to build a clipped Template,
|
* If you want to write outside the template, for example to build a clipped template,
|
||||||
* you have to set the Margins and "Cursor"-Position manual after beginTemplate-Call.
|
* you have to set the margins and "cursor"-position manual after beginTemplate()-call.
|
||||||
*
|
*
|
||||||
* If no parameter is given, the template uses the current page-size.
|
* If no parameter is given, the template uses the current page-size.
|
||||||
* The Method returns an ID of the current Template. This ID is used later for using this template.
|
* The method returns an id of the current template. This id is used later for using this template.
|
||||||
* Warning: A created Template is used in PDF at all events. Still if you don't use it after creation!
|
* Warning: A created template is saved in the resulting PDF at all events. Also if you don't use it after creation!
|
||||||
*
|
*
|
||||||
* @param int $x The x-coordinate given in user-unit
|
* @param int $x The x-coordinate given in user-unit
|
||||||
* @param int $y The y-coordinate given in user-unit
|
* @param int $y The y-coordinate given in user-unit
|
||||||
* @param int $w The width given in user-unit
|
* @param int $w The width given in user-unit
|
||||||
* @param int $h The height given in user-unit
|
* @param int $h The height given in user-unit
|
||||||
* @return int The ID of new created Template
|
* @return int The id of new created template
|
||||||
|
* @throws LogicException
|
||||||
*/
|
*/
|
||||||
function beginTemplate($x=null, $y=null, $w=null, $h=null) {
|
public function beginTemplate($x = null, $y = null, $w = null, $h = null)
|
||||||
if ($this->page <= 0)
|
{
|
||||||
$this->error("You have to add a page to fpdf first!");
|
if (is_subclass_of($this, 'TCPDF')) {
|
||||||
|
throw new LogicException('This method is only usable with FPDF. Use TCPDF methods startTemplate() instead.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->page <= 0) {
|
||||||
|
throw new LogicException("You have to add at least a page first!");
|
||||||
|
}
|
||||||
|
|
||||||
if ($x == null)
|
if ($x == null)
|
||||||
$x = 0;
|
$x = 0;
|
||||||
@ -88,7 +99,7 @@ class FPDF_TPL extends FPDF {
|
|||||||
|
|
||||||
// Save settings
|
// Save settings
|
||||||
$this->tpl++;
|
$this->tpl++;
|
||||||
$tpl =& $this->tpls[$this->tpl];
|
$tpl =& $this->_tpls[$this->tpl];
|
||||||
$tpl = array(
|
$tpl = array(
|
||||||
'o_x' => $this->x,
|
'o_x' => $this->x,
|
||||||
'o_y' => $this->y,
|
'o_y' => $this->y,
|
||||||
@ -99,6 +110,10 @@ class FPDF_TPL extends FPDF {
|
|||||||
'o_rMargin' => $this->rMargin,
|
'o_rMargin' => $this->rMargin,
|
||||||
'o_h' => $this->h,
|
'o_h' => $this->h,
|
||||||
'o_w' => $this->w,
|
'o_w' => $this->w,
|
||||||
|
'o_FontFamily' => $this->FontFamily,
|
||||||
|
'o_FontStyle' => $this->FontStyle,
|
||||||
|
'o_FontSizePt' => $this->FontSizePt,
|
||||||
|
'o_FontSize' => $this->FontSize,
|
||||||
'buffer' => '',
|
'buffer' => '',
|
||||||
'x' => $x,
|
'x' => $x,
|
||||||
'y' => $y,
|
'y' => $y,
|
||||||
@ -108,28 +123,42 @@ class FPDF_TPL extends FPDF {
|
|||||||
|
|
||||||
$this->SetAutoPageBreak(false);
|
$this->SetAutoPageBreak(false);
|
||||||
|
|
||||||
// Define own high and width to calculate possitions correct
|
// Define own high and width to calculate correct positions
|
||||||
$this->h = $h;
|
$this->h = $h;
|
||||||
$this->w = $w;
|
$this->w = $w;
|
||||||
|
|
||||||
$this->_intpl = true;
|
$this->_inTpl = true;
|
||||||
$this->SetXY($x + $this->lMargin, $y + $this->tMargin);
|
$this->SetXY($x + $this->lMargin, $y + $this->tMargin);
|
||||||
$this->SetRightMargin($this->w - $w + $this->rMargin);
|
$this->SetRightMargin($this->w - $w + $this->rMargin);
|
||||||
|
|
||||||
|
if ($this->CurrentFont) {
|
||||||
|
$fontKey = $this->FontFamily . $this->FontStyle;
|
||||||
|
if ($fontKey) {
|
||||||
|
$this->_res['tpl'][$this->tpl]['fonts'][$fontKey] =& $this->fonts[$fontKey];
|
||||||
|
$this->_out(sprintf('BT /F%d %.2F Tf ET', $this->CurrentFont['i'], $this->FontSizePt));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $this->tpl;
|
return $this->tpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* End Template
|
* End template.
|
||||||
*
|
*
|
||||||
* This method ends a template and reset initiated variables on beginTemplate.
|
* This method ends a template and reset initiated variables collected in {@link beginTemplate()}.
|
||||||
*
|
*
|
||||||
* @return mixed If a template is opened, the ID is returned. If not a false is returned.
|
* @return int|boolean If a template is opened, the id is returned. If not a false is returned.
|
||||||
*/
|
*/
|
||||||
function endTemplate() {
|
public function endTemplate()
|
||||||
if ($this->_intpl) {
|
{
|
||||||
$this->_intpl = false;
|
if (is_subclass_of($this, 'TCPDF')) {
|
||||||
$tpl =& $this->tpls[$this->tpl];
|
$args = func_get_args();
|
||||||
|
return call_user_func_array(array($this, 'TCPDF::endTemplate'), $args);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->_inTpl) {
|
||||||
|
$this->_inTpl = false;
|
||||||
|
$tpl = $this->_tpls[$this->tpl];
|
||||||
$this->SetXY($tpl['o_x'], $tpl['o_y']);
|
$this->SetXY($tpl['o_x'], $tpl['o_y']);
|
||||||
$this->tMargin = $tpl['o_tMargin'];
|
$this->tMargin = $tpl['o_tMargin'];
|
||||||
$this->lMargin = $tpl['o_lMargin'];
|
$this->lMargin = $tpl['o_lMargin'];
|
||||||
@ -138,6 +167,15 @@ class FPDF_TPL extends FPDF {
|
|||||||
$this->w = $tpl['o_w'];
|
$this->w = $tpl['o_w'];
|
||||||
$this->SetAutoPageBreak($tpl['o_AutoPageBreak'], $tpl['o_bMargin']);
|
$this->SetAutoPageBreak($tpl['o_AutoPageBreak'], $tpl['o_bMargin']);
|
||||||
|
|
||||||
|
$this->FontFamily = $tpl['o_FontFamily'];
|
||||||
|
$this->FontStyle = $tpl['o_FontStyle'];
|
||||||
|
$this->FontSizePt = $tpl['o_FontSizePt'];
|
||||||
|
$this->FontSize = $tpl['o_FontSize'];
|
||||||
|
|
||||||
|
$fontKey = $this->FontFamily . $this->FontStyle;
|
||||||
|
if ($fontKey)
|
||||||
|
$this->CurrentFont =& $this->fonts[$fontKey];
|
||||||
|
|
||||||
return $this->tpl;
|
return $this->tpl;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
@ -145,118 +183,131 @@ class FPDF_TPL extends FPDF {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use a Template in current Page or other Template
|
* Use a template in current page or other template.
|
||||||
*
|
*
|
||||||
* You can use a template in a page or in another template.
|
* You can use a template in a page or in another template.
|
||||||
* You can give the used template a new size like you use the Image()-method.
|
* You can give the used template a new size.
|
||||||
* All parameters are optional. The width or height is calculated automaticaly
|
* All parameters are optional. The width or height is calculated automatically
|
||||||
* if one is given. If no parameter is given the origin size as defined in
|
* if one is given. If no parameter is given the origin size as defined in
|
||||||
* beginTemplate() is used.
|
* {@link beginTemplate()} method is used.
|
||||||
|
*
|
||||||
* The calculated or used width and height are returned as an array.
|
* The calculated or used width and height are returned as an array.
|
||||||
*
|
*
|
||||||
* @param int $tplidx A valid template-Id
|
* @param int $tplIdx A valid template-id
|
||||||
* @param int $_x The x-position
|
* @param int $x The x-position
|
||||||
* @param int $_y The y-position
|
* @param int $y The y-position
|
||||||
* @param int $_w The new width of the template
|
* @param int $w The new width of the template
|
||||||
* @param int $_h The new height of the template
|
* @param int $h The new height of the template
|
||||||
* @retrun array The height and width of the template
|
* @return array The height and width of the template (array('w' => ..., 'h' => ...))
|
||||||
|
* @throws LogicException|InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
function useTemplate($tplidx, $_x=null, $_y=null, $_w=0, $_h=0) {
|
public function useTemplate($tplIdx, $x = null, $y = null, $w = 0, $h = 0)
|
||||||
if ($this->page <= 0)
|
{
|
||||||
$this->error("You have to add a page to fpdf first!");
|
if ($this->page <= 0) {
|
||||||
|
throw new LogicException('You have to add at least a page first!');
|
||||||
if (!isset($this->tpls[$tplidx]))
|
|
||||||
$this->error("Template does not exist!");
|
|
||||||
|
|
||||||
if ($this->_intpl) {
|
|
||||||
$this->_res['tpl'][$this->tpl]['tpls'][$tplidx] =& $this->tpls[$tplidx];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$tpl =& $this->tpls[$tplidx];
|
if (!isset($this->_tpls[$tplIdx])) {
|
||||||
$w = $tpl['w'];
|
throw new InvalidArgumentException('Template does not exist!');
|
||||||
$h = $tpl['h'];
|
}
|
||||||
|
|
||||||
if ($_x == null)
|
if ($this->_inTpl) {
|
||||||
$_x = 0;
|
$this->_res['tpl'][$this->tpl]['tpls'][$tplIdx] =& $this->_tpls[$tplIdx];
|
||||||
if ($_y == null)
|
}
|
||||||
$_y = 0;
|
|
||||||
|
|
||||||
$_x += $tpl['x'];
|
$tpl = $this->_tpls[$tplIdx];
|
||||||
$_y += $tpl['y'];
|
$_w = $tpl['w'];
|
||||||
|
$_h = $tpl['h'];
|
||||||
|
|
||||||
$wh = $this->getTemplateSize($tplidx, $_w, $_h);
|
if ($x == null) {
|
||||||
$_w = $wh['w'];
|
$x = 0;
|
||||||
$_h = $wh['h'];
|
}
|
||||||
|
|
||||||
$tData = array(
|
if ($y == null) {
|
||||||
|
$y = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
$x += $tpl['x'];
|
||||||
|
$y += $tpl['y'];
|
||||||
|
|
||||||
|
$wh = $this->getTemplateSize($tplIdx, $w, $h);
|
||||||
|
$w = $wh['w'];
|
||||||
|
$h = $wh['h'];
|
||||||
|
|
||||||
|
$tplData = array(
|
||||||
'x' => $this->x,
|
'x' => $this->x,
|
||||||
'y' => $this->y,
|
'y' => $this->y,
|
||||||
'w' => $_w,
|
'w' => $w,
|
||||||
'h' => $_h,
|
'h' => $h,
|
||||||
'scaleX' => ($_w/$w),
|
'scaleX' => ($w / $_w),
|
||||||
'scaleY' => ($_h/$h),
|
'scaleY' => ($h / $_h),
|
||||||
'tx' => $_x,
|
'tx' => $x,
|
||||||
'ty' => ($this->h-$_y-$_h),
|
'ty' => ($this->h - $y - $h),
|
||||||
'lty' => ($this->h-$_y-$_h) - ($this->h-$h) * ($_h/$h)
|
'lty' => ($this->h - $y - $h) - ($this->h - $_h) * ($h / $_h)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->_out(sprintf("q %.4F 0 0 %.4F %.4F %.4F cm", $tData['scaleX'], $tData['scaleY'], $tData['tx']*$this->k, $tData['ty']*$this->k)); // Translate
|
$this->_out(sprintf('q %.4F 0 0 %.4F %.4F %.4F cm',
|
||||||
$this->_out(sprintf('%s%d Do Q', $this->tplprefix, $tplidx));
|
$tplData['scaleX'], $tplData['scaleY'], $tplData['tx'] * $this->k, $tplData['ty'] * $this->k)
|
||||||
|
); // Translate
|
||||||
|
$this->_out(sprintf('%s%d Do Q', $this->tplPrefix, $tplIdx));
|
||||||
|
|
||||||
$this->lastUsedTemplateData = $tData;
|
$this->lastUsedTemplateData = $tplData;
|
||||||
|
|
||||||
return array("w" => $_w, "h" => $_h);
|
return array('w' => $w, 'h' => $h);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get The calculated Size of a Template
|
* Get the calculated size of a template.
|
||||||
*
|
*
|
||||||
* If one size is given, this method calculates the other one.
|
* If one size is given, this method calculates the other one.
|
||||||
*
|
*
|
||||||
* @param int $tplidx A valid template-Id
|
* @param int $tplIdx A valid template-id
|
||||||
* @param int $_w The width of the template
|
* @param int $w The width of the template
|
||||||
* @param int $_h The height of the template
|
* @param int $h The height of the template
|
||||||
* @return array The height and width of the template
|
* @return array The height and width of the template (array('w' => ..., 'h' => ...))
|
||||||
*/
|
*/
|
||||||
function getTemplateSize($tplidx, $_w=0, $_h=0) {
|
public function getTemplateSize($tplIdx, $w = 0, $h = 0)
|
||||||
if (!$this->tpls[$tplidx])
|
{
|
||||||
|
if (!isset($this->_tpls[$tplIdx]))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$tpl =& $this->tpls[$tplidx];
|
$tpl = $this->_tpls[$tplIdx];
|
||||||
$w = $tpl['w'];
|
$_w = $tpl['w'];
|
||||||
$h = $tpl['h'];
|
$_h = $tpl['h'];
|
||||||
|
|
||||||
if ($_w == 0 and $_h == 0) {
|
if ($w == 0 && $h == 0) {
|
||||||
$_w = $w;
|
$w = $_w;
|
||||||
$_h = $h;
|
$h = $_h;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($_w==0)
|
if ($w == 0)
|
||||||
$_w = $_h*$w/$h;
|
$w = $h * $_w / $_h;
|
||||||
if($_h==0)
|
if($h == 0)
|
||||||
$_h = $_w*$h/$w;
|
$h = $w * $_h / $_w;
|
||||||
|
|
||||||
return array("w" => $_w, "h" => $_h);
|
return array("w" => $w, "h" => $h);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* See FPDF/TCPDF-Documentation ;-)
|
* Sets the font used to print character strings.
|
||||||
|
*
|
||||||
|
* See FPDF/TCPDF documentation.
|
||||||
|
*
|
||||||
|
* @see http://fpdf.org/en/doc/setfont.htm
|
||||||
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#afd56e360c43553830d543323e81bc045
|
||||||
*/
|
*/
|
||||||
function SetFont($family, $style='', $size=0, $fontfile='') {
|
public function SetFont($family, $style = '', $size = null, $fontfile = '', $subset = 'default', $out = true)
|
||||||
if (!is_subclass_of($this, 'TCPDF') && func_num_args() > 3) {
|
{
|
||||||
$this->Error('More than 3 arguments for the SetFont method are only available in TCPDF.');
|
if (is_subclass_of($this, 'TCPDF')) {
|
||||||
|
$args = func_get_args();
|
||||||
|
return call_user_func_array(array($this, 'TCPDF::SetFont'), $args);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* force the resetting of font changes in a template
|
|
||||||
*/
|
|
||||||
if ($this->_intpl)
|
|
||||||
$this->FontFamily = '';
|
|
||||||
|
|
||||||
parent::SetFont($family, $style, $size, $fontfile);
|
parent::SetFont($family, $style, $size);
|
||||||
|
|
||||||
$fontkey = $this->FontFamily . $this->FontStyle;
|
$fontkey = $this->FontFamily . $this->FontStyle;
|
||||||
|
|
||||||
if ($this->_intpl) {
|
if ($this->_inTpl) {
|
||||||
$this->_res['tpl'][$this->tpl]['fonts'][$fontkey] =& $this->fonts[$fontkey];
|
$this->_res['tpl'][$this->tpl]['fonts'][$fontkey] =& $this->fonts[$fontkey];
|
||||||
} else {
|
} else {
|
||||||
$this->_res['page'][$this->page]['fonts'][$fontkey] =& $this->fonts[$fontkey];
|
$this->_res['page'][$this->page]['fonts'][$fontkey] =& $this->fonts[$fontkey];
|
||||||
@ -264,76 +315,143 @@ class FPDF_TPL extends FPDF {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* See FPDF/TCPDF-Documentation ;-)
|
* Puts an image.
|
||||||
|
*
|
||||||
|
* See FPDF/TCPDF documentation.
|
||||||
|
*
|
||||||
|
* @see http://fpdf.org/en/doc/image.htm
|
||||||
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a714c2bee7d6b39d4d6d304540c761352
|
||||||
*/
|
*/
|
||||||
function Image($file, $x, $y, $w=0, $h=0, $type='', $link='', $align='', $resize=false, $dpi=300, $palign='', $ismask=false, $imgmask=false, $border=0) {
|
public function Image(
|
||||||
if (!is_subclass_of($this, 'TCPDF') && func_num_args() > 7) {
|
$file, $x = '', $y = '', $w = 0, $h = 0, $type = '', $link = '', $align = '', $resize = false,
|
||||||
$this->Error('More than 7 arguments for the Image method are only available in TCPDF.');
|
$dpi = 300, $palign = '', $ismask = false, $imgmask = false, $border = 0, $fitbox = false,
|
||||||
|
$hidden = false, $fitonpage = false, $alt = false, $altimgs = array()
|
||||||
|
)
|
||||||
|
{
|
||||||
|
if (is_subclass_of($this, 'TCPDF')) {
|
||||||
|
$args = func_get_args();
|
||||||
|
return call_user_func_array(array($this, 'TCPDF::Image'), $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
parent::Image($file, $x, $y, $w, $h, $type, $link, $align, $resize, $dpi, $palign, $ismask, $imgmask, $border);
|
$ret = parent::Image($file, $x, $y, $w, $h, $type, $link);
|
||||||
if ($this->_intpl) {
|
if ($this->_inTpl) {
|
||||||
$this->_res['tpl'][$this->tpl]['images'][$file] =& $this->images[$file];
|
$this->_res['tpl'][$this->tpl]['images'][$file] =& $this->images[$file];
|
||||||
} else {
|
} else {
|
||||||
$this->_res['page'][$this->page]['images'][$file] =& $this->images[$file];
|
$this->_res['page'][$this->page]['images'][$file] =& $this->images[$file];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* See FPDF-Documentation ;-)
|
* Adds a new page to the document.
|
||||||
*
|
*
|
||||||
* AddPage is not available when you're "in" a template.
|
* See FPDF/TCPDF documentation.
|
||||||
|
*
|
||||||
|
* This method cannot be used if you'd started a template.
|
||||||
|
*
|
||||||
|
* @see http://fpdf.org/en/doc/addpage.htm
|
||||||
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a5171e20b366b74523709d84c349c1ced
|
||||||
*/
|
*/
|
||||||
function AddPage($orientation='', $format='') {
|
public function AddPage($orientation = '', $format = '', $rotationOrKeepmargins = false, $tocpage = false)
|
||||||
if ($this->_intpl)
|
{
|
||||||
$this->Error('Adding pages in templates isn\'t possible!');
|
if (is_subclass_of($this, 'TCPDF')) {
|
||||||
parent::AddPage($orientation, $format);
|
$args = func_get_args();
|
||||||
|
return call_user_func_array(array($this, 'TCPDF::AddPage'), $args);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->_inTpl) {
|
||||||
|
throw new LogicException('Adding pages in templates is not possible!');
|
||||||
|
}
|
||||||
|
|
||||||
|
parent::AddPage($orientation, $format, $rotationOrKeepmargins);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Preserve adding Links in Templates ...won't work
|
* Puts a link on a rectangular area of the page.
|
||||||
|
*
|
||||||
|
* Overwritten because adding links in a template will not work.
|
||||||
|
*
|
||||||
|
* @see http://fpdf.org/en/doc/link.htm
|
||||||
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#ab87bf1826384fbfe30eb499d42f1d994
|
||||||
*/
|
*/
|
||||||
function Link($x, $y, $w, $h, $link, $spaces=0) {
|
public function Link($x, $y, $w, $h, $link, $spaces = 0)
|
||||||
if (!is_subclass_of($this, 'TCPDF') && func_num_args() > 5) {
|
{
|
||||||
$this->Error('More than 7 arguments for the Image method are only available in TCPDF.');
|
if (is_subclass_of($this, 'TCPDF')) {
|
||||||
|
$args = func_get_args();
|
||||||
|
return call_user_func_array(array($this, 'TCPDF::Link'), $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->_intpl)
|
if ($this->_inTpl) {
|
||||||
$this->Error('Using links in templates aren\'t possible!');
|
throw new LogicException('Using links in templates is not posible!');
|
||||||
parent::Link($x, $y, $w, $h, $link, $spaces);
|
}
|
||||||
|
|
||||||
|
parent::Link($x, $y, $w, $h, $link);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new internal link and returns its identifier.
|
||||||
|
*
|
||||||
|
* Overwritten because adding links in a template will not work.
|
||||||
|
*
|
||||||
|
* @see http://fpdf.org/en/doc/addlink.htm
|
||||||
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a749522038ed7786c3e1701435dcb891e
|
||||||
|
*/
|
||||||
|
public function AddLink()
|
||||||
|
{
|
||||||
|
if (is_subclass_of($this, 'TCPDF')) {
|
||||||
|
$args = func_get_args();
|
||||||
|
return call_user_func_array(array($this, 'TCPDF::AddLink'), $args);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->_inTpl) {
|
||||||
|
throw new LogicException('Adding links in templates is not possible!');
|
||||||
}
|
}
|
||||||
|
|
||||||
function AddLink() {
|
|
||||||
if ($this->_intpl)
|
|
||||||
$this->Error('Adding links in templates aren\'t possible!');
|
|
||||||
return parent::AddLink();
|
return parent::AddLink();
|
||||||
}
|
}
|
||||||
|
|
||||||
function SetLink($link, $y=0, $page=-1) {
|
/**
|
||||||
if ($this->_intpl)
|
* Defines the page and position a link points to.
|
||||||
$this->Error('Setting links in templates aren\'t possible!');
|
*
|
||||||
|
* Overwritten because adding links in a template will not work.
|
||||||
|
*
|
||||||
|
* @see http://fpdf.org/en/doc/setlink.htm
|
||||||
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#ace5be60e7857953ea5e2b89cb90df0ae
|
||||||
|
*/
|
||||||
|
public function SetLink($link, $y = 0, $page = -1)
|
||||||
|
{
|
||||||
|
if (is_subclass_of($this, 'TCPDF')) {
|
||||||
|
$args = func_get_args();
|
||||||
|
return call_user_func_array(array($this, 'TCPDF::SetLink'), $args);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->_inTpl) {
|
||||||
|
throw new LogicException('Setting links in templates is not possible!');
|
||||||
|
}
|
||||||
|
|
||||||
parent::SetLink($link, $y, $page);
|
parent::SetLink($link, $y, $page);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private Method that writes the form xobjects
|
* Writes the form XObjects to the PDF document.
|
||||||
*/
|
*/
|
||||||
function _putformxobjects() {
|
protected function _putformxobjects()
|
||||||
|
{
|
||||||
$filter=($this->compress) ? '/Filter /FlateDecode ' : '';
|
$filter=($this->compress) ? '/Filter /FlateDecode ' : '';
|
||||||
reset($this->tpls);
|
reset($this->_tpls);
|
||||||
foreach($this->tpls AS $tplidx => $tpl) {
|
|
||||||
|
|
||||||
$p=($this->compress) ? gzcompress($tpl['buffer']) : $tpl['buffer'];
|
foreach($this->_tpls AS $tplIdx => $tpl) {
|
||||||
$this->_newobj();
|
$this->_newobj();
|
||||||
$this->tpls[$tplidx]['n'] = $this->n;
|
$this->_tpls[$tplIdx]['n'] = $this->n;
|
||||||
$this->_out('<<'.$filter.'/Type /XObject');
|
$this->_out('<<'.$filter.'/Type /XObject');
|
||||||
$this->_out('/Subtype /Form');
|
$this->_out('/Subtype /Form');
|
||||||
$this->_out('/FormType 1');
|
$this->_out('/FormType 1');
|
||||||
$this->_out(sprintf('/BBox [%.2F %.2F %.2F %.2F]',
|
$this->_out(sprintf('/BBox [%.2F %.2F %.2F %.2F]',
|
||||||
// llx
|
// llx
|
||||||
$tpl['x'],
|
$tpl['x'] * $this->k,
|
||||||
// lly
|
// lly
|
||||||
-$tpl['y'],
|
-$tpl['y'] * $this->k,
|
||||||
// urx
|
// urx
|
||||||
($tpl['w'] + $tpl['x']) * $this->k,
|
($tpl['w'] + $tpl['x']) * $this->k,
|
||||||
// ury
|
// ury
|
||||||
@ -347,61 +465,82 @@ class FPDF_TPL extends FPDF {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->_out('/Resources ');
|
$this->_out('/Resources ');
|
||||||
|
|
||||||
$this->_out('<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
|
$this->_out('<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
|
||||||
if (isset($this->_res['tpl'][$tplidx]['fonts']) && count($this->_res['tpl'][$tplidx]['fonts'])) {
|
|
||||||
|
if (isset($this->_res['tpl'][$tplIdx])) {
|
||||||
|
$res = $this->_res['tpl'][$tplIdx];
|
||||||
|
if (isset($res['fonts']) && count($res['fonts'])) {
|
||||||
$this->_out('/Font <<');
|
$this->_out('/Font <<');
|
||||||
foreach($this->_res['tpl'][$tplidx]['fonts'] as $font)
|
|
||||||
|
foreach($res['fonts'] as $font) {
|
||||||
$this->_out('/F' . $font['i'] . ' ' . $font['n'] . ' 0 R');
|
$this->_out('/F' . $font['i'] . ' ' . $font['n'] . ' 0 R');
|
||||||
|
}
|
||||||
|
|
||||||
$this->_out('>>');
|
$this->_out('>>');
|
||||||
}
|
}
|
||||||
if(isset($this->_res['tpl'][$tplidx]['images']) && count($this->_res['tpl'][$tplidx]['images']) ||
|
|
||||||
isset($this->_res['tpl'][$tplidx]['tpls']) && count($this->_res['tpl'][$tplidx]['tpls']))
|
if(isset($res['images']) || isset($res['tpls'])) {
|
||||||
{
|
|
||||||
$this->_out('/XObject <<');
|
$this->_out('/XObject <<');
|
||||||
if (isset($this->_res['tpl'][$tplidx]['images']) && count($this->_res['tpl'][$tplidx]['images'])) {
|
|
||||||
foreach($this->_res['tpl'][$tplidx]['images'] as $image)
|
if (isset($res['images'])) {
|
||||||
|
foreach($res['images'] as $image)
|
||||||
$this->_out('/I' . $image['i'] . ' ' . $image['n'] . ' 0 R');
|
$this->_out('/I' . $image['i'] . ' ' . $image['n'] . ' 0 R');
|
||||||
}
|
}
|
||||||
if (isset($this->_res['tpl'][$tplidx]['tpls']) && count($this->_res['tpl'][$tplidx]['tpls'])) {
|
|
||||||
foreach($this->_res['tpl'][$tplidx]['tpls'] as $i => $tpl)
|
if (isset($res['tpls'])) {
|
||||||
$this->_out($this->tplprefix.$i.' '.$tpl['n'].' 0 R');
|
foreach($res['tpls'] as $i => $_tpl)
|
||||||
|
$this->_out($this->tplPrefix . $i . ' ' . $_tpl['n'] . ' 0 R');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_out('>>');
|
$this->_out('>>');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$this->_out('>>');
|
$this->_out('>>');
|
||||||
|
|
||||||
$this->_out('/Length '.strlen($p).' >>');
|
$buffer = ($this->compress) ? gzcompress($tpl['buffer']) : $tpl['buffer'];
|
||||||
$this->_putstream($p);
|
$this->_out('/Length ' . strlen($buffer) . ' >>');
|
||||||
|
$this->_putstream($buffer);
|
||||||
$this->_out('endobj');
|
$this->_out('endobj');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Overwritten to add _putformxobjects() after _putimages()
|
* Output images.
|
||||||
*
|
*
|
||||||
|
* Overwritten to add {@link _putformxobjects()} after _putimages().
|
||||||
*/
|
*/
|
||||||
function _putimages() {
|
public function _putimages()
|
||||||
|
{
|
||||||
parent::_putimages();
|
parent::_putimages();
|
||||||
$this->_putformxobjects();
|
$this->_putformxobjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
function _putxobjectdict() {
|
/**
|
||||||
|
* Writes the references of XObject resources to the document.
|
||||||
|
*
|
||||||
|
* Overwritten to add the the templates to the XObject resource dictionary.
|
||||||
|
*/
|
||||||
|
public function _putxobjectdict()
|
||||||
|
{
|
||||||
parent::_putxobjectdict();
|
parent::_putxobjectdict();
|
||||||
|
|
||||||
if (count($this->tpls)) {
|
foreach($this->_tpls as $tplIdx => $tpl) {
|
||||||
foreach($this->tpls as $tplidx => $tpl) {
|
$this->_out(sprintf('%s%d %d 0 R', $this->tplPrefix, $tplIdx, $tpl['n']));
|
||||||
$this->_out(sprintf('%s%d %d 0 R', $this->tplprefix, $tplidx, $tpl['n']));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private Method
|
* Writes bytes to the resulting document.
|
||||||
|
*
|
||||||
|
* Overwritten to delegate the data to the template buffer.
|
||||||
|
*
|
||||||
|
* @param string $s
|
||||||
*/
|
*/
|
||||||
function _out($s) {
|
public function _out($s)
|
||||||
if ($this->state==2 && $this->_intpl) {
|
{
|
||||||
$this->tpls[$this->tpl]['buffer'] .= $s."\n";
|
if ($this->state == 2 && $this->_inTpl) {
|
||||||
|
$this->_tpls[$this->tpl]['buffer'] .= $s . "\n";
|
||||||
} else {
|
} else {
|
||||||
parent::_out($s);
|
parent::_out($s);
|
||||||
}
|
}
|
||||||
|
584
share/pnp/application/vendor/fpdf/fpdi.php
vendored
Normal file → Executable file
584
share/pnp/application/vendor/fpdf/fpdi.php
vendored
Normal file → Executable file
@ -1,127 +1,196 @@
|
|||||||
<?php
|
<?php
|
||||||
//
|
/**
|
||||||
// FPDI - Version 1.3.1
|
* This file is part of FPDI
|
||||||
//
|
*
|
||||||
// Copyright 2004-2009 Setasign - Jan Slabon
|
* @package FPDI
|
||||||
//
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
// you may not use this file except in compliance with the License.
|
* @version 1.6.1
|
||||||
// You may obtain a copy of the License at
|
*/
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
//
|
|
||||||
|
|
||||||
define('FPDI_VERSION','1.3.1');
|
if (!class_exists('FPDF_TPL')) {
|
||||||
|
require_once('fpdf_tpl.php');
|
||||||
// Check for TCPDF and remap TCPDF to FPDF
|
|
||||||
if (class_exists('TCPDF')) {
|
|
||||||
require_once('fpdi2tcpdf_bridge.php');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once('fpdf_tpl.php');
|
/**
|
||||||
require_once('fpdi_pdf_parser.php');
|
* Class FPDI
|
||||||
|
*/
|
||||||
|
class FPDI extends FPDF_TPL
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* FPDI version
|
||||||
|
*
|
||||||
|
* @string
|
||||||
|
*/
|
||||||
|
const VERSION = '1.6.1';
|
||||||
|
|
||||||
|
|
||||||
class FPDI extends FPDF_TPL {
|
|
||||||
/**
|
/**
|
||||||
* Actual filename
|
* Actual filename
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
var $current_filename;
|
public $currentFilename;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parser-Objects
|
* Parser-Objects
|
||||||
* @var array
|
*
|
||||||
|
* @var fpdi_pdf_parser[]
|
||||||
*/
|
*/
|
||||||
var $parsers;
|
public $parsers = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Current parser
|
* Current parser
|
||||||
* @var object
|
*
|
||||||
|
* @var fpdi_pdf_parser
|
||||||
*/
|
*/
|
||||||
var $current_parser;
|
public $currentParser;
|
||||||
|
|
||||||
/**
|
|
||||||
* object stack
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
var $_obj_stack;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* done object stack
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
var $_don_obj_stack;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Current Object Id.
|
|
||||||
* @var integer
|
|
||||||
*/
|
|
||||||
var $_current_obj_id;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name of the last imported page box
|
* The name of the last imported page box
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
var $lastUsedPageBox;
|
public $lastUsedPageBox;
|
||||||
|
|
||||||
var $_importedPages = array();
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set a source-file
|
* Object stack
|
||||||
*
|
*
|
||||||
* @param string $filename a valid filename
|
* @var array
|
||||||
* @return int number of available pages
|
|
||||||
*/
|
*/
|
||||||
function setSourceFile($filename) {
|
protected $_objStack;
|
||||||
$this->current_filename = $filename;
|
|
||||||
$fn =& $this->current_filename;
|
|
||||||
|
|
||||||
if (!isset($this->parsers[$fn]))
|
/**
|
||||||
$this->parsers[$fn] = new fpdi_pdf_parser($fn, $this);
|
* Done object stack
|
||||||
$this->current_parser =& $this->parsers[$fn];
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $_doneObjStack;
|
||||||
|
|
||||||
return $this->parsers[$fn]->getPageCount();
|
/**
|
||||||
|
* Current Object Id.
|
||||||
|
*
|
||||||
|
* @var integer
|
||||||
|
*/
|
||||||
|
protected $_currentObjId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cache for imported pages/template ids
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $_importedPages = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set a source-file.
|
||||||
|
*
|
||||||
|
* Depending on the PDF version of the used document the PDF version of the resulting document will
|
||||||
|
* be adjusted to the higher version.
|
||||||
|
*
|
||||||
|
* @param string $filename A valid path to the PDF document from which pages should be imported from
|
||||||
|
* @return int The number of pages in the document
|
||||||
|
*/
|
||||||
|
public function setSourceFile($filename)
|
||||||
|
{
|
||||||
|
$_filename = realpath($filename);
|
||||||
|
if (false !== $_filename)
|
||||||
|
$filename = $_filename;
|
||||||
|
|
||||||
|
$this->currentFilename = $filename;
|
||||||
|
|
||||||
|
if (!isset($this->parsers[$filename])) {
|
||||||
|
$this->parsers[$filename] = $this->_getPdfParser($filename);
|
||||||
|
$this->setPdfVersion(
|
||||||
|
max($this->getPdfVersion(), $this->parsers[$filename]->getPdfVersion())
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->currentParser = $this->parsers[$filename];
|
||||||
|
|
||||||
|
return $this->parsers[$filename]->getPageCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Import a page
|
* Returns a PDF parser object
|
||||||
*
|
*
|
||||||
* @param int $pageno pagenumber
|
* @param string $filename
|
||||||
* @return int Index of imported page - to use with fpdf_tpl::useTemplate()
|
* @return fpdi_pdf_parser
|
||||||
*/
|
*/
|
||||||
function importPage($pageno, $boxName='/CropBox') {
|
protected function _getPdfParser($filename)
|
||||||
if ($this->_intpl) {
|
{
|
||||||
return $this->error('Please import the desired pages before creating a new template.');
|
if (!class_exists('fpdi_pdf_parser')) {
|
||||||
|
require_once('fpdi_pdf_parser.php');
|
||||||
|
}
|
||||||
|
return new fpdi_pdf_parser($filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
$fn =& $this->current_filename;
|
/**
|
||||||
|
* Get the current PDF version.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getPdfVersion()
|
||||||
|
{
|
||||||
|
return $this->PDFVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the PDF version.
|
||||||
|
*
|
||||||
|
* @param string $version
|
||||||
|
*/
|
||||||
|
public function setPdfVersion($version = '1.3')
|
||||||
|
{
|
||||||
|
$this->PDFVersion = sprintf('%.1F', $version);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Import a page.
|
||||||
|
*
|
||||||
|
* The second parameter defines the bounding box that should be used to transform the page into a
|
||||||
|
* form XObject.
|
||||||
|
*
|
||||||
|
* Following values are available: MediaBox, CropBox, BleedBox, TrimBox, ArtBox.
|
||||||
|
* If a box is not especially defined its default box will be used:
|
||||||
|
*
|
||||||
|
* <ul>
|
||||||
|
* <li>CropBox: Default -> MediaBox</li>
|
||||||
|
* <li>BleedBox: Default -> CropBox</li>
|
||||||
|
* <li>TrimBox: Default -> CropBox</li>
|
||||||
|
* <li>ArtBox: Default -> CropBox</li>
|
||||||
|
* </ul>
|
||||||
|
*
|
||||||
|
* It is possible to get the used page box by the {@link getLastUsedPageBox()} method.
|
||||||
|
*
|
||||||
|
* @param int $pageNo The page number
|
||||||
|
* @param string $boxName The boundary box to use when transforming the page into a form XObject
|
||||||
|
* @param boolean $groupXObject Define the form XObject as a group XObject to support transparency (if used)
|
||||||
|
* @return int An id of the imported page/template to use with e.g. fpdf_tpl::useTemplate()
|
||||||
|
* @throws LogicException|InvalidArgumentException
|
||||||
|
* @see getLastUsedPageBox()
|
||||||
|
*/
|
||||||
|
public function importPage($pageNo, $boxName = 'CropBox', $groupXObject = true)
|
||||||
|
{
|
||||||
|
if ($this->_inTpl) {
|
||||||
|
throw new LogicException('Please import the desired pages before creating a new template.');
|
||||||
|
}
|
||||||
|
|
||||||
|
$fn = $this->currentFilename;
|
||||||
|
$boxName = '/' . ltrim($boxName, '/');
|
||||||
|
|
||||||
// check if page already imported
|
// check if page already imported
|
||||||
$pageKey = $fn.((int)$pageno).$boxName;
|
$pageKey = $fn . '-' . ((int)$pageNo) . $boxName;
|
||||||
if (isset($this->_importedPages[$pageKey]))
|
if (isset($this->_importedPages[$pageKey])) {
|
||||||
return $this->_importedPages[$pageKey];
|
return $this->_importedPages[$pageKey];
|
||||||
|
}
|
||||||
|
|
||||||
$parser =& $this->parsers[$fn];
|
$parser = $this->parsers[$fn];
|
||||||
$parser->setPageno($pageno);
|
$parser->setPageNo($pageNo);
|
||||||
|
|
||||||
$this->tpl++;
|
if (!in_array($boxName, $parser->availableBoxes)) {
|
||||||
$this->tpls[$this->tpl] = array();
|
throw new InvalidArgumentException(sprintf('Unknown box: %s', $boxName));
|
||||||
$tpl =& $this->tpls[$this->tpl];
|
}
|
||||||
$tpl['parser'] =& $parser;
|
|
||||||
$tpl['resources'] = $parser->getPageResources();
|
|
||||||
$tpl['buffer'] = $parser->getContent();
|
|
||||||
|
|
||||||
if (!in_array($boxName, $parser->availableBoxes))
|
$pageBoxes = $parser->getPageBoxes($pageNo, $this->k);
|
||||||
return $this->Error(sprintf('Unknown box: %s', $boxName));
|
|
||||||
$pageboxes = $parser->getPageBoxes($pageno);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MediaBox
|
* MediaBox
|
||||||
@ -130,29 +199,39 @@ class FPDI extends FPDF_TPL {
|
|||||||
* TrimBox: Default -> CropBox
|
* TrimBox: Default -> CropBox
|
||||||
* ArtBox: Default -> CropBox
|
* ArtBox: Default -> CropBox
|
||||||
*/
|
*/
|
||||||
if (!isset($pageboxes[$boxName]) && ($boxName == '/BleedBox' || $boxName == '/TrimBox' || $boxName == '/ArtBox'))
|
if (!isset($pageBoxes[$boxName]) && ($boxName == '/BleedBox' || $boxName == '/TrimBox' || $boxName == '/ArtBox'))
|
||||||
$boxName = '/CropBox';
|
$boxName = '/CropBox';
|
||||||
if (!isset($pageboxes[$boxName]) && $boxName == '/CropBox')
|
if (!isset($pageBoxes[$boxName]) && $boxName == '/CropBox')
|
||||||
$boxName = '/MediaBox';
|
$boxName = '/MediaBox';
|
||||||
|
|
||||||
if (!isset($pageboxes[$boxName]))
|
if (!isset($pageBoxes[$boxName]))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$this->lastUsedPageBox = $boxName;
|
$this->lastUsedPageBox = $boxName;
|
||||||
|
|
||||||
$box = $pageboxes[$boxName];
|
$box = $pageBoxes[$boxName];
|
||||||
|
|
||||||
|
$this->tpl++;
|
||||||
|
$this->_tpls[$this->tpl] = array();
|
||||||
|
$tpl =& $this->_tpls[$this->tpl];
|
||||||
|
$tpl['parser'] = $parser;
|
||||||
|
$tpl['resources'] = $parser->getPageResources();
|
||||||
|
$tpl['buffer'] = $parser->getContent();
|
||||||
$tpl['box'] = $box;
|
$tpl['box'] = $box;
|
||||||
|
$tpl['groupXObject'] = $groupXObject;
|
||||||
|
if ($groupXObject) {
|
||||||
|
$this->setPdfVersion(max($this->getPdfVersion(), 1.4));
|
||||||
|
}
|
||||||
|
|
||||||
// To build an array that can be used by PDF_TPL::useTemplate()
|
// To build an array that can be used by PDF_TPL::useTemplate()
|
||||||
$this->tpls[$this->tpl] = array_merge($this->tpls[$this->tpl],$box);
|
$this->_tpls[$this->tpl] = array_merge($this->_tpls[$this->tpl], $box);
|
||||||
|
|
||||||
// An imported page will start at 0,0 everytime. Translation will be set in _putformxobjects()
|
// An imported page will start at 0,0 all the time. Translation will be set in _putformxobjects()
|
||||||
$tpl['x'] = 0;
|
$tpl['x'] = 0;
|
||||||
$tpl['y'] = 0;
|
$tpl['y'] = 0;
|
||||||
|
|
||||||
$page =& $parser->pages[$parser->pageno];
|
|
||||||
|
|
||||||
// handle rotated pages
|
// handle rotated pages
|
||||||
$rotation = $parser->getPageRotation($pageno);
|
$rotation = $parser->getPageRotation($pageNo);
|
||||||
$tpl['_rotationAngle'] = 0;
|
$tpl['_rotationAngle'] = 0;
|
||||||
if (isset($rotation[1]) && ($angle = $rotation[1] % 360) != 0) {
|
if (isset($rotation[1]) && ($angle = $rotation[1] % 360) != 0) {
|
||||||
$steps = $angle / 90;
|
$steps = $angle / 90;
|
||||||
@ -162,6 +241,9 @@ class FPDI extends FPDF_TPL {
|
|||||||
$tpl['w'] = $steps % 2 == 0 ? $_w : $_h;
|
$tpl['w'] = $steps % 2 == 0 ? $_w : $_h;
|
||||||
$tpl['h'] = $steps % 2 == 0 ? $_h : $_w;
|
$tpl['h'] = $steps % 2 == 0 ? $_h : $_w;
|
||||||
|
|
||||||
|
if ($angle < 0)
|
||||||
|
$angle += 360;
|
||||||
|
|
||||||
$tpl['_rotationAngle'] = $angle * -1;
|
$tpl['_rotationAngle'] = $angle * -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -170,73 +252,128 @@ class FPDI extends FPDF_TPL {
|
|||||||
return $this->tpl;
|
return $this->tpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLastUsedPageBox() {
|
/**
|
||||||
|
* Returns the last used page boundary box.
|
||||||
|
*
|
||||||
|
* @return string The used boundary box: MediaBox, CropBox, BleedBox, TrimBox or ArtBox
|
||||||
|
*/
|
||||||
|
public function getLastUsedPageBox()
|
||||||
|
{
|
||||||
return $this->lastUsedPageBox;
|
return $this->lastUsedPageBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
function useTemplate($tplidx, $_x=null, $_y=null, $_w=0, $_h=0, $adjustPageSize=false) {
|
/**
|
||||||
if ($adjustPageSize == true && is_null($_x) && is_null($_y)) {
|
* Use a template or imported page in current page or other template.
|
||||||
$size = $this->getTemplateSize($tplidx, $_w, $_h);
|
*
|
||||||
$format = array($size['w'], $size['h']);
|
* You can use a template in a page or in another template.
|
||||||
if ($format[0]!=$this->CurPageFormat[0] || $format[1]!=$this->CurPageFormat[1]) {
|
* You can give the used template a new size. All parameters are optional.
|
||||||
$this->w=$format[0];
|
* The width or height is calculated automatically if one is given. If no
|
||||||
$this->h=$format[1];
|
* parameter is given the origin size as defined in beginTemplate() or of
|
||||||
|
* the imported page is used.
|
||||||
|
*
|
||||||
|
* The calculated or used width and height are returned as an array.
|
||||||
|
*
|
||||||
|
* @param int $tplIdx A valid template-id
|
||||||
|
* @param int $x The x-position
|
||||||
|
* @param int $y The y-position
|
||||||
|
* @param int $w The new width of the template
|
||||||
|
* @param int $h The new height of the template
|
||||||
|
* @param boolean $adjustPageSize If set to true the current page will be resized to fit the dimensions
|
||||||
|
* of the template
|
||||||
|
*
|
||||||
|
* @return array The height and width of the template (array('w' => ..., 'h' => ...))
|
||||||
|
* @throws LogicException|InvalidArgumentException
|
||||||
|
*/
|
||||||
|
public function useTemplate($tplIdx, $x = null, $y = null, $w = 0, $h = 0, $adjustPageSize = false)
|
||||||
|
{
|
||||||
|
if ($adjustPageSize == true && is_null($x) && is_null($y)) {
|
||||||
|
$size = $this->getTemplateSize($tplIdx, $w, $h);
|
||||||
|
$orientation = $size['w'] > $size['h'] ? 'L' : 'P';
|
||||||
|
$size = array($size['w'], $size['h']);
|
||||||
|
|
||||||
|
if (is_subclass_of($this, 'TCPDF')) {
|
||||||
|
$this->setPageFormat($size, $orientation);
|
||||||
|
} else {
|
||||||
|
$size = $this->_getpagesize($size);
|
||||||
|
|
||||||
|
if($orientation != $this->CurOrientation ||
|
||||||
|
$size[0] != $this->CurPageSize[0] ||
|
||||||
|
$size[1] != $this->CurPageSize[1]
|
||||||
|
) {
|
||||||
|
// New size or orientation
|
||||||
|
if ($orientation=='P') {
|
||||||
|
$this->w = $size[0];
|
||||||
|
$this->h = $size[1];
|
||||||
|
} else {
|
||||||
|
$this->w = $size[1];
|
||||||
|
$this->h = $size[0];
|
||||||
|
}
|
||||||
$this->wPt = $this->w * $this->k;
|
$this->wPt = $this->w * $this->k;
|
||||||
$this->hPt = $this->h * $this->k;
|
$this->hPt = $this->h * $this->k;
|
||||||
$this->PageBreakTrigger = $this->h - $this->bMargin;
|
$this->PageBreakTrigger = $this->h - $this->bMargin;
|
||||||
$this->CurPageFormat=$format;
|
$this->CurOrientation = $orientation;
|
||||||
|
$this->CurPageSize = $size;
|
||||||
|
if (FPDF_VERSION >= 1.8) {
|
||||||
|
$this->PageInfo[$this->page]['size'] = array($this->wPt, $this->hPt);
|
||||||
|
} else {
|
||||||
$this->PageSizes[$this->page] = array($this->wPt, $this->hPt);
|
$this->PageSizes[$this->page] = array($this->wPt, $this->hPt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$this->_out('q 0 J 1 w 0 j 0 G 0 g'); // reset standard values
|
$this->_out('q 0 J 1 w 0 j 0 G 0 g'); // reset standard values
|
||||||
$s = parent::useTemplate($tplidx, $_x, $_y, $_w, $_h);
|
$size = parent::useTemplate($tplIdx, $x, $y, $w, $h);
|
||||||
$this->_out('Q');
|
$this->_out('Q');
|
||||||
return $s;
|
|
||||||
|
return $size;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private method, that rebuilds all needed objects of source files
|
* Copy all imported objects to the resulting document.
|
||||||
*/
|
*/
|
||||||
function _putimportedobjects() {
|
protected function _putimportedobjects()
|
||||||
if (is_array($this->parsers) && count($this->parsers) > 0) {
|
{
|
||||||
foreach($this->parsers AS $filename => $p) {
|
foreach($this->parsers AS $filename => $p) {
|
||||||
$this->current_parser =& $this->parsers[$filename];
|
$this->currentParser = $p;
|
||||||
if (isset($this->_obj_stack[$filename]) && is_array($this->_obj_stack[$filename])) {
|
if (!isset($this->_objStack[$filename]) || !is_array($this->_objStack[$filename])) {
|
||||||
while(($n = key($this->_obj_stack[$filename])) !== null) {
|
continue;
|
||||||
$nObj = $this->current_parser->pdf_resolve_object($this->current_parser->c,$this->_obj_stack[$filename][$n][1]);
|
}
|
||||||
|
while(($n = key($this->_objStack[$filename])) !== null) {
|
||||||
|
try {
|
||||||
|
$nObj = $this->currentParser->resolveObject($this->_objStack[$filename][$n][1]);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$nObj = array(pdf_parser::TYPE_OBJECT, pdf_parser::TYPE_NULL);
|
||||||
|
}
|
||||||
|
|
||||||
$this->_newobj($this->_obj_stack[$filename][$n][0]);
|
$this->_newobj($this->_objStack[$filename][$n][0]);
|
||||||
|
|
||||||
if ($nObj[0] == PDF_TYPE_STREAM) {
|
if ($nObj[0] == pdf_parser::TYPE_STREAM) {
|
||||||
$this->pdf_write_value ($nObj);
|
$this->_writeValue($nObj);
|
||||||
} else {
|
} else {
|
||||||
$this->pdf_write_value ($nObj[1]);
|
$this->_writeValue($nObj[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_out('endobj');
|
$this->_out("\nendobj");
|
||||||
$this->_obj_stack[$filename][$n] = null; // free memory
|
$this->_objStack[$filename][$n] = null; // free memory
|
||||||
unset($this->_obj_stack[$filename][$n]);
|
unset($this->_objStack[$filename][$n]);
|
||||||
reset($this->_obj_stack[$filename]);
|
reset($this->_objStack[$filename]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private Method that writes the form xobjects
|
* Writes the form XObjects to the PDF document.
|
||||||
*/
|
*/
|
||||||
function _putformxobjects() {
|
protected function _putformxobjects()
|
||||||
|
{
|
||||||
$filter = ($this->compress) ? '/Filter /FlateDecode ' : '';
|
$filter = ($this->compress) ? '/Filter /FlateDecode ' : '';
|
||||||
reset($this->tpls);
|
reset($this->_tpls);
|
||||||
foreach($this->tpls AS $tplidx => $tpl) {
|
foreach($this->_tpls AS $tplIdx => $tpl) {
|
||||||
$p=($this->compress) ? gzcompress($tpl['buffer']) : $tpl['buffer'];
|
|
||||||
$this->_newobj();
|
$this->_newobj();
|
||||||
$cN = $this->n; // TCPDF/Protection: rem current "n"
|
$currentN = $this->n; // TCPDF/Protection: rem current "n"
|
||||||
|
|
||||||
$this->tpls[$tplidx]['n'] = $this->n;
|
$this->_tpls[$tplIdx]['n'] = $this->n;
|
||||||
$this->_out('<<' . $filter . '/Type /XObject');
|
$this->_out('<<' . $filter . '/Type /XObject');
|
||||||
$this->_out('/Subtype /Form');
|
$this->_out('/Subtype /Form');
|
||||||
$this->_out('/FormType 1');
|
$this->_out('/FormType 1');
|
||||||
@ -273,7 +410,7 @@ class FPDI extends FPDF_TPL {
|
|||||||
break;
|
break;
|
||||||
case -270:
|
case -270:
|
||||||
$tx = $tpl['box']['ury'];
|
$tx = $tpl['box']['ury'];
|
||||||
$ty = 0;
|
$ty = -$tpl['box']['llx'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -294,80 +431,107 @@ class FPDI extends FPDF_TPL {
|
|||||||
$this->_out('/Resources ');
|
$this->_out('/Resources ');
|
||||||
|
|
||||||
if (isset($tpl['resources'])) {
|
if (isset($tpl['resources'])) {
|
||||||
$this->current_parser =& $tpl['parser'];
|
$this->currentParser = $tpl['parser'];
|
||||||
$this->pdf_write_value($tpl['resources']); // "n" will be changed
|
$this->_writeValue($tpl['resources']); // "n" will be changed
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$this->_out('<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
|
$this->_out('<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
|
||||||
if (isset($this->_res['tpl'][$tplidx]['fonts']) && count($this->_res['tpl'][$tplidx]['fonts'])) {
|
if (isset($this->_res['tpl'][$tplIdx])) {
|
||||||
|
$res = $this->_res['tpl'][$tplIdx];
|
||||||
|
|
||||||
|
if (isset($res['fonts']) && count($res['fonts'])) {
|
||||||
$this->_out('/Font <<');
|
$this->_out('/Font <<');
|
||||||
foreach($this->_res['tpl'][$tplidx]['fonts'] as $font)
|
foreach ($res['fonts'] as $font)
|
||||||
$this->_out('/F' . $font['i'] . ' ' . $font['n'] . ' 0 R');
|
$this->_out('/F' . $font['i'] . ' ' . $font['n'] . ' 0 R');
|
||||||
$this->_out('>>');
|
$this->_out('>>');
|
||||||
}
|
}
|
||||||
if(isset($this->_res['tpl'][$tplidx]['images']) && count($this->_res['tpl'][$tplidx]['images']) ||
|
if (isset($res['images']) && count($res['images']) ||
|
||||||
isset($this->_res['tpl'][$tplidx]['tpls']) && count($this->_res['tpl'][$tplidx]['tpls']))
|
isset($res['tpls']) && count($res['tpls']))
|
||||||
{
|
{
|
||||||
$this->_out('/XObject <<');
|
$this->_out('/XObject <<');
|
||||||
if (isset($this->_res['tpl'][$tplidx]['images']) && count($this->_res['tpl'][$tplidx]['images'])) {
|
if (isset($res['images'])) {
|
||||||
foreach($this->_res['tpl'][$tplidx]['images'] as $image)
|
foreach ($res['images'] as $image)
|
||||||
$this->_out('/I' . $image['i'] . ' ' . $image['n'] . ' 0 R');
|
$this->_out('/I' . $image['i'] . ' ' . $image['n'] . ' 0 R');
|
||||||
}
|
}
|
||||||
if (isset($this->_res['tpl'][$tplidx]['tpls']) && count($this->_res['tpl'][$tplidx]['tpls'])) {
|
if (isset($res['tpls'])) {
|
||||||
foreach($this->_res['tpl'][$tplidx]['tpls'] as $i => $tpl)
|
foreach ($res['tpls'] as $i => $_tpl)
|
||||||
$this->_out($this->tplprefix.$i.' '.$tpl['n'].' 0 R');
|
$this->_out($this->tplPrefix . $i . ' ' . $_tpl['n'] . ' 0 R');
|
||||||
}
|
}
|
||||||
$this->_out('>>');
|
$this->_out('>>');
|
||||||
}
|
}
|
||||||
$this->_out('>>');
|
$this->_out('>>');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$nN = $this->n; // TCPDF: rem new "n"
|
if (isset($tpl['groupXObject']) && $tpl['groupXObject']) {
|
||||||
$this->n = $cN; // TCPDF: reset to current "n"
|
$this->_out('/Group <</Type/Group/S/Transparency>>');
|
||||||
$this->_out('/Length '.strlen($p).' >>');
|
}
|
||||||
$this->_putstream($p);
|
|
||||||
|
$newN = $this->n; // TCPDF: rem new "n"
|
||||||
|
$this->n = $currentN; // TCPDF: reset to current "n"
|
||||||
|
|
||||||
|
$buffer = ($this->compress) ? gzcompress($tpl['buffer']) : $tpl['buffer'];
|
||||||
|
|
||||||
|
if (is_subclass_of($this, 'TCPDF')) {
|
||||||
|
$buffer = $this->_getrawstream($buffer);
|
||||||
|
$this->_out('/Length ' . strlen($buffer) . ' >>');
|
||||||
|
$this->_out("stream\n" . $buffer . "\nendstream");
|
||||||
|
} else {
|
||||||
|
$this->_out('/Length ' . strlen($buffer) . ' >>');
|
||||||
|
$this->_putstream($buffer);
|
||||||
|
}
|
||||||
$this->_out('endobj');
|
$this->_out('endobj');
|
||||||
$this->n = $nN; // TCPDF: reset to new "n"
|
$this->n = $newN; // TCPDF: reset to new "n"
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_putimportedobjects();
|
$this->_putimportedobjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Creates and optionally write the object definition to the document.
|
||||||
|
*
|
||||||
* Rewritten to handle existing own defined objects
|
* Rewritten to handle existing own defined objects
|
||||||
|
*
|
||||||
|
* @param bool $objId
|
||||||
|
* @param bool $onlyNewObj
|
||||||
|
* @return bool|int
|
||||||
*/
|
*/
|
||||||
function _newobj($obj_id=false,$onlynewobj=false) {
|
public function _newobj($objId = false, $onlyNewObj = false)
|
||||||
if (!$obj_id) {
|
{
|
||||||
$obj_id = ++$this->n;
|
if (!$objId) {
|
||||||
|
$objId = ++$this->n;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Begin a new object
|
// Begin a new object
|
||||||
if (!$onlynewobj) {
|
if (!$onlyNewObj) {
|
||||||
$this->offsets[$obj_id] = is_subclass_of($this, 'TCPDF') ? $this->bufferlen : strlen($this->buffer);
|
$this->offsets[$objId] = is_subclass_of($this, 'TCPDF') ? $this->bufferlen : strlen($this->buffer);
|
||||||
$this->_out($obj_id.' 0 obj');
|
$this->_out($objId . ' 0 obj');
|
||||||
$this->_current_obj_id = $obj_id; // for later use with encryption
|
$this->_currentObjId = $objId; // for later use with encryption
|
||||||
}
|
}
|
||||||
return $obj_id;
|
|
||||||
|
return $objId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes a value
|
* Writes a PDF value to the resulting document.
|
||||||
|
*
|
||||||
* Needed to rebuild the source document
|
* Needed to rebuild the source document
|
||||||
*
|
*
|
||||||
* @param mixed $value A PDF-Value. Structure of values see cases in this method
|
* @param mixed $value A PDF-Value. Structure of values see cases in this method
|
||||||
*/
|
*/
|
||||||
function pdf_write_value(&$value)
|
protected function _writeValue(&$value)
|
||||||
{
|
{
|
||||||
if (is_subclass_of($this, 'TCPDF')) {
|
if (is_subclass_of($this, 'TCPDF')) {
|
||||||
parent::pdf_write_value($value);
|
parent::_prepareValue($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($value[0]) {
|
switch ($value[0]) {
|
||||||
|
|
||||||
case PDF_TYPE_TOKEN :
|
case pdf_parser::TYPE_TOKEN:
|
||||||
$this->_straightOut($value[1] . ' ');
|
$this->_straightOut($value[1] . ' ');
|
||||||
break;
|
break;
|
||||||
case PDF_TYPE_NUMERIC :
|
case pdf_parser::TYPE_NUMERIC:
|
||||||
case PDF_TYPE_REAL :
|
case pdf_parser::TYPE_REAL:
|
||||||
if (is_float($value[1]) && $value[1] != 0) {
|
if (is_float($value[1]) && $value[1] != 0) {
|
||||||
$this->_straightOut(rtrim(rtrim(sprintf('%F', $value[1]), '0'), '.') . ' ');
|
$this->_straightOut(rtrim(rtrim(sprintf('%F', $value[1]), '0'), '.') . ' ');
|
||||||
} else {
|
} else {
|
||||||
@ -375,20 +539,20 @@ class FPDI extends FPDF_TPL {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PDF_TYPE_ARRAY :
|
case pdf_parser::TYPE_ARRAY:
|
||||||
|
|
||||||
// An array. Output the proper
|
// An array. Output the proper
|
||||||
// structure and move on.
|
// structure and move on.
|
||||||
|
|
||||||
$this->_straightOut('[');
|
$this->_straightOut('[');
|
||||||
for ($i = 0; $i < count($value[1]); $i++) {
|
for ($i = 0; $i < count($value[1]); $i++) {
|
||||||
$this->pdf_write_value($value[1][$i]);
|
$this->_writeValue($value[1][$i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_out(']');
|
$this->_out(']');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PDF_TYPE_DICTIONARY :
|
case pdf_parser::TYPE_DICTIONARY:
|
||||||
|
|
||||||
// A dictionary.
|
// A dictionary.
|
||||||
$this->_straightOut('<<');
|
$this->_straightOut('<<');
|
||||||
@ -397,56 +561,55 @@ class FPDI extends FPDF_TPL {
|
|||||||
|
|
||||||
while (list($k, $v) = each($value[1])) {
|
while (list($k, $v) = each($value[1])) {
|
||||||
$this->_straightOut($k . ' ');
|
$this->_straightOut($k . ' ');
|
||||||
$this->pdf_write_value($v);
|
$this->_writeValue($v);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_straightOut('>>');
|
$this->_straightOut('>>');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PDF_TYPE_OBJREF :
|
case pdf_parser::TYPE_OBJREF:
|
||||||
|
|
||||||
// An indirect object reference
|
// An indirect object reference
|
||||||
// Fill the object stack if needed
|
// Fill the object stack if needed
|
||||||
$cpfn =& $this->current_parser->filename;
|
$cpfn =& $this->currentParser->filename;
|
||||||
|
if (!isset($this->_doneObjStack[$cpfn][$value[1]])) {
|
||||||
if (!isset($this->_don_obj_stack[$cpfn][$value[1]])) {
|
|
||||||
$this->_newobj(false, true);
|
$this->_newobj(false, true);
|
||||||
$this->_obj_stack[$cpfn][$value[1]] = array($this->n, $value);
|
$this->_objStack[$cpfn][$value[1]] = array($this->n, $value);
|
||||||
$this->_don_obj_stack[$cpfn][$value[1]] = array($this->n, $value); // Value is maybee obsolete!!!
|
$this->_doneObjStack[$cpfn][$value[1]] = array($this->n, $value);
|
||||||
}
|
}
|
||||||
$objid = $this->_don_obj_stack[$cpfn][$value[1]][0];
|
$objId = $this->_doneObjStack[$cpfn][$value[1]][0];
|
||||||
|
|
||||||
$this->_out($objid.' 0 R');
|
$this->_out($objId . ' 0 R');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PDF_TYPE_STRING :
|
case pdf_parser::TYPE_STRING:
|
||||||
|
|
||||||
// A string.
|
// A string.
|
||||||
$this->_straightOut('(' . $value[1] . ')');
|
$this->_straightOut('(' . $value[1] . ')');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PDF_TYPE_STREAM :
|
case pdf_parser::TYPE_STREAM:
|
||||||
|
|
||||||
// A stream. First, output the
|
// A stream. First, output the
|
||||||
// stream dictionary, then the
|
// stream dictionary, then the
|
||||||
// stream data itself.
|
// stream data itself.
|
||||||
$this->pdf_write_value($value[1]);
|
$this->_writeValue($value[1]);
|
||||||
$this->_out('stream');
|
$this->_out('stream');
|
||||||
$this->_out($value[2][1]);
|
$this->_out($value[2][1]);
|
||||||
$this->_out('endstream');
|
$this->_straightOut("endstream");
|
||||||
break;
|
break;
|
||||||
case PDF_TYPE_HEX :
|
|
||||||
|
case pdf_parser::TYPE_HEX:
|
||||||
$this->_straightOut('<' . $value[1] . '>');
|
$this->_straightOut('<' . $value[1] . '>');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PDF_TYPE_BOOLEAN :
|
case pdf_parser::TYPE_BOOLEAN:
|
||||||
$this->_straightOut($value[1] ? 'true ' : 'false ');
|
$this->_straightOut($value[1] ? 'true ' : 'false ');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PDF_TYPE_NULL :
|
case pdf_parser::TYPE_NULL:
|
||||||
// The null object.
|
// The null object.
|
||||||
|
|
||||||
$this->_straightOut('null ');
|
$this->_straightOut('null ');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -454,52 +617,77 @@ class FPDI extends FPDF_TPL {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Modified so not each call will add a newline to the output.
|
* Modified _out() method so not each call will add a newline to the output.
|
||||||
*/
|
*/
|
||||||
function _straightOut($s) {
|
protected function _straightOut($s)
|
||||||
|
{
|
||||||
if (!is_subclass_of($this, 'TCPDF')) {
|
if (!is_subclass_of($this, 'TCPDF')) {
|
||||||
if($this->state==2)
|
if ($this->state == 2) {
|
||||||
$this->pages[$this->page] .= $s;
|
$this->pages[$this->page] .= $s;
|
||||||
else
|
} else {
|
||||||
$this->buffer .= $s;
|
$this->buffer .= $s;
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if ($this->state == 2) {
|
if ($this->state == 2) {
|
||||||
if (isset($this->footerlen[$this->page]) AND ($this->footerlen[$this->page] > 0)) {
|
if ($this->inxobj) {
|
||||||
|
// we are inside an XObject template
|
||||||
|
$this->xobjects[$this->xobjid]['outdata'] .= $s;
|
||||||
|
} else if ((!$this->InFooter) AND isset($this->footerlen[$this->page]) AND ($this->footerlen[$this->page] > 0)) {
|
||||||
// puts data before page footer
|
// puts data before page footer
|
||||||
$page = substr($this->getPageBuffer($this->page), 0, -$this->footerlen[$this->page]);
|
$pagebuff = $this->getPageBuffer($this->page);
|
||||||
$footer = substr($this->getPageBuffer($this->page), -$this->footerlen[$this->page]);
|
$page = substr($pagebuff, 0, -$this->footerlen[$this->page]);
|
||||||
$this->setPageBuffer($this->page, $page.' '.$s."\n".$footer);
|
$footer = substr($pagebuff, -$this->footerlen[$this->page]);
|
||||||
|
$this->setPageBuffer($this->page, $page . $s . $footer);
|
||||||
|
// update footer position
|
||||||
|
$this->footerpos[$this->page] += strlen($s);
|
||||||
} else {
|
} else {
|
||||||
|
// set page data
|
||||||
$this->setPageBuffer($this->page, $s, true);
|
$this->setPageBuffer($this->page, $s, true);
|
||||||
}
|
}
|
||||||
} else {
|
} else if ($this->state > 0) {
|
||||||
|
// set general data
|
||||||
$this->setBuffer($s);
|
$this->setBuffer($s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* rewritten to close opened parsers
|
* Ends the document
|
||||||
*
|
*
|
||||||
|
* Overwritten to close opened parsers
|
||||||
*/
|
*/
|
||||||
function _enddoc() {
|
public function _enddoc()
|
||||||
|
{
|
||||||
parent::_enddoc();
|
parent::_enddoc();
|
||||||
$this->_closeParsers();
|
$this->_closeParsers();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* close all files opened by parsers
|
* Close all files opened by parsers.
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
function _closeParsers() {
|
protected function _closeParsers()
|
||||||
if ($this->state > 2 && count($this->parsers) > 0) {
|
{
|
||||||
foreach ($this->parsers as $k => $_){
|
if ($this->state > 2) {
|
||||||
$this->parsers[$k]->closeFile();
|
$this->cleanUp();
|
||||||
$this->parsers[$k] = null;
|
|
||||||
unset($this->parsers[$k]);
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes cycled references and closes the file handles of the parser objects.
|
||||||
|
*/
|
||||||
|
public function cleanUp()
|
||||||
|
{
|
||||||
|
while (($parser = array_pop($this->parsers)) !== null) {
|
||||||
|
/**
|
||||||
|
* @var fpdi_pdf_parser $parser
|
||||||
|
*/
|
||||||
|
$parser->closeFile();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,171 +0,0 @@
|
|||||||
<?php
|
|
||||||
//
|
|
||||||
// FPDI - Version 1.3.1
|
|
||||||
//
|
|
||||||
// Copyright 2004-2009 Setasign - Jan Slabon
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
//
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This class is used as a bridge between TCPDF and FPDI
|
|
||||||
* and will create the possibility to use both FPDF and TCPDF
|
|
||||||
* via one FPDI version.
|
|
||||||
*
|
|
||||||
* We'll simply remap TCPDF to FPDF again.
|
|
||||||
*
|
|
||||||
* It'll be loaded and extended by FPDF_TPL.
|
|
||||||
*/
|
|
||||||
class FPDF extends TCPDF {
|
|
||||||
|
|
||||||
function __get($name) {
|
|
||||||
switch ($name) {
|
|
||||||
case 'PDFVersion':
|
|
||||||
return $this->PDFVersion;
|
|
||||||
case 'k':
|
|
||||||
return $this->k;
|
|
||||||
default:
|
|
||||||
// Error handling
|
|
||||||
$this->Error('Cannot access protected property '.get_class($this).':$'.$name.' / Undefined property: '.get_class($this).'::$'.$name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function __set($name, $value) {
|
|
||||||
switch ($name) {
|
|
||||||
case 'PDFVersion':
|
|
||||||
$this->PDFVersion = $value;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
// Error handling
|
|
||||||
$this->Error('Cannot access protected property '.get_class($this).':$'.$name.' / Undefined property: '.get_class($this).'::$'.$name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Encryption of imported data by FPDI
|
|
||||||
*
|
|
||||||
* @param array $value
|
|
||||||
*/
|
|
||||||
function pdf_write_value(&$value) {
|
|
||||||
switch ($value[0]) {
|
|
||||||
case PDF_TYPE_STRING :
|
|
||||||
if ($this->encrypted) {
|
|
||||||
$value[1] = $this->_unescape($value[1]);
|
|
||||||
$value[1] = $this->_RC4($this->_objectkey($this->_current_obj_id), $value[1]);
|
|
||||||
$value[1] = $this->_escape($value[1]);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case PDF_TYPE_STREAM :
|
|
||||||
if ($this->encrypted) {
|
|
||||||
$value[2][1] = $this->_RC4($this->_objectkey($this->_current_obj_id), $value[2][1]);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case PDF_TYPE_HEX :
|
|
||||||
if ($this->encrypted) {
|
|
||||||
$value[1] = $this->hex2str($value[1]);
|
|
||||||
$value[1] = $this->_RC4($this->_objectkey($this->_current_obj_id), $value[1]);
|
|
||||||
|
|
||||||
// remake hexstring of encrypted string
|
|
||||||
$value[1] = $this->str2hex($value[1]);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Unescapes a PDF string
|
|
||||||
*
|
|
||||||
* @param string $s
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
function _unescape($s) {
|
|
||||||
$out = '';
|
|
||||||
for ($count = 0, $n = strlen($s); $count < $n; $count++) {
|
|
||||||
if ($s[$count] != '\\' || $count == $n-1) {
|
|
||||||
$out .= $s[$count];
|
|
||||||
} else {
|
|
||||||
switch ($s[++$count]) {
|
|
||||||
case ')':
|
|
||||||
case '(':
|
|
||||||
case '\\':
|
|
||||||
$out .= $s[$count];
|
|
||||||
break;
|
|
||||||
case 'f':
|
|
||||||
$out .= chr(0x0C);
|
|
||||||
break;
|
|
||||||
case 'b':
|
|
||||||
$out .= chr(0x08);
|
|
||||||
break;
|
|
||||||
case 't':
|
|
||||||
$out .= chr(0x09);
|
|
||||||
break;
|
|
||||||
case 'r':
|
|
||||||
$out .= chr(0x0D);
|
|
||||||
break;
|
|
||||||
case 'n':
|
|
||||||
$out .= chr(0x0A);
|
|
||||||
break;
|
|
||||||
case "\r":
|
|
||||||
if ($count != $n-1 && $s[$count+1] == "\n")
|
|
||||||
$count++;
|
|
||||||
break;
|
|
||||||
case "\n":
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
// Octal-Values
|
|
||||||
if (ord($s[$count]) >= ord('0') &&
|
|
||||||
ord($s[$count]) <= ord('9')) {
|
|
||||||
$oct = ''. $s[$count];
|
|
||||||
|
|
||||||
if (ord($s[$count+1]) >= ord('0') &&
|
|
||||||
ord($s[$count+1]) <= ord('9')) {
|
|
||||||
$oct .= $s[++$count];
|
|
||||||
|
|
||||||
if (ord($s[$count+1]) >= ord('0') &&
|
|
||||||
ord($s[$count+1]) <= ord('9')) {
|
|
||||||
$oct .= $s[++$count];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$out .= chr(octdec($oct));
|
|
||||||
} else {
|
|
||||||
$out .= $s[$count];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $out;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Hexadecimal to string
|
|
||||||
*
|
|
||||||
* @param string $hex
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
function hex2str($hex) {
|
|
||||||
return pack('H*', str_replace(array("\r", "\n", ' '), '', $hex));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* String to hexadecimal
|
|
||||||
*
|
|
||||||
* @param string $str
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
function str2hex($str) {
|
|
||||||
return current(unpack('H*', $str));
|
|
||||||
}
|
|
||||||
}
|
|
206
share/pnp/application/vendor/fpdf/fpdi_bridge.php
vendored
Executable file
206
share/pnp/application/vendor/fpdf/fpdi_bridge.php
vendored
Executable file
@ -0,0 +1,206 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* This file is part of FPDI
|
||||||
|
*
|
||||||
|
* @package FPDI
|
||||||
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
|
* @version 1.6.1
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This file is used as a bridge between TCPDF or FPDF
|
||||||
|
* It will dynamically create the class extending the available
|
||||||
|
* class FPDF or TCPDF.
|
||||||
|
*
|
||||||
|
* This way it is possible to use FPDI for both FPDF and TCPDF with one FPDI version.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!class_exists('TCPDF', false)) {
|
||||||
|
/**
|
||||||
|
* Class fpdi_bridge
|
||||||
|
*/
|
||||||
|
class fpdi_bridge extends FPDF
|
||||||
|
{
|
||||||
|
// empty body
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class fpdi_bridge
|
||||||
|
*/
|
||||||
|
class fpdi_bridge extends TCPDF
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Array of Tpl-Data
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $_tpls = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name-prefix of Templates used in Resources-Dictionary
|
||||||
|
*
|
||||||
|
* @var string A String defining the Prefix used as Template-Object-Names. Have to begin with an /
|
||||||
|
*/
|
||||||
|
public $tplPrefix = "/TPL";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Current Object Id.
|
||||||
|
*
|
||||||
|
* @var integer
|
||||||
|
*/
|
||||||
|
protected $_currentObjId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return XObjects Dictionary.
|
||||||
|
*
|
||||||
|
* Overwritten to add additional XObjects to the resources dictionary of TCPDF
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
protected function _getxobjectdict()
|
||||||
|
{
|
||||||
|
$out = parent::_getxobjectdict();
|
||||||
|
foreach ($this->_tpls as $tplIdx => $tpl) {
|
||||||
|
$out .= sprintf('%s%d %d 0 R', $this->tplPrefix, $tplIdx, $tpl['n']);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $out;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Writes a PDF value to the resulting document.
|
||||||
|
*
|
||||||
|
* Prepares the value for encryption of imported data by FPDI
|
||||||
|
*
|
||||||
|
* @param array $value
|
||||||
|
*/
|
||||||
|
protected function _prepareValue(&$value)
|
||||||
|
{
|
||||||
|
switch ($value[0]) {
|
||||||
|
case pdf_parser::TYPE_STRING:
|
||||||
|
if ($this->encrypted) {
|
||||||
|
$value[1] = $this->_unescape($value[1]);
|
||||||
|
$value[1] = $this->_encrypt_data($this->_currentObjId, $value[1]);
|
||||||
|
$value[1] = TCPDF_STATIC::_escape($value[1]);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case pdf_parser::TYPE_STREAM:
|
||||||
|
if ($this->encrypted) {
|
||||||
|
$value[2][1] = $this->_encrypt_data($this->_currentObjId, $value[2][1]);
|
||||||
|
$value[1][1]['/Length'] = array(
|
||||||
|
pdf_parser::TYPE_NUMERIC,
|
||||||
|
strlen($value[2][1])
|
||||||
|
);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case pdf_parser::TYPE_HEX:
|
||||||
|
if ($this->encrypted) {
|
||||||
|
$value[1] = $this->hex2str($value[1]);
|
||||||
|
$value[1] = $this->_encrypt_data($this->_currentObjId, $value[1]);
|
||||||
|
|
||||||
|
// remake hexstring of encrypted string
|
||||||
|
$value[1] = $this->str2hex($value[1]);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Un-escapes a PDF string
|
||||||
|
*
|
||||||
|
* @param string $s
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
protected function _unescape($s)
|
||||||
|
{
|
||||||
|
$out = '';
|
||||||
|
for ($count = 0, $n = strlen($s); $count < $n; $count++) {
|
||||||
|
if ($s[$count] != '\\' || $count == $n-1) {
|
||||||
|
$out .= $s[$count];
|
||||||
|
} else {
|
||||||
|
switch ($s[++$count]) {
|
||||||
|
case ')':
|
||||||
|
case '(':
|
||||||
|
case '\\':
|
||||||
|
$out .= $s[$count];
|
||||||
|
break;
|
||||||
|
case 'f':
|
||||||
|
$out .= chr(0x0C);
|
||||||
|
break;
|
||||||
|
case 'b':
|
||||||
|
$out .= chr(0x08);
|
||||||
|
break;
|
||||||
|
case 't':
|
||||||
|
$out .= chr(0x09);
|
||||||
|
break;
|
||||||
|
case 'r':
|
||||||
|
$out .= chr(0x0D);
|
||||||
|
break;
|
||||||
|
case 'n':
|
||||||
|
$out .= chr(0x0A);
|
||||||
|
break;
|
||||||
|
case "\r":
|
||||||
|
if ($count != $n-1 && $s[$count+1] == "\n")
|
||||||
|
$count++;
|
||||||
|
break;
|
||||||
|
case "\n":
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
// Octal-Values
|
||||||
|
if (ord($s[$count]) >= ord('0') &&
|
||||||
|
ord($s[$count]) <= ord('9')) {
|
||||||
|
$oct = ''. $s[$count];
|
||||||
|
|
||||||
|
if (ord($s[$count+1]) >= ord('0') &&
|
||||||
|
ord($s[$count+1]) <= ord('9')) {
|
||||||
|
$oct .= $s[++$count];
|
||||||
|
|
||||||
|
if (ord($s[$count+1]) >= ord('0') &&
|
||||||
|
ord($s[$count+1]) <= ord('9')) {
|
||||||
|
$oct .= $s[++$count];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$out .= chr(octdec($oct));
|
||||||
|
} else {
|
||||||
|
$out .= $s[$count];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $out;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hexadecimal to string
|
||||||
|
*
|
||||||
|
* @param string $data
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function hex2str($data)
|
||||||
|
{
|
||||||
|
$data = preg_replace('/[^0-9A-Fa-f]/', '', rtrim($data, '>'));
|
||||||
|
if ((strlen($data) % 2) == 1) {
|
||||||
|
$data .= '0';
|
||||||
|
}
|
||||||
|
|
||||||
|
return pack('H*', $data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* String to hexadecimal
|
||||||
|
*
|
||||||
|
* @param string $str
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function str2hex($str)
|
||||||
|
{
|
||||||
|
return current(unpack('H*', $str));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
411
share/pnp/application/vendor/fpdf/fpdi_pdf_parser.php
vendored
Normal file → Executable file
411
share/pnp/application/vendor/fpdf/fpdi_pdf_parser.php
vendored
Normal file → Executable file
@ -1,198 +1,186 @@
|
|||||||
<?php
|
<?php
|
||||||
//
|
/**
|
||||||
// FPDI - Version 1.3.1
|
* This file is part of FPDI
|
||||||
//
|
*
|
||||||
// Copyright 2004-2009 Setasign - Jan Slabon
|
* @package FPDI
|
||||||
//
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
// you may not use this file except in compliance with the License.
|
* @version 1.6.1
|
||||||
// You may obtain a copy of the License at
|
*/
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
//
|
|
||||||
|
|
||||||
|
if (!class_exists('pdf_parser')) {
|
||||||
require_once('pdf_parser.php');
|
require_once('pdf_parser.php');
|
||||||
|
}
|
||||||
class fpdi_pdf_parser extends pdf_parser {
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class fpdi_pdf_parser
|
||||||
|
*/
|
||||||
|
class fpdi_pdf_parser extends pdf_parser
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
* Pages
|
* Pages
|
||||||
* Index beginns at 0
|
*
|
||||||
|
* Index begins at 0
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
var $pages;
|
protected $_pages;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Page count
|
* Page count
|
||||||
|
*
|
||||||
* @var integer
|
* @var integer
|
||||||
*/
|
*/
|
||||||
var $page_count;
|
protected $_pageCount;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* actual page number
|
* Current page number
|
||||||
|
*
|
||||||
* @var integer
|
* @var integer
|
||||||
*/
|
*/
|
||||||
var $pageno;
|
public $pageNo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PDF Version of imported Document
|
* PDF version of imported document
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
var $pdfVersion;
|
public $_pdfVersion;
|
||||||
|
|
||||||
/**
|
|
||||||
* FPDI Reference
|
|
||||||
* @var object
|
|
||||||
*/
|
|
||||||
var $fpdi;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Available BoxTypes
|
* Available BoxTypes
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
var $availableBoxes = array('/MediaBox', '/CropBox', '/BleedBox', '/TrimBox', '/ArtBox');
|
public $availableBoxes = array('/MediaBox', '/CropBox', '/BleedBox', '/TrimBox', '/ArtBox');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* The constructor.
|
||||||
*
|
*
|
||||||
* @param string $filename Source-Filename
|
* @param string $filename The source filename
|
||||||
* @param object $fpdi Object of type fpdi
|
|
||||||
*/
|
*/
|
||||||
function fpdi_pdf_parser($filename, &$fpdi) {
|
public function __construct($filename)
|
||||||
$this->fpdi =& $fpdi;
|
{
|
||||||
|
parent::__construct($filename);
|
||||||
parent::pdf_parser($filename);
|
|
||||||
|
|
||||||
// resolve Pages-Dictonary
|
// resolve Pages-Dictonary
|
||||||
$pages = $this->pdf_resolve_object($this->c, $this->root[1][1]['/Pages']);
|
$pages = $this->resolveObject($this->_root[1][1]['/Pages']);
|
||||||
|
|
||||||
// Read pages
|
// Read pages
|
||||||
$this->read_pages($this->c, $pages, $this->pages);
|
$this->_readPages($pages, $this->_pages);
|
||||||
|
|
||||||
// count pages;
|
// count pages;
|
||||||
$this->page_count = count($this->pages);
|
$this->_pageCount = count($this->_pages);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Overwrite parent::error()
|
* Get page count from source file.
|
||||||
*
|
|
||||||
* @param string $msg Error-Message
|
|
||||||
*/
|
|
||||||
function error($msg) {
|
|
||||||
$this->fpdi->error($msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get pagecount from sourcefile
|
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
function getPageCount() {
|
public function getPageCount()
|
||||||
return $this->page_count;
|
{
|
||||||
|
return $this->_pageCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set pageno
|
* Set the page number.
|
||||||
*
|
*
|
||||||
* @param int $pageno Pagenumber to use
|
* @param int $pageNo Page number to use
|
||||||
|
* @throws InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
function setPageno($pageno) {
|
public function setPageNo($pageNo)
|
||||||
$pageno = ((int) $pageno) - 1;
|
{
|
||||||
|
$pageNo = ((int) $pageNo) - 1;
|
||||||
|
|
||||||
if ($pageno < 0 || $pageno >= $this->getPageCount()) {
|
if ($pageNo < 0 || $pageNo >= $this->getPageCount()) {
|
||||||
$this->fpdi->error('Pagenumber is wrong!');
|
throw new InvalidArgumentException('Invalid page number!');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->pageno = $pageno;
|
$this->pageNo = $pageNo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get page-resources from current page
|
* Get page-resources from current page
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array|boolean
|
||||||
*/
|
*/
|
||||||
function getPageResources() {
|
public function getPageResources()
|
||||||
return $this->_getPageResources($this->pages[$this->pageno]);
|
{
|
||||||
|
return $this->_getPageResources($this->_pages[$this->pageNo]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get page-resources from /Page
|
* Get page-resources from a /Page dictionary.
|
||||||
*
|
*
|
||||||
* @param array $obj Array of pdf-data
|
* @param array $obj Array of pdf-data
|
||||||
|
* @return array|boolean
|
||||||
*/
|
*/
|
||||||
function _getPageResources ($obj) { // $obj = /Page
|
protected function _getPageResources($obj)
|
||||||
$obj = $this->pdf_resolve_object($this->c, $obj);
|
{
|
||||||
|
$obj = $this->resolveObject($obj);
|
||||||
|
|
||||||
// If the current object has a resources
|
// If the current object has a resources
|
||||||
// dictionary associated with it, we use
|
// dictionary associated with it, we use
|
||||||
// it. Otherwise, we move back to its
|
// it. Otherwise, we move back to its
|
||||||
// parent object.
|
// parent object.
|
||||||
if (isset($obj[1][1]['/Resources'])) {
|
if (isset($obj[1][1]['/Resources'])) {
|
||||||
$res = $this->pdf_resolve_object($this->c, $obj[1][1]['/Resources']);
|
$res = $this->resolveObject($obj[1][1]['/Resources']);
|
||||||
if ($res[0] == PDF_TYPE_OBJECT)
|
if ($res[0] == pdf_parser::TYPE_OBJECT)
|
||||||
return $res[1];
|
return $res[1];
|
||||||
return $res;
|
return $res;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
if (!isset($obj[1][1]['/Parent'])) {
|
if (!isset($obj[1][1]['/Parent'])) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
$res = $this->_getPageResources($obj[1][1]['/Parent']);
|
$res = $this->_getPageResources($obj[1][1]['/Parent']);
|
||||||
if ($res[0] == PDF_TYPE_OBJECT)
|
if ($res[0] == pdf_parser::TYPE_OBJECT)
|
||||||
return $res[1];
|
return $res[1];
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get content of current page
|
* Get content of current page.
|
||||||
*
|
*
|
||||||
* If more /Contents is an array, the streams are concated
|
* If /Contents is an array, the streams are concatenated
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function getContent() {
|
public function getContent()
|
||||||
|
{
|
||||||
$buffer = '';
|
$buffer = '';
|
||||||
|
|
||||||
if (isset($this->pages[$this->pageno][1][1]['/Contents'])) {
|
if (isset($this->_pages[$this->pageNo][1][1]['/Contents'])) {
|
||||||
$contents = $this->_getPageContent($this->pages[$this->pageno][1][1]['/Contents']);
|
$contents = $this->_getPageContent($this->_pages[$this->pageNo][1][1]['/Contents']);
|
||||||
foreach($contents AS $tmp_content) {
|
foreach ($contents AS $tmpContent) {
|
||||||
$buffer .= $this->_rebuildContentStream($tmp_content).' ';
|
$buffer .= $this->_unFilterStream($tmpContent) . ' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $buffer;
|
return $buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolve all content-objects
|
* Resolve all content objects.
|
||||||
*
|
*
|
||||||
* @param array $content_ref
|
* @param array $contentRef
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function _getPageContent($content_ref) {
|
protected function _getPageContent($contentRef)
|
||||||
|
{
|
||||||
$contents = array();
|
$contents = array();
|
||||||
|
|
||||||
if ($content_ref[0] == PDF_TYPE_OBJREF) {
|
if ($contentRef[0] == pdf_parser::TYPE_OBJREF) {
|
||||||
$content = $this->pdf_resolve_object($this->c, $content_ref);
|
$content = $this->resolveObject($contentRef);
|
||||||
if ($content[1][0] == PDF_TYPE_ARRAY) {
|
if ($content[1][0] == pdf_parser::TYPE_ARRAY) {
|
||||||
$contents = $this->_getPageContent($content[1]);
|
$contents = $this->_getPageContent($content[1]);
|
||||||
} else {
|
} else {
|
||||||
$contents[] = $content;
|
$contents[] = $content;
|
||||||
}
|
}
|
||||||
} else if ($content_ref[0] == PDF_TYPE_ARRAY) {
|
} else if ($contentRef[0] == pdf_parser::TYPE_ARRAY) {
|
||||||
foreach ($content_ref[1] AS $tmp_content_ref) {
|
foreach ($contentRef[1] AS $tmp_content_ref) {
|
||||||
$contents = array_merge($contents, $this->_getPageContent($tmp_content_ref));
|
$contents = array_merge($contents, $this->_getPageContent($tmp_content_ref));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -200,114 +188,79 @@ class fpdi_pdf_parser extends pdf_parser {
|
|||||||
return $contents;
|
return $contents;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rebuild content-streams
|
* Get a boundary box from a page
|
||||||
*
|
*
|
||||||
* @param array $obj
|
* Array format is same as used by FPDF_TPL.
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
function _rebuildContentStream($obj) {
|
|
||||||
$filters = array();
|
|
||||||
|
|
||||||
if (isset($obj[1][1]['/Filter'])) {
|
|
||||||
$_filter = $obj[1][1]['/Filter'];
|
|
||||||
|
|
||||||
if ($_filter[0] == PDF_TYPE_TOKEN) {
|
|
||||||
$filters[] = $_filter;
|
|
||||||
} else if ($_filter[0] == PDF_TYPE_ARRAY) {
|
|
||||||
$filters = $_filter[1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$stream = $obj[2][1];
|
|
||||||
|
|
||||||
foreach ($filters AS $_filter) {
|
|
||||||
switch ($_filter[1]) {
|
|
||||||
case '/FlateDecode':
|
|
||||||
if (function_exists('gzuncompress')) {
|
|
||||||
$stream = (strlen($stream) > 0) ? @gzuncompress($stream) : '';
|
|
||||||
} else {
|
|
||||||
$this->error(sprintf('To handle %s filter, please compile php with zlib support.',$_filter[1]));
|
|
||||||
}
|
|
||||||
if ($stream === false) {
|
|
||||||
$this->error('Error while decompressing stream.');
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case '/LZWDecode':
|
|
||||||
include_once('filters/FilterLZW_FPDI.php');
|
|
||||||
$decoder = new FilterLZW_FPDI($this->fpdi);
|
|
||||||
$stream = $decoder->decode($stream);
|
|
||||||
break;
|
|
||||||
case '/ASCII85Decode':
|
|
||||||
include_once('filters/FilterASCII85_FPDI.php');
|
|
||||||
$decoder = new FilterASCII85_FPDI($this->fpdi);
|
|
||||||
$stream = $decoder->decode($stream);
|
|
||||||
break;
|
|
||||||
case null:
|
|
||||||
$stream = $stream;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
$this->error(sprintf('Unsupported Filter: %s',$_filter[1]));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $stream;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a Box from a page
|
|
||||||
* Arrayformat is same as used by fpdf_tpl
|
|
||||||
*
|
*
|
||||||
* @param array $page a /Page
|
* @param array $page a /Page dictionary
|
||||||
* @param string $box_index Type of Box @see $availableBoxes
|
* @param string $boxIndex Type of box {see {@link $availableBoxes})
|
||||||
* @return array
|
* @param float Scale factor from user space units to points
|
||||||
|
*
|
||||||
|
* @return array|boolean
|
||||||
*/
|
*/
|
||||||
function getPageBox($page, $box_index) {
|
protected function _getPageBox($page, $boxIndex, $k)
|
||||||
$page = $this->pdf_resolve_object($this->c,$page);
|
{
|
||||||
|
$page = $this->resolveObject($page);
|
||||||
$box = null;
|
$box = null;
|
||||||
if (isset($page[1][1][$box_index]))
|
if (isset($page[1][1][$boxIndex])) {
|
||||||
$box =& $page[1][1][$box_index];
|
$box = $page[1][1][$boxIndex];
|
||||||
|
}
|
||||||
|
|
||||||
if (!is_null($box) && $box[0] == PDF_TYPE_OBJREF) {
|
if (!is_null($box) && $box[0] == pdf_parser::TYPE_OBJREF) {
|
||||||
$tmp_box = $this->pdf_resolve_object($this->c,$box);
|
$tmp_box = $this->resolveObject($box);
|
||||||
$box = $tmp_box[1];
|
$box = $tmp_box[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_null($box) && $box[0] == PDF_TYPE_ARRAY) {
|
if (!is_null($box) && $box[0] == pdf_parser::TYPE_ARRAY) {
|
||||||
$b =& $box[1];
|
$b = $box[1];
|
||||||
return array('x' => $b[0][1]/$this->fpdi->k,
|
return array(
|
||||||
'y' => $b[1][1]/$this->fpdi->k,
|
'x' => $b[0][1] / $k,
|
||||||
'w' => abs($b[0][1]-$b[2][1])/$this->fpdi->k,
|
'y' => $b[1][1] / $k,
|
||||||
'h' => abs($b[1][1]-$b[3][1])/$this->fpdi->k,
|
'w' => abs($b[0][1] - $b[2][1]) / $k,
|
||||||
'llx' => min($b[0][1], $b[2][1])/$this->fpdi->k,
|
'h' => abs($b[1][1] - $b[3][1]) / $k,
|
||||||
'lly' => min($b[1][1], $b[3][1])/$this->fpdi->k,
|
'llx' => min($b[0][1], $b[2][1]) / $k,
|
||||||
'urx' => max($b[0][1], $b[2][1])/$this->fpdi->k,
|
'lly' => min($b[1][1], $b[3][1]) / $k,
|
||||||
'ury' => max($b[1][1], $b[3][1])/$this->fpdi->k,
|
'urx' => max($b[0][1], $b[2][1]) / $k,
|
||||||
|
'ury' => max($b[1][1], $b[3][1]) / $k,
|
||||||
);
|
);
|
||||||
} else if (!isset($page[1][1]['/Parent'])) {
|
} else if (!isset($page[1][1]['/Parent'])) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return $this->getPageBox($this->pdf_resolve_object($this->c, $page[1][1]['/Parent']), $box_index);
|
return $this->_getPageBox($this->resolveObject($page[1][1]['/Parent']), $boxIndex, $k);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPageBoxes($pageno) {
|
|
||||||
return $this->_getPageBoxes($this->pages[$pageno-1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all Boxes from /Page
|
* Get all page boundary boxes by page number
|
||||||
*
|
*
|
||||||
* @param array a /Page
|
* @param int $pageNo The page number
|
||||||
|
* @param float $k Scale factor from user space units to points
|
||||||
|
* @return array
|
||||||
|
* @throws InvalidArgumentException
|
||||||
|
*/
|
||||||
|
public function getPageBoxes($pageNo, $k)
|
||||||
|
{
|
||||||
|
if (!isset($this->_pages[$pageNo - 1])) {
|
||||||
|
throw new InvalidArgumentException('Page ' . $pageNo . ' does not exists.');
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->_getPageBoxes($this->_pages[$pageNo - 1], $k);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all boxes from /Page dictionary
|
||||||
|
*
|
||||||
|
* @param array $page A /Page dictionary
|
||||||
|
* @param float $k Scale factor from user space units to points
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function _getPageBoxes($page) {
|
protected function _getPageBoxes($page, $k)
|
||||||
|
{
|
||||||
$boxes = array();
|
$boxes = array();
|
||||||
|
|
||||||
foreach($this->availableBoxes AS $box) {
|
foreach($this->availableBoxes AS $box) {
|
||||||
if ($_box = $this->getPageBox($page,$box)) {
|
if ($_box = $this->_getPageBox($page, $box, $k)) {
|
||||||
$boxes[$box] = $_box;
|
$boxes[$box] = $_box;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -316,69 +269,79 @@ class fpdi_pdf_parser extends pdf_parser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the page rotation by pageno
|
* Get the page rotation by page number
|
||||||
*
|
*
|
||||||
* @param integer $pageno
|
* @param integer $pageNo
|
||||||
|
* @throws InvalidArgumentException
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function getPageRotation($pageno) {
|
public function getPageRotation($pageNo)
|
||||||
return $this->_getPageRotation($this->pages[$pageno-1]);
|
{
|
||||||
|
if (!isset($this->_pages[$pageNo - 1])) {
|
||||||
|
throw new InvalidArgumentException('Page ' . $pageNo . ' does not exists.');
|
||||||
}
|
}
|
||||||
|
|
||||||
function _getPageRotation ($obj) { // $obj = /Page
|
return $this->_getPageRotation($this->_pages[$pageNo - 1]);
|
||||||
$obj = $this->pdf_resolve_object($this->c, $obj);
|
|
||||||
if (isset ($obj[1][1]['/Rotate'])) {
|
|
||||||
$res = $this->pdf_resolve_object($this->c, $obj[1][1]['/Rotate']);
|
|
||||||
if ($res[0] == PDF_TYPE_OBJECT)
|
|
||||||
return $res[1];
|
|
||||||
return $res;
|
|
||||||
} else {
|
|
||||||
if (!isset ($obj[1][1]['/Parent'])) {
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
$res = $this->_getPageRotation($obj[1][1]['/Parent']);
|
|
||||||
if ($res[0] == PDF_TYPE_OBJECT)
|
|
||||||
return $res[1];
|
|
||||||
return $res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read all /Page(es)
|
* Get the rotation value of a page
|
||||||
*
|
*
|
||||||
* @param object pdf_context
|
* @param array $obj A /Page dictionary
|
||||||
* @param array /Pages
|
* @return array|bool
|
||||||
* @param array the result-array
|
|
||||||
*/
|
*/
|
||||||
function read_pages (&$c, &$pages, &$result) {
|
protected function _getPageRotation($obj)
|
||||||
// Get the kids dictionary
|
{
|
||||||
$kids = $this->pdf_resolve_object ($c, $pages[1][1]['/Kids']);
|
$obj = $this->resolveObject($obj);
|
||||||
|
if (isset($obj[1][1]['/Rotate'])) {
|
||||||
|
$res = $this->resolveObject($obj[1][1]['/Rotate']);
|
||||||
|
if ($res[0] == pdf_parser::TYPE_OBJECT)
|
||||||
|
return $res[1];
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
|
||||||
if (!is_array($kids))
|
if (!isset($obj[1][1]['/Parent'])) {
|
||||||
$this->error('Cannot find /Kids in current /Page-Dictionary');
|
return false;
|
||||||
foreach ($kids[1] as $v) {
|
}
|
||||||
$pg = $this->pdf_resolve_object ($c, $v);
|
|
||||||
|
$res = $this->_getPageRotation($obj[1][1]['/Parent']);
|
||||||
|
if ($res[0] == pdf_parser::TYPE_OBJECT)
|
||||||
|
return $res[1];
|
||||||
|
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read all pages
|
||||||
|
*
|
||||||
|
* @param array $pages /Pages dictionary
|
||||||
|
* @param array $result The result array
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
protected function _readPages(&$pages, &$result)
|
||||||
|
{
|
||||||
|
// Get the kids dictionary
|
||||||
|
$_kids = $this->resolveObject($pages[1][1]['/Kids']);
|
||||||
|
|
||||||
|
if (!is_array($_kids)) {
|
||||||
|
throw new Exception('Cannot find /Kids in current /Page-Dictionary');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($_kids[0] === self::TYPE_OBJECT) {
|
||||||
|
$_kids = $_kids[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
$kids = $_kids[1];
|
||||||
|
|
||||||
|
foreach ($kids as $v) {
|
||||||
|
$pg = $this->resolveObject($v);
|
||||||
if ($pg[1][1]['/Type'][1] === '/Pages') {
|
if ($pg[1][1]['/Type'][1] === '/Pages') {
|
||||||
// If one of the kids is an embedded
|
// If one of the kids is an embedded
|
||||||
// /Pages array, resolve it as well.
|
// /Pages array, resolve it as well.
|
||||||
$this->read_pages ($c, $pg, $result);
|
$this->_readPages($pg, $result);
|
||||||
} else {
|
} else {
|
||||||
$result[] = $pg;
|
$result[] = $pg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get PDF-Version
|
|
||||||
*
|
|
||||||
* And reset the PDF Version used in FPDI if needed
|
|
||||||
*/
|
|
||||||
function getPDFVersion() {
|
|
||||||
parent::getPDFVersion();
|
|
||||||
$this->fpdi->PDFVersion = max($this->fpdi->PDFVersion, $this->pdfVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
0
share/pnp/application/vendor/fpdf/license.txt
vendored
Normal file → Executable file
0
share/pnp/application/vendor/fpdf/license.txt
vendored
Normal file → Executable file
251
share/pnp/application/vendor/fpdf/makefont/cp1250.map
vendored
Executable file
251
share/pnp/application/vendor/fpdf/makefont/cp1250.map
vendored
Executable file
@ -0,0 +1,251 @@
|
|||||||
|
!00 U+0000 .notdef
|
||||||
|
!01 U+0001 .notdef
|
||||||
|
!02 U+0002 .notdef
|
||||||
|
!03 U+0003 .notdef
|
||||||
|
!04 U+0004 .notdef
|
||||||
|
!05 U+0005 .notdef
|
||||||
|
!06 U+0006 .notdef
|
||||||
|
!07 U+0007 .notdef
|
||||||
|
!08 U+0008 .notdef
|
||||||
|
!09 U+0009 .notdef
|
||||||
|
!0A U+000A .notdef
|
||||||
|
!0B U+000B .notdef
|
||||||
|
!0C U+000C .notdef
|
||||||
|
!0D U+000D .notdef
|
||||||
|
!0E U+000E .notdef
|
||||||
|
!0F U+000F .notdef
|
||||||
|
!10 U+0010 .notdef
|
||||||
|
!11 U+0011 .notdef
|
||||||
|
!12 U+0012 .notdef
|
||||||
|
!13 U+0013 .notdef
|
||||||
|
!14 U+0014 .notdef
|
||||||
|
!15 U+0015 .notdef
|
||||||
|
!16 U+0016 .notdef
|
||||||
|
!17 U+0017 .notdef
|
||||||
|
!18 U+0018 .notdef
|
||||||
|
!19 U+0019 .notdef
|
||||||
|
!1A U+001A .notdef
|
||||||
|
!1B U+001B .notdef
|
||||||
|
!1C U+001C .notdef
|
||||||
|
!1D U+001D .notdef
|
||||||
|
!1E U+001E .notdef
|
||||||
|
!1F U+001F .notdef
|
||||||
|
!20 U+0020 space
|
||||||
|
!21 U+0021 exclam
|
||||||
|
!22 U+0022 quotedbl
|
||||||
|
!23 U+0023 numbersign
|
||||||
|
!24 U+0024 dollar
|
||||||
|
!25 U+0025 percent
|
||||||
|
!26 U+0026 ampersand
|
||||||
|
!27 U+0027 quotesingle
|
||||||
|
!28 U+0028 parenleft
|
||||||
|
!29 U+0029 parenright
|
||||||
|
!2A U+002A asterisk
|
||||||
|
!2B U+002B plus
|
||||||
|
!2C U+002C comma
|
||||||
|
!2D U+002D hyphen
|
||||||
|
!2E U+002E period
|
||||||
|
!2F U+002F slash
|
||||||
|
!30 U+0030 zero
|
||||||
|
!31 U+0031 one
|
||||||
|
!32 U+0032 two
|
||||||
|
!33 U+0033 three
|
||||||
|
!34 U+0034 four
|
||||||
|
!35 U+0035 five
|
||||||
|
!36 U+0036 six
|
||||||
|
!37 U+0037 seven
|
||||||
|
!38 U+0038 eight
|
||||||
|
!39 U+0039 nine
|
||||||
|
!3A U+003A colon
|
||||||
|
!3B U+003B semicolon
|
||||||
|
!3C U+003C less
|
||||||
|
!3D U+003D equal
|
||||||
|
!3E U+003E greater
|
||||||
|
!3F U+003F question
|
||||||
|
!40 U+0040 at
|
||||||
|
!41 U+0041 A
|
||||||
|
!42 U+0042 B
|
||||||
|
!43 U+0043 C
|
||||||
|
!44 U+0044 D
|
||||||
|
!45 U+0045 E
|
||||||
|
!46 U+0046 F
|
||||||
|
!47 U+0047 G
|
||||||
|
!48 U+0048 H
|
||||||
|
!49 U+0049 I
|
||||||
|
!4A U+004A J
|
||||||
|
!4B U+004B K
|
||||||
|
!4C U+004C L
|
||||||
|
!4D U+004D M
|
||||||
|
!4E U+004E N
|
||||||
|
!4F U+004F O
|
||||||
|
!50 U+0050 P
|
||||||
|
!51 U+0051 Q
|
||||||
|
!52 U+0052 R
|
||||||
|
!53 U+0053 S
|
||||||
|
!54 U+0054 T
|
||||||
|
!55 U+0055 U
|
||||||
|
!56 U+0056 V
|
||||||
|
!57 U+0057 W
|
||||||
|
!58 U+0058 X
|
||||||
|
!59 U+0059 Y
|
||||||
|
!5A U+005A Z
|
||||||
|
!5B U+005B bracketleft
|
||||||
|
!5C U+005C backslash
|
||||||
|
!5D U+005D bracketright
|
||||||
|
!5E U+005E asciicircum
|
||||||
|
!5F U+005F underscore
|
||||||
|
!60 U+0060 grave
|
||||||
|
!61 U+0061 a
|
||||||
|
!62 U+0062 b
|
||||||
|
!63 U+0063 c
|
||||||
|
!64 U+0064 d
|
||||||
|
!65 U+0065 e
|
||||||
|
!66 U+0066 f
|
||||||
|
!67 U+0067 g
|
||||||
|
!68 U+0068 h
|
||||||
|
!69 U+0069 i
|
||||||
|
!6A U+006A j
|
||||||
|
!6B U+006B k
|
||||||
|
!6C U+006C l
|
||||||
|
!6D U+006D m
|
||||||
|
!6E U+006E n
|
||||||
|
!6F U+006F o
|
||||||
|
!70 U+0070 p
|
||||||
|
!71 U+0071 q
|
||||||
|
!72 U+0072 r
|
||||||
|
!73 U+0073 s
|
||||||
|
!74 U+0074 t
|
||||||
|
!75 U+0075 u
|
||||||
|
!76 U+0076 v
|
||||||
|
!77 U+0077 w
|
||||||
|
!78 U+0078 x
|
||||||
|
!79 U+0079 y
|
||||||
|
!7A U+007A z
|
||||||
|
!7B U+007B braceleft
|
||||||
|
!7C U+007C bar
|
||||||
|
!7D U+007D braceright
|
||||||
|
!7E U+007E asciitilde
|
||||||
|
!7F U+007F .notdef
|
||||||
|
!80 U+20AC Euro
|
||||||
|
!82 U+201A quotesinglbase
|
||||||
|
!84 U+201E quotedblbase
|
||||||
|
!85 U+2026 ellipsis
|
||||||
|
!86 U+2020 dagger
|
||||||
|
!87 U+2021 daggerdbl
|
||||||
|
!89 U+2030 perthousand
|
||||||
|
!8A U+0160 Scaron
|
||||||
|
!8B U+2039 guilsinglleft
|
||||||
|
!8C U+015A Sacute
|
||||||
|
!8D U+0164 Tcaron
|
||||||
|
!8E U+017D Zcaron
|
||||||
|
!8F U+0179 Zacute
|
||||||
|
!91 U+2018 quoteleft
|
||||||
|
!92 U+2019 quoteright
|
||||||
|
!93 U+201C quotedblleft
|
||||||
|
!94 U+201D quotedblright
|
||||||
|
!95 U+2022 bullet
|
||||||
|
!96 U+2013 endash
|
||||||
|
!97 U+2014 emdash
|
||||||
|
!99 U+2122 trademark
|
||||||
|
!9A U+0161 scaron
|
||||||
|
!9B U+203A guilsinglright
|
||||||
|
!9C U+015B sacute
|
||||||
|
!9D U+0165 tcaron
|
||||||
|
!9E U+017E zcaron
|
||||||
|
!9F U+017A zacute
|
||||||
|
!A0 U+00A0 space
|
||||||
|
!A1 U+02C7 caron
|
||||||
|
!A2 U+02D8 breve
|
||||||
|
!A3 U+0141 Lslash
|
||||||
|
!A4 U+00A4 currency
|
||||||
|
!A5 U+0104 Aogonek
|
||||||
|
!A6 U+00A6 brokenbar
|
||||||
|
!A7 U+00A7 section
|
||||||
|
!A8 U+00A8 dieresis
|
||||||
|
!A9 U+00A9 copyright
|
||||||
|
!AA U+015E Scedilla
|
||||||
|
!AB U+00AB guillemotleft
|
||||||
|
!AC U+00AC logicalnot
|
||||||
|
!AD U+00AD hyphen
|
||||||
|
!AE U+00AE registered
|
||||||
|
!AF U+017B Zdotaccent
|
||||||
|
!B0 U+00B0 degree
|
||||||
|
!B1 U+00B1 plusminus
|
||||||
|
!B2 U+02DB ogonek
|
||||||
|
!B3 U+0142 lslash
|
||||||
|
!B4 U+00B4 acute
|
||||||
|
!B5 U+00B5 mu
|
||||||
|
!B6 U+00B6 paragraph
|
||||||
|
!B7 U+00B7 periodcentered
|
||||||
|
!B8 U+00B8 cedilla
|
||||||
|
!B9 U+0105 aogonek
|
||||||
|
!BA U+015F scedilla
|
||||||
|
!BB U+00BB guillemotright
|
||||||
|
!BC U+013D Lcaron
|
||||||
|
!BD U+02DD hungarumlaut
|
||||||
|
!BE U+013E lcaron
|
||||||
|
!BF U+017C zdotaccent
|
||||||
|
!C0 U+0154 Racute
|
||||||
|
!C1 U+00C1 Aacute
|
||||||
|
!C2 U+00C2 Acircumflex
|
||||||
|
!C3 U+0102 Abreve
|
||||||
|
!C4 U+00C4 Adieresis
|
||||||
|
!C5 U+0139 Lacute
|
||||||
|
!C6 U+0106 Cacute
|
||||||
|
!C7 U+00C7 Ccedilla
|
||||||
|
!C8 U+010C Ccaron
|
||||||
|
!C9 U+00C9 Eacute
|
||||||
|
!CA U+0118 Eogonek
|
||||||
|
!CB U+00CB Edieresis
|
||||||
|
!CC U+011A Ecaron
|
||||||
|
!CD U+00CD Iacute
|
||||||
|
!CE U+00CE Icircumflex
|
||||||
|
!CF U+010E Dcaron
|
||||||
|
!D0 U+0110 Dcroat
|
||||||
|
!D1 U+0143 Nacute
|
||||||
|
!D2 U+0147 Ncaron
|
||||||
|
!D3 U+00D3 Oacute
|
||||||
|
!D4 U+00D4 Ocircumflex
|
||||||
|
!D5 U+0150 Ohungarumlaut
|
||||||
|
!D6 U+00D6 Odieresis
|
||||||
|
!D7 U+00D7 multiply
|
||||||
|
!D8 U+0158 Rcaron
|
||||||
|
!D9 U+016E Uring
|
||||||
|
!DA U+00DA Uacute
|
||||||
|
!DB U+0170 Uhungarumlaut
|
||||||
|
!DC U+00DC Udieresis
|
||||||
|
!DD U+00DD Yacute
|
||||||
|
!DE U+0162 Tcommaaccent
|
||||||
|
!DF U+00DF germandbls
|
||||||
|
!E0 U+0155 racute
|
||||||
|
!E1 U+00E1 aacute
|
||||||
|
!E2 U+00E2 acircumflex
|
||||||
|
!E3 U+0103 abreve
|
||||||
|
!E4 U+00E4 adieresis
|
||||||
|
!E5 U+013A lacute
|
||||||
|
!E6 U+0107 cacute
|
||||||
|
!E7 U+00E7 ccedilla
|
||||||
|
!E8 U+010D ccaron
|
||||||
|
!E9 U+00E9 eacute
|
||||||
|
!EA U+0119 eogonek
|
||||||
|
!EB U+00EB edieresis
|
||||||
|
!EC U+011B ecaron
|
||||||
|
!ED U+00ED iacute
|
||||||
|
!EE U+00EE icircumflex
|
||||||
|
!EF U+010F dcaron
|
||||||
|
!F0 U+0111 dcroat
|
||||||
|
!F1 U+0144 nacute
|
||||||
|
!F2 U+0148 ncaron
|
||||||
|
!F3 U+00F3 oacute
|
||||||
|
!F4 U+00F4 ocircumflex
|
||||||
|
!F5 U+0151 ohungarumlaut
|
||||||
|
!F6 U+00F6 odieresis
|
||||||
|
!F7 U+00F7 divide
|
||||||
|
!F8 U+0159 rcaron
|
||||||
|
!F9 U+016F uring
|
||||||
|
!FA U+00FA uacute
|
||||||
|
!FB U+0171 uhungarumlaut
|
||||||
|
!FC U+00FC udieresis
|
||||||
|
!FD U+00FD yacute
|
||||||
|
!FE U+0163 tcommaaccent
|
||||||
|
!FF U+02D9 dotaccent
|
255
share/pnp/application/vendor/fpdf/makefont/cp1251.map
vendored
Executable file
255
share/pnp/application/vendor/fpdf/makefont/cp1251.map
vendored
Executable file
@ -0,0 +1,255 @@
|
|||||||
|
!00 U+0000 .notdef
|
||||||
|
!01 U+0001 .notdef
|
||||||
|
!02 U+0002 .notdef
|
||||||
|
!03 U+0003 .notdef
|
||||||
|
!04 U+0004 .notdef
|
||||||
|
!05 U+0005 .notdef
|
||||||
|
!06 U+0006 .notdef
|
||||||
|
!07 U+0007 .notdef
|
||||||
|
!08 U+0008 .notdef
|
||||||
|
!09 U+0009 .notdef
|
||||||
|
!0A U+000A .notdef
|
||||||
|
!0B U+000B .notdef
|
||||||
|
!0C U+000C .notdef
|
||||||
|
!0D U+000D .notdef
|
||||||
|
!0E U+000E .notdef
|
||||||
|
!0F U+000F .notdef
|
||||||
|
!10 U+0010 .notdef
|
||||||
|
!11 U+0011 .notdef
|
||||||
|
!12 U+0012 .notdef
|
||||||
|
!13 U+0013 .notdef
|
||||||
|
!14 U+0014 .notdef
|
||||||
|
!15 U+0015 .notdef
|
||||||
|
!16 U+0016 .notdef
|
||||||
|
!17 U+0017 .notdef
|
||||||
|
!18 U+0018 .notdef
|
||||||
|
!19 U+0019 .notdef
|
||||||
|
!1A U+001A .notdef
|
||||||
|
!1B U+001B .notdef
|
||||||
|
!1C U+001C .notdef
|
||||||
|
!1D U+001D .notdef
|
||||||
|
!1E U+001E .notdef
|
||||||
|
!1F U+001F .notdef
|
||||||
|
!20 U+0020 space
|
||||||
|
!21 U+0021 exclam
|
||||||
|
!22 U+0022 quotedbl
|
||||||
|
!23 U+0023 numbersign
|
||||||
|
!24 U+0024 dollar
|
||||||
|
!25 U+0025 percent
|
||||||
|
!26 U+0026 ampersand
|
||||||
|
!27 U+0027 quotesingle
|
||||||
|
!28 U+0028 parenleft
|
||||||
|
!29 U+0029 parenright
|
||||||
|
!2A U+002A asterisk
|
||||||
|
!2B U+002B plus
|
||||||
|
!2C U+002C comma
|
||||||
|
!2D U+002D hyphen
|
||||||
|
!2E U+002E period
|
||||||
|
!2F U+002F slash
|
||||||
|
!30 U+0030 zero
|
||||||
|
!31 U+0031 one
|
||||||
|
!32 U+0032 two
|
||||||
|
!33 U+0033 three
|
||||||
|
!34 U+0034 four
|
||||||
|
!35 U+0035 five
|
||||||
|
!36 U+0036 six
|
||||||
|
!37 U+0037 seven
|
||||||
|
!38 U+0038 eight
|
||||||
|
!39 U+0039 nine
|
||||||
|
!3A U+003A colon
|
||||||
|
!3B U+003B semicolon
|
||||||
|
!3C U+003C less
|
||||||
|
!3D U+003D equal
|
||||||
|
!3E U+003E greater
|
||||||
|
!3F U+003F question
|
||||||
|
!40 U+0040 at
|
||||||
|
!41 U+0041 A
|
||||||
|
!42 U+0042 B
|
||||||
|
!43 U+0043 C
|
||||||
|
!44 U+0044 D
|
||||||
|
!45 U+0045 E
|
||||||
|
!46 U+0046 F
|
||||||
|
!47 U+0047 G
|
||||||
|
!48 U+0048 H
|
||||||
|
!49 U+0049 I
|
||||||
|
!4A U+004A J
|
||||||
|
!4B U+004B K
|
||||||
|
!4C U+004C L
|
||||||
|
!4D U+004D M
|
||||||
|
!4E U+004E N
|
||||||
|
!4F U+004F O
|
||||||
|
!50 U+0050 P
|
||||||
|
!51 U+0051 Q
|
||||||
|
!52 U+0052 R
|
||||||
|
!53 U+0053 S
|
||||||
|
!54 U+0054 T
|
||||||
|
!55 U+0055 U
|
||||||
|
!56 U+0056 V
|
||||||
|
!57 U+0057 W
|
||||||
|
!58 U+0058 X
|
||||||
|
!59 U+0059 Y
|
||||||
|
!5A U+005A Z
|
||||||
|
!5B U+005B bracketleft
|
||||||
|
!5C U+005C backslash
|
||||||
|
!5D U+005D bracketright
|
||||||
|
!5E U+005E asciicircum
|
||||||
|
!5F U+005F underscore
|
||||||
|
!60 U+0060 grave
|
||||||
|
!61 U+0061 a
|
||||||
|
!62 U+0062 b
|
||||||
|
!63 U+0063 c
|
||||||
|
!64 U+0064 d
|
||||||
|
!65 U+0065 e
|
||||||
|
!66 U+0066 f
|
||||||
|
!67 U+0067 g
|
||||||
|
!68 U+0068 h
|
||||||
|
!69 U+0069 i
|
||||||
|
!6A U+006A j
|
||||||
|
!6B U+006B k
|
||||||
|
!6C U+006C l
|
||||||
|
!6D U+006D m
|
||||||
|
!6E U+006E n
|
||||||
|
!6F U+006F o
|
||||||
|
!70 U+0070 p
|
||||||
|
!71 U+0071 q
|
||||||
|
!72 U+0072 r
|
||||||
|
!73 U+0073 s
|
||||||
|
!74 U+0074 t
|
||||||
|
!75 U+0075 u
|
||||||
|
!76 U+0076 v
|
||||||
|
!77 U+0077 w
|
||||||
|
!78 U+0078 x
|
||||||
|
!79 U+0079 y
|
||||||
|
!7A U+007A z
|
||||||
|
!7B U+007B braceleft
|
||||||
|
!7C U+007C bar
|
||||||
|
!7D U+007D braceright
|
||||||
|
!7E U+007E asciitilde
|
||||||
|
!7F U+007F .notdef
|
||||||
|
!80 U+0402 afii10051
|
||||||
|
!81 U+0403 afii10052
|
||||||
|
!82 U+201A quotesinglbase
|
||||||
|
!83 U+0453 afii10100
|
||||||
|
!84 U+201E quotedblbase
|
||||||
|
!85 U+2026 ellipsis
|
||||||
|
!86 U+2020 dagger
|
||||||
|
!87 U+2021 daggerdbl
|
||||||
|
!88 U+20AC Euro
|
||||||
|
!89 U+2030 perthousand
|
||||||
|
!8A U+0409 afii10058
|
||||||
|
!8B U+2039 guilsinglleft
|
||||||
|
!8C U+040A afii10059
|
||||||
|
!8D U+040C afii10061
|
||||||
|
!8E U+040B afii10060
|
||||||
|
!8F U+040F afii10145
|
||||||
|
!90 U+0452 afii10099
|
||||||
|
!91 U+2018 quoteleft
|
||||||
|
!92 U+2019 quoteright
|
||||||
|
!93 U+201C quotedblleft
|
||||||
|
!94 U+201D quotedblright
|
||||||
|
!95 U+2022 bullet
|
||||||
|
!96 U+2013 endash
|
||||||
|
!97 U+2014 emdash
|
||||||
|
!99 U+2122 trademark
|
||||||
|
!9A U+0459 afii10106
|
||||||
|
!9B U+203A guilsinglright
|
||||||
|
!9C U+045A afii10107
|
||||||
|
!9D U+045C afii10109
|
||||||
|
!9E U+045B afii10108
|
||||||
|
!9F U+045F afii10193
|
||||||
|
!A0 U+00A0 space
|
||||||
|
!A1 U+040E afii10062
|
||||||
|
!A2 U+045E afii10110
|
||||||
|
!A3 U+0408 afii10057
|
||||||
|
!A4 U+00A4 currency
|
||||||
|
!A5 U+0490 afii10050
|
||||||
|
!A6 U+00A6 brokenbar
|
||||||
|
!A7 U+00A7 section
|
||||||
|
!A8 U+0401 afii10023
|
||||||
|
!A9 U+00A9 copyright
|
||||||
|
!AA U+0404 afii10053
|
||||||
|
!AB U+00AB guillemotleft
|
||||||
|
!AC U+00AC logicalnot
|
||||||
|
!AD U+00AD hyphen
|
||||||
|
!AE U+00AE registered
|
||||||
|
!AF U+0407 afii10056
|
||||||
|
!B0 U+00B0 degree
|
||||||
|
!B1 U+00B1 plusminus
|
||||||
|
!B2 U+0406 afii10055
|
||||||
|
!B3 U+0456 afii10103
|
||||||
|
!B4 U+0491 afii10098
|
||||||
|
!B5 U+00B5 mu
|
||||||
|
!B6 U+00B6 paragraph
|
||||||
|
!B7 U+00B7 periodcentered
|
||||||
|
!B8 U+0451 afii10071
|
||||||
|
!B9 U+2116 afii61352
|
||||||
|
!BA U+0454 afii10101
|
||||||
|
!BB U+00BB guillemotright
|
||||||
|
!BC U+0458 afii10105
|
||||||
|
!BD U+0405 afii10054
|
||||||
|
!BE U+0455 afii10102
|
||||||
|
!BF U+0457 afii10104
|
||||||
|
!C0 U+0410 afii10017
|
||||||
|
!C1 U+0411 afii10018
|
||||||
|
!C2 U+0412 afii10019
|
||||||
|
!C3 U+0413 afii10020
|
||||||
|
!C4 U+0414 afii10021
|
||||||
|
!C5 U+0415 afii10022
|
||||||
|
!C6 U+0416 afii10024
|
||||||
|
!C7 U+0417 afii10025
|
||||||
|
!C8 U+0418 afii10026
|
||||||
|
!C9 U+0419 afii10027
|
||||||
|
!CA U+041A afii10028
|
||||||
|
!CB U+041B afii10029
|
||||||
|
!CC U+041C afii10030
|
||||||
|
!CD U+041D afii10031
|
||||||
|
!CE U+041E afii10032
|
||||||
|
!CF U+041F afii10033
|
||||||
|
!D0 U+0420 afii10034
|
||||||
|
!D1 U+0421 afii10035
|
||||||
|
!D2 U+0422 afii10036
|
||||||
|
!D3 U+0423 afii10037
|
||||||
|
!D4 U+0424 afii10038
|
||||||
|
!D5 U+0425 afii10039
|
||||||
|
!D6 U+0426 afii10040
|
||||||
|
!D7 U+0427 afii10041
|
||||||
|
!D8 U+0428 afii10042
|
||||||
|
!D9 U+0429 afii10043
|
||||||
|
!DA U+042A afii10044
|
||||||
|
!DB U+042B afii10045
|
||||||
|
!DC U+042C afii10046
|
||||||
|
!DD U+042D afii10047
|
||||||
|
!DE U+042E afii10048
|
||||||
|
!DF U+042F afii10049
|
||||||
|
!E0 U+0430 afii10065
|
||||||
|
!E1 U+0431 afii10066
|
||||||
|
!E2 U+0432 afii10067
|
||||||
|
!E3 U+0433 afii10068
|
||||||
|
!E4 U+0434 afii10069
|
||||||
|
!E5 U+0435 afii10070
|
||||||
|
!E6 U+0436 afii10072
|
||||||
|
!E7 U+0437 afii10073
|
||||||
|
!E8 U+0438 afii10074
|
||||||
|
!E9 U+0439 afii10075
|
||||||
|
!EA U+043A afii10076
|
||||||
|
!EB U+043B afii10077
|
||||||
|
!EC U+043C afii10078
|
||||||
|
!ED U+043D afii10079
|
||||||
|
!EE U+043E afii10080
|
||||||
|
!EF U+043F afii10081
|
||||||
|
!F0 U+0440 afii10082
|
||||||
|
!F1 U+0441 afii10083
|
||||||
|
!F2 U+0442 afii10084
|
||||||
|
!F3 U+0443 afii10085
|
||||||
|
!F4 U+0444 afii10086
|
||||||
|
!F5 U+0445 afii10087
|
||||||
|
!F6 U+0446 afii10088
|
||||||
|
!F7 U+0447 afii10089
|
||||||
|
!F8 U+0448 afii10090
|
||||||
|
!F9 U+0449 afii10091
|
||||||
|
!FA U+044A afii10092
|
||||||
|
!FB U+044B afii10093
|
||||||
|
!FC U+044C afii10094
|
||||||
|
!FD U+044D afii10095
|
||||||
|
!FE U+044E afii10096
|
||||||
|
!FF U+044F afii10097
|
251
share/pnp/application/vendor/fpdf/makefont/cp1252.map
vendored
Executable file
251
share/pnp/application/vendor/fpdf/makefont/cp1252.map
vendored
Executable file
@ -0,0 +1,251 @@
|
|||||||
|
!00 U+0000 .notdef
|
||||||
|
!01 U+0001 .notdef
|
||||||
|
!02 U+0002 .notdef
|
||||||
|
!03 U+0003 .notdef
|
||||||
|
!04 U+0004 .notdef
|
||||||
|
!05 U+0005 .notdef
|
||||||
|
!06 U+0006 .notdef
|
||||||
|
!07 U+0007 .notdef
|
||||||
|
!08 U+0008 .notdef
|
||||||
|
!09 U+0009 .notdef
|
||||||
|
!0A U+000A .notdef
|
||||||
|
!0B U+000B .notdef
|
||||||
|
!0C U+000C .notdef
|
||||||
|
!0D U+000D .notdef
|
||||||
|
!0E U+000E .notdef
|
||||||
|
!0F U+000F .notdef
|
||||||
|
!10 U+0010 .notdef
|
||||||
|
!11 U+0011 .notdef
|
||||||
|
!12 U+0012 .notdef
|
||||||
|
!13 U+0013 .notdef
|
||||||
|
!14 U+0014 .notdef
|
||||||
|
!15 U+0015 .notdef
|
||||||
|
!16 U+0016 .notdef
|
||||||
|
!17 U+0017 .notdef
|
||||||
|
!18 U+0018 .notdef
|
||||||
|
!19 U+0019 .notdef
|
||||||
|
!1A U+001A .notdef
|
||||||
|
!1B U+001B .notdef
|
||||||
|
!1C U+001C .notdef
|
||||||
|
!1D U+001D .notdef
|
||||||
|
!1E U+001E .notdef
|
||||||
|
!1F U+001F .notdef
|
||||||
|
!20 U+0020 space
|
||||||
|
!21 U+0021 exclam
|
||||||
|
!22 U+0022 quotedbl
|
||||||
|
!23 U+0023 numbersign
|
||||||
|
!24 U+0024 dollar
|
||||||
|
!25 U+0025 percent
|
||||||
|
!26 U+0026 ampersand
|
||||||
|
!27 U+0027 quotesingle
|
||||||
|
!28 U+0028 parenleft
|
||||||
|
!29 U+0029 parenright
|
||||||
|
!2A U+002A asterisk
|
||||||
|
!2B U+002B plus
|
||||||
|
!2C U+002C comma
|
||||||
|
!2D U+002D hyphen
|
||||||
|
!2E U+002E period
|
||||||
|
!2F U+002F slash
|
||||||
|
!30 U+0030 zero
|
||||||
|
!31 U+0031 one
|
||||||
|
!32 U+0032 two
|
||||||
|
!33 U+0033 three
|
||||||
|
!34 U+0034 four
|
||||||
|
!35 U+0035 five
|
||||||
|
!36 U+0036 six
|
||||||
|
!37 U+0037 seven
|
||||||
|
!38 U+0038 eight
|
||||||
|
!39 U+0039 nine
|
||||||
|
!3A U+003A colon
|
||||||
|
!3B U+003B semicolon
|
||||||
|
!3C U+003C less
|
||||||
|
!3D U+003D equal
|
||||||
|
!3E U+003E greater
|
||||||
|
!3F U+003F question
|
||||||
|
!40 U+0040 at
|
||||||
|
!41 U+0041 A
|
||||||
|
!42 U+0042 B
|
||||||
|
!43 U+0043 C
|
||||||
|
!44 U+0044 D
|
||||||
|
!45 U+0045 E
|
||||||
|
!46 U+0046 F
|
||||||
|
!47 U+0047 G
|
||||||
|
!48 U+0048 H
|
||||||
|
!49 U+0049 I
|
||||||
|
!4A U+004A J
|
||||||
|
!4B U+004B K
|
||||||
|
!4C U+004C L
|
||||||
|
!4D U+004D M
|
||||||
|
!4E U+004E N
|
||||||
|
!4F U+004F O
|
||||||
|
!50 U+0050 P
|
||||||
|
!51 U+0051 Q
|
||||||
|
!52 U+0052 R
|
||||||
|
!53 U+0053 S
|
||||||
|
!54 U+0054 T
|
||||||
|
!55 U+0055 U
|
||||||
|
!56 U+0056 V
|
||||||
|
!57 U+0057 W
|
||||||
|
!58 U+0058 X
|
||||||
|
!59 U+0059 Y
|
||||||
|
!5A U+005A Z
|
||||||
|
!5B U+005B bracketleft
|
||||||
|
!5C U+005C backslash
|
||||||
|
!5D U+005D bracketright
|
||||||
|
!5E U+005E asciicircum
|
||||||
|
!5F U+005F underscore
|
||||||
|
!60 U+0060 grave
|
||||||
|
!61 U+0061 a
|
||||||
|
!62 U+0062 b
|
||||||
|
!63 U+0063 c
|
||||||
|
!64 U+0064 d
|
||||||
|
!65 U+0065 e
|
||||||
|
!66 U+0066 f
|
||||||
|
!67 U+0067 g
|
||||||
|
!68 U+0068 h
|
||||||
|
!69 U+0069 i
|
||||||
|
!6A U+006A j
|
||||||
|
!6B U+006B k
|
||||||
|
!6C U+006C l
|
||||||
|
!6D U+006D m
|
||||||
|
!6E U+006E n
|
||||||
|
!6F U+006F o
|
||||||
|
!70 U+0070 p
|
||||||
|
!71 U+0071 q
|
||||||
|
!72 U+0072 r
|
||||||
|
!73 U+0073 s
|
||||||
|
!74 U+0074 t
|
||||||
|
!75 U+0075 u
|
||||||
|
!76 U+0076 v
|
||||||
|
!77 U+0077 w
|
||||||
|
!78 U+0078 x
|
||||||
|
!79 U+0079 y
|
||||||
|
!7A U+007A z
|
||||||
|
!7B U+007B braceleft
|
||||||
|
!7C U+007C bar
|
||||||
|
!7D U+007D braceright
|
||||||
|
!7E U+007E asciitilde
|
||||||
|
!7F U+007F .notdef
|
||||||
|
!80 U+20AC Euro
|
||||||
|
!82 U+201A quotesinglbase
|
||||||
|
!83 U+0192 florin
|
||||||
|
!84 U+201E quotedblbase
|
||||||
|
!85 U+2026 ellipsis
|
||||||
|
!86 U+2020 dagger
|
||||||
|
!87 U+2021 daggerdbl
|
||||||
|
!88 U+02C6 circumflex
|
||||||
|
!89 U+2030 perthousand
|
||||||
|
!8A U+0160 Scaron
|
||||||
|
!8B U+2039 guilsinglleft
|
||||||
|
!8C U+0152 OE
|
||||||
|
!8E U+017D Zcaron
|
||||||
|
!91 U+2018 quoteleft
|
||||||
|
!92 U+2019 quoteright
|
||||||
|
!93 U+201C quotedblleft
|
||||||
|
!94 U+201D quotedblright
|
||||||
|
!95 U+2022 bullet
|
||||||
|
!96 U+2013 endash
|
||||||
|
!97 U+2014 emdash
|
||||||
|
!98 U+02DC tilde
|
||||||
|
!99 U+2122 trademark
|
||||||
|
!9A U+0161 scaron
|
||||||
|
!9B U+203A guilsinglright
|
||||||
|
!9C U+0153 oe
|
||||||
|
!9E U+017E zcaron
|
||||||
|
!9F U+0178 Ydieresis
|
||||||
|
!A0 U+00A0 space
|
||||||
|
!A1 U+00A1 exclamdown
|
||||||
|
!A2 U+00A2 cent
|
||||||
|
!A3 U+00A3 sterling
|
||||||
|
!A4 U+00A4 currency
|
||||||
|
!A5 U+00A5 yen
|
||||||
|
!A6 U+00A6 brokenbar
|
||||||
|
!A7 U+00A7 section
|
||||||
|
!A8 U+00A8 dieresis
|
||||||
|
!A9 U+00A9 copyright
|
||||||
|
!AA U+00AA ordfeminine
|
||||||
|
!AB U+00AB guillemotleft
|
||||||
|
!AC U+00AC logicalnot
|
||||||
|
!AD U+00AD hyphen
|
||||||
|
!AE U+00AE registered
|
||||||
|
!AF U+00AF macron
|
||||||
|
!B0 U+00B0 degree
|
||||||
|
!B1 U+00B1 plusminus
|
||||||
|
!B2 U+00B2 twosuperior
|
||||||
|
!B3 U+00B3 threesuperior
|
||||||
|
!B4 U+00B4 acute
|
||||||
|
!B5 U+00B5 mu
|
||||||
|
!B6 U+00B6 paragraph
|
||||||
|
!B7 U+00B7 periodcentered
|
||||||
|
!B8 U+00B8 cedilla
|
||||||
|
!B9 U+00B9 onesuperior
|
||||||
|
!BA U+00BA ordmasculine
|
||||||
|
!BB U+00BB guillemotright
|
||||||
|
!BC U+00BC onequarter
|
||||||
|
!BD U+00BD onehalf
|
||||||
|
!BE U+00BE threequarters
|
||||||
|
!BF U+00BF questiondown
|
||||||
|
!C0 U+00C0 Agrave
|
||||||
|
!C1 U+00C1 Aacute
|
||||||
|
!C2 U+00C2 Acircumflex
|
||||||
|
!C3 U+00C3 Atilde
|
||||||
|
!C4 U+00C4 Adieresis
|
||||||
|
!C5 U+00C5 Aring
|
||||||
|
!C6 U+00C6 AE
|
||||||
|
!C7 U+00C7 Ccedilla
|
||||||
|
!C8 U+00C8 Egrave
|
||||||
|
!C9 U+00C9 Eacute
|
||||||
|
!CA U+00CA Ecircumflex
|
||||||
|
!CB U+00CB Edieresis
|
||||||
|
!CC U+00CC Igrave
|
||||||
|
!CD U+00CD Iacute
|
||||||
|
!CE U+00CE Icircumflex
|
||||||
|
!CF U+00CF Idieresis
|
||||||
|
!D0 U+00D0 Eth
|
||||||
|
!D1 U+00D1 Ntilde
|
||||||
|
!D2 U+00D2 Ograve
|
||||||
|
!D3 U+00D3 Oacute
|
||||||
|
!D4 U+00D4 Ocircumflex
|
||||||
|
!D5 U+00D5 Otilde
|
||||||
|
!D6 U+00D6 Odieresis
|
||||||
|
!D7 U+00D7 multiply
|
||||||
|
!D8 U+00D8 Oslash
|
||||||
|
!D9 U+00D9 Ugrave
|
||||||
|
!DA U+00DA Uacute
|
||||||
|
!DB U+00DB Ucircumflex
|
||||||
|
!DC U+00DC Udieresis
|
||||||
|
!DD U+00DD Yacute
|
||||||
|
!DE U+00DE Thorn
|
||||||
|
!DF U+00DF germandbls
|
||||||
|
!E0 U+00E0 agrave
|
||||||
|
!E1 U+00E1 aacute
|
||||||
|
!E2 U+00E2 acircumflex
|
||||||
|
!E3 U+00E3 atilde
|
||||||
|
!E4 U+00E4 adieresis
|
||||||
|
!E5 U+00E5 aring
|
||||||
|
!E6 U+00E6 ae
|
||||||
|
!E7 U+00E7 ccedilla
|
||||||
|
!E8 U+00E8 egrave
|
||||||
|
!E9 U+00E9 eacute
|
||||||
|
!EA U+00EA ecircumflex
|
||||||
|
!EB U+00EB edieresis
|
||||||
|
!EC U+00EC igrave
|
||||||
|
!ED U+00ED iacute
|
||||||
|
!EE U+00EE icircumflex
|
||||||
|
!EF U+00EF idieresis
|
||||||
|
!F0 U+00F0 eth
|
||||||
|
!F1 U+00F1 ntilde
|
||||||
|
!F2 U+00F2 ograve
|
||||||
|
!F3 U+00F3 oacute
|
||||||
|
!F4 U+00F4 ocircumflex
|
||||||
|
!F5 U+00F5 otilde
|
||||||
|
!F6 U+00F6 odieresis
|
||||||
|
!F7 U+00F7 divide
|
||||||
|
!F8 U+00F8 oslash
|
||||||
|
!F9 U+00F9 ugrave
|
||||||
|
!FA U+00FA uacute
|
||||||
|
!FB U+00FB ucircumflex
|
||||||
|
!FC U+00FC udieresis
|
||||||
|
!FD U+00FD yacute
|
||||||
|
!FE U+00FE thorn
|
||||||
|
!FF U+00FF ydieresis
|
239
share/pnp/application/vendor/fpdf/makefont/cp1253.map
vendored
Executable file
239
share/pnp/application/vendor/fpdf/makefont/cp1253.map
vendored
Executable file
@ -0,0 +1,239 @@
|
|||||||
|
!00 U+0000 .notdef
|
||||||
|
!01 U+0001 .notdef
|
||||||
|
!02 U+0002 .notdef
|
||||||
|
!03 U+0003 .notdef
|
||||||
|
!04 U+0004 .notdef
|
||||||
|
!05 U+0005 .notdef
|
||||||
|
!06 U+0006 .notdef
|
||||||
|
!07 U+0007 .notdef
|
||||||
|
!08 U+0008 .notdef
|
||||||
|
!09 U+0009 .notdef
|
||||||
|
!0A U+000A .notdef
|
||||||
|
!0B U+000B .notdef
|
||||||
|
!0C U+000C .notdef
|
||||||
|
!0D U+000D .notdef
|
||||||
|
!0E U+000E .notdef
|
||||||
|
!0F U+000F .notdef
|
||||||
|
!10 U+0010 .notdef
|
||||||
|
!11 U+0011 .notdef
|
||||||
|
!12 U+0012 .notdef
|
||||||
|
!13 U+0013 .notdef
|
||||||
|
!14 U+0014 .notdef
|
||||||
|
!15 U+0015 .notdef
|
||||||
|
!16 U+0016 .notdef
|
||||||
|
!17 U+0017 .notdef
|
||||||
|
!18 U+0018 .notdef
|
||||||
|
!19 U+0019 .notdef
|
||||||
|
!1A U+001A .notdef
|
||||||
|
!1B U+001B .notdef
|
||||||
|
!1C U+001C .notdef
|
||||||
|
!1D U+001D .notdef
|
||||||
|
!1E U+001E .notdef
|
||||||
|
!1F U+001F .notdef
|
||||||
|
!20 U+0020 space
|
||||||
|
!21 U+0021 exclam
|
||||||
|
!22 U+0022 quotedbl
|
||||||
|
!23 U+0023 numbersign
|
||||||
|
!24 U+0024 dollar
|
||||||
|
!25 U+0025 percent
|
||||||
|
!26 U+0026 ampersand
|
||||||
|
!27 U+0027 quotesingle
|
||||||
|
!28 U+0028 parenleft
|
||||||
|
!29 U+0029 parenright
|
||||||
|
!2A U+002A asterisk
|
||||||
|
!2B U+002B plus
|
||||||
|
!2C U+002C comma
|
||||||
|
!2D U+002D hyphen
|
||||||
|
!2E U+002E period
|
||||||
|
!2F U+002F slash
|
||||||
|
!30 U+0030 zero
|
||||||
|
!31 U+0031 one
|
||||||
|
!32 U+0032 two
|
||||||
|
!33 U+0033 three
|
||||||
|
!34 U+0034 four
|
||||||
|
!35 U+0035 five
|
||||||
|
!36 U+0036 six
|
||||||
|
!37 U+0037 seven
|
||||||
|
!38 U+0038 eight
|
||||||
|
!39 U+0039 nine
|
||||||
|
!3A U+003A colon
|
||||||
|
!3B U+003B semicolon
|
||||||
|
!3C U+003C less
|
||||||
|
!3D U+003D equal
|
||||||
|
!3E U+003E greater
|
||||||
|
!3F U+003F question
|
||||||
|
!40 U+0040 at
|
||||||
|
!41 U+0041 A
|
||||||
|
!42 U+0042 B
|
||||||
|
!43 U+0043 C
|
||||||
|
!44 U+0044 D
|
||||||
|
!45 U+0045 E
|
||||||
|
!46 U+0046 F
|
||||||
|
!47 U+0047 G
|
||||||
|
!48 U+0048 H
|
||||||
|
!49 U+0049 I
|
||||||
|
!4A U+004A J
|
||||||
|
!4B U+004B K
|
||||||
|
!4C U+004C L
|
||||||
|
!4D U+004D M
|
||||||
|
!4E U+004E N
|
||||||
|
!4F U+004F O
|
||||||
|
!50 U+0050 P
|
||||||
|
!51 U+0051 Q
|
||||||
|
!52 U+0052 R
|
||||||
|
!53 U+0053 S
|
||||||
|
!54 U+0054 T
|
||||||
|
!55 U+0055 U
|
||||||
|
!56 U+0056 V
|
||||||
|
!57 U+0057 W
|
||||||
|
!58 U+0058 X
|
||||||
|
!59 U+0059 Y
|
||||||
|
!5A U+005A Z
|
||||||
|
!5B U+005B bracketleft
|
||||||
|
!5C U+005C backslash
|
||||||
|
!5D U+005D bracketright
|
||||||
|
!5E U+005E asciicircum
|
||||||
|
!5F U+005F underscore
|
||||||
|
!60 U+0060 grave
|
||||||
|
!61 U+0061 a
|
||||||
|
!62 U+0062 b
|
||||||
|
!63 U+0063 c
|
||||||
|
!64 U+0064 d
|
||||||
|
!65 U+0065 e
|
||||||
|
!66 U+0066 f
|
||||||
|
!67 U+0067 g
|
||||||
|
!68 U+0068 h
|
||||||
|
!69 U+0069 i
|
||||||
|
!6A U+006A j
|
||||||
|
!6B U+006B k
|
||||||
|
!6C U+006C l
|
||||||
|
!6D U+006D m
|
||||||
|
!6E U+006E n
|
||||||
|
!6F U+006F o
|
||||||
|
!70 U+0070 p
|
||||||
|
!71 U+0071 q
|
||||||
|
!72 U+0072 r
|
||||||
|
!73 U+0073 s
|
||||||
|
!74 U+0074 t
|
||||||
|
!75 U+0075 u
|
||||||
|
!76 U+0076 v
|
||||||
|
!77 U+0077 w
|
||||||
|
!78 U+0078 x
|
||||||
|
!79 U+0079 y
|
||||||
|
!7A U+007A z
|
||||||
|
!7B U+007B braceleft
|
||||||
|
!7C U+007C bar
|
||||||
|
!7D U+007D braceright
|
||||||
|
!7E U+007E asciitilde
|
||||||
|
!7F U+007F .notdef
|
||||||
|
!80 U+20AC Euro
|
||||||
|
!82 U+201A quotesinglbase
|
||||||
|
!83 U+0192 florin
|
||||||
|
!84 U+201E quotedblbase
|
||||||
|
!85 U+2026 ellipsis
|
||||||
|
!86 U+2020 dagger
|
||||||
|
!87 U+2021 daggerdbl
|
||||||
|
!89 U+2030 perthousand
|
||||||
|
!8B U+2039 guilsinglleft
|
||||||
|
!91 U+2018 quoteleft
|
||||||
|
!92 U+2019 quoteright
|
||||||
|
!93 U+201C quotedblleft
|
||||||
|
!94 U+201D quotedblright
|
||||||
|
!95 U+2022 bullet
|
||||||
|
!96 U+2013 endash
|
||||||
|
!97 U+2014 emdash
|
||||||
|
!99 U+2122 trademark
|
||||||
|
!9B U+203A guilsinglright
|
||||||
|
!A0 U+00A0 space
|
||||||
|
!A1 U+0385 dieresistonos
|
||||||
|
!A2 U+0386 Alphatonos
|
||||||
|
!A3 U+00A3 sterling
|
||||||
|
!A4 U+00A4 currency
|
||||||
|
!A5 U+00A5 yen
|
||||||
|
!A6 U+00A6 brokenbar
|
||||||
|
!A7 U+00A7 section
|
||||||
|
!A8 U+00A8 dieresis
|
||||||
|
!A9 U+00A9 copyright
|
||||||
|
!AB U+00AB guillemotleft
|
||||||
|
!AC U+00AC logicalnot
|
||||||
|
!AD U+00AD hyphen
|
||||||
|
!AE U+00AE registered
|
||||||
|
!AF U+2015 afii00208
|
||||||
|
!B0 U+00B0 degree
|
||||||
|
!B1 U+00B1 plusminus
|
||||||
|
!B2 U+00B2 twosuperior
|
||||||
|
!B3 U+00B3 threesuperior
|
||||||
|
!B4 U+0384 tonos
|
||||||
|
!B5 U+00B5 mu
|
||||||
|
!B6 U+00B6 paragraph
|
||||||
|
!B7 U+00B7 periodcentered
|
||||||
|
!B8 U+0388 Epsilontonos
|
||||||
|
!B9 U+0389 Etatonos
|
||||||
|
!BA U+038A Iotatonos
|
||||||
|
!BB U+00BB guillemotright
|
||||||
|
!BC U+038C Omicrontonos
|
||||||
|
!BD U+00BD onehalf
|
||||||
|
!BE U+038E Upsilontonos
|
||||||
|
!BF U+038F Omegatonos
|
||||||
|
!C0 U+0390 iotadieresistonos
|
||||||
|
!C1 U+0391 Alpha
|
||||||
|
!C2 U+0392 Beta
|
||||||
|
!C3 U+0393 Gamma
|
||||||
|
!C4 U+0394 Delta
|
||||||
|
!C5 U+0395 Epsilon
|
||||||
|
!C6 U+0396 Zeta
|
||||||
|
!C7 U+0397 Eta
|
||||||
|
!C8 U+0398 Theta
|
||||||
|
!C9 U+0399 Iota
|
||||||
|
!CA U+039A Kappa
|
||||||
|
!CB U+039B Lambda
|
||||||
|
!CC U+039C Mu
|
||||||
|
!CD U+039D Nu
|
||||||
|
!CE U+039E Xi
|
||||||
|
!CF U+039F Omicron
|
||||||
|
!D0 U+03A0 Pi
|
||||||
|
!D1 U+03A1 Rho
|
||||||
|
!D3 U+03A3 Sigma
|
||||||
|
!D4 U+03A4 Tau
|
||||||
|
!D5 U+03A5 Upsilon
|
||||||
|
!D6 U+03A6 Phi
|
||||||
|
!D7 U+03A7 Chi
|
||||||
|
!D8 U+03A8 Psi
|
||||||
|
!D9 U+03A9 Omega
|
||||||
|
!DA U+03AA Iotadieresis
|
||||||
|
!DB U+03AB Upsilondieresis
|
||||||
|
!DC U+03AC alphatonos
|
||||||
|
!DD U+03AD epsilontonos
|
||||||
|
!DE U+03AE etatonos
|
||||||
|
!DF U+03AF iotatonos
|
||||||
|
!E0 U+03B0 upsilondieresistonos
|
||||||
|
!E1 U+03B1 alpha
|
||||||
|
!E2 U+03B2 beta
|
||||||
|
!E3 U+03B3 gamma
|
||||||
|
!E4 U+03B4 delta
|
||||||
|
!E5 U+03B5 epsilon
|
||||||
|
!E6 U+03B6 zeta
|
||||||
|
!E7 U+03B7 eta
|
||||||
|
!E8 U+03B8 theta
|
||||||
|
!E9 U+03B9 iota
|
||||||
|
!EA U+03BA kappa
|
||||||
|
!EB U+03BB lambda
|
||||||
|
!EC U+03BC mu
|
||||||
|
!ED U+03BD nu
|
||||||
|
!EE U+03BE xi
|
||||||
|
!EF U+03BF omicron
|
||||||
|
!F0 U+03C0 pi
|
||||||
|
!F1 U+03C1 rho
|
||||||
|
!F2 U+03C2 sigma1
|
||||||
|
!F3 U+03C3 sigma
|
||||||
|
!F4 U+03C4 tau
|
||||||
|
!F5 U+03C5 upsilon
|
||||||
|
!F6 U+03C6 phi
|
||||||
|
!F7 U+03C7 chi
|
||||||
|
!F8 U+03C8 psi
|
||||||
|
!F9 U+03C9 omega
|
||||||
|
!FA U+03CA iotadieresis
|
||||||
|
!FB U+03CB upsilondieresis
|
||||||
|
!FC U+03CC omicrontonos
|
||||||
|
!FD U+03CD upsilontonos
|
||||||
|
!FE U+03CE omegatonos
|
249
share/pnp/application/vendor/fpdf/makefont/cp1254.map
vendored
Executable file
249
share/pnp/application/vendor/fpdf/makefont/cp1254.map
vendored
Executable file
@ -0,0 +1,249 @@
|
|||||||
|
!00 U+0000 .notdef
|
||||||
|
!01 U+0001 .notdef
|
||||||
|
!02 U+0002 .notdef
|
||||||
|
!03 U+0003 .notdef
|
||||||
|
!04 U+0004 .notdef
|
||||||
|
!05 U+0005 .notdef
|
||||||
|
!06 U+0006 .notdef
|
||||||
|
!07 U+0007 .notdef
|
||||||
|
!08 U+0008 .notdef
|
||||||
|
!09 U+0009 .notdef
|
||||||
|
!0A U+000A .notdef
|
||||||
|
!0B U+000B .notdef
|
||||||
|
!0C U+000C .notdef
|
||||||
|
!0D U+000D .notdef
|
||||||
|
!0E U+000E .notdef
|
||||||
|
!0F U+000F .notdef
|
||||||
|
!10 U+0010 .notdef
|
||||||
|
!11 U+0011 .notdef
|
||||||
|
!12 U+0012 .notdef
|
||||||
|
!13 U+0013 .notdef
|
||||||
|
!14 U+0014 .notdef
|
||||||
|
!15 U+0015 .notdef
|
||||||
|
!16 U+0016 .notdef
|
||||||
|
!17 U+0017 .notdef
|
||||||
|
!18 U+0018 .notdef
|
||||||
|
!19 U+0019 .notdef
|
||||||
|
!1A U+001A .notdef
|
||||||
|
!1B U+001B .notdef
|
||||||
|
!1C U+001C .notdef
|
||||||
|
!1D U+001D .notdef
|
||||||
|
!1E U+001E .notdef
|
||||||
|
!1F U+001F .notdef
|
||||||
|
!20 U+0020 space
|
||||||
|
!21 U+0021 exclam
|
||||||
|
!22 U+0022 quotedbl
|
||||||
|
!23 U+0023 numbersign
|
||||||
|
!24 U+0024 dollar
|
||||||
|
!25 U+0025 percent
|
||||||
|
!26 U+0026 ampersand
|
||||||
|
!27 U+0027 quotesingle
|
||||||
|
!28 U+0028 parenleft
|
||||||
|
!29 U+0029 parenright
|
||||||
|
!2A U+002A asterisk
|
||||||
|
!2B U+002B plus
|
||||||
|
!2C U+002C comma
|
||||||
|
!2D U+002D hyphen
|
||||||
|
!2E U+002E period
|
||||||
|
!2F U+002F slash
|
||||||
|
!30 U+0030 zero
|
||||||
|
!31 U+0031 one
|
||||||
|
!32 U+0032 two
|
||||||
|
!33 U+0033 three
|
||||||
|
!34 U+0034 four
|
||||||
|
!35 U+0035 five
|
||||||
|
!36 U+0036 six
|
||||||
|
!37 U+0037 seven
|
||||||
|
!38 U+0038 eight
|
||||||
|
!39 U+0039 nine
|
||||||
|
!3A U+003A colon
|
||||||
|
!3B U+003B semicolon
|
||||||
|
!3C U+003C less
|
||||||
|
!3D U+003D equal
|
||||||
|
!3E U+003E greater
|
||||||
|
!3F U+003F question
|
||||||
|
!40 U+0040 at
|
||||||
|
!41 U+0041 A
|
||||||
|
!42 U+0042 B
|
||||||
|
!43 U+0043 C
|
||||||
|
!44 U+0044 D
|
||||||
|
!45 U+0045 E
|
||||||
|
!46 U+0046 F
|
||||||
|
!47 U+0047 G
|
||||||
|
!48 U+0048 H
|
||||||
|
!49 U+0049 I
|
||||||
|
!4A U+004A J
|
||||||
|
!4B U+004B K
|
||||||
|
!4C U+004C L
|
||||||
|
!4D U+004D M
|
||||||
|
!4E U+004E N
|
||||||
|
!4F U+004F O
|
||||||
|
!50 U+0050 P
|
||||||
|
!51 U+0051 Q
|
||||||
|
!52 U+0052 R
|
||||||
|
!53 U+0053 S
|
||||||
|
!54 U+0054 T
|
||||||
|
!55 U+0055 U
|
||||||
|
!56 U+0056 V
|
||||||
|
!57 U+0057 W
|
||||||
|
!58 U+0058 X
|
||||||
|
!59 U+0059 Y
|
||||||
|
!5A U+005A Z
|
||||||
|
!5B U+005B bracketleft
|
||||||
|
!5C U+005C backslash
|
||||||
|
!5D U+005D bracketright
|
||||||
|
!5E U+005E asciicircum
|
||||||
|
!5F U+005F underscore
|
||||||
|
!60 U+0060 grave
|
||||||
|
!61 U+0061 a
|
||||||
|
!62 U+0062 b
|
||||||
|
!63 U+0063 c
|
||||||
|
!64 U+0064 d
|
||||||
|
!65 U+0065 e
|
||||||
|
!66 U+0066 f
|
||||||
|
!67 U+0067 g
|
||||||
|
!68 U+0068 h
|
||||||
|
!69 U+0069 i
|
||||||
|
!6A U+006A j
|
||||||
|
!6B U+006B k
|
||||||
|
!6C U+006C l
|
||||||
|
!6D U+006D m
|
||||||
|
!6E U+006E n
|
||||||
|
!6F U+006F o
|
||||||
|
!70 U+0070 p
|
||||||
|
!71 U+0071 q
|
||||||
|
!72 U+0072 r
|
||||||
|
!73 U+0073 s
|
||||||
|
!74 U+0074 t
|
||||||
|
!75 U+0075 u
|
||||||
|
!76 U+0076 v
|
||||||
|
!77 U+0077 w
|
||||||
|
!78 U+0078 x
|
||||||
|
!79 U+0079 y
|
||||||
|
!7A U+007A z
|
||||||
|
!7B U+007B braceleft
|
||||||
|
!7C U+007C bar
|
||||||
|
!7D U+007D braceright
|
||||||
|
!7E U+007E asciitilde
|
||||||
|
!7F U+007F .notdef
|
||||||
|
!80 U+20AC Euro
|
||||||
|
!82 U+201A quotesinglbase
|
||||||
|
!83 U+0192 florin
|
||||||
|
!84 U+201E quotedblbase
|
||||||
|
!85 U+2026 ellipsis
|
||||||
|
!86 U+2020 dagger
|
||||||
|
!87 U+2021 daggerdbl
|
||||||
|
!88 U+02C6 circumflex
|
||||||
|
!89 U+2030 perthousand
|
||||||
|
!8A U+0160 Scaron
|
||||||
|
!8B U+2039 guilsinglleft
|
||||||
|
!8C U+0152 OE
|
||||||
|
!91 U+2018 quoteleft
|
||||||
|
!92 U+2019 quoteright
|
||||||
|
!93 U+201C quotedblleft
|
||||||
|
!94 U+201D quotedblright
|
||||||
|
!95 U+2022 bullet
|
||||||
|
!96 U+2013 endash
|
||||||
|
!97 U+2014 emdash
|
||||||
|
!98 U+02DC tilde
|
||||||
|
!99 U+2122 trademark
|
||||||
|
!9A U+0161 scaron
|
||||||
|
!9B U+203A guilsinglright
|
||||||
|
!9C U+0153 oe
|
||||||
|
!9F U+0178 Ydieresis
|
||||||
|
!A0 U+00A0 space
|
||||||
|
!A1 U+00A1 exclamdown
|
||||||
|
!A2 U+00A2 cent
|
||||||
|
!A3 U+00A3 sterling
|
||||||
|
!A4 U+00A4 currency
|
||||||
|
!A5 U+00A5 yen
|
||||||
|
!A6 U+00A6 brokenbar
|
||||||
|
!A7 U+00A7 section
|
||||||
|
!A8 U+00A8 dieresis
|
||||||
|
!A9 U+00A9 copyright
|
||||||
|
!AA U+00AA ordfeminine
|
||||||
|
!AB U+00AB guillemotleft
|
||||||
|
!AC U+00AC logicalnot
|
||||||
|
!AD U+00AD hyphen
|
||||||
|
!AE U+00AE registered
|
||||||
|
!AF U+00AF macron
|
||||||
|
!B0 U+00B0 degree
|
||||||
|
!B1 U+00B1 plusminus
|
||||||
|
!B2 U+00B2 twosuperior
|
||||||
|
!B3 U+00B3 threesuperior
|
||||||
|
!B4 U+00B4 acute
|
||||||
|
!B5 U+00B5 mu
|
||||||
|
!B6 U+00B6 paragraph
|
||||||
|
!B7 U+00B7 periodcentered
|
||||||
|
!B8 U+00B8 cedilla
|
||||||
|
!B9 U+00B9 onesuperior
|
||||||
|
!BA U+00BA ordmasculine
|
||||||
|
!BB U+00BB guillemotright
|
||||||
|
!BC U+00BC onequarter
|
||||||
|
!BD U+00BD onehalf
|
||||||
|
!BE U+00BE threequarters
|
||||||
|
!BF U+00BF questiondown
|
||||||
|
!C0 U+00C0 Agrave
|
||||||
|
!C1 U+00C1 Aacute
|
||||||
|
!C2 U+00C2 Acircumflex
|
||||||
|
!C3 U+00C3 Atilde
|
||||||
|
!C4 U+00C4 Adieresis
|
||||||
|
!C5 U+00C5 Aring
|
||||||
|
!C6 U+00C6 AE
|
||||||
|
!C7 U+00C7 Ccedilla
|
||||||
|
!C8 U+00C8 Egrave
|
||||||
|
!C9 U+00C9 Eacute
|
||||||
|
!CA U+00CA Ecircumflex
|
||||||
|
!CB U+00CB Edieresis
|
||||||
|
!CC U+00CC Igrave
|
||||||
|
!CD U+00CD Iacute
|
||||||
|
!CE U+00CE Icircumflex
|
||||||
|
!CF U+00CF Idieresis
|
||||||
|
!D0 U+011E Gbreve
|
||||||
|
!D1 U+00D1 Ntilde
|
||||||
|
!D2 U+00D2 Ograve
|
||||||
|
!D3 U+00D3 Oacute
|
||||||
|
!D4 U+00D4 Ocircumflex
|
||||||
|
!D5 U+00D5 Otilde
|
||||||
|
!D6 U+00D6 Odieresis
|
||||||
|
!D7 U+00D7 multiply
|
||||||
|
!D8 U+00D8 Oslash
|
||||||
|
!D9 U+00D9 Ugrave
|
||||||
|
!DA U+00DA Uacute
|
||||||
|
!DB U+00DB Ucircumflex
|
||||||
|
!DC U+00DC Udieresis
|
||||||
|
!DD U+0130 Idotaccent
|
||||||
|
!DE U+015E Scedilla
|
||||||
|
!DF U+00DF germandbls
|
||||||
|
!E0 U+00E0 agrave
|
||||||
|
!E1 U+00E1 aacute
|
||||||
|
!E2 U+00E2 acircumflex
|
||||||
|
!E3 U+00E3 atilde
|
||||||
|
!E4 U+00E4 adieresis
|
||||||
|
!E5 U+00E5 aring
|
||||||
|
!E6 U+00E6 ae
|
||||||
|
!E7 U+00E7 ccedilla
|
||||||
|
!E8 U+00E8 egrave
|
||||||
|
!E9 U+00E9 eacute
|
||||||
|
!EA U+00EA ecircumflex
|
||||||
|
!EB U+00EB edieresis
|
||||||
|
!EC U+00EC igrave
|
||||||
|
!ED U+00ED iacute
|
||||||
|
!EE U+00EE icircumflex
|
||||||
|
!EF U+00EF idieresis
|
||||||
|
!F0 U+011F gbreve
|
||||||
|
!F1 U+00F1 ntilde
|
||||||
|
!F2 U+00F2 ograve
|
||||||
|
!F3 U+00F3 oacute
|
||||||
|
!F4 U+00F4 ocircumflex
|
||||||
|
!F5 U+00F5 otilde
|
||||||
|
!F6 U+00F6 odieresis
|
||||||
|
!F7 U+00F7 divide
|
||||||
|
!F8 U+00F8 oslash
|
||||||
|
!F9 U+00F9 ugrave
|
||||||
|
!FA U+00FA uacute
|
||||||
|
!FB U+00FB ucircumflex
|
||||||
|
!FC U+00FC udieresis
|
||||||
|
!FD U+0131 dotlessi
|
||||||
|
!FE U+015F scedilla
|
||||||
|
!FF U+00FF ydieresis
|
233
share/pnp/application/vendor/fpdf/makefont/cp1255.map
vendored
Executable file
233
share/pnp/application/vendor/fpdf/makefont/cp1255.map
vendored
Executable file
@ -0,0 +1,233 @@
|
|||||||
|
!00 U+0000 .notdef
|
||||||
|
!01 U+0001 .notdef
|
||||||
|
!02 U+0002 .notdef
|
||||||
|
!03 U+0003 .notdef
|
||||||
|
!04 U+0004 .notdef
|
||||||
|
!05 U+0005 .notdef
|
||||||
|
!06 U+0006 .notdef
|
||||||
|
!07 U+0007 .notdef
|
||||||
|
!08 U+0008 .notdef
|
||||||
|
!09 U+0009 .notdef
|
||||||
|
!0A U+000A .notdef
|
||||||
|
!0B U+000B .notdef
|
||||||
|
!0C U+000C .notdef
|
||||||
|
!0D U+000D .notdef
|
||||||
|
!0E U+000E .notdef
|
||||||
|
!0F U+000F .notdef
|
||||||
|
!10 U+0010 .notdef
|
||||||
|
!11 U+0011 .notdef
|
||||||
|
!12 U+0012 .notdef
|
||||||
|
!13 U+0013 .notdef
|
||||||
|
!14 U+0014 .notdef
|
||||||
|
!15 U+0015 .notdef
|
||||||
|
!16 U+0016 .notdef
|
||||||
|
!17 U+0017 .notdef
|
||||||
|
!18 U+0018 .notdef
|
||||||
|
!19 U+0019 .notdef
|
||||||
|
!1A U+001A .notdef
|
||||||
|
!1B U+001B .notdef
|
||||||
|
!1C U+001C .notdef
|
||||||
|
!1D U+001D .notdef
|
||||||
|
!1E U+001E .notdef
|
||||||
|
!1F U+001F .notdef
|
||||||
|
!20 U+0020 space
|
||||||
|
!21 U+0021 exclam
|
||||||
|
!22 U+0022 quotedbl
|
||||||
|
!23 U+0023 numbersign
|
||||||
|
!24 U+0024 dollar
|
||||||
|
!25 U+0025 percent
|
||||||
|
!26 U+0026 ampersand
|
||||||
|
!27 U+0027 quotesingle
|
||||||
|
!28 U+0028 parenleft
|
||||||
|
!29 U+0029 parenright
|
||||||
|
!2A U+002A asterisk
|
||||||
|
!2B U+002B plus
|
||||||
|
!2C U+002C comma
|
||||||
|
!2D U+002D hyphen
|
||||||
|
!2E U+002E period
|
||||||
|
!2F U+002F slash
|
||||||
|
!30 U+0030 zero
|
||||||
|
!31 U+0031 one
|
||||||
|
!32 U+0032 two
|
||||||
|
!33 U+0033 three
|
||||||
|
!34 U+0034 four
|
||||||
|
!35 U+0035 five
|
||||||
|
!36 U+0036 six
|
||||||
|
!37 U+0037 seven
|
||||||
|
!38 U+0038 eight
|
||||||
|
!39 U+0039 nine
|
||||||
|
!3A U+003A colon
|
||||||
|
!3B U+003B semicolon
|
||||||
|
!3C U+003C less
|
||||||
|
!3D U+003D equal
|
||||||
|
!3E U+003E greater
|
||||||
|
!3F U+003F question
|
||||||
|
!40 U+0040 at
|
||||||
|
!41 U+0041 A
|
||||||
|
!42 U+0042 B
|
||||||
|
!43 U+0043 C
|
||||||
|
!44 U+0044 D
|
||||||
|
!45 U+0045 E
|
||||||
|
!46 U+0046 F
|
||||||
|
!47 U+0047 G
|
||||||
|
!48 U+0048 H
|
||||||
|
!49 U+0049 I
|
||||||
|
!4A U+004A J
|
||||||
|
!4B U+004B K
|
||||||
|
!4C U+004C L
|
||||||
|
!4D U+004D M
|
||||||
|
!4E U+004E N
|
||||||
|
!4F U+004F O
|
||||||
|
!50 U+0050 P
|
||||||
|
!51 U+0051 Q
|
||||||
|
!52 U+0052 R
|
||||||
|
!53 U+0053 S
|
||||||
|
!54 U+0054 T
|
||||||
|
!55 U+0055 U
|
||||||
|
!56 U+0056 V
|
||||||
|
!57 U+0057 W
|
||||||
|
!58 U+0058 X
|
||||||
|
!59 U+0059 Y
|
||||||
|
!5A U+005A Z
|
||||||
|
!5B U+005B bracketleft
|
||||||
|
!5C U+005C backslash
|
||||||
|
!5D U+005D bracketright
|
||||||
|
!5E U+005E asciicircum
|
||||||
|
!5F U+005F underscore
|
||||||
|
!60 U+0060 grave
|
||||||
|
!61 U+0061 a
|
||||||
|
!62 U+0062 b
|
||||||
|
!63 U+0063 c
|
||||||
|
!64 U+0064 d
|
||||||
|
!65 U+0065 e
|
||||||
|
!66 U+0066 f
|
||||||
|
!67 U+0067 g
|
||||||
|
!68 U+0068 h
|
||||||
|
!69 U+0069 i
|
||||||
|
!6A U+006A j
|
||||||
|
!6B U+006B k
|
||||||
|
!6C U+006C l
|
||||||
|
!6D U+006D m
|
||||||
|
!6E U+006E n
|
||||||
|
!6F U+006F o
|
||||||
|
!70 U+0070 p
|
||||||
|
!71 U+0071 q
|
||||||
|
!72 U+0072 r
|
||||||
|
!73 U+0073 s
|
||||||
|
!74 U+0074 t
|
||||||
|
!75 U+0075 u
|
||||||
|
!76 U+0076 v
|
||||||
|
!77 U+0077 w
|
||||||
|
!78 U+0078 x
|
||||||
|
!79 U+0079 y
|
||||||
|
!7A U+007A z
|
||||||
|
!7B U+007B braceleft
|
||||||
|
!7C U+007C bar
|
||||||
|
!7D U+007D braceright
|
||||||
|
!7E U+007E asciitilde
|
||||||
|
!7F U+007F .notdef
|
||||||
|
!80 U+20AC Euro
|
||||||
|
!82 U+201A quotesinglbase
|
||||||
|
!83 U+0192 florin
|
||||||
|
!84 U+201E quotedblbase
|
||||||
|
!85 U+2026 ellipsis
|
||||||
|
!86 U+2020 dagger
|
||||||
|
!87 U+2021 daggerdbl
|
||||||
|
!88 U+02C6 circumflex
|
||||||
|
!89 U+2030 perthousand
|
||||||
|
!8B U+2039 guilsinglleft
|
||||||
|
!91 U+2018 quoteleft
|
||||||
|
!92 U+2019 quoteright
|
||||||
|
!93 U+201C quotedblleft
|
||||||
|
!94 U+201D quotedblright
|
||||||
|
!95 U+2022 bullet
|
||||||
|
!96 U+2013 endash
|
||||||
|
!97 U+2014 emdash
|
||||||
|
!98 U+02DC tilde
|
||||||
|
!99 U+2122 trademark
|
||||||
|
!9B U+203A guilsinglright
|
||||||
|
!A0 U+00A0 space
|
||||||
|
!A1 U+00A1 exclamdown
|
||||||
|
!A2 U+00A2 cent
|
||||||
|
!A3 U+00A3 sterling
|
||||||
|
!A4 U+20AA afii57636
|
||||||
|
!A5 U+00A5 yen
|
||||||
|
!A6 U+00A6 brokenbar
|
||||||
|
!A7 U+00A7 section
|
||||||
|
!A8 U+00A8 dieresis
|
||||||
|
!A9 U+00A9 copyright
|
||||||
|
!AA U+00D7 multiply
|
||||||
|
!AB U+00AB guillemotleft
|
||||||
|
!AC U+00AC logicalnot
|
||||||
|
!AD U+00AD sfthyphen
|
||||||
|
!AE U+00AE registered
|
||||||
|
!AF U+00AF macron
|
||||||
|
!B0 U+00B0 degree
|
||||||
|
!B1 U+00B1 plusminus
|
||||||
|
!B2 U+00B2 twosuperior
|
||||||
|
!B3 U+00B3 threesuperior
|
||||||
|
!B4 U+00B4 acute
|
||||||
|
!B5 U+00B5 mu
|
||||||
|
!B6 U+00B6 paragraph
|
||||||
|
!B7 U+00B7 middot
|
||||||
|
!B8 U+00B8 cedilla
|
||||||
|
!B9 U+00B9 onesuperior
|
||||||
|
!BA U+00F7 divide
|
||||||
|
!BB U+00BB guillemotright
|
||||||
|
!BC U+00BC onequarter
|
||||||
|
!BD U+00BD onehalf
|
||||||
|
!BE U+00BE threequarters
|
||||||
|
!BF U+00BF questiondown
|
||||||
|
!C0 U+05B0 afii57799
|
||||||
|
!C1 U+05B1 afii57801
|
||||||
|
!C2 U+05B2 afii57800
|
||||||
|
!C3 U+05B3 afii57802
|
||||||
|
!C4 U+05B4 afii57793
|
||||||
|
!C5 U+05B5 afii57794
|
||||||
|
!C6 U+05B6 afii57795
|
||||||
|
!C7 U+05B7 afii57798
|
||||||
|
!C8 U+05B8 afii57797
|
||||||
|
!C9 U+05B9 afii57806
|
||||||
|
!CB U+05BB afii57796
|
||||||
|
!CC U+05BC afii57807
|
||||||
|
!CD U+05BD afii57839
|
||||||
|
!CE U+05BE afii57645
|
||||||
|
!CF U+05BF afii57841
|
||||||
|
!D0 U+05C0 afii57842
|
||||||
|
!D1 U+05C1 afii57804
|
||||||
|
!D2 U+05C2 afii57803
|
||||||
|
!D3 U+05C3 afii57658
|
||||||
|
!D4 U+05F0 afii57716
|
||||||
|
!D5 U+05F1 afii57717
|
||||||
|
!D6 U+05F2 afii57718
|
||||||
|
!D7 U+05F3 gereshhebrew
|
||||||
|
!D8 U+05F4 gershayimhebrew
|
||||||
|
!E0 U+05D0 afii57664
|
||||||
|
!E1 U+05D1 afii57665
|
||||||
|
!E2 U+05D2 afii57666
|
||||||
|
!E3 U+05D3 afii57667
|
||||||
|
!E4 U+05D4 afii57668
|
||||||
|
!E5 U+05D5 afii57669
|
||||||
|
!E6 U+05D6 afii57670
|
||||||
|
!E7 U+05D7 afii57671
|
||||||
|
!E8 U+05D8 afii57672
|
||||||
|
!E9 U+05D9 afii57673
|
||||||
|
!EA U+05DA afii57674
|
||||||
|
!EB U+05DB afii57675
|
||||||
|
!EC U+05DC afii57676
|
||||||
|
!ED U+05DD afii57677
|
||||||
|
!EE U+05DE afii57678
|
||||||
|
!EF U+05DF afii57679
|
||||||
|
!F0 U+05E0 afii57680
|
||||||
|
!F1 U+05E1 afii57681
|
||||||
|
!F2 U+05E2 afii57682
|
||||||
|
!F3 U+05E3 afii57683
|
||||||
|
!F4 U+05E4 afii57684
|
||||||
|
!F5 U+05E5 afii57685
|
||||||
|
!F6 U+05E6 afii57686
|
||||||
|
!F7 U+05E7 afii57687
|
||||||
|
!F8 U+05E8 afii57688
|
||||||
|
!F9 U+05E9 afii57689
|
||||||
|
!FA U+05EA afii57690
|
||||||
|
!FD U+200E afii299
|
||||||
|
!FE U+200F afii300
|
244
share/pnp/application/vendor/fpdf/makefont/cp1257.map
vendored
Executable file
244
share/pnp/application/vendor/fpdf/makefont/cp1257.map
vendored
Executable file
@ -0,0 +1,244 @@
|
|||||||
|
!00 U+0000 .notdef
|
||||||
|
!01 U+0001 .notdef
|
||||||
|
!02 U+0002 .notdef
|
||||||
|
!03 U+0003 .notdef
|
||||||
|
!04 U+0004 .notdef
|
||||||
|
!05 U+0005 .notdef
|
||||||
|
!06 U+0006 .notdef
|
||||||
|
!07 U+0007 .notdef
|
||||||
|
!08 U+0008 .notdef
|
||||||
|
!09 U+0009 .notdef
|
||||||
|
!0A U+000A .notdef
|
||||||
|
!0B U+000B .notdef
|
||||||
|
!0C U+000C .notdef
|
||||||
|
!0D U+000D .notdef
|
||||||
|
!0E U+000E .notdef
|
||||||
|
!0F U+000F .notdef
|
||||||
|
!10 U+0010 .notdef
|
||||||
|
!11 U+0011 .notdef
|
||||||
|
!12 U+0012 .notdef
|
||||||
|
!13 U+0013 .notdef
|
||||||
|
!14 U+0014 .notdef
|
||||||
|
!15 U+0015 .notdef
|
||||||
|
!16 U+0016 .notdef
|
||||||
|
!17 U+0017 .notdef
|
||||||
|
!18 U+0018 .notdef
|
||||||
|
!19 U+0019 .notdef
|
||||||
|
!1A U+001A .notdef
|
||||||
|
!1B U+001B .notdef
|
||||||
|
!1C U+001C .notdef
|
||||||
|
!1D U+001D .notdef
|
||||||
|
!1E U+001E .notdef
|
||||||
|
!1F U+001F .notdef
|
||||||
|
!20 U+0020 space
|
||||||
|
!21 U+0021 exclam
|
||||||
|
!22 U+0022 quotedbl
|
||||||
|
!23 U+0023 numbersign
|
||||||
|
!24 U+0024 dollar
|
||||||
|
!25 U+0025 percent
|
||||||
|
!26 U+0026 ampersand
|
||||||
|
!27 U+0027 quotesingle
|
||||||
|
!28 U+0028 parenleft
|
||||||
|
!29 U+0029 parenright
|
||||||
|
!2A U+002A asterisk
|
||||||
|
!2B U+002B plus
|
||||||
|
!2C U+002C comma
|
||||||
|
!2D U+002D hyphen
|
||||||
|
!2E U+002E period
|
||||||
|
!2F U+002F slash
|
||||||
|
!30 U+0030 zero
|
||||||
|
!31 U+0031 one
|
||||||
|
!32 U+0032 two
|
||||||
|
!33 U+0033 three
|
||||||
|
!34 U+0034 four
|
||||||
|
!35 U+0035 five
|
||||||
|
!36 U+0036 six
|
||||||
|
!37 U+0037 seven
|
||||||
|
!38 U+0038 eight
|
||||||
|
!39 U+0039 nine
|
||||||
|
!3A U+003A colon
|
||||||
|
!3B U+003B semicolon
|
||||||
|
!3C U+003C less
|
||||||
|
!3D U+003D equal
|
||||||
|
!3E U+003E greater
|
||||||
|
!3F U+003F question
|
||||||
|
!40 U+0040 at
|
||||||
|
!41 U+0041 A
|
||||||
|
!42 U+0042 B
|
||||||
|
!43 U+0043 C
|
||||||
|
!44 U+0044 D
|
||||||
|
!45 U+0045 E
|
||||||
|
!46 U+0046 F
|
||||||
|
!47 U+0047 G
|
||||||
|
!48 U+0048 H
|
||||||
|
!49 U+0049 I
|
||||||
|
!4A U+004A J
|
||||||
|
!4B U+004B K
|
||||||
|
!4C U+004C L
|
||||||
|
!4D U+004D M
|
||||||
|
!4E U+004E N
|
||||||
|
!4F U+004F O
|
||||||
|
!50 U+0050 P
|
||||||
|
!51 U+0051 Q
|
||||||
|
!52 U+0052 R
|
||||||
|
!53 U+0053 S
|
||||||
|
!54 U+0054 T
|
||||||
|
!55 U+0055 U
|
||||||
|
!56 U+0056 V
|
||||||
|
!57 U+0057 W
|
||||||
|
!58 U+0058 X
|
||||||
|
!59 U+0059 Y
|
||||||
|
!5A U+005A Z
|
||||||
|
!5B U+005B bracketleft
|
||||||
|
!5C U+005C backslash
|
||||||
|
!5D U+005D bracketright
|
||||||
|
!5E U+005E asciicircum
|
||||||
|
!5F U+005F underscore
|
||||||
|
!60 U+0060 grave
|
||||||
|
!61 U+0061 a
|
||||||
|
!62 U+0062 b
|
||||||
|
!63 U+0063 c
|
||||||
|
!64 U+0064 d
|
||||||
|
!65 U+0065 e
|
||||||
|
!66 U+0066 f
|
||||||
|
!67 U+0067 g
|
||||||
|
!68 U+0068 h
|
||||||
|
!69 U+0069 i
|
||||||
|
!6A U+006A j
|
||||||
|
!6B U+006B k
|
||||||
|
!6C U+006C l
|
||||||
|
!6D U+006D m
|
||||||
|
!6E U+006E n
|
||||||
|
!6F U+006F o
|
||||||
|
!70 U+0070 p
|
||||||
|
!71 U+0071 q
|
||||||
|
!72 U+0072 r
|
||||||
|
!73 U+0073 s
|
||||||
|
!74 U+0074 t
|
||||||
|
!75 U+0075 u
|
||||||
|
!76 U+0076 v
|
||||||
|
!77 U+0077 w
|
||||||
|
!78 U+0078 x
|
||||||
|
!79 U+0079 y
|
||||||
|
!7A U+007A z
|
||||||
|
!7B U+007B braceleft
|
||||||
|
!7C U+007C bar
|
||||||
|
!7D U+007D braceright
|
||||||
|
!7E U+007E asciitilde
|
||||||
|
!7F U+007F .notdef
|
||||||
|
!80 U+20AC Euro
|
||||||
|
!82 U+201A quotesinglbase
|
||||||
|
!84 U+201E quotedblbase
|
||||||
|
!85 U+2026 ellipsis
|
||||||
|
!86 U+2020 dagger
|
||||||
|
!87 U+2021 daggerdbl
|
||||||
|
!89 U+2030 perthousand
|
||||||
|
!8B U+2039 guilsinglleft
|
||||||
|
!8D U+00A8 dieresis
|
||||||
|
!8E U+02C7 caron
|
||||||
|
!8F U+00B8 cedilla
|
||||||
|
!91 U+2018 quoteleft
|
||||||
|
!92 U+2019 quoteright
|
||||||
|
!93 U+201C quotedblleft
|
||||||
|
!94 U+201D quotedblright
|
||||||
|
!95 U+2022 bullet
|
||||||
|
!96 U+2013 endash
|
||||||
|
!97 U+2014 emdash
|
||||||
|
!99 U+2122 trademark
|
||||||
|
!9B U+203A guilsinglright
|
||||||
|
!9D U+00AF macron
|
||||||
|
!9E U+02DB ogonek
|
||||||
|
!A0 U+00A0 space
|
||||||
|
!A2 U+00A2 cent
|
||||||
|
!A3 U+00A3 sterling
|
||||||
|
!A4 U+00A4 currency
|
||||||
|
!A6 U+00A6 brokenbar
|
||||||
|
!A7 U+00A7 section
|
||||||
|
!A8 U+00D8 Oslash
|
||||||
|
!A9 U+00A9 copyright
|
||||||
|
!AA U+0156 Rcommaaccent
|
||||||
|
!AB U+00AB guillemotleft
|
||||||
|
!AC U+00AC logicalnot
|
||||||
|
!AD U+00AD hyphen
|
||||||
|
!AE U+00AE registered
|
||||||
|
!AF U+00C6 AE
|
||||||
|
!B0 U+00B0 degree
|
||||||
|
!B1 U+00B1 plusminus
|
||||||
|
!B2 U+00B2 twosuperior
|
||||||
|
!B3 U+00B3 threesuperior
|
||||||
|
!B4 U+00B4 acute
|
||||||
|
!B5 U+00B5 mu
|
||||||
|
!B6 U+00B6 paragraph
|
||||||
|
!B7 U+00B7 periodcentered
|
||||||
|
!B8 U+00F8 oslash
|
||||||
|
!B9 U+00B9 onesuperior
|
||||||
|
!BA U+0157 rcommaaccent
|
||||||
|
!BB U+00BB guillemotright
|
||||||
|
!BC U+00BC onequarter
|
||||||
|
!BD U+00BD onehalf
|
||||||
|
!BE U+00BE threequarters
|
||||||
|
!BF U+00E6 ae
|
||||||
|
!C0 U+0104 Aogonek
|
||||||
|
!C1 U+012E Iogonek
|
||||||
|
!C2 U+0100 Amacron
|
||||||
|
!C3 U+0106 Cacute
|
||||||
|
!C4 U+00C4 Adieresis
|
||||||
|
!C5 U+00C5 Aring
|
||||||
|
!C6 U+0118 Eogonek
|
||||||
|
!C7 U+0112 Emacron
|
||||||
|
!C8 U+010C Ccaron
|
||||||
|
!C9 U+00C9 Eacute
|
||||||
|
!CA U+0179 Zacute
|
||||||
|
!CB U+0116 Edotaccent
|
||||||
|
!CC U+0122 Gcommaaccent
|
||||||
|
!CD U+0136 Kcommaaccent
|
||||||
|
!CE U+012A Imacron
|
||||||
|
!CF U+013B Lcommaaccent
|
||||||
|
!D0 U+0160 Scaron
|
||||||
|
!D1 U+0143 Nacute
|
||||||
|
!D2 U+0145 Ncommaaccent
|
||||||
|
!D3 U+00D3 Oacute
|
||||||
|
!D4 U+014C Omacron
|
||||||
|
!D5 U+00D5 Otilde
|
||||||
|
!D6 U+00D6 Odieresis
|
||||||
|
!D7 U+00D7 multiply
|
||||||
|
!D8 U+0172 Uogonek
|
||||||
|
!D9 U+0141 Lslash
|
||||||
|
!DA U+015A Sacute
|
||||||
|
!DB U+016A Umacron
|
||||||
|
!DC U+00DC Udieresis
|
||||||
|
!DD U+017B Zdotaccent
|
||||||
|
!DE U+017D Zcaron
|
||||||
|
!DF U+00DF germandbls
|
||||||
|
!E0 U+0105 aogonek
|
||||||
|
!E1 U+012F iogonek
|
||||||
|
!E2 U+0101 amacron
|
||||||
|
!E3 U+0107 cacute
|
||||||
|
!E4 U+00E4 adieresis
|
||||||
|
!E5 U+00E5 aring
|
||||||
|
!E6 U+0119 eogonek
|
||||||
|
!E7 U+0113 emacron
|
||||||
|
!E8 U+010D ccaron
|
||||||
|
!E9 U+00E9 eacute
|
||||||
|
!EA U+017A zacute
|
||||||
|
!EB U+0117 edotaccent
|
||||||
|
!EC U+0123 gcommaaccent
|
||||||
|
!ED U+0137 kcommaaccent
|
||||||
|
!EE U+012B imacron
|
||||||
|
!EF U+013C lcommaaccent
|
||||||
|
!F0 U+0161 scaron
|
||||||
|
!F1 U+0144 nacute
|
||||||
|
!F2 U+0146 ncommaaccent
|
||||||
|
!F3 U+00F3 oacute
|
||||||
|
!F4 U+014D omacron
|
||||||
|
!F5 U+00F5 otilde
|
||||||
|
!F6 U+00F6 odieresis
|
||||||
|
!F7 U+00F7 divide
|
||||||
|
!F8 U+0173 uogonek
|
||||||
|
!F9 U+0142 lslash
|
||||||
|
!FA U+015B sacute
|
||||||
|
!FB U+016B umacron
|
||||||
|
!FC U+00FC udieresis
|
||||||
|
!FD U+017C zdotaccent
|
||||||
|
!FE U+017E zcaron
|
||||||
|
!FF U+02D9 dotaccent
|
247
share/pnp/application/vendor/fpdf/makefont/cp1258.map
vendored
Executable file
247
share/pnp/application/vendor/fpdf/makefont/cp1258.map
vendored
Executable file
@ -0,0 +1,247 @@
|
|||||||
|
!00 U+0000 .notdef
|
||||||
|
!01 U+0001 .notdef
|
||||||
|
!02 U+0002 .notdef
|
||||||
|
!03 U+0003 .notdef
|
||||||
|
!04 U+0004 .notdef
|
||||||
|
!05 U+0005 .notdef
|
||||||
|
!06 U+0006 .notdef
|
||||||
|
!07 U+0007 .notdef
|
||||||
|
!08 U+0008 .notdef
|
||||||
|
!09 U+0009 .notdef
|
||||||
|
!0A U+000A .notdef
|
||||||
|
!0B U+000B .notdef
|
||||||
|
!0C U+000C .notdef
|
||||||
|
!0D U+000D .notdef
|
||||||
|
!0E U+000E .notdef
|
||||||
|
!0F U+000F .notdef
|
||||||
|
!10 U+0010 .notdef
|
||||||
|
!11 U+0011 .notdef
|
||||||
|
!12 U+0012 .notdef
|
||||||
|
!13 U+0013 .notdef
|
||||||
|
!14 U+0014 .notdef
|
||||||
|
!15 U+0015 .notdef
|
||||||
|
!16 U+0016 .notdef
|
||||||
|
!17 U+0017 .notdef
|
||||||
|
!18 U+0018 .notdef
|
||||||
|
!19 U+0019 .notdef
|
||||||
|
!1A U+001A .notdef
|
||||||
|
!1B U+001B .notdef
|
||||||
|
!1C U+001C .notdef
|
||||||
|
!1D U+001D .notdef
|
||||||
|
!1E U+001E .notdef
|
||||||
|
!1F U+001F .notdef
|
||||||
|
!20 U+0020 space
|
||||||
|
!21 U+0021 exclam
|
||||||
|
!22 U+0022 quotedbl
|
||||||
|
!23 U+0023 numbersign
|
||||||
|
!24 U+0024 dollar
|
||||||
|
!25 U+0025 percent
|
||||||
|
!26 U+0026 ampersand
|
||||||
|
!27 U+0027 quotesingle
|
||||||
|
!28 U+0028 parenleft
|
||||||
|
!29 U+0029 parenright
|
||||||
|
!2A U+002A asterisk
|
||||||
|
!2B U+002B plus
|
||||||
|
!2C U+002C comma
|
||||||
|
!2D U+002D hyphen
|
||||||
|
!2E U+002E period
|
||||||
|
!2F U+002F slash
|
||||||
|
!30 U+0030 zero
|
||||||
|
!31 U+0031 one
|
||||||
|
!32 U+0032 two
|
||||||
|
!33 U+0033 three
|
||||||
|
!34 U+0034 four
|
||||||
|
!35 U+0035 five
|
||||||
|
!36 U+0036 six
|
||||||
|
!37 U+0037 seven
|
||||||
|
!38 U+0038 eight
|
||||||
|
!39 U+0039 nine
|
||||||
|
!3A U+003A colon
|
||||||
|
!3B U+003B semicolon
|
||||||
|
!3C U+003C less
|
||||||
|
!3D U+003D equal
|
||||||
|
!3E U+003E greater
|
||||||
|
!3F U+003F question
|
||||||
|
!40 U+0040 at
|
||||||
|
!41 U+0041 A
|
||||||
|
!42 U+0042 B
|
||||||
|
!43 U+0043 C
|
||||||
|
!44 U+0044 D
|
||||||
|
!45 U+0045 E
|
||||||
|
!46 U+0046 F
|
||||||
|
!47 U+0047 G
|
||||||
|
!48 U+0048 H
|
||||||
|
!49 U+0049 I
|
||||||
|
!4A U+004A J
|
||||||
|
!4B U+004B K
|
||||||
|
!4C U+004C L
|
||||||
|
!4D U+004D M
|
||||||
|
!4E U+004E N
|
||||||
|
!4F U+004F O
|
||||||
|
!50 U+0050 P
|
||||||
|
!51 U+0051 Q
|
||||||
|
!52 U+0052 R
|
||||||
|
!53 U+0053 S
|
||||||
|
!54 U+0054 T
|
||||||
|
!55 U+0055 U
|
||||||
|
!56 U+0056 V
|
||||||
|
!57 U+0057 W
|
||||||
|
!58 U+0058 X
|
||||||
|
!59 U+0059 Y
|
||||||
|
!5A U+005A Z
|
||||||
|
!5B U+005B bracketleft
|
||||||
|
!5C U+005C backslash
|
||||||
|
!5D U+005D bracketright
|
||||||
|
!5E U+005E asciicircum
|
||||||
|
!5F U+005F underscore
|
||||||
|
!60 U+0060 grave
|
||||||
|
!61 U+0061 a
|
||||||
|
!62 U+0062 b
|
||||||
|
!63 U+0063 c
|
||||||
|
!64 U+0064 d
|
||||||
|
!65 U+0065 e
|
||||||
|
!66 U+0066 f
|
||||||
|
!67 U+0067 g
|
||||||
|
!68 U+0068 h
|
||||||
|
!69 U+0069 i
|
||||||
|
!6A U+006A j
|
||||||
|
!6B U+006B k
|
||||||
|
!6C U+006C l
|
||||||
|
!6D U+006D m
|
||||||
|
!6E U+006E n
|
||||||
|
!6F U+006F o
|
||||||
|
!70 U+0070 p
|
||||||
|
!71 U+0071 q
|
||||||
|
!72 U+0072 r
|
||||||
|
!73 U+0073 s
|
||||||
|
!74 U+0074 t
|
||||||
|
!75 U+0075 u
|
||||||
|
!76 U+0076 v
|
||||||
|
!77 U+0077 w
|
||||||
|
!78 U+0078 x
|
||||||
|
!79 U+0079 y
|
||||||
|
!7A U+007A z
|
||||||
|
!7B U+007B braceleft
|
||||||
|
!7C U+007C bar
|
||||||
|
!7D U+007D braceright
|
||||||
|
!7E U+007E asciitilde
|
||||||
|
!7F U+007F .notdef
|
||||||
|
!80 U+20AC Euro
|
||||||
|
!82 U+201A quotesinglbase
|
||||||
|
!83 U+0192 florin
|
||||||
|
!84 U+201E quotedblbase
|
||||||
|
!85 U+2026 ellipsis
|
||||||
|
!86 U+2020 dagger
|
||||||
|
!87 U+2021 daggerdbl
|
||||||
|
!88 U+02C6 circumflex
|
||||||
|
!89 U+2030 perthousand
|
||||||
|
!8B U+2039 guilsinglleft
|
||||||
|
!8C U+0152 OE
|
||||||
|
!91 U+2018 quoteleft
|
||||||
|
!92 U+2019 quoteright
|
||||||
|
!93 U+201C quotedblleft
|
||||||
|
!94 U+201D quotedblright
|
||||||
|
!95 U+2022 bullet
|
||||||
|
!96 U+2013 endash
|
||||||
|
!97 U+2014 emdash
|
||||||
|
!98 U+02DC tilde
|
||||||
|
!99 U+2122 trademark
|
||||||
|
!9B U+203A guilsinglright
|
||||||
|
!9C U+0153 oe
|
||||||
|
!9F U+0178 Ydieresis
|
||||||
|
!A0 U+00A0 space
|
||||||
|
!A1 U+00A1 exclamdown
|
||||||
|
!A2 U+00A2 cent
|
||||||
|
!A3 U+00A3 sterling
|
||||||
|
!A4 U+00A4 currency
|
||||||
|
!A5 U+00A5 yen
|
||||||
|
!A6 U+00A6 brokenbar
|
||||||
|
!A7 U+00A7 section
|
||||||
|
!A8 U+00A8 dieresis
|
||||||
|
!A9 U+00A9 copyright
|
||||||
|
!AA U+00AA ordfeminine
|
||||||
|
!AB U+00AB guillemotleft
|
||||||
|
!AC U+00AC logicalnot
|
||||||
|
!AD U+00AD hyphen
|
||||||
|
!AE U+00AE registered
|
||||||
|
!AF U+00AF macron
|
||||||
|
!B0 U+00B0 degree
|
||||||
|
!B1 U+00B1 plusminus
|
||||||
|
!B2 U+00B2 twosuperior
|
||||||
|
!B3 U+00B3 threesuperior
|
||||||
|
!B4 U+00B4 acute
|
||||||
|
!B5 U+00B5 mu
|
||||||
|
!B6 U+00B6 paragraph
|
||||||
|
!B7 U+00B7 periodcentered
|
||||||
|
!B8 U+00B8 cedilla
|
||||||
|
!B9 U+00B9 onesuperior
|
||||||
|
!BA U+00BA ordmasculine
|
||||||
|
!BB U+00BB guillemotright
|
||||||
|
!BC U+00BC onequarter
|
||||||
|
!BD U+00BD onehalf
|
||||||
|
!BE U+00BE threequarters
|
||||||
|
!BF U+00BF questiondown
|
||||||
|
!C0 U+00C0 Agrave
|
||||||
|
!C1 U+00C1 Aacute
|
||||||
|
!C2 U+00C2 Acircumflex
|
||||||
|
!C3 U+0102 Abreve
|
||||||
|
!C4 U+00C4 Adieresis
|
||||||
|
!C5 U+00C5 Aring
|
||||||
|
!C6 U+00C6 AE
|
||||||
|
!C7 U+00C7 Ccedilla
|
||||||
|
!C8 U+00C8 Egrave
|
||||||
|
!C9 U+00C9 Eacute
|
||||||
|
!CA U+00CA Ecircumflex
|
||||||
|
!CB U+00CB Edieresis
|
||||||
|
!CC U+0300 gravecomb
|
||||||
|
!CD U+00CD Iacute
|
||||||
|
!CE U+00CE Icircumflex
|
||||||
|
!CF U+00CF Idieresis
|
||||||
|
!D0 U+0110 Dcroat
|
||||||
|
!D1 U+00D1 Ntilde
|
||||||
|
!D2 U+0309 hookabovecomb
|
||||||
|
!D3 U+00D3 Oacute
|
||||||
|
!D4 U+00D4 Ocircumflex
|
||||||
|
!D5 U+01A0 Ohorn
|
||||||
|
!D6 U+00D6 Odieresis
|
||||||
|
!D7 U+00D7 multiply
|
||||||
|
!D8 U+00D8 Oslash
|
||||||
|
!D9 U+00D9 Ugrave
|
||||||
|
!DA U+00DA Uacute
|
||||||
|
!DB U+00DB Ucircumflex
|
||||||
|
!DC U+00DC Udieresis
|
||||||
|
!DD U+01AF Uhorn
|
||||||
|
!DE U+0303 tildecomb
|
||||||
|
!DF U+00DF germandbls
|
||||||
|
!E0 U+00E0 agrave
|
||||||
|
!E1 U+00E1 aacute
|
||||||
|
!E2 U+00E2 acircumflex
|
||||||
|
!E3 U+0103 abreve
|
||||||
|
!E4 U+00E4 adieresis
|
||||||
|
!E5 U+00E5 aring
|
||||||
|
!E6 U+00E6 ae
|
||||||
|
!E7 U+00E7 ccedilla
|
||||||
|
!E8 U+00E8 egrave
|
||||||
|
!E9 U+00E9 eacute
|
||||||
|
!EA U+00EA ecircumflex
|
||||||
|
!EB U+00EB edieresis
|
||||||
|
!EC U+0301 acutecomb
|
||||||
|
!ED U+00ED iacute
|
||||||
|
!EE U+00EE icircumflex
|
||||||
|
!EF U+00EF idieresis
|
||||||
|
!F0 U+0111 dcroat
|
||||||
|
!F1 U+00F1 ntilde
|
||||||
|
!F2 U+0323 dotbelowcomb
|
||||||
|
!F3 U+00F3 oacute
|
||||||
|
!F4 U+00F4 ocircumflex
|
||||||
|
!F5 U+01A1 ohorn
|
||||||
|
!F6 U+00F6 odieresis
|
||||||
|
!F7 U+00F7 divide
|
||||||
|
!F8 U+00F8 oslash
|
||||||
|
!F9 U+00F9 ugrave
|
||||||
|
!FA U+00FA uacute
|
||||||
|
!FB U+00FB ucircumflex
|
||||||
|
!FC U+00FC udieresis
|
||||||
|
!FD U+01B0 uhorn
|
||||||
|
!FE U+20AB dong
|
||||||
|
!FF U+00FF ydieresis
|
225
share/pnp/application/vendor/fpdf/makefont/cp874.map
vendored
Executable file
225
share/pnp/application/vendor/fpdf/makefont/cp874.map
vendored
Executable file
@ -0,0 +1,225 @@
|
|||||||
|
!00 U+0000 .notdef
|
||||||
|
!01 U+0001 .notdef
|
||||||
|
!02 U+0002 .notdef
|
||||||
|
!03 U+0003 .notdef
|
||||||
|
!04 U+0004 .notdef
|
||||||
|
!05 U+0005 .notdef
|
||||||
|
!06 U+0006 .notdef
|
||||||
|
!07 U+0007 .notdef
|
||||||
|
!08 U+0008 .notdef
|
||||||
|
!09 U+0009 .notdef
|
||||||
|
!0A U+000A .notdef
|
||||||
|
!0B U+000B .notdef
|
||||||
|
!0C U+000C .notdef
|
||||||
|
!0D U+000D .notdef
|
||||||
|
!0E U+000E .notdef
|
||||||
|
!0F U+000F .notdef
|
||||||
|
!10 U+0010 .notdef
|
||||||
|
!11 U+0011 .notdef
|
||||||
|
!12 U+0012 .notdef
|
||||||
|
!13 U+0013 .notdef
|
||||||
|
!14 U+0014 .notdef
|
||||||
|
!15 U+0015 .notdef
|
||||||
|
!16 U+0016 .notdef
|
||||||
|
!17 U+0017 .notdef
|
||||||
|
!18 U+0018 .notdef
|
||||||
|
!19 U+0019 .notdef
|
||||||
|
!1A U+001A .notdef
|
||||||
|
!1B U+001B .notdef
|
||||||
|
!1C U+001C .notdef
|
||||||
|
!1D U+001D .notdef
|
||||||
|
!1E U+001E .notdef
|
||||||
|
!1F U+001F .notdef
|
||||||
|
!20 U+0020 space
|
||||||
|
!21 U+0021 exclam
|
||||||
|
!22 U+0022 quotedbl
|
||||||
|
!23 U+0023 numbersign
|
||||||
|
!24 U+0024 dollar
|
||||||
|
!25 U+0025 percent
|
||||||
|
!26 U+0026 ampersand
|
||||||
|
!27 U+0027 quotesingle
|
||||||
|
!28 U+0028 parenleft
|
||||||
|
!29 U+0029 parenright
|
||||||
|
!2A U+002A asterisk
|
||||||
|
!2B U+002B plus
|
||||||
|
!2C U+002C comma
|
||||||
|
!2D U+002D hyphen
|
||||||
|
!2E U+002E period
|
||||||
|
!2F U+002F slash
|
||||||
|
!30 U+0030 zero
|
||||||
|
!31 U+0031 one
|
||||||
|
!32 U+0032 two
|
||||||
|
!33 U+0033 three
|
||||||
|
!34 U+0034 four
|
||||||
|
!35 U+0035 five
|
||||||
|
!36 U+0036 six
|
||||||
|
!37 U+0037 seven
|
||||||
|
!38 U+0038 eight
|
||||||
|
!39 U+0039 nine
|
||||||
|
!3A U+003A colon
|
||||||
|
!3B U+003B semicolon
|
||||||
|
!3C U+003C less
|
||||||
|
!3D U+003D equal
|
||||||
|
!3E U+003E greater
|
||||||
|
!3F U+003F question
|
||||||
|
!40 U+0040 at
|
||||||
|
!41 U+0041 A
|
||||||
|
!42 U+0042 B
|
||||||
|
!43 U+0043 C
|
||||||
|
!44 U+0044 D
|
||||||
|
!45 U+0045 E
|
||||||
|
!46 U+0046 F
|
||||||
|
!47 U+0047 G
|
||||||
|
!48 U+0048 H
|
||||||
|
!49 U+0049 I
|
||||||
|
!4A U+004A J
|
||||||
|
!4B U+004B K
|
||||||
|
!4C U+004C L
|
||||||
|
!4D U+004D M
|
||||||
|
!4E U+004E N
|
||||||
|
!4F U+004F O
|
||||||
|
!50 U+0050 P
|
||||||
|
!51 U+0051 Q
|
||||||
|
!52 U+0052 R
|
||||||
|
!53 U+0053 S
|
||||||
|
!54 U+0054 T
|
||||||
|
!55 U+0055 U
|
||||||
|
!56 U+0056 V
|
||||||
|
!57 U+0057 W
|
||||||
|
!58 U+0058 X
|
||||||
|
!59 U+0059 Y
|
||||||
|
!5A U+005A Z
|
||||||
|
!5B U+005B bracketleft
|
||||||
|
!5C U+005C backslash
|
||||||
|
!5D U+005D bracketright
|
||||||
|
!5E U+005E asciicircum
|
||||||
|
!5F U+005F underscore
|
||||||
|
!60 U+0060 grave
|
||||||
|
!61 U+0061 a
|
||||||
|
!62 U+0062 b
|
||||||
|
!63 U+0063 c
|
||||||
|
!64 U+0064 d
|
||||||
|
!65 U+0065 e
|
||||||
|
!66 U+0066 f
|
||||||
|
!67 U+0067 g
|
||||||
|
!68 U+0068 h
|
||||||
|
!69 U+0069 i
|
||||||
|
!6A U+006A j
|
||||||
|
!6B U+006B k
|
||||||
|
!6C U+006C l
|
||||||
|
!6D U+006D m
|
||||||
|
!6E U+006E n
|
||||||
|
!6F U+006F o
|
||||||
|
!70 U+0070 p
|
||||||
|
!71 U+0071 q
|
||||||
|
!72 U+0072 r
|
||||||
|
!73 U+0073 s
|
||||||
|
!74 U+0074 t
|
||||||
|
!75 U+0075 u
|
||||||
|
!76 U+0076 v
|
||||||
|
!77 U+0077 w
|
||||||
|
!78 U+0078 x
|
||||||
|
!79 U+0079 y
|
||||||
|
!7A U+007A z
|
||||||
|
!7B U+007B braceleft
|
||||||
|
!7C U+007C bar
|
||||||
|
!7D U+007D braceright
|
||||||
|
!7E U+007E asciitilde
|
||||||
|
!7F U+007F .notdef
|
||||||
|
!80 U+20AC Euro
|
||||||
|
!85 U+2026 ellipsis
|
||||||
|
!91 U+2018 quoteleft
|
||||||
|
!92 U+2019 quoteright
|
||||||
|
!93 U+201C quotedblleft
|
||||||
|
!94 U+201D quotedblright
|
||||||
|
!95 U+2022 bullet
|
||||||
|
!96 U+2013 endash
|
||||||
|
!97 U+2014 emdash
|
||||||
|
!A0 U+00A0 space
|
||||||
|
!A1 U+0E01 kokaithai
|
||||||
|
!A2 U+0E02 khokhaithai
|
||||||
|
!A3 U+0E03 khokhuatthai
|
||||||
|
!A4 U+0E04 khokhwaithai
|
||||||
|
!A5 U+0E05 khokhonthai
|
||||||
|
!A6 U+0E06 khorakhangthai
|
||||||
|
!A7 U+0E07 ngonguthai
|
||||||
|
!A8 U+0E08 chochanthai
|
||||||
|
!A9 U+0E09 chochingthai
|
||||||
|
!AA U+0E0A chochangthai
|
||||||
|
!AB U+0E0B sosothai
|
||||||
|
!AC U+0E0C chochoethai
|
||||||
|
!AD U+0E0D yoyingthai
|
||||||
|
!AE U+0E0E dochadathai
|
||||||
|
!AF U+0E0F topatakthai
|
||||||
|
!B0 U+0E10 thothanthai
|
||||||
|
!B1 U+0E11 thonangmonthothai
|
||||||
|
!B2 U+0E12 thophuthaothai
|
||||||
|
!B3 U+0E13 nonenthai
|
||||||
|
!B4 U+0E14 dodekthai
|
||||||
|
!B5 U+0E15 totaothai
|
||||||
|
!B6 U+0E16 thothungthai
|
||||||
|
!B7 U+0E17 thothahanthai
|
||||||
|
!B8 U+0E18 thothongthai
|
||||||
|
!B9 U+0E19 nonuthai
|
||||||
|
!BA U+0E1A bobaimaithai
|
||||||
|
!BB U+0E1B poplathai
|
||||||
|
!BC U+0E1C phophungthai
|
||||||
|
!BD U+0E1D fofathai
|
||||||
|
!BE U+0E1E phophanthai
|
||||||
|
!BF U+0E1F fofanthai
|
||||||
|
!C0 U+0E20 phosamphaothai
|
||||||
|
!C1 U+0E21 momathai
|
||||||
|
!C2 U+0E22 yoyakthai
|
||||||
|
!C3 U+0E23 roruathai
|
||||||
|
!C4 U+0E24 ruthai
|
||||||
|
!C5 U+0E25 lolingthai
|
||||||
|
!C6 U+0E26 luthai
|
||||||
|
!C7 U+0E27 wowaenthai
|
||||||
|
!C8 U+0E28 sosalathai
|
||||||
|
!C9 U+0E29 sorusithai
|
||||||
|
!CA U+0E2A sosuathai
|
||||||
|
!CB U+0E2B hohipthai
|
||||||
|
!CC U+0E2C lochulathai
|
||||||
|
!CD U+0E2D oangthai
|
||||||
|
!CE U+0E2E honokhukthai
|
||||||
|
!CF U+0E2F paiyannoithai
|
||||||
|
!D0 U+0E30 saraathai
|
||||||
|
!D1 U+0E31 maihanakatthai
|
||||||
|
!D2 U+0E32 saraaathai
|
||||||
|
!D3 U+0E33 saraamthai
|
||||||
|
!D4 U+0E34 saraithai
|
||||||
|
!D5 U+0E35 saraiithai
|
||||||
|
!D6 U+0E36 sarauethai
|
||||||
|
!D7 U+0E37 saraueethai
|
||||||
|
!D8 U+0E38 sarauthai
|
||||||
|
!D9 U+0E39 sarauuthai
|
||||||
|
!DA U+0E3A phinthuthai
|
||||||
|
!DF U+0E3F bahtthai
|
||||||
|
!E0 U+0E40 saraethai
|
||||||
|
!E1 U+0E41 saraaethai
|
||||||
|
!E2 U+0E42 saraothai
|
||||||
|
!E3 U+0E43 saraaimaimuanthai
|
||||||
|
!E4 U+0E44 saraaimaimalaithai
|
||||||
|
!E5 U+0E45 lakkhangyaothai
|
||||||
|
!E6 U+0E46 maiyamokthai
|
||||||
|
!E7 U+0E47 maitaikhuthai
|
||||||
|
!E8 U+0E48 maiekthai
|
||||||
|
!E9 U+0E49 maithothai
|
||||||
|
!EA U+0E4A maitrithai
|
||||||
|
!EB U+0E4B maichattawathai
|
||||||
|
!EC U+0E4C thanthakhatthai
|
||||||
|
!ED U+0E4D nikhahitthai
|
||||||
|
!EE U+0E4E yamakkanthai
|
||||||
|
!EF U+0E4F fongmanthai
|
||||||
|
!F0 U+0E50 zerothai
|
||||||
|
!F1 U+0E51 onethai
|
||||||
|
!F2 U+0E52 twothai
|
||||||
|
!F3 U+0E53 threethai
|
||||||
|
!F4 U+0E54 fourthai
|
||||||
|
!F5 U+0E55 fivethai
|
||||||
|
!F6 U+0E56 sixthai
|
||||||
|
!F7 U+0E57 seventhai
|
||||||
|
!F8 U+0E58 eightthai
|
||||||
|
!F9 U+0E59 ninethai
|
||||||
|
!FA U+0E5A angkhankhuthai
|
||||||
|
!FB U+0E5B khomutthai
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user