Convert html to pdf along with hyperlinked web pages

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Convert html to pdf along with hyperlinked web pages

hitesh-3
We need to convert a bundle of static HTML documents into a single PDF file programmatically using a java component running on OFBiz. The pdf files would be distributed to site users for offline browsing of the web pages.

The major points of the requirements are:
1. The banner at the top should not be present in the final pdf document.
2. The navigation bar on the left should be transformed into pdf bookmarks from html hyperlinks.
3. All hyperlinked contents (html/pdf/doc/docx etc.) present in the web pages should be part of the final pdf document with pdf bookmarks.

Is there any OFBiz built-in component of doing this

Thanks,

Cheers,
hbagchi
Reply | Threaded
Open this post in threaded view
|

Re: Convert html to pdf along with hyperlinked web pages

Jacques Le Roux
Administrator
For the banner simply don't use the common decorator and/or use your own
For "fo:bookmark" have a look into EntityRefReport.fo.ftl and its result
BTW https://localhost:8443/webtools/control/entityrefReport is a good example of what you are looking for I guess

Jacques

From: "hbagchi" <[hidden email]>

>
> We need to convert a bundle of static HTML documents into a single PDF file
> programmatically using a java component running on OFBiz. The pdf files
> would be distributed to site users for offline browsing of the web pages.
>
> The major points of the requirements are:
> 1. The banner at the top should not be present in the final pdf document.
> 2. The navigation bar on the left should be transformed into pdf bookmarks
> from html hyperlinks.
> 3. All hyperlinked contents (html/pdf/doc/docx etc.) present in the web
> pages should be part of the final pdf document with pdf bookmarks.
>
> Is there any OFBiz built-in component of doing this
>
> Thanks,
>
> Cheers,
> hbagchi
> --
> View this message in context: http://www.nabble.com/Convert-html-to-pdf-along-with-hyperlinked-web-pages-tp20183164p20183164.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Convert html to pdf along with hyperlinked web pages

hitesh-3
Unable to locate this file in the OFBiz 4.0 bundle. Do I have to install a separate library?

Hitesh


jacques.le.roux wrote
For the banner simply don't use the common decorator and/or use your own
For "fo:bookmark" have a look into EntityRefReport.fo.ftl and its result
BTW https://localhost:8443/webtools/control/entityrefReport is a good example of what you are looking for I guess

Jacques

From: "hbagchi" <hbagchi@yahoo.com>
>
> We need to convert a bundle of static HTML documents into a single PDF file
> programmatically using a java component running on OFBiz. The pdf files
> would be distributed to site users for offline browsing of the web pages.
>
> The major points of the requirements are:
> 1. The banner at the top should not be present in the final pdf document.
> 2. The navigation bar on the left should be transformed into pdf bookmarks
> from html hyperlinks.
> 3. All hyperlinked contents (html/pdf/doc/docx etc.) present in the web
> pages should be part of the final pdf document with pdf bookmarks.
>
> Is there any OFBiz built-in component of doing this
>
> Thanks,
>
> Cheers,
> hbagchi
> --
> View this message in context: http://www.nabble.com/Convert-html-to-pdf-along-with-hyperlinked-web-pages-tp20183164p20183164.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>