Пример #1
0
        public static IntPtr CreateGlobalSetting()
        {
            Tracer.Trace("T:" + Thread.CurrentThread.Name + " Creating global settings (wkhtmltopdf_create_global_settings)");

            return(PechkinBindings.wkhtmltopdf_create_global_settings());
        }
Пример #2
0
        public static void AddObject(IntPtr converter, IntPtr objectConfig, byte[] html)
        {
            Tracer.Trace("T:" + Thread.CurrentThread.Name + " Adding byte[] object (wkhtmltopdf_add_object)");

            PechkinBindings.wkhtmltopdf_add_object(converter, objectConfig, html);
        }
Пример #3
0
        public static int GetPhaseNumber(IntPtr converter)
        {
            Tracer.Trace("T:" + Thread.CurrentThread.Name + " Requesting current phase (wkhtmltopdf_current_phase)");

            return(PechkinBindings.wkhtmltopdf_current_phase(converter));
        }
Пример #4
0
        public static bool PerformConversion(IntPtr converter)
        {
            Tracer.Trace("T:" + Thread.CurrentThread.Name + " Starting conversion (wkhtmltopdf_convert)");

            return(PechkinBindings.wkhtmltopdf_convert(converter) != 0);
        }
Пример #5
0
        public static void SetProgressChangedCallback(IntPtr converter, IntCallback callback)
        {
            Tracer.Trace("T:" + Thread.CurrentThread.Name + " Setting progress change callback (wkhtmltopdf_set_progress_changed_callback)");

            PechkinBindings.wkhtmltopdf_set_progress_changed_callback(converter, callback);
        }
Пример #6
0
        public static void SetFinishedCallback(IntPtr converter, IntCallback callback)
        {
            Tracer.Trace("T:" + Thread.CurrentThread.Name + " Setting finished callback (wkhtmltopdf_set_finished_callback)");

            PechkinBindings.wkhtmltopdf_set_finished_callback(converter, callback);
        }
Пример #7
0
        public static void SetErrorCallback(IntPtr converter, StringCallback callback)
        {
            Tracer.Trace("T:" + Thread.CurrentThread.Name + " Setting error callback (wkhtmltopdf_set_error_callback)");

            PechkinBindings.wkhtmltopdf_set_error_callback(converter, callback);
        }
Пример #8
0
        public static void DestroyConverter(IntPtr converter)
        {
            Tracer.Trace("T:" + Thread.CurrentThread.Name + " Destroying converter (wkhtmltopdf_destroy_converter)");

            PechkinBindings.wkhtmltopdf_destroy_converter(converter);
        }