Skip to content

Instantly share code, notes, and snippets.

@Decipher
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save Decipher/9796401 to your computer and use it in GitHub Desktop.

Select an option

Save Decipher/9796401 to your computer and use it in GitHub Desktop.
diff --git a/fpdf_tpl.php b/fpdf_tpl.php
index 8482ba3..1ff89a8 100644
--- a/fpdf_tpl.php
+++ b/fpdf_tpl.php
@@ -272,7 +272,7 @@ class FPDF_TPL extends FPDF {
/**
* See FPDF/TCPDF-Documentation ;-)
*/
- public function SetFont($family, $style = '', $size = 0) {
+ public function SetFont($family, $style = '', $size = 0, $fontfile = '', $subset = 'default', $out = true) {
if (is_subclass_of($this, 'TCPDF')) {
$args = func_get_args();
return call_user_func_array(array($this, 'TCPDF::SetFont'), $args);
diff --git a/fpdi2tcpdf_bridge.php b/fpdi2tcpdf_bridge.php
index 88c847f..d671899 100644
--- a/fpdi2tcpdf_bridge.php
+++ b/fpdi2tcpdf_bridge.php
@@ -28,7 +28,7 @@
*/
class FPDF extends TCPDF {
- function _putstream($s) {
+ function _putstream($s, $n = 0) {
$this->_out($this->_getstream($s));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment