Skip to content

Commit

Permalink
Fix errors and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Aug 14, 2024
1 parent 4d083df commit 5114d43
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.0.64
8.0.65
2 changes: 2 additions & 0 deletions examples/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@
$clipimg = $pdf->image->add('../vendor/tecnickcom/tc-lib-pdf-image/test/images/200x100_CMYK.jpg');
$cnz .= $pdf->image->getSetImage($clipimg, 10, 10, 80, 80, $page10['height']);
$cnz .= $pdf->graph->getStopTransform();

$pdf->page->addContent($cnz);


Expand Down Expand Up @@ -1381,6 +1382,7 @@
null, // ?array $shadow = null,
);


// ----------
// Page signature

Expand Down
2 changes: 1 addition & 1 deletion src/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ abstract class Base
/**
* TCPDF version.
*/
protected string $version = '8.0.64';
protected string $version = '8.0.65';

/**
* Time is seconds since EPOCH when the document was created.
Expand Down
5 changes: 2 additions & 3 deletions src/MetaInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ protected function getPagePrintScaling(): string
*/
protected function getDuplexMode(): string
{
$mode = 'none';
if (isset($this->viewerpref['Duplex'])) {
$name = strtolower($this->viewerpref['Duplex']);
$valid = [
Expand All @@ -502,11 +501,11 @@ protected function getDuplexMode(): string
'duplexfliplongedge' => 'DuplexFlipLongEdge',
];
if (isset($valid[$name])) {
$mode = $valid[$name];
return ' /Duplex /' . $valid[$name];
}
}

return ' /Duplex /' . $mode;
return '';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ protected function getOutTextShowing(string $str, string $mode = 'Tj'): string
*/
protected function getOutTextObject(string $raw = ''): string
{
return 'BT ' . $raw . ' BE' . "\r";
return 'BT ' . $raw . ' ET' . "\r";
}

/**
Expand Down

0 comments on commit 5114d43

Please sign in to comment.