Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F555056
PhabricatorPDFPageObject.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorPDFPageObject.php
View Options
<?php
final
class
PhabricatorPDFPageObject
extends
PhabricatorPDFObject
{
private
$pagesObject
;
private
$contentsObject
;
private
$resourcesObject
;
public
function
setPagesObject
(
PhabricatorPDFPagesObject
$pages
)
{
$this
->
pagesObject
=
$pages
;
return
$this
;
}
public
function
setContentsObject
(
PhabricatorPDFContentsObject
$contents
)
{
$this
->
contentsObject
=
$this
->
newChildObject
(
$contents
);
return
$this
;
}
public
function
setResourcesObject
(
PhabricatorPDFResourcesObject
$resources
)
{
$this
->
resourcesObject
=
$this
->
newChildObject
(
$resources
);
return
$this
;
}
protected
function
writeObject
()
{
$this
->
writeLine
(
'/Type /Page'
);
$pages_object
=
$this
->
pagesObject
;
$contents_object
=
$this
->
contentsObject
;
$resources_object
=
$this
->
resourcesObject
;
if
(
$pages_object
)
{
$pages_index
=
$pages_object
->
getObjectIndex
();
$this
->
writeLine
(
'/Parent %d 0 R'
,
$pages_index
);
}
if
(
$contents_object
)
{
$contents_index
=
$contents_object
->
getObjectIndex
();
$this
->
writeLine
(
'/Contents %d 0 R'
,
$contents_index
);
}
if
(
$resources_object
)
{
$resources_index
=
$resources_object
->
getObjectIndex
();
$this
->
writeLine
(
'/Resources %d 0 R'
,
$resources_index
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 6:22 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
97275
Default Alt Text
PhabricatorPDFPageObject.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment