We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.pdf for java capabilities

I am looking for a solution to convert html to pdf. Following is the list of requirements.

  1. Pulling dynamic html content from public web sites secured by a form-based authentication mechanism and converting it to pdf.

  2. 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.

  3. 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)
  4. Facility to manipulate the html content, like, removing the banner at the top, removing the footer, changing the css styles, etc.

  5. h
Can Aspose.pdf support all these requirements? Or do I need Aspose.pdf.kit as well?

Please advise.

Hello Hitesh,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for considering Aspose.

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.

We apologize for your inconvenience.

For more information on converting HTML2Pdf file, please visit Converting Html or Aspx to PDF (Beta version)

For information on how to create bookmarks in existing Pdf file, please visit http://www.aspose.com/documentation/file-format-components/aspose.pdf.kit-for-.net-and-java/create-bookmarks-new.html

Thanks for the quick response.
Few quick queries,

  1. CSS is not supported currently. CSS support is mandatory for our requirment. Any idea when CSS support will be released.

  2. 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?

  3. Is HTML2Pdf a part of Aspose.pdf or a separate library.

hbagchi

Hello Hitesh,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

1. I am glad to inform you that CSS are supported in Java version.

2. I sorry to inform you that conversion from Web URL to Pdf is not supported in Java version. Only Conversion form HTML file to Pdf is currently supported. As a workaround first save the HTML file over disk and then call bindHTML of Pdf class.

3. HTML2Pdf conversion is a feature of Aspose.Pdf component.

In case of any further query, feel free to contact.

Is there an ETA on when CSS will be supported in the .NET version?

Hello Hitesh,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

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.