Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
PDFStream.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class PDFStream : PDFObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public PDFStream(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.PDFStream_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(PDFStream obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public override bool isKindOf(PDFTypeId objType) {
43 bool ret = GlobalsPINVOKE.PDFStream_isKindOf(swigCPtr, (int)objType);
45 return ret;
46 }
47
48 public override PDFTypeId type() {
51 return ret;
52 }
53
54 public override bool Export(PDFIStream pStream, PDFVersion ver) {
55 bool ret = GlobalsPINVOKE.PDFStream_Export(swigCPtr, PDFIStream.getCPtr(pStream), PDFVersion.getCPtr(ver));
57 return ret;
58 }
59
60 public virtual UInt32 getLength() {
61// test csout
62 /*SIMPLETYPE*/
63 UInt32 ret = GlobalsPINVOKE.PDFStream_getLength(swigCPtr);
65 return ret;
66 }
67
68 public virtual bool AddFilter(String pFilterName, PDFDecodeParametersDictionary pDecodeParams) {
69 bool ret = GlobalsPINVOKE.PDFStream_AddFilter(swigCPtr, pFilterName, PDFDecodeParametersDictionary.getCPtr(pDecodeParams));
71 return ret;
72 }
73
74 public virtual bool RemoveFilter(String pFilterName) {
75 bool ret = GlobalsPINVOKE.PDFStream_RemoveFilter(swigCPtr, pFilterName);
77 return ret;
78 }
79
80 public virtual UInt32 getNumberOfFilters() {
81// test csout
82 /*SIMPLETYPE*/
83 UInt32 ret = GlobalsPINVOKE.PDFStream_getNumberOfFilters(swigCPtr);
85 return ret;
86 }
87
88 public virtual bool getFilterAt(UInt32 /*SIMPLETYPE*/ nIndx, ref string pFilterName) {
89IntPtr tmp_pFilterName = Marshal.StringToCoTaskMemUni(pFilterName);
90 IntPtr saved_pFilterName = tmp_pFilterName;
91 try {
92 bool ret = GlobalsPINVOKE.PDFStream_getFilterAt(swigCPtr, nIndx /*SIMPLETYPE*/, ref tmp_pFilterName);
94 return ret;
95 } finally {
96if (tmp_pFilterName != saved_pFilterName) pFilterName = Marshal.PtrToStringUni(tmp_pFilterName);
97 }
98 }
99
100 public virtual bool getDecodeParamsAt(UInt32 /*SIMPLETYPE*/ nIndx, out PDFDecodeParametersDictionary pDecodeParams) {
101 bool ret = GlobalsPINVOKE.PDFStream_getDecodeParamsAt(swigCPtr, nIndx /*SIMPLETYPE*/, out pDecodeParams);
103 return ret;
104 }
105
106}
107
108}
static global::System.Exception Retrieve()
static UInt32 PDFStream_getNumberOfFilters(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 PDFStream_getLength(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool PDFStream_AddFilter(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, HandleRef jarg3)
static bool PDFStream_Export(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool PDFStream_isKindOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_PDFStream(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool PDFStream_getFilterAt(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, ref IntPtr jarg3)
static int PDFStream_type(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool PDFStream_getDecodeParamsAt(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, out PDFDecodeParametersDictionary jarg3)
static bool PDFStream_RemoveFilter(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static HandleRef getCPtr(PDFDecodeParametersDictionary obj)
static HandleRef getCPtr(PDFIStream obj)
Definition: PDFIStream.cs:25
virtual UInt32 getLength()
Definition: PDFStream.cs:60
override void Dispose(bool disposing)
Definition: PDFStream.cs:29
PDFStream(IntPtr cPtr, bool cMemoryOwn)
Definition: PDFStream.cs:20
virtual bool RemoveFilter(String pFilterName)
Definition: PDFStream.cs:74
virtual bool getFilterAt(UInt32 nIndx, ref string pFilterName)
Definition: PDFStream.cs:88
override bool Export(PDFIStream pStream, PDFVersion ver)
Definition: PDFStream.cs:54
virtual UInt32 getNumberOfFilters()
Definition: PDFStream.cs:80
static HandleRef getCPtr(PDFStream obj)
Definition: PDFStream.cs:25
override PDFTypeId type()
Definition: PDFStream.cs:48
override bool isKindOf(PDFTypeId objType)
Definition: PDFStream.cs:42
virtual bool getDecodeParamsAt(UInt32 nIndx, out PDFDecodeParametersDictionary pDecodeParams)
Definition: PDFStream.cs:100
virtual bool AddFilter(String pFilterName, PDFDecodeParametersDictionary pDecodeParams)
Definition: PDFStream.cs:68
static HandleRef getCPtr(PDFVersion obj)
Definition: PDFVersion.cs:26