PDF_Japanese
class PDF_Japanese extends FPDI
Properties
array | $tpls | Array of Tpl-Data | from FPDF_TPL |
int | $tpl | Current Template-ID | from FPDF_TPL |
boolean | $_intpl | "In Template"-Flag | from FPDF_TPL |
string | $tplprefix | Nameprefix of Templates used in Resources-Dictonary | from FPDF_TPL |
array | $_res | Resources used By Templates and Pages | from FPDF_TPL |
array | $lastUsedTemplateData | Last used Template data | from FPDF_TPL |
string | $current_filename | Actual filename | from FPDI |
array | $parsers | Parser-Objects | from FPDI |
object | $current_parser | Current parser | from FPDI |
array | $_obj_stack | object stack | from FPDI |
array | $_don_obj_stack | done object stack | from FPDI |
integer | $_current_obj_id | Current Object Id. | from FPDI |
string | $lastUsedPageBox | The name of the last imported page box | from FPDI |
array | $_importedPages | Cache for imported pages/template ids | from FPDI |
Methods
Start a Template
Use a Template in current Page or other Template
Get The calculated Size of a Template
See FPDF/TCPDF-Documentation ;-)
Rewritten to handle existing own defined objects
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
in FPDF at line 31
_putstream($s)
in FPDF at line 35
_getxobjectdict()
in FPDI at line 395
pdf_write_value(array $value)
Writes a value Needed to rebuild the source document
in FPDF at line 85
string
_unescape(string $s)
Unescapes a PDF string
in FPDF at line 150
string
hex2str(string $hex)
Hexadecimal to string
in FPDF at line 160
string
str2hex(string $str)
String to hexadecimal
in FPDF_TPL at line 76
int
beginTemplate(int $x = null, int $y = null, int $w = null, int $h = null)
Start a Template
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. 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.
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. Warning: A created Template is used in PDF at all events. Still if you don't use it after creation!
in FPDF_TPL at line 134
mixed
endTemplate()
End Template
This method ends a template and reset initiated variables on beginTemplate.
in FPDI at line 208
useTemplate(int $tplidx, int $_x = null, int $_y = null, int $_w, int $_h, $adjustPageSize = false)
Use a Template in current Page or other 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. All parameters are optional. The width or height is calculated automaticaly if one is given. If no parameter is given the origin size as defined in beginTemplate() is used. The calculated or used width and height are returned as an array.
in FPDF_TPL at line 238
array
getTemplateSize(int $tplidx, int $_w, int $_h)
Get The calculated Size of a Template
If one size is given, this method calculates the other one.
in FPDF_TPL at line 262
SetFont($family, $style = '', $size)
See FPDF/TCPDF-Documentation ;-)
in FPDF_TPL at line 288
Image($file, $x = null, $y = null, $w, $h, $type = '', $link = '')
See FPDF/TCPDF-Documentation ;-)
in FPDF_TPL at line 309
AddPage($orientation = '', $format = '')
See FPDF-Documentation ;-)
AddPage is not available when you're "in" a template.
in FPDF_TPL at line 324
Link($x, $y, $w, $h, $link)
Preserve adding Links in Templates .
..won't work
in FPDF_TPL at line 336
AddLink()
in FPDF_TPL at line 347
SetLink($link, $y, $page = -1)
in FPDI at line 267
_putformxobjects()
Private Method that writes the form xobjects
in FPDF_TPL at line 424
_putimages()
Overwritten to add _putformxobjects() after _putimages()
in FPDF_TPL at line 429
_putxobjectdict()
in FPDF_TPL at line 442
_out($s)
Private Method
in FPDI at line 86
int
setSourceFile(string $filename)
Set a source-file
in FPDI at line 102
fpdi_pdf_parser
_getPdfParser(string $filename)
Returns a PDF parser object
in FPDI at line 111
string
getPDFVersion()
Get the current PDF version
in FPDI at line 120
string
setPDFVersion($version = '1.3')
Set the PDF version
in FPDI at line 130
int
importPage($pageno, $boxName = '/CropBox')
Import a page
in FPDI at line 204
getLastUsedPageBox()
in FPDI at line 237
_putimportedobjects()
Private method, that rebuilds all needed objects of source files
in FPDI at line 374
_newobj($obj_id = false, $onlynewobj = false)
Rewritten to handle existing own defined objects
in FPDI at line 497
_straightOut($s)
Modified so not each call will add a newline to the output.
in FPDI at line 523
_enddoc()
rewritten to close opened parsers
in FPDI at line 531
_closeParsers()
close all files opened by parsers