Hi,
We have the license for Aspose PDF and currently using HTML to PDF converter.
I noticed that Aspose makes HTTP calls to server to fetch content behind the scenes when we provide the Http URL.
I have a requirement to make certain changes to the server response before its consumed by Aspose. Is there a way that I can hook my java code in Aspose so that Aspose can make call to my code for the custom changes when it makes HTTP calls?
Otherwise, an option to set my own CustomHttpClient for Aspose’s use instead of its internal Httpclient object would also help.
Please suggest if any such provision available.
@sgurana,
Please elaborate a bit more about the changes you require to make during import of the HTML document. You can perform different actions with HTML remote resources. Please refer to this help topic: Setting to Not Pull Down Remote Resources During Conversion
Hi Imran,
As pulling the data from Internet is a time consuming affair, we are looking at alternatives like Caching some of the pulled resources (css or jpegs) locally so that aspose can re-use them for subsequent html to pdf requests.
Also as we have a license, can you please inform the process to directly get into a call to discuss more in details.
@sgurana,
Please note, we do not provide technical help through the voice calls under the free support model. We request you please share the complete details of the scenario in your reply post. Based on the above details, it would be very difficult for Aspose API to auto track the cashed resources from the local path, and use in the export procedure. If we can track actual resources with some parameters, then we can write a program to move real resources to a directory and call Aspose.PDF export feature.