Return-Path: X-Original-To: apmail-poi-user-archive@www.apache.org Delivered-To: apmail-poi-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F64318032 for ; Sun, 24 Apr 2016 20:02:13 +0000 (UTC) Received: (qmail 90161 invoked by uid 500); 24 Apr 2016 20:02:13 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 90127 invoked by uid 500); 24 Apr 2016 20:02:12 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 90116 invoked by uid 99); 24 Apr 2016 20:02:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Apr 2016 20:02:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 38E85C1904 for ; Sun, 24 Apr 2016 20:02:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.298 X-Spam-Level: ** X-Spam-Status: No, score=2.298 tagged_above=-999 required=6.31 tests=[FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 7JmG5x3cxLez for ; Sun, 24 Apr 2016 20:02:09 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 313CD5F2F1 for ; Sun, 24 Apr 2016 20:02:09 +0000 (UTC) Received: from mail-wm0-f44.google.com ([74.125.82.44]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MYsEZ-1bGkKA2JXv-00VjN6 for ; Sun, 24 Apr 2016 22:02:01 +0200 Received: by mail-wm0-f44.google.com with SMTP id u206so98308931wme.1 for ; Sun, 24 Apr 2016 13:02:01 -0700 (PDT) X-Gm-Message-State: AOPr4FWsDuH8/9W2F1kHSQEh2HU2FDk4KkSB9t7/Qz9t0mlQdiPpb83BqyQ8vFiY4JsSQ/a86Vt80TmlgoZYVQ== MIME-Version: 1.0 X-Received: by 10.194.96.10 with SMTP id do10mr35687340wjb.113.1461528120895; Sun, 24 Apr 2016 13:02:00 -0700 (PDT) Received: by 10.28.151.200 with HTTP; Sun, 24 Apr 2016 13:02:00 -0700 (PDT) In-Reply-To: References: Date: Sun, 24 Apr 2016 22:02:00 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Track Changes From: Dominik Stadler To: POI Users List Content-Type: multipart/alternative; boundary=047d7beba2b079b1670531408870 X-Provags-ID: V03:K0:+TYKuwtZMPFRNwFtCQyHCdXGZSdP2Wf6fYlIwWMatyXQIm8ExbC dGsG10fePipP6W3ENFsIasDBxEsVLoFHOjDjED0o18o0i/PkbxW3+HjyAiKe0v98IQwMM/U 1Upw9SchTkNh1x8sPUWI+DuNT9MGs249Kmcs9dkUSZaVMOL8pRA+JCAoSSH0sdjWP6ldp2g IFwcqOz+x+E41H2eC2AsA== X-UI-Out-Filterresults: notjunk:1;V01:K0:VUsI2WiCmsA=:rqQOD3UhqlZ9WxSF49zSp7 hrW29gVJ0qOHUwgJ9gpOFER1yA0CLOnxWwBdCyk8WifzO7gKKT+mriCAZJghq4L9lL9eY1Z9z r1d+2tsaZD20ob2438q1lriASltirKtrEvS/1GT/3Tythf0vWylF6SPwVQvJuPfHTs7rVQenM 9DzO4uWhgROuL3Wtzg910NMTrRc0V3+Cbs/jZDordE+xuhcMiGm3XfDFH7sAE1sT0+7BcNt7c VXsTCLEqKVnLNnm+m2NTVH2lVD+LjvMjVjq4R/wbb5MIvWAE7boSPtXYFoNFEafrK3B2CSasz Pjnc2RY/SGt0Wv5U7xnBLoyn9rg8iWRPlLhbb4iclM8oa3wajUMuIJKj6N9dvMoJnU3O6xlT0 37RoB+kNtxEzLup+fQf+kKxBy1ztf7nQE6tnBQvgAUli5TymrREFcp6mWtHD9lNuu3Z4m0/2e xzkZ6UO61o5YAu4Eo/Om74N+NAztcagDTZt7cCHJRovrlVW4EetXbOFsSsU/mcdHuJB/78Uca pvUF5WdbPRbvZTFnz/KQcs4b7ZA4SxDQtNPI3ZHqytEE4zRCmyTxcvdV9s5lnsmy3F5x8oHFX H2Feb3clRnFk/cro6D524NMOl+4JBAqvpSFxBsIUbJjayFtyzoR02xk7WeWM2YuTB5eGak6Ug mOG9LuWq6wOMv5LSdX/Gs5awr4t6TvBskFLh5715VBxOI4i8A/M49CHzcetfq4sX5EJcbTJkf cGwVf3amlkW56/7BDXC/TAG22HuEjNf/Dr0GQbuQXCC+yWxXUTzwiJBKzU2a759y6gsTmfTHm A9rDTq3 --047d7beba2b079b1670531408870 Content-Type: text/plain; charset=UTF-8 Yes, this will only set the flag, actually recording the changes the way that Word expects them is likely to be quite a bit more work as you will need to write the information in the way that the spec defines these (I didn't look at the spec for this, to be honest). As far as I know there is no ready-made support for this in Apache POI and without some major contribution there likely won't be in the near future. Maybe you can do the first steps here and describe what you find in an enhancement bug-entry so we can continue to discuss this and allow others to contribute if there is more demand for this. Thanks... Dominik. On Thu, Apr 21, 2016 at 8:44 PM, Nadav Benedek wrote: > Hi Dominic, > I did it already... > What I want to be able to do is to open a docx, take some Run, change it > and save the docx. I want the changes to be recorded. > > From what I saw, correct me if I'm wrong , the setTrackRevisions simply > saves the flag... Nothing more than that... In the HWPF characterrun you > have that functionality, but in the XWPF characterrun you don't... > > > On Thursday, 21 April 2016, Dominik Stadler > wrote: > > > Hi, > > > > You probably can find out more if you create such a document in Word and > > another one without this set, save it as docx, unzip both (docx is just a > > zip-package) and compare the contents to find out where they differ. > > > > Then we may be able see why the call does not work or if there is a > > workaround possible. > > > > Thanks... Dominik. > > > > On Thu, Apr 21, 2016 at 3:42 PM, Nadav Benedek > > > > wrote: > > > > > Hi team, > > > > > > Quick question regarind apache POI for Word: I am using POI to change > > some > > > Runs in a word doc. I want these changes, when I later save the file > with > > > POI, but in "track changes" mode. How do I do that? Setting > > > doc.setTrackRevisions(true) doesn't help. > > > > > > Thanks. > > > > > > --047d7beba2b079b1670531408870--