How to get progress of convertion

Hi,

I was wondering how to get progress of convertion.
I tried to convert pdf files, sometimes it took a long time.
So we need a progressbar.

Thanks.

@kngstr

Would you please share which version of API you are using (Java/.NET) and which type of conversion you are performing. We will further check feasibility of your requirements and share our feedback with you accordingly.

@asad.ali
Sorry. Here is api inofmation.
Aspose.Cells_for_C++_19.8.2
Aspose.PDF.Cpp.19.8.0
Aspose.Words.Cpp_19.9
aspose-slides-cpp-19.8

Do these API include process callbak?
Thanks.

@kngstr

We need to investigate for your required feature. We are checking related information and will get back to you shortly.

@asad.ali

Hi,

Any news?

Thanks

@kngstr

A feature request as PDFCPP-1104 has been logged in our issue tracking system for the sake of implementation. We will further check the feasibility of your requirement and keep you posted with the status of its implementation. Please spare us little time.

We are sorry for the inconvenience.

@asad.ali

Thanks.

@kngstr,

Regarding Aspose.Words for C++ API, we have logged your requirement in our issue tracking system. Your ticket number is WORDSCPP-901. We will further look into the details of this requirement and will keep you updated on the status of the linked issues. We apologize for any inconvenience.

@awais.hafeez
Thanks!

@kngstr,

Regarding Aspose.Cells for C++, we have logged your requirement in our issue tracking system (we already supported in .NET, see the document for your reference). A ticket with an id CELLSCPP-218 is logged for your issue. We will further look into the details of this requirement and will keep you updated on the status of the linked issues.

@Amjad_Sahi
Thanks!

The issues you have found earlier (filed as CELLSCPP-218) have been fixed in Aspose.Cells for C++ 19.11.0. This message was posted using Bugs notification tool by Amjad_Sahi

Thanks @Amjad_Sahi

@kngstr,

You are welcome.

@kngstr,
We have fix this issue in the latest version 19.11. We added a method SetIPageSavingCallback in IPdfSaveOptions
The attachment file main.cpp shows how to use it.
main.zip (609 Bytes)

@ahsaniqbalsidiqui
Thanks

@kngstr,
You are welcome.

@kngstr

Regarding PDFCPP-1104, next version of Aspose.PDF for C++ 20.4 (approx. release date is Apr 17, 2020) will have ability to specify custom callback function while converting .pdf document to .doc/.docx format.

Below is the example of code:

The key line is saveOptions->CustomProgressHandler = ProgressHandler(ConversionProgressCallback);

#include "Aspose.PDF.Cpp/DocSaveOptions.h"
#include "Aspose.PDF.Cpp/Document.h"
#include "Aspose.PDF.Cpp/License.h"
#include "Aspose.PDF.Cpp/UnifiedSaveOptions.h"

#include "system/io/file.h"
#include "system/io/memory_stream.h"
#include "system/console.h"
#include "system/convert.h"

using namespace Aspose::Pdf;
using namespace System;
using namespace System::IO;

void ConversionProgressCallback(SharedPtr<UnifiedSaveOptions::ProgressEventHandlerInfo> eventInfo)
{
    String eventType;
    switch (eventInfo->EventType)
    {
    case ProgressEventType::ResultPageCreated:
        eventType = u"ResultPageCreated";
        break;
    case ProgressEventType::ResultPageSaved:
        eventType = u"ResultPageSaved";
        break;
    case ProgressEventType::SourcePageAnalysed:
        eventType = u"SourcePageAnalysed";
        break;
    case ProgressEventType::TotalProgress:
        eventType = u"TotalProgress";
        break;
    }
    Console::WriteLine(String::Format(u"Event type: {0}, Value: {1}, MaxValue: {2}", eventType, eventInfo->Value, eventInfo->MaxValue));
}

using ProgressHandler = System::MulticastDelegate<void(SharedPtr<UnifiedSaveOptions::ProgressEventHandlerInfo>)>;

int main()
{
    auto doc = MakeObject<Document>(u"Booklet.pdf");
    auto saveOptions = MakeObject<DocSaveOptions>();
    saveOptions->set_Format(DocSaveOptions::DocFormat::DocX);
    saveOptions->set_Mode(DocSaveOptions::RecognitionMode::Textbox);
    saveOptions->CustomProgressHandler = ProgressHandler(ConversionProgressCallback);
    doc->Save(u"Booklet.docx", saveOptions);
}

@asad.ali

OK. Thanks.
I’ll be waiting for it.

@asad.ali

I was wondering how can I know the caller?
There are more than one file to be compressed.

Thanks.