コード例 #1
0
        public byte[] GetConverterResult(IntPtr converter)
        {
            Tracer.Trace("T:" + Thread.CurrentThread.Name + " Requesting converter result (wkhtmltopdf_get_output)");

            IntPtr tmp;
            var    len    = WkhtmltoxBindings.wkhtmltopdf_get_output(converter, out tmp);
            var    output = new byte[len];

            Marshal.Copy(tmp, output, 0, output.Length);
            return(output);
        }