Results 1 to 2 of 2
  1. #1
    pradeep_das is offline Member
    Join Date
    May 2010
    Posts
    1
    Rep Power
    0

    Default determining the page size(height & width) of a ms-word document

    I'm looking for a solution to determine the page dimension of an ms-word doc (using Apache POI or any other API).

    We are going to implement an upload attachment feature where we have to validate that the uploaded word doc (.doc / .docx) must be 8.5 x 11 in Portrait format.

    I must appreciate any kind of help!

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,854
    Rep Power
    19

    Default

    Wouldn't you have to validate each page (at least for the Portrait part)? You can mix portrait and landscape with word.

    As for the size, I expect it's somewhere in DocumentProperties? Doesn't POI have documentation?

Similar Threads

  1. writing word document using poi hwpf
    By devday in forum New To Java
    Replies: 4
    Last Post: 08-07-2011, 11:15 AM
  2. Width (-1) and height (-1) cannot be <= 0
    By LovJava in forum AWT / Swing
    Replies: 5
    Last Post: 04-24-2010, 12:16 AM
  3. I want set HEIGHT, WIDTH for Button
    By manhtungtnk28@gmail.com in forum AWT / Swing
    Replies: 3
    Last Post: 11-16-2009, 07:26 AM
  4. Using setBounds (x.y,width,height) constructor
    By hitmen in forum AWT / Swing
    Replies: 3
    Last Post: 03-06-2009, 12:12 PM
  5. Get Image Height and Width
    By neeraj.singh in forum AWT / Swing
    Replies: 10
    Last Post: 02-18-2009, 01:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •