Document conversion progress issue

Hello!

Can you provide general way to monitor document conversion progress for

aspose slides/email/image/cells/diagram modules?

Something similar to IPageSavingCallback interface like in aspose-word or

to CustomProgressHandler class in aspose-pdf.

This issue is very critical for us, because we expect to monitor pdf-conversion progress

but PdfSaveOptions class doesn’t have any progress callback function.

Thanks in advance.

1 Like

@Andriyw,

I have observed your comments. I regret to inform that this feature will not be available in near future in Aspose.Cells. I like to inform that if worksheet is large and "OnePagePerSheet’ is set to true, we can’t know the effective progress. If the workbook has multi pages we can provide a callback with page index and all page count that you can know the converting progress. We have added new feature ticket in our issue tracking system with ID CELLSNET-42029 for your kind reference.

@Adnan.Ahmad, thank you for the response.

Page index is quite enough for us.

Another question:

Does conversion progress callback available for other modules (slides,email,image,diagram)?

@Andriyw,

I like to inform this feature is not supported in mentioned API’s as well. We have added following tickets in our issue tracking system.

  • EMAILNET-39499
  • SLIDESNET-34681
  • DIAGRAMNET-51656
  • IMAGINGNET-3460

This thread has been associated with the tickets so that we share notification with you once issues will be fixed.

@Andriyw,
This is to inform you that we have fixed your issue (logged earlier as “CELLSNET-42029”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

@Andriyw,

Please try our latest version/fix: Aspose.Cells for .NET v19.6.1 (attached)

Your issue “CELLSNET-42029” should be fixed in it.

We add new API PdfSaveOptions.PageSavingCallback .
e.g
Sample code:

Workbook wb = new Workbook("Book1.xlsx");

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.PageSavingCallback = new TestPageSavingCallback();

wb.Save("outFile.pdf", pdfSaveOptions);
public class TestPageSavingCallback : IPageSavingCallback
{
    public void PageStartSaving(PageStartSavingArgs args)
    {
        Console.WriteLine("Start saving page index {0} of pages {1}", args.PageIndex, args.PageCount);

        //don't output pages before page index 2.
        if(args.PageIndex < 2)
        {
            args.IsToOutput = false;
        }
    }

    public void PageEndSaving(PageEndSavingArgs args)
    {
        Console.WriteLine("End saving page index {0} of pages {1}", args.PageIndex, args.PageCount);

        //don't output pages after page index 8.
        if(args.PageIndex >= 8)
        {
            args.HasMorePages = false;
        }
    }
}

Let us know your feedback.
Aspose.Cells19.6.1 For .Net2_AuthenticodeSigned.Zip (4.9 MB)
Aspose.Cells19.6.1 For .Net4.0.Zip (4.9 MB)

The issues you have found earlier (filed as SLIDESNET-34681) have been fixed in this update.

The issues you have found earlier (filed as DIAGRAMNET-51656) have been fixed in Aspose.Diagram for .NET 19.7.

The issues you have found earlier (filed as CELLSNET-42029) have been fixed in Aspose.Cells for .NET v19.7.

The issues you have found earlier (filed as EMAILNET-39499) have been fixed in this update.

The issues you have found earlier (filed as IMAGINGNET-3460) have been fixed in this update.