[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/assign/feedback/editpdf/fpdi/ -> fpdi_pdf_parser.php (summary)

This file is part of 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
File Size: 347 lines (9 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file
 mod/assign/feedback/editpdf/fpdi/pdf_parser.php

Defines 1 class

fpdi_pdf_parser:: (13 methods):
  __construct()
  getPageCount()
  setPageNo()
  getPageResources()
  _getPageResources()
  getContent()
  _getPageContent()
  _getPageBox()
  getPageBoxes()
  _getPageBoxes()
  getPageRotation()
  _getPageRotation()
  _readPages()


Class: fpdi_pdf_parser  - X-Ref

Class fpdi_pdf_parser

__construct($filename)   X-Ref
The constructor.

param: string $filename The source filename

getPageCount()   X-Ref
Get page count from source file.

return: int

setPageNo($pageNo)   X-Ref
Set the page number.

param: int $pageNo Page number to use

getPageResources()   X-Ref
Get page-resources from current page

return: array|boolean

_getPageResources($obj)   X-Ref
Get page-resources from a /Page dictionary.

param: array $obj Array of pdf-data
return: array|boolean

getContent()   X-Ref
Get content of current page.

If /Contents is an array, the streams are concatenated

return: string

_getPageContent($contentRef)   X-Ref
Resolve all content objects.

param: array $contentRef
return: array

_getPageBox($page, $boxIndex, $k)   X-Ref
Get a boundary box from a page

Array format is same as used by FPDF_TPL.

param: array $page a /Page dictionary
param: string $boxIndex Type of box {see {@link $availableBoxes})
param: float Scale factor from user space units to points
return: array|boolean

getPageBoxes($pageNo, $k)   X-Ref
Get all page boundary boxes by page number

param: int $pageNo The page number
param: float $k Scale factor from user space units to points
return: array

_getPageBoxes($page, $k)   X-Ref
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

getPageRotation($pageNo)   X-Ref
Get the page rotation by page number

param: integer $pageNo
return: array

_getPageRotation($obj)   X-Ref
Get the rotation value of a page

param: array $obj A /Page dictionary
return: array|bool

_readPages(&$pages, &$result)   X-Ref
Read all pages

param: array $pages /Pages dictionary
param: array $result The result array



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1