Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F559481
PhabricatorPDFPagesObject.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
891 B
Referenced Files
None
Subscribers
None
PhabricatorPDFPagesObject.php
View Options
<?php
final
class
PhabricatorPDFPagesObject
extends
PhabricatorPDFObject
{
private
$pageObjects
=
array
();
public
function
addPageObject
(
PhabricatorPDFPageObject
$page
)
{
$page
->
setPagesObject
(
$this
);
$this
->
pageObjects
[]
=
$this
->
newChildObject
(
$page
);
return
$this
;
}
public
function
getPageObjects
()
{
return
$this
->
pageObjects
;
}
protected
function
writeObject
()
{
$this
->
writeLine
(
'/Type /Pages'
);
$page_objects
=
$this
->
getPageObjects
();
$this
->
writeLine
(
'/Count %d'
,
count
(
$page_objects
));
$this
->
writeLine
(
'/MediaBox [%d %d %0.2f %0.2f]'
,
0
,
0
,
595.28
,
841.89
);
if
(
$page_objects
)
{
$kids
=
array
();
foreach
(
$page_objects
as
$page_object
)
{
$kids
[]
=
sprintf
(
'%d 0 R'
,
$page_object
->
getObjectIndex
());
}
$this
->
writeLine
(
'/Kids [%s]'
,
implode
(
' '
,
$kids
));
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 10:30 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
98767
Default Alt Text
PhabricatorPDFPagesObject.php (891 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment