init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
76
lib/PdfParser/Encoding/ISOLatin1Encoding.php
Normal file
76
lib/PdfParser/Encoding/ISOLatin1Encoding.php
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* This file is part of the PdfParser library.
|
||||
*
|
||||
* @author Sébastien MALOT <sebastien@malot.fr>
|
||||
* @date 2017-01-03
|
||||
* @license LGPLv3
|
||||
* @url <https://github.com/smalot/pdfparser>
|
||||
*
|
||||
* PdfParser is a pdf library written in PHP, extraction oriented.
|
||||
* Copyright (C) 2017 - Sébastien MALOT <sebastien@malot.fr>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program.
|
||||
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>.
|
||||
*
|
||||
*/
|
||||
|
||||
// Source : http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/ISOLatin1Encoding.pm
|
||||
|
||||
namespace Smalot\PdfParser\Encoding;
|
||||
|
||||
/**
|
||||
* Class ISOLatin1Encoding
|
||||
*
|
||||
* @package Smalot\PdfParser\Encoding
|
||||
*/
|
||||
class ISOLatin1Encoding
|
||||
{
|
||||
public function getTranslations()
|
||||
{
|
||||
$encoding =
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'space exclam quotedbl numbersign dollar percent ampersand quoteright ' .
|
||||
'parenleft parenright asterisk plus comma minus period slash zero one ' .
|
||||
'two three four five six seven eight nine colon semicolon less equal ' .
|
||||
'greater question at A B C D E F G H I J K L M N O P Q R S T U V W X ' .
|
||||
'Y Z bracketleft backslash bracketright asciicircum underscore ' .
|
||||
'quoteleft a b c d e f g h i j k l m n o p q r s t u v w x y z ' .
|
||||
'braceleft bar braceright asciitilde .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef dotlessi grave acute ' .
|
||||
'circumflex tilde macron breve dotaccent dieresis .notdef ring ' .
|
||||
'cedilla .notdef hungarumlaut ogonek caron space exclamdown cent ' .
|
||||
'sterling currency yen brokenbar section dieresis copyright ' .
|
||||
'ordfeminine guillemotleft logicalnot hyphen registered macron degree ' .
|
||||
'plusminus twosuperior threesuperior acute mu paragraph ' .
|
||||
'periodcentered cedilla onesuperior ordmasculine guillemotright ' .
|
||||
'onequarter onehalf threequarters questiondown Agrave Aacute ' .
|
||||
'Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute ' .
|
||||
'Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Eth Ntilde ' .
|
||||
'Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave ' .
|
||||
'Uacute Ucircumflex Udieresis Yacute Thorn germandbls agrave aacute ' .
|
||||
'acircumflex atilde adieresis aring ae ccedilla egrave eacute ' .
|
||||
'ecircumflex edieresis igrave iacute icircumflex idieresis eth ntilde ' .
|
||||
'ograve oacute ocircumflex otilde odieresis divide oslash ugrave ' .
|
||||
'uacute ucircumflex udieresis yacute thorn ydieresis';
|
||||
|
||||
return explode(' ', $encoding);
|
||||
}
|
||||
}
|
||||
76
lib/PdfParser/Encoding/ISOLatin9Encoding.php
Normal file
76
lib/PdfParser/Encoding/ISOLatin9Encoding.php
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* This file is part of the PdfParser library.
|
||||
*
|
||||
* @author Sébastien MALOT <sebastien@malot.fr>
|
||||
* @date 2017-01-03
|
||||
* @license LGPLv3
|
||||
* @url <https://github.com/smalot/pdfparser>
|
||||
*
|
||||
* PdfParser is a pdf library written in PHP, extraction oriented.
|
||||
* Copyright (C) 2017 - Sébastien MALOT <sebastien@malot.fr>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program.
|
||||
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>.
|
||||
*
|
||||
*/
|
||||
|
||||
// Source : http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/ISOLatin9Encoding.pm
|
||||
|
||||
namespace Smalot\PdfParser\Encoding;
|
||||
|
||||
/**
|
||||
* Class ISOLatin9Encoding
|
||||
*
|
||||
* @package Smalot\PdfParser\Encoding
|
||||
*/
|
||||
class ISOLatin9Encoding
|
||||
{
|
||||
public function getTranslations()
|
||||
{
|
||||
$encoding =
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'space exclam quotedbl numbersign dollar percent ampersand quoteright ' .
|
||||
'parenleft parenright asterisk plus comma minus period slash zero one ' .
|
||||
'two three four five six seven eight nine colon semicolon less equal ' .
|
||||
'greater question at A B C D E F G H I J K L M N O P Q R S T U V W X ' .
|
||||
'Y Z bracketleft backslash bracketright asciicircum underscore ' .
|
||||
'quoteleft a b c d e f g h i j k l m n o p q r s t u v w x y z ' .
|
||||
'braceleft bar braceright asciitilde .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef dotlessi grave acute ' .
|
||||
'circumflex tilde macron breve dotaccent dieresis .notdef ring ' .
|
||||
'cedilla .notdef hungarumlaut ogonek caron space exclamdown cent ' .
|
||||
'sterling Euro yen Scaron section scaron copyright ' .
|
||||
'ordfeminine guillemotleft logicalnot hyphen registered macron degree ' .
|
||||
'plusminus twosuperior threesuperior Zcaron mu paragraph ' .
|
||||
'periodcentered zcaron onesuperior ordmasculine guillemotright ' .
|
||||
'OE oe Ydieresis questiondown Agrave Aacute ' .
|
||||
'Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute ' .
|
||||
'Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Eth Ntilde ' .
|
||||
'Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave ' .
|
||||
'Uacute Ucircumflex Udieresis Yacute Thorn germandbls agrave aacute ' .
|
||||
'acircumflex atilde adieresis aring ae ccedilla egrave eacute ' .
|
||||
'ecircumflex edieresis igrave iacute icircumflex idieresis eth ntilde ' .
|
||||
'ograve oacute ocircumflex otilde odieresis divide oslash ugrave ' .
|
||||
'uacute ucircumflex udieresis yacute thorn ydieresis';
|
||||
|
||||
return explode(' ', $encoding);
|
||||
}
|
||||
}
|
||||
80
lib/PdfParser/Encoding/MacRomanEncoding.php
Normal file
80
lib/PdfParser/Encoding/MacRomanEncoding.php
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* This file is part of the PdfParser library.
|
||||
*
|
||||
* @author Sébastien MALOT <sebastien@malot.fr>
|
||||
* @date 2017-01-03
|
||||
* @license LGPLv3
|
||||
* @url <https://github.com/smalot/pdfparser>
|
||||
*
|
||||
* PdfParser is a pdf library written in PHP, extraction oriented.
|
||||
* Copyright (C) 2017 - Sébastien MALOT <sebastien@malot.fr>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program.
|
||||
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>.
|
||||
*
|
||||
*/
|
||||
|
||||
// Source : http://www.opensource.apple.com/source/vim/vim-34/vim/runtime/print/mac-roman.ps
|
||||
|
||||
namespace Smalot\PdfParser\Encoding;
|
||||
|
||||
/**
|
||||
* Class MacRomanEncoding
|
||||
*
|
||||
* @package Smalot\PdfParser\Encoding
|
||||
*/
|
||||
class MacRomanEncoding
|
||||
{
|
||||
public function getTranslations()
|
||||
{
|
||||
$encoding =
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'space exclam quotedbl numbersign dollar percent ampersand quotesingle ' .
|
||||
'parenleft parenright asterisk plus comma minus period slash ' .
|
||||
'zero one two three four five six seven ' .
|
||||
'eight nine colon semicolon less equal greater question ' .
|
||||
'at A B C D E F G ' .
|
||||
'H I J K L M N O ' .
|
||||
'P Q R S T U V W ' .
|
||||
'X Y Z bracketleft backslash bracketright asciicircum underscore ' .
|
||||
'grave a b c d e f g ' .
|
||||
'h i j k l m n o ' .
|
||||
'p q r s t u v w ' .
|
||||
'x y z braceleft bar braceright asciitilde .notdef ' .
|
||||
'Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute ' .
|
||||
'agrave acircumflex adieresis atilde aring ccedilla eacute egrave ' .
|
||||
'ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ' .
|
||||
'ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis ' .
|
||||
'dagger degree cent sterling section bullet paragraph germandbls ' .
|
||||
'registered copyright trademark acute dieresis notequal AE Oslash ' .
|
||||
'infinity plusminus lessequal greaterequal yen mu partialdiff summation ' .
|
||||
'Pi pi integral ordfeminine ordmasculine Omega ae oslash ' .
|
||||
'questiondown exclamdown logicalnot radical florin approxequal delta guillemotleft ' .
|
||||
'guillemotright ellipsis space Agrave Atilde Otilde OE oe ' .
|
||||
'endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ' .
|
||||
'ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl ' .
|
||||
'daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute ' .
|
||||
'Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex ' .
|
||||
'heart Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde ' .
|
||||
'macron breve dotaccent ring cedilla hungarumlaut ogonek caron';
|
||||
|
||||
return explode(' ', $encoding);
|
||||
}
|
||||
}
|
||||
76
lib/PdfParser/Encoding/StandardEncoding.php
Normal file
76
lib/PdfParser/Encoding/StandardEncoding.php
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* This file is part of the PdfParser library.
|
||||
*
|
||||
* @author Sébastien MALOT <sebastien@malot.fr>
|
||||
* @date 2017-01-03
|
||||
* @license LGPLv3
|
||||
* @url <https://github.com/smalot/pdfparser>
|
||||
*
|
||||
* PdfParser is a pdf library written in PHP, extraction oriented.
|
||||
* Copyright (C) 2017 - Sébastien MALOT <sebastien@malot.fr>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program.
|
||||
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>.
|
||||
*
|
||||
*/
|
||||
|
||||
// Source : http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/StandardEncoding.pm
|
||||
|
||||
namespace Smalot\PdfParser\Encoding;
|
||||
|
||||
/**
|
||||
* Class StandardEncoding
|
||||
*
|
||||
* @package Smalot\PdfParser\Encoding
|
||||
*/
|
||||
class StandardEncoding
|
||||
{
|
||||
public function getTranslations()
|
||||
{
|
||||
$encoding =
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'space exclam quotedbl numbersign dollar percent ampersand quoteright ' .
|
||||
'parenleft parenright asterisk plus comma hyphen period slash zero ' .
|
||||
'one two three four five six seven eight nine colon semicolon less ' .
|
||||
'equal greater question at A B C D E F G H I J K L M N O P Q R S T U ' .
|
||||
'V W X Y Z bracketleft backslash bracketright asciicircum underscore ' .
|
||||
'quoteleft a b c d e f g h i j k l m n o p q r s t u v w x y z ' .
|
||||
'braceleft bar braceright asciitilde .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef exclamdown cent ' .
|
||||
'sterling fraction yen florin section currency quotesingle ' .
|
||||
'quotedblleft guillemotleft guilsinglleft guilsinglright fi fl ' .
|
||||
'.notdef endash dagger daggerdbl periodcentered .notdef paragraph ' .
|
||||
'bullet quotesinglbase quotedblbase quotedblright guillemotright ' .
|
||||
'ellipsis perthousand .notdef questiondown .notdef grave acute ' .
|
||||
'circumflex tilde macron breve dotaccent dieresis .notdef ring ' .
|
||||
'cedilla .notdef hungarumlaut ogonek caron emdash .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef AE .notdef ' .
|
||||
'ordfeminine .notdef .notdef .notdef .notdef Lslash Oslash OE ' .
|
||||
'ordmasculine .notdef .notdef .notdef .notdef .notdef ae .notdef ' .
|
||||
'.notdef .notdef dotlessi .notdef .notdef lslash oslash oe germandbls ' .
|
||||
'.notdef .notdef .notdef .notdef';
|
||||
|
||||
return explode(' ', $encoding);
|
||||
}
|
||||
}
|
||||
76
lib/PdfParser/Encoding/WinAnsiEncoding.php
Normal file
76
lib/PdfParser/Encoding/WinAnsiEncoding.php
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* This file is part of the PdfParser library.
|
||||
*
|
||||
* @author Sébastien MALOT <sebastien@malot.fr>
|
||||
* @date 2017-01-03
|
||||
* @license LGPLv3
|
||||
* @url <https://github.com/smalot/pdfparser>
|
||||
*
|
||||
* PdfParser is a pdf library written in PHP, extraction oriented.
|
||||
* Copyright (C) 2017 - Sébastien MALOT <sebastien@malot.fr>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program.
|
||||
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>.
|
||||
*
|
||||
*/
|
||||
|
||||
// Source : http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/WinANSIEncoding.pm
|
||||
|
||||
namespace Smalot\PdfParser\Encoding;
|
||||
|
||||
/**
|
||||
* Class WinAnsiEncoding
|
||||
*
|
||||
* @package Smalot\PdfParser\Encoding
|
||||
*/
|
||||
class WinAnsiEncoding
|
||||
{
|
||||
public function getTranslations()
|
||||
{
|
||||
$encoding =
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ' .
|
||||
'space exclam quotedbl numbersign dollar percent ampersand quotesingle ' .
|
||||
'parenleft parenright asterisk plus comma hyphen period slash zero one ' .
|
||||
'two three four five six seven eight nine colon semicolon less equal ' .
|
||||
'greater question at A B C D E F G H I J K L M N O P Q R S T U V W X ' .
|
||||
'Y Z bracketleft backslash bracketright asciicircum underscore ' .
|
||||
'grave a b c d e f g h i j k l m n o p q r s t u v w x y z ' .
|
||||
'braceleft bar braceright asciitilde bullet Euro bullet quotesinglbase ' .
|
||||
'florin quotedblbase ellipsis dagger daggerdbl circumflex perthousand ' .
|
||||
'Scaron guilsinglleft OE bullet Zcaron bullet bullet quoteleft quoteright ' .
|
||||
'quotedblleft quotedblright bullet endash emdash tilde trademark scaron ' .
|
||||
'guilsinglright oe bullet zcaron Ydieresis space exclamdown cent ' .
|
||||
'sterling currency yen brokenbar section dieresis copyright ' .
|
||||
'ordfeminine guillemotleft logicalnot hyphen registered macron degree ' .
|
||||
'plusminus twosuperior threesuperior acute mu paragraph ' .
|
||||
'periodcentered cedilla onesuperior ordmasculine guillemotright ' .
|
||||
'onequarter onehalf threequarters questiondown Agrave Aacute ' .
|
||||
'Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute ' .
|
||||
'Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Eth Ntilde ' .
|
||||
'Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave ' .
|
||||
'Uacute Ucircumflex Udieresis Yacute Thorn germandbls agrave aacute ' .
|
||||
'acircumflex atilde adieresis aring ae ccedilla egrave eacute ' .
|
||||
'ecircumflex edieresis igrave iacute icircumflex idieresis eth ntilde ' .
|
||||
'ograve oacute ocircumflex otilde odieresis divide oslash ugrave ' .
|
||||
'uacute ucircumflex udieresis yacute thorn ydieresis';
|
||||
|
||||
return explode(' ', $encoding);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue