Reduce CU Load

We convert a PDF to Tiff pages. We do this with the following code:

var resolution = new Resolution(300);
var tiffSettings = new TiffSettings
{
Compression = CompressionType.LZW,
Depth = ColorDepth.Default,
};

var tiffDevice = new TiffDevice(resolution, tiffSettings);

var pageCount = pdfDocument.Pages.Count;

string imgFormat = "000";

if (pageCount > 1000)
{
    imgFormat = "0000";
}

for (var i = 1; i <= pageCount; i++)
{
    var mediaBox = pdfDocument.Pages[i].MediaBox;
    tiffSettings.Shape = mediaBox.Width > mediaBox.Height ? ShapeType.Landscape : ShapeType.Portrait;

tiffDevice.Process(pdfDocument, i, i, Path.ChangeExtension(pdfName, i.ToString(imgFormat) + “.tif”));
}

Is there a way to reduce the CPU usage?

@FileLinx

Can you please share how much CPU usage you are observing? Are you using the latest version of the API? Please share your sample PDF document for our reference so that we can test the scenario in our environment and address it accordingly.

We use version 23.1.0
On a server with Intel Xeon E5-2650v2 processor we see a CPU usage between 15 and 32%.
The used PDF has no influence on CPU usage. The PDF’s we need tot convert has many pages (500-1500).

@FileLinx

We request you please test the scenario with 23.10 version of the API and if issue still persists, please share your sample PDF document with us. We will log an investigation ticket and share the ID with you.