i have a problem when i try to convert PDF to image. I use the op.document.exportToImages function with the C# sample code from https://sdkhelp.pdf-xchange.com/vi ... rtToImages.
I´ve changed the sample code to use BMP as Output-Format and want to use a higher DPI than the default of 150:
Code: Select all
//pdfEditControl is AxPXV_Control
var doc = pdfEditControl.Doc;
var inst = pdfEditControl.Inst;
var nID = inst.Str2ID("op.document.exportToImages", false);
var op = inst.CreateOp(nID);
ICabNode input = op.Params.Root["Input"];
input.Add().v = doc;
ICabNode options = op.Params.Root["Options"];
options["PagesRange.Type"].v = "Exact";
options["PagesRange.Text"].v = "1";
options["DestFolder"].v = @"C:\temp";
options["ExportMode"].v = "AllToMutliPage";
options["Zoom"].v = 100.0;
options["ShowResultFolder"].v = false;
options["FileName"].v = "t.bmp";
ICabNode fmtParams = options["FormatParams"];
fmtParams["FMT"].v = 1112363040; //Image Format BMP
fmtParams["DPIX"].v = 300;
fmtParams["DPIY"].v = 300;
fmtParams["ITYP"].v = 21; //Truecolor 32
op.Do();
I also tried a DPI of 96 DPI but neither IrfanView nor filesize changed. DPI is still 150
Acoording to the ImageTestTool from https://www.pdf-xchange.com/forum3 ... 66&t=25943 BMP should support DPI-Setting.
Whats wrong?
Windows 10 with PDFXEditCore.x64.dll Version 6.0.322.7
Regards
Jannis