diff --git a/PDFNetPHP/PDFNetPHP.i b/PDFNetPHP/PDFNetPHP.i index fef9a379..1a1353f0 100644 --- a/PDFNetPHP/PDFNetPHP.i +++ b/PDFNetPHP/PDFNetPHP.i @@ -845,6 +845,9 @@ namespace pdftron { } } +// Value Wrappers prevent excessive item creation by wrapping the item in SwigValueWrapper +%feature("valuewrapper") pdftron::PDF::PDFDoc; + //---------------------------------------------------------------------------------------------- /** * Typemap for function pointers diff --git a/PDFNetPython/PDFNetPython.i b/PDFNetPython/PDFNetPython.i index 8678b6fa..93f5e03d 100644 --- a/PDFNetPython/PDFNetPython.i +++ b/PDFNetPython/PDFNetPython.i @@ -713,6 +713,9 @@ namespace pdftron { } } +// Value Wrappers prevent excessive item creation by wrapping the item in SwigValueWrapper +%feature("valuewrapper") pdftron::PDF::PDFDoc; + //---------------------------------------------------------------------------------------------- /** * Typemap for function pointers diff --git a/PDFNetRuby/PDFNetRuby.i b/PDFNetRuby/PDFNetRuby.i index 51d546c3..a2347189 100644 --- a/PDFNetRuby/PDFNetRuby.i +++ b/PDFNetRuby/PDFNetRuby.i @@ -673,6 +673,10 @@ namespace pdftron { return Qnil; } +// Value Wrappers prevent excessive item creation by wrapping the item in SwigValueWrapper +%feature("valuewrapper") pdftron::PDF::PDFDoc; + + //---------------------------------------------------------------------------------------------- /** * Typemap for function pointers diff --git a/PDFTronGo/pdftron.i b/PDFTronGo/pdftron.i index 4a4da2f4..d7853fd4 100644 --- a/PDFTronGo/pdftron.i +++ b/PDFTronGo/pdftron.i @@ -296,6 +296,9 @@ namespace pdftron { } } +// Value Wrappers prevent excessive item creation by wrapping the item in SwigValueWrapper +%feature("valuewrapper") pdftron::PDF::PDFDoc; + /** * Turns on the director feature for the following classes. * C++ equivalent of a proxy class. User extends this class in GOLang