| @@ 565-571 (lines=7) @@ | ||
| 562 | public function pdf_write_value(&$value) |
|
| 563 | { |
|
| 564 | switch ($value[0]) { |
|
| 565 | case PDF_TYPE_STRING: |
|
| 566 | if ($this->encrypted) { |
|
| 567 | $value[1] = $this->_unescape($value[1]); |
|
| 568 | $value[1] = $this->_encrypt_data($this->_current_obj_id, $value[1]); |
|
| 569 | $value[1] = TCPDF_STATIC::_escape($value[1]); |
|
| 570 | } |
|
| 571 | break; |
|
| 572 | ||
| 573 | case PDF_TYPE_STREAM: |
|
| 574 | if ($this->encrypted) { |
|
| @@ 583-591 (lines=9) @@ | ||
| 580 | } |
|
| 581 | break; |
|
| 582 | ||
| 583 | case PDF_TYPE_HEX: |
|
| 584 | if ($this->encrypted) { |
|
| 585 | $value[1] = $this->hex2str($value[1]); |
|
| 586 | $value[1] = $this->_encrypt_data($this->_current_obj_id, $value[1]); |
|
| 587 | ||
| 588 | // remake hexstring of encrypted string |
|
| 589 | $value[1] = $this->str2hex($value[1]); |
|
| 590 | } |
|
| 591 | break; |
|
| 592 | } |
|
| 593 | ||
| 594 | switch ($value[0]) { |
|