You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by hbagchi <hb...@yahoo.com> on 2008/10/27 08:54:35 UTC

Convert html to pdf along with hyperlinked web pages

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.


Re: Convert html to pdf along with hyperlinked web pages

Posted by Jacques Le Roux <ja...@les7arts.com>.
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" <hb...@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.
>