Exemplo n.º 1
0
 internal void SetIntStruct(PdfHtmlParamsInt inStruct)
 {
     flags        = inStruct.flags;
     width        = inStruct.width;
     type         = (PdfHtmlType)inStruct.type;
     image_params = new PdfImageParams();
     image_params.SetIntStruct(inStruct.image_params);
 }
Exemplo n.º 2
0
            internal PdfHtmlParamsInt GetIntStruct()
            {
                PdfHtmlParamsInt result = new PdfHtmlParamsInt();

                result.flags        = flags;
                result.width        = width;
                result.type         = (int)type;
                result.image_params = (PdfImageParamsInt)image_params.GetIntStruct();
                return(result);
            }
Exemplo n.º 3
0
            public bool SavePageHtml(PsStream _stream, PdfHtmlParams _params, int _page_num, PdfCancelProc _cancel_proc, IntPtr _cancel_data)
            {
                CheckBaseObj();
                PdfHtmlParamsInt _paramsInt  = _params.GetIntStruct();
                IntPtr           _params_ptr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(PdfHtmlParamsInt)));

                Marshal.StructureToPtr(_paramsInt, _params_ptr, true);
                byte ret = PdfHtmlDocSavePageHtml(m_obj, _stream == null ? IntPtr.Zero : _stream.m_obj, _params_ptr, _page_num, _cancel_proc, _cancel_data);

                Marshal.FreeHGlobal(_params_ptr);
                _params_ptr = IntPtr.Zero;
                return(ret != 0);
            }
Exemplo n.º 4
0
            public bool Save(string _path, PdfHtmlParams _params, PdfCancelProc _cancel_proc, IntPtr _cancel_data)
            {
                CheckBaseObj();
                PdfHtmlParamsInt _paramsInt  = _params.GetIntStruct();
                IntPtr           _params_ptr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(PdfHtmlParamsInt)));

                Marshal.StructureToPtr(_paramsInt, _params_ptr, true);
                byte ret = PdfHtmlDocSave(m_obj, _path, _params_ptr, _cancel_proc, _cancel_data);

                Marshal.FreeHGlobal(_params_ptr);
                _params_ptr = IntPtr.Zero;
                return(ret != 0);
            }