Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F555024
PhabricatorPDFResourcesObject.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
662 B
Referenced Files
None
Subscribers
None
PhabricatorPDFResourcesObject.php
View Options
<?php
final
class
PhabricatorPDFResourcesObject
extends
PhabricatorPDFObject
{
private
$fontObjects
=
array
();
public
function
addFontObject
(
PhabricatorPDFFontObject
$font
)
{
$this
->
fontObjects
[]
=
$this
->
newChildObject
(
$font
);
return
$this
;
}
public
function
getFontObjects
()
{
return
$this
->
fontObjects
;
}
protected
function
writeObject
()
{
$this
->
writeLine
(
'/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]'
);
$fonts
=
$this
->
getFontObjects
();
foreach
(
$fonts
as
$font
)
{
$this
->
writeLine
(
'/Font <<'
);
$this
->
writeLine
(
'/F%d %d 0 R'
,
1
,
$font
->
getObjectIndex
());
$this
->
writeLine
(
'>>'
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 6:21 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
101377
Default Alt Text
PhabricatorPDFResourcesObject.php (662 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment