Return-Path: X-Original-To: apmail-community-dev-archive@minotaur.apache.org Delivered-To: apmail-community-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B56CE18D0C for ; Fri, 17 Jul 2015 23:04:33 +0000 (UTC) Received: (qmail 39681 invoked by uid 500); 17 Jul 2015 23:04:24 -0000 Delivered-To: apmail-community-dev-archive@community.apache.org Received: (qmail 39379 invoked by uid 500); 17 Jul 2015 23:04:24 -0000 Mailing-List: contact dev-help@community.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@community.apache.org Delivered-To: mailing list dev@community.apache.org Received: (qmail 39368 invoked by uid 99); 17 Jul 2015 23:04:23 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2015 23:04:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DED76C0710 for ; Fri, 17 Jul 2015 23:04:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.001 X-Spam-Level: *** X-Spam-Status: No, score=3.001 tagged_above=-999 required=6.31 tests=[FSL_HELO_BARE_IP_2=0.001, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id X-EPQRnVjxWX for ; Fri, 17 Jul 2015 23:04:11 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 4CF4C43CD3 for ; Fri, 17 Jul 2015 23:04:11 +0000 (UTC) Received: from 192.168.1.90 ([72.89.120.204]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MRGPP-1ZOJGq0cFr-00UaPK; Sat, 18 Jul 2015 01:03:59 +0200 Content-Type: multipart/alternative; boundary="Apple-Mail=_92E99BE4-44EC-4254-A9EE-DBAAF37B0799" Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Apache Velocity for Producing Document From: Antoine Levy Lambert In-Reply-To: Date: Fri, 17 Jul 2015 19:03:55 -0400 Cc: dev@community.apache.org Message-Id: References: <4C880C48-7787-4B07-8B45-693F813CBBA4@gmx.de> To: velocityuser user X-Mailer: Apple Mail (2.1878.6) X-Provags-ID: V03:K0:UsVRXQ635O/+6Mkh4FvNffvP3I0rVJs7nYg2UGFJwy1vspRGLnn cUzmf8J1ebOtIHY8ZVukoZ2DQYMcYoqP9G5USvUu6HM7a3xChi78B4rZ1VPzHHzG4bs+Xiu eXYTgoUbpKIIMC3RZxVjw47CAmKVOX+9AH0z6O1vdhVvOutl+Sk5ZehtCINcLTFs7MMuWJV smyRLvCp8o3i4uOiKlLfQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:gee/geSBNHc=:n/fqn8tLaTBW5ZvQyCPxT5 Gb4vWzGMWcVZBKgYEblDcf3yD9LO+BzF1O7SNcyou+ztTqwoxI52Z3Do3beQDZQgQb4nP6s4k GeO9Oin5RBdElw6O6qGqK3idygvt/zwgp2Ae6dgVY5QYfamelpQQLppFpbXvKNP0I7HQL1ULQ +h22+5KnIlN/8OarnlBmIkQK1Yii8oc2pu+pdpW+gHoZRnKRdGPSbYP/dfnRfjHlBOXPdoh/u Ej4V3EolhrI12dQFhQjgllSwazuS9tH/cr02gANSfIdljsLFElI2IpJkIp4lBK5mi57fw1fWu 7m1a9PfEEBdcs5wJ+kmzQI+dv5TzoOmX2VA9LxsvugqrHqW3r/BEP8gtJZic7c0Sbqv0Dvonx jIpRgHEQXhD8VT9mDPp6jlbkZzZ0ew+yhI/eF3KlpFXExHJDMtQxjJOB2yyR+pnP+PdHPyAR8 PK6YSEtgNPh55zRahn5Nyaqv/fMtIYZNNVoEGTm1YEoycMre5HpGMOZrX4flk6v4Qi9wpN5s0 gI4tL0BxJObpo+q8weX0VIJ2In7oQCsv6Yq7Ei6CLr2uChLS1kc5ZiC0OMM6gUCc7zcQ1WzPA R2xzdBArSIWx0i9XIRUXnI5gjYdwAvCFXxmaBtpuf7bm67qDIQQ5Ohb1+eFRyZy9icp2zNrKo WXoLlXpPGvAowZ/eRMhyXkEGQwEXv17hBDMrHf7jB+ZCPJp1AdT1peaiVEH1opEvInIk= --Apple-Mail=_92E99BE4-44EC-4254-A9EE-DBAAF37B0799 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, I made a google search and found some articles on Stack Overflow : [1] = and this one : [2] (this one mentions another non Apache java framework called docx4j ).[3] What about investing some time doing some quick prototypes to get a = feeling of the options ? Neither poi nor docx4j seem to be templating engines but you can use = them to create documents programatically and you might be able to define = your own rules for generating documents from templates. Antoine [1] = http://stackoverflow.com/questions/16264247/create-document-from-dotx-temp= late-with-apache-poi-hwpf [2] = http://www.smartjava.org/content/create-complex-word-docx-documents-progra= matically-docx4j [3] http://www.docx4java.org/trac/docx4j On Jul 17, 2015, at 6:47 PM, velocityuser user = wrote: > Thanks Antoine for the quick response. >=20 > I have requirements such as conditional data population and nested = templates. >=20 > Does POI support these two requirements? >=20 > Also I need to know if the Template can handle any kind of start / = end tag or it need to have a standard format? >=20 > Thanks in advance for your help. >=20 >=20 >=20 > On Fri, Jul 17, 2015 at 3:15 PM, Antoine Levy Lambert = wrote: > Hi, >=20 > The last release of velocity was on the 29th of November 2010. [1] >=20 > I would look at Apache POI instead [2] >=20 > This project has most likely a user list where you can discuss your = use case. >=20 > Antoine > [1] http://velocity.apache.org > [2] http://poi.apache.org >=20 >=20 > On Jul 17, 2015, at 1:43 PM, velocityuser user = wrote: >=20 > > Hello, > > > > I have a requirement where I need to read a work template such as = *.dot / > > *.dotx, merge the template with data and generate a word document in = *.doc > > / *.docx. > > > > I read Velocity can be used to do this but I can not find any = example > > anywhere. > > > > Appreciate if I get some guidance on this problem. > > > > Thanks in advance. >=20 >=20 --Apple-Mail=_92E99BE4-44EC-4254-A9EE-DBAAF37B0799--