I am looking for a solution to convert html to pdf. Following is the list of requirements.
Pulling dynamic html content from public web sites secured by a form-based authentication mechanism and converting it to pdf.
The
navigation bar on the left of each page should be transformed into pdf bookmarks from html
hyperlinks. Converting all html hyperlinks in the “pulled” dynamic html content to pdf bookmarks with the html/pdf content of the hyperlinked documents inlined in the generated pdf document.
Ability to specify level/depth of retrieving hyperlinked html documents from the root/start url. (more like the adobe professional feature of create pdf from a web page with specified depth)
Facility to manipulate the html content, like, removing the banner at the top, removing the footer, changing the css styles, etc.
h
Can Aspose.pdf support all these requirements? Or do I need Aspose.pdf.kit as well?
HTML2Pdf conversion is in Beta version, and some of the features may not function properly. According to your requirement, you can extract contents from Public site. For authentication purpose, you can use credentials (a static field in Pdf class). I am afraid transformation of navigation bar over left into Pdf bookmarks is not supported. As a workaround once the Pdf file is created, you can create bookmarks using Aspose.Pdf.Kit
Specifying the level/depth to retrieve html documents and facility to manipulate html contents, is also not yet supported.
CSS is not supported currently. CSS support is mandatory for our requirment. Any idea when CSS support will be released.
For us the best option is “Html File as a Web URL”. But there are code snippets for only C# and VB.NET. We are more interested in the java option. Does the java version supports this functionality?
Is HTML2Pdf a part of Aspose.pdf or a separate library.
I am glad to inform you that CSS are supported in Java version.
I am sorry to inform you that conversion from Web URL to PDF is not supported in Java version. Only conversion from HTML file to PDF is currently supported. As a workaround, first save the HTML file to disk and then call bindHTML of Pdf class.
HTML2Pdf conversion is a feature of Aspose.Pdf component.
In case of any further query, feel free to contact.
We have planned to support it by the end of this year, but we cannot promise about its implementation. As soon as we have made some progress, we would be pleased to update you with the status of correction. Your patience in this regard is highly appreciated.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.