You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2017/06/06 02:59:54 UTC

[Bug 61157] New: HWPF doesn't support rotated string watermark in a word document

https://bz.apache.org/bugzilla/show_bug.cgi?id=61157

            Bug ID: 61157
           Summary: HWPF doesn't support rotated string watermark in a
                    word document
           Product: POI
           Version: 3.16-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
          Assignee: dev@poi.apache.org
          Reporter: 332410559@qq.com
  Target Milestone: ---

HWPF supports to add a string watermark to a word document, however the
watermark is horizontal, it would be nice if HWPF could add a feature to
support both horizontal and rotated string watermark.

I modified line 483 in XWPFHeaderFooterPolicy.java:

      
shape.setStyle("position:absolute;margin-left:0;margin-top:0;width:415pt;height:207.5pt;rotation:315;z-index:-251654144;mso-wrap-edited:f;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin");

Then I used the new PWPF to add a watermark, the watermark is rotated.

In addition, we are able to add an image watermark in a word document manually.
If possible, add this feature to HWPF would be perfect.

Thanks.
Neil

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 61157] HWPF doesn't support rotated string watermark in a word document

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61157

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org