Loading image in to a word document

Hello guys,
I hava an image( .bmp file) on the desktop, through java program can I create/load the same image in to a word Document?

JavaBeg_Student wrote:
I hava an image( .bmp file) on the desktop, through java program can I create/load the same image in to a word Document?Create a new or modify an existing Word document?
If creating a new, then throw Word out the window and use RTF (give it a .doc extention and no one will ever know). Then maybe the [javax.swing.text.rtf|http://java.sun.com/javase/6/docs/api/javax/swing/text/rtf/package-summary.html] package will do the job, if not create a simple XSL-FO and use FOP.
If existing then [Java libraries to read and write Word DOC files|http://java.sun.com/javase/6/docs/api/javax/swing/text/rtf/package-summary.html]

Similar Messages

  • Problem with loading images dynamically in a pdf document

    dear,
         I am using live cycle designer and i need to load image from a url dynamically in to the document.For this case i placed an imagefield on my document and i wrote javascript to load image in the form:ready event.
    My script for that was
    imagefield.value.image.href="url".Actually i saw an imagefield in my document but it doesnt carry any image.Please help me to rectify this problem......

    If you save your form as Static PDF, it works.
    But most of the time we need the Dynamic XML form. So, I am also stuggling with this issue.
    Nith

  • Images cut from Microsoft Word document being picked up in the file size by Acrobat distiller

    Hello All;
    I have a large MS Word document (book manuscript) with almost 400 images (all grayscale) and found that the tiff images needed to be replaced with jpegs to reduce the file size. I created the jpegs, cut the tiff images from the document, and inserted the replacement jpeg image for each tiff image cut. It reduce the file size in Word from 595 Mb to 210Mb. However, when I ran the distiller, it is somehow picking up the file sizes of the tiff files as it still gives roughly the same output (595 Mb) for the Acrobat document. Is there a way I strip out the tiff image overhead from the pdf or a way I can cleanse it from the MS Word document? Thanks in advance.

    Acrobat automatically compresses images when a PDF is made, usually doing something equivalent to JPEG (it's your choice, check the creation options).
    So, changing from TIFF to JPEG in the original file will usually make not a bit of difference to the original file size. 
    There is no simple 1 to 1 connection between the size of a Word document and a PDF. Some things are bigger, some are smaller.
    You can experiment with Save as ... optimized PDF settings. Also, use Audit Space Usage in that dialog to see what is using the space.

  • How to load a base64-stream (always WORD-document) in large XML files ( 1 MB) into ORACLE 10 table

    On our Oracle Server there are multipe XML files that I have to read and put the data into an ORACLE 10 table.
    I have to threath these XML files one by one.
    In the XML there is also een base64-stream (alwasys a WORD-document) .  This base64-stream exists of 1.000.000 characters.
    How can I read this base64-stream from the XML-file into a BLOB-column of my ORACLE 10 table
    ORACLE 10
    1 XML = +/- 1 MB
    PL/SQL
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <slo xmlns="http://www.myschema.com/gasdedectie">
    <LekKey>1999_036371_509627</LekKey>
    <HuiNum>46</HuiNum>
    <Res></Res>
    <InfLig>TEST STRUI AFGESTORVEN - PLAANSTRAAT 46</InfLig>
    <XWGS>3.637028</XWGS>
    <YWGS>50.962667</YWGS>
    <Pei>KESTENS</Pei>
    <DatPei>1999-11-30T10:17:36.000+01:00</DatPei>
    <Kan> </Kan>
    <Doc>UEsDBBQABgAIAAAAIQB5gHbnswEAAHcGAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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CDqrzSs25gAmFtmwTAbe1mZ0ce
    +gtG+cFg125gAL00eqC809thFCd1K/Cu0AE0AiqaU9fSToyqDI+eHkGF+QFqfN4U17/KvlxzNEnnL9y7
    4zmJFV25DiiXCo5+BR8Qn0Fz5y8nmuMWx1CA60M5p4YeD+E0L/w42JCE3j+H41t1jI5vbrU0HIPEwD+g
    1x+aMnQ9+TocDQZSry13B8MrnlfFOj9AFJKcDryLbBN68o3GsEywVJU6mUkFVA5+vJQTKYwS6HSoj2vZ
    wGOSZEn0uO0Ayz
    pQQAALNCCQAAAA==</Doc>
    </slo>

    If I understand your question correctly, the discussion in this thread
    ORA-31167: 64k size limit for XML node
    shows you do not have a lot of options.
    As you are needing to extract the contents of a node from an XML document, and that node is > 64K, you are going to need to treat the entire XML as a CLOB and use CLOB functionality (aka INSTR, SUBSTR) to find and extract what you need.
    Once your DB version is 11.1 or greater, then you can use the built-in that Billy mentions.
    Note: mdrake is Mark Drake from Oracle.

  • Problem with image location when converting word document to pdf

    Hello all,
    I am new to all this and this question may be already answered, but when I try to convert a word (2003-2007) document containing images (inserted photos) into a pdf document using Adober Reader 8, the images are moved from their original location and the size and ratio are changed.  Is there either a process for preserving the images as they are in the word doucment or a way to fix the problem?  Thanks for any help you can give.
    Regards,
    Rose

    Really not sure what you are trying to do since you can not import images into Reader. Since Reader can not create PDFs, we are at a loss of your problem. If you mean Acrobat, then tell us exactly the steps you are using to create the and what versions of both programs Like AA8.1., WORD 2003 (possibly release also) or WORD 2007. The different versions of WORD also also interact with Acrobat differently.

  • My printer will (suddenly) not print anything from firefox loaded site. but will print Word documents,explorer sites, etc.

    I have been using firefox and having no problem until yesterday when trying to print various item on web sites I am getting communication errors with my printer. I can print from word perfect, Internet explorer, etc. It is not a printer problem but a communication problem.
    == This happened ==
    Every time Firefox opened
    == yesterday

    Hello,
    I see that you're having an issue printing from your bank website. 
    I would suggest following this thread, please let me knwo the outcome. 

  • Losy images after importing Word document into RoboHelp 7 HTML

    We imported a simple Word document into RoboHelp 7 HTML, as a
    new project (from scratch).
    Everything worked out pretty well (afterall, this was just a
    simple Word document), and we expect to have to tweak the styles,
    etc. That is understood.
    However, the images that were embedded in the Word document
    (as opposed to saved to disk, and only linked to the Word document)
    do not look very nice in the RoboHelp 7 HTML project topics.
    When we browse to the iamge folder, and view the actual image
    files, these images do not look too bad. But in the Design View,
    the images have display issues (solid color bars on the
    sides/top/bottom of the images). When we compile to a Single Source
    Layout (except PDF), the images look fine again. When we create
    Printed Documentation, even for the best PDF-settings, the images
    look terrible -- smudgy, like low resolution quality).
    1) Except for storing the images outside of the Word document
    before importing, and then manually linking them back into the
    imported RoboHelp HTML files, is there a way to maximize the
    quality of the imported Word images in RoboHelp HTML?
    2) Why doe the images look worse in Printed Documenation
    (PDF), even for the highest PDF settings, than for the other Single
    Source Layouts?
    While I am typing, I realized that we should try to include
    the images in Word via a link to the image files on disk. Perhaps
    then RoboHelp will not actually modify the image files during
    import. I will report back about this one.
    Your help will be greatly appreciated!

    Looks perfect, works terribly...
    Things to consider:
    Chances are, the different treatments of the space are due to whether the space was included in the bolding of the word in MS Word.
    Additionally, since Word files contain much underlying binary code (macros and such), your security settings might or might not be playing well with the Word stuff.
    Are you importing the Word file from a network location, or from your local machine? Network traffic might be partially impacting the import, too.
    Bottom line? You'll probably need to clear all formatting in the Word file and redo the formatting properly. To test this, cut a couple of pages into a new Word file, clear and redo the formatting in Word, import the Word file into another RH project, and see what results you get.
    To clear the formatting:
    Select text.
    On the Home tab, in the Font group, click Clear Formatting.
    Redo the formatting, being careful to not format the spaces.
    Good luck,
    Leon

  • Importing word documents - but losing all images which was in it

    Hi,
    I am fairly new to Robohelp and recently got hold of Robohelp 8.
    I have already written a Help File for my company's recent product, and the help file was in word 2007 with a lot of screenshots of icons, buttons and dialog boxes pasted in it.
    On importing the word document to Robohelp, none of these images are being imported and I cannot see any of them in the project view.
    I wanted to use the link to word document feature so that i do not have to keep re-importing the document for any changes made - however, because the images are not being imported, i now have to add them manually to the project.
    1 - this is tiring and very time consuming
    2 - the project files to which i add the pictures are no longer updated from the word document if any of the text changes as the project is preserving the changes i made to the file (which was only adding the image manually). Kind of defeat the purpose of link to the word document.
    HELP
    I would really appreciate any help in
    1 - How to import a word document containing images (screenshots, icons etc) without losing the images
    2 - Keep the word document to update the project even after i add any images to the project manually.
    Thanks
    Nivekz

    Hi again
    Thanks for the clarification.
    Okay, so really what you are doing is identical to clicking File > Import > Word Document, because all you are doing by choosing PDF is pre-selecting PDF as the listed file types. Once you change it to point to Word documents it's no different.
    Cheers... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Outputting images in word documents

    DB Version: Oracle 11g XE
    Host: Windows 2003 Server - 32 Bit
    I have a current application that produces MS Word Documents from host based templates and stores them in the database for later printing. This works nicely however I would also like to be able to embed some small images into the MS Word document. The images are based on user profiles so need to be dynamically managed and merged into the MS Word document.
    These images may be stored either on the file system also (alongside the MS Word templates) or within WWV_FLOW_FILES (?) and I just need to work out how to merge the two files into one output.
    Any assistance will be greatly appreciated.
    Regards,
    Mike

    Hi,
    I'm actually thinking whether the issue is related to Office version. What are the versions of Office on your laptop and workstation?
    Based on the description, the issue doesn't occur if the document is saved as .doc, it only occurs if the document is saved as .docx, so basically we can say your workstation doesn't support .docx well. Is it a version prior to Office 2007?
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How load from MS Word document data to Oracle?

    Hello,
    if anybody have any idea of how to load data from microsoft word document data field by field to oracle database, instead of doing through the mailmerge. we have word documents which will have descriptions, titles, financial data for different years say for example from 1 to 10 years data in this case how can i load directly from document to oracle database? I appreciate your inputs.
    Thanks so much....

    Hi,
    Although I use client_ole2 from the webutil package to go the other way i.e load oracle data into a word document, im sure there will be a client_ole2.get_* command to get the value of a field code from a document.

  • How to print a word document using java?

    Hi All,
    is it possible to write a java program that takes input and directs it to printer.
    I specifically want it for word document.
    i already have a program that works for images but not for word document.
    Plz guide me where i am wrong or help me with some links or code snippets.
    Any kind of help will be really appreciated.
    // program is below
    import java.io.FileInputStream;
    import javax.print.Doc;
    import javax.print.DocFlavor;
    import javax.print.DocPrintJob;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.ServiceUI;
    import javax.print.SimpleDoc;
    import javax.print.attribute.DocAttributeSet;
    import javax.print.attribute.HashDocAttributeSet;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    public class Convert{
         * @param args
         Convert(){
              DocFlavor psFlavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
              FileInputStream fis = null;
              // Creates a new attribute set
              PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
              try{
                   fis = new FileInputStream("d:\\print\\new.txt");
                   System.out.println("doc taken...");
                   if (fis == null) {
                        System.out.println("No File");
                        return;
              }catch(Exception e){
                   System.out.println("No Such Doc..."+e);
              PrintService printService[] = PrintServiceLookup.lookupPrintServices(psFlavor, aset);
              //System.out.println("Default Printer: ");
              PrintService services = null;
              try{
                   services =     PrintServiceLookup.lookupDefaultPrintService();//ookupPrintServices(psFlavor, aset);
              }catch(Exception e){
                   System.out.println("print exp ");
                   e.printStackTrace();
              System.out.println("Default Printer: "+ services.getName());
              System.out.println(services+" services taken..."+services.isDocFlavorSupported(psFlavor));
              PrintService service = ServiceUI.printDialog(null, 250, 250, printService, services, psFlavor, aset);
              if (service != null) {
              DocPrintJob job = service.createPrintJob();
              try {
                   DocAttributeSet d = new HashDocAttributeSet();
                   // Doc doc=new
                        Doc doc = new SimpleDoc(fis, psFlavor, d);
                        System.out.print("doc prepared...");
                        System.out.println("printing starts...");
                        job.print(doc,aset);
                        System.out.println("printing done...");
              catch (Throwable pe) {
                   pe.printStackTrace();
         }else{
              System.out.print("else...");
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              new Convert();
    }

    anamupota wrote:
    JoachimSauer wrote:
    Desktop.print() is the simplest way. Everything else will get tricky really fast.I wonder if one could print .doc file though.Desktop.print() simply tells the OS to do whatever it usually does to print the file. If Word is installed, it should start word with the file as an argument and whatever parameter it takes to tell Word to print it.
    If you don't have anything installed that can view/print words files (or the correct entries are missing in the registry), then it won't work, of course.

  • Opening word document with linked PPT inside

    Hi everybody,
    this is an error occuring using KM functionality, which could also be cause by the local Microsoft environment, but perhaps anybody knows this ...
    We are using EP 6.0.2.4.8 with CM 6.0.2.4.6
    In several KM navigation iviews we have linked folders from a file system repository with word documents inside. Users have problems opening the word documents which have powerpoint files linked inside the document. The powerpoint files are not embedded, but linked and shown as object (not as symbol or hyperlink).
    This means: word document is openened via http://<portal>/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/<folder>/<file>.doc
    The PPT linked inside leads to
    <fileserver>\<share>\<file>.ppt
    In some user environments (depending on local security policies(?) and local user/word options) word tries to automatically refresh the linked objects and then word crashes with an exception.
    So far, a Microsoft problem, but:
    when I copy the same word document to a simple IIS webserver an open it, the file is opened properly ...
    Is this problem known somewhere? As it is a local application error, I do not get any error in the portal logs ...
    Best regards,
    Martin

    Hello,
    Thanks for your answer. Since I work at a customer's office, I couldn't reply before because it took me some times to perform the tests.
    I tried to embed the images in Word before importing the document into Robohelp 8. The problem remains. RH creates the images into a new folder (and names the images "image001", "image002", and so on). Therefore, the link with the original images is lost.
    So, if we modify the image linked to the Word document, we are obliged to apply the same changes in the images created by RH.
    The idea would be to have only one image folders used both by RH and Word so that if we change our images, the changes apply in all our files.
    This option was available in RH x5.
    Best Regards,
    Isabelle

  • Controlling Image Conversion quality from Word to RoboHelp 8

    I cannot find settings that will control image quality when converting Word documents to online help files by means of RoboHelp.
    My problem is that screen captures, which were inserted as PNG or bitmaps, are reproduced with what looks like GIF or JPEG quality in the online help. I want better quality.
    I read that for Famemaker, there are image conversion settings that enable one to preserve full, lossless (screen) resolution during the conversion.
    Is there a way to do this for conversion from Word 2007 documents to RoboHelp 8?
    If not, perhaps RoboHelp 9?
    Much obliged.

    I am importing the Word documents into RoboHelp HTML version 7.0.  I did the following  experiment:
    I imported a document with images containing vector text (the images are in Microsoft Office Object format) from Word 2007 to RoboHelp HTML 7.0, I got poor quality (badly formed text / aliasing). I presume this comes from the rendering and compression performed by the import function. I also saw JPEG artifacts in the raster (screen captures) images of the kind visible at very high compression ratios and which were not visible in the original.
    When I insert the very same images, saved as PNG format at screen resolution, directly into RoboHelp HTML 7.0, I get good quality.
    It seems that the Import from Word function is rendering and converting the images to a compressed format without preserving sufficient quality.
    My questions are:
    Is there a preferred format for the embedded images in Word for better import to RoboHelp, especially when the images contain (vector) text?
    Are there accessible configuration parameters for the Import from Word function, that can control the rendering, and/or the quality level of JPEG compression, and/or give a choice between compressed and uncompressed images.
    How can I access those parameters?
    Thanks!

  • Images not importing from Word doc

    SORRY MODS - Accidently posted this in the HTML Help forum
    I'm having trouble getting my images placed in a Word
    document to import ito my project. I have RoboHelp 2002 and first
    experienced the problem there, thought I'd try the upgrade to see
    if that fixes the problem. It did fix my step numbering problems
    (all steps were numbered Step 1), but the image import problem
    remains. The images are .jpg images and most were placed in Word
    using Insert Image. Some were just copied and pasted. Regardess of
    how the images were included in the doc, none come through in an
    import. Am I doing somethig wrong? I've tried importing it as a
    Word 2000 and a Word 2003 doc with no luck.
    Thanks in advance for any advice!
    Mike

    I had the same issue and could get no good advice on how to
    fix it. What I finally did was take the embedded images from the
    Word doc and save them in another location. I then inserted them
    back into RoboHelp after I imported the Word doc. It's a little
    tedious, but it worked.

  • Different output when saving and converting Word documents

    Hi,
    I have some issues with images when converting some Word documents to PDF and I hope someone can enlighten me :-). If I convert the Word document by simply right clicking on it and selecting the option to Convert To Adobe PDF, it will create a file that is mostly fine, with the exception of some of the images which are being split into segments, making the image text unreadable.
    However, if I save the file as PDF in Microsoft Word (both 2010 or 2013), then I have no such an issue, since the image is not being split into segments and the text is perfectly readable. I have also attached some examples, see below. Ideally I would like to be able to convert several Word documents at once, and saving each documents in Microsoft Word would be too time consuming. Any help on this, will be really appreciated.
    1) Converting to PDF, the image is split into segments and the text is unreadable
    2) Saving as PDF in Word, does not split the image and it retains the original quality and readable text

    Hi  Linuxxo,
    If the issue is not fixed with the option suggested by Rave.
    We would need the files for investigation. Request you to share your email id for correspondence.
    In addition please share which version of Acrobat are you using?
    Regard’s ,
    Reetika

Maybe you are looking for