POI, HWPFDocument, background color of MS-Word document part

I'm trying to make doc2html translator for my web-project.
I can get a color of text-parts in document (RunCharacters), but i don't know how to get its background color.
Can't find any information about it for HWPF.
pls help
Edited by: refref on Dec 4, 2009 1:03 AM
Edited by: refref on Dec 4, 2009 1:04 AM

I don't believe it knows. And you should take note that the colours you are getting are not entirely correct either. They are "word" colours so you have to do some fiddling to get that correct.
My advice would be two things. One make sure your goals are realistic and that you're using the correct tools. If you want an exact "copy" of an word doc as HTML you are sunk, for example when you get into tables, well, good luck to you. Also you should be asking questions of this nature on the POI mailing list.
Edited by: cotton.m on 4-Dec-2009 10:15 AM

Similar Messages

  • I am trying to change the background color of a pdf document

    I am trying to change the background color of a pdf document, but am not able. I am working with Adobe X. Can anybody help me?

    Hi ZAXSCD,
    You can change the background color of a PDF document by following the steps mentioned below:
    - Open PDF document in Adobe Acrobat X;
    - Click on Tools --> Pages --> Under 'Edit Page Design' select Background and then 'Add Background';
    - In Add Background window, under Source --> From color, select the color of your choice and click OK'.
    You can also refer to the screenshots mentioned below:

  • Newbie- having troubles with background color when opening new document

    Hey everyone and thanks for the help in advance. New to the forums and haven't been able to find the answer online. Whenever I open Photoshop (using Adobe Creative Cloud) I set my size, my background to white, etc. The document always opens looking like this: http://screencast.com/t/BzCYc4akl
    Almost like it's transparent but I don't have that selected. Can anyone help here? Thanks!

    Hi,
    It looks like the Grids are enabled.
    If in photoshop you go to View>Show and click on the word Grid, does that make a difference?

  • How do I remove background colors in a PDF document?

    I have a PDF text document that I want to print.  The problem is that the author made the entire background of the page, green.  How do I get rid of the green, so that I don't use up all my ink when printing it.  I have Nuance PDF Converter Professional 7.  Thank you.

    This forum is for discussing Adobe products. Please try contacting the maker of your product.

  • Color fades from Word to .pdf

    I'm using 8.1.2. I've created a brochure in Microsoft Word using RGB color format and converted it to an Adobe document.
    When I view the new .pdf file, the colors are washed out, sometimes to the point I can barely see them. They're not greyscale, they're just washed out.
    I've seen another topic regarding a bad plug-in and I've followed the steps to uninstall the bad one and re-install. I'm still having the same results.
    I also know it can't be my monitor's resolution because of the original, true color of the Word document.
    Suggestions?

    I'm using 8.1.2. I've created a brochure in Microsoft Word using RGB color format and converted it to an Adobe document.
    When I view the new .pdf file, the colors are washed out, sometimes to the point I can barely see them. They're not greyscale, they're just washed out.
    I've seen another topic regarding a bad plug-in and I've followed the steps to uninstall the bad one and re-install. I'm still having the same results.
    I also know it can't be my monitor's resolution because of the original, true color of the Word document.
    Suggestions?

  • Htmltext background color

    Hi.
    My problem is: I need support for styling text background color inside htmlText property of a Text (or TextArea) control, for text that is marked up with html tags.
    I am aware that Flex's htmltext only supports a subset of actual HTML tags:
    <font color='#ff0000'>the text</font>                       is supported
    <font backgroundColor='#ffffff'>the text</font>      is not supported
    And this is a problem for me because I absolutely need to be able to change the background color for certain words in the text. I searched a lot for a solution with no success. The only thing I see that supports background color is the TextField object, but I have no clue how I would implement it in the same manner as the Text or TextArea control. Does anyone have any suggestions?
    (compounded with this is that rather than use:  <font color='#ff0000' backgroundColor='#ffffff'>the text</font>, the text is marked up with <span id='group1'>the text</span> tags, and these CSS IDs are being processed with a stylesheet object in actionscript. So ideally, the solution should also work with stylesheets, but I can work around it if I'm forced to resort to hardcoding in the HTML tags.)
    Thanks for your attention.

    Thanks, but I want to change the background color only in one
    word, not all of the text.

  • How can I read and write a Word document keeping the formatting properties

    Hi everybody,
    I am reading a word document and writting it into a XML document. I need to keep the text formatting. Which properties and how I
    can access them using HWPF POI?

    Note: I am already using HWPF POI with java to read the word document.

  • Building reports into word document from web application

    Is there any package that allows easy report generation into microsoft word from any part of ur application.
    thank yuo

    Microsoft Word uses a proprietary format that doesn't play well with others. You may try looking at Jakarta POI if you truly need a Word document, but I'm not sure their Word conversions are as advanced as the Excel.
    Good luck.
    P.S. UR information

  • I am deperately trying to change the background color dynamically ?

    Hello everybody,
    i am actually working on a portfolio website. I want the
    background color change each time we click on a button on the
    navigation bar. My problem is that when you click on a button it
    changes the background from the start
    (white background), not from the previous one clicked.
    i am trying to make the effect on this site
    www.mecompany.com.
    can someone please help me, i am in despair.
    thanks

    Hi ZAXSCD,
    You can change the background color of a PDF document by following the steps mentioned below:
    - Open PDF document in Adobe Acrobat X;
    - Click on Tools --> Pages --> Under 'Edit Page Design' select Background and then 'Add Background';
    - In Add Background window, under Source --> From color, select the color of your choice and click OK'.
    You can also refer to the screenshots mentioned below:

  • Convert  background colors to PDF from Word 03

    When I convert a Word document to Acrobat PDF the background color disappears.  What do I do?

    It may depend on how you are converting. If you are printing, be sure that WORD is set to print the background colors. Printing background colors is often turned off to prevent using up the toner in a regular printer.

  • WORD doc x files show lettering changed from black to white with black background, colors have black background

    WORD doc x files received open with black lettering changed to white with black backgrounds. Color images have black backgrounds. There is no issue for non MAC users. How can I open the document as sent? Thank you.

    Pages (any version) is not a word clone, and may not digest Word documents as accurately as their native Microsoft application. Pages v5 is also far from feature/functionality complete, and that only compounds this issue.
    Suggest you download/install the free LibreOffice and open the Word documents with it. Do the artifacts persist in LibreOffice?

  • Why does converting word into PDF does not take the background color of the page?

    When I do a page background on a document, and save as pdf, it does not take the background color. It shows only white background.

    This may be a limitation with the built in PDF writer in OS X. Never tried it so I have no idea if it does the same on my Mac.
    As this is not a MS Word problem you are in the right set of forums.
    Have you tried another PDF writer other then the built in one?

  • When converting word doc to pdf, my images with text only show the background color of the text box.

    I have a word doc that I am trying to conver to pdf.  I have jpegs with text boxes on top of them on one page.  It looks great on the screen but after I convert to pdf, the text boxes only have half the text, the first half of the text box is just white - the background color.  If I take the background color out of the text box, the text converts over fine but I need the background color.
    I have tried many things here on the print settings, standard, high quality print, unchecking the compression on the images.  Any help?

    Thank you for your posting. These forums are specific to the
    Acrobat.com website and it's set of hosted services, and do not
    cover the Acrobat family of desktop products. Please visit the
    following forums for any questions related to the Acrobat family of
    desktop products:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/

  • How do I add a background color to a document in Pages?

    How do I add a background color to a document in Pages?  I have made an invitation, with a photo in it, the text is in color, and I want to make the background pink instead of white.  thanks

    whoops sorry figured it out thanks!

  • Change the background color of a particular word without changing the background color of the rest of the text in a textbox

    Hello,
    I'm designing my own website and want to know how to change the background color of a particular word without changing the background color of the rest of the text in a textbox. If i can't do this, how can I create a Table, similar to Excel with iWeb?
    Thank you very much!
    Roger.

    If i can't do this, how can I create a Table, similar to Excel with iWeb?
    Read this :
         Create and add a TABLE in iWeb »
         More about a TABLE in iWeb »
         Sample 1
         Sample 2

Maybe you are looking for

  • Can I use StyleWriter II with my notebook?

    I have got an old printer StyleWriter II, can I use it with my notebook(not Mac, Windows System XP, AMD Turion Processor)? if can, where can I get the drives and which kind of cables to use to connect to computer and also the power cable?

  • I can't access the internet on our Mac desktop .  I am connected to wifi and other computers in our house can access the internet.

    The Mac desktop computer in our house is connected to wifi but you can't browse the internet.  Other computers in our house are connected to wifi and are browsing without any issues.

  • Double subtract

    Hello, Can you explain me what's wrong with the following code and the result I get? Thank you for your help Dom // the code import java.math.*; public class SubtractMaxDouble{ static double r=0D; public static final void main(String[] args){ System.

  • SAP XI-EDI Strategy.

    Dear all, I am facing the problems regarding EDI adapter in short-term and long term solution for the existing customers. For existing systems there are not on XI platform, some of the systems are based on Business Connector. The question is: how can

  • Navigate between StandardTile and IconTabFilter

    Hi, is it possible to navigate between a StandardTile and an IconTabFilter? Both items are defined in one view via XML. So if you click on  StandardTile "Backgroundjobs" you should be navigate to IconTabFilter Backgroundjobs to see which Job is in st