Skip to content
ComPDF
DemoFAQ
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

Get Conversion Progress

ComPDF Conversion SDK obtains the conversion progress through callback functions in the ConvertCallback structure. The following example demonstrates how to get the conversion progress while performing a PDF to Word task.

c#
void GetProgress(int pageIndex, int total)
{
  // Add callback function code here.
}
OnProgress getPorgress += GetProgress;

ConvertCallback callback = new ConvertCallback();
callback.progress = Marshal.GetFunctionPointerForDelegate(getPorgress);

WordOptions wordOptions = new WordOptions();
CPDFConversion.StartPDFToWord("input.pdf", "password", "path/output.docx", wordOptions, callback);