HTML to PDF Hangs


#1

Aspose.PDF for .NET 19.8 hangs in the constructor with the attached file
and the CustomLoaderOfExternalResources is not called.

        var options = new HtmlLoadOptions(basePath)
        {
            PageInfo = new PageInfo
            {
                Margin = new MarginInfo(0.25F, 0.25F, 0.25F, 0.25F)
            },
            CustomLoaderOfExternalResources = ResourceLoader,
        };

        using (var pdf = new Document(inputFile, options))
        {
            pdf.Save(outputFile);
        }

ResLinkHang.zip (602 Bytes)


#2

@iprotim

Thank you for contacting support.

Would you please share SSCCE code because ResourceLoader is not defined. We will then be able to proceed further to help you out.


#3

The ResourceLoader was just setting ResourceLoadingResult.LoadingCancelled = true

It was only there is see if the CustomLoaderOfExternalResources was called (it was not), but it did not effect the real issue which is the fact it hangs.


#4

@iprotim

Thank you for clarifying.

A ticket with ID PDFNET-46903 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.


#5

Is there any update you can share on this ticket?


#6

@iprotim

Please note that the ticket is logged under free support model where tickets are scheduled on first come first serve basis. So the resolution of this ticket may take some months. We appreciate your patience and comprehension in this regard.

Moreover, we also offer Paid Support, where issues are used to be investigated with higher priority. Our customers, who have paid support subscription, report their issue there which are meant to be investigated urgently. In case your reported issue is a blocker, you may please consider subscribing for Paid Support. For further information, please visit Paid Support FAQs.