Writing gif image to a word document

I want to write a gif image to a Microsoft Word 2000 file. I used several ways with IO Streams but nothing worked right for me. I know that its quite easy with javax.imageio.* package of j2sdk1.4.0 to write images to files. But the problem is that my hosting plan might not upgrade to the new version of jdk and will not be able to support j2sdk1.4.0 for few months. If somebody can send the code it will be very highly appreciated for 1.3 or earlier jdks.
Please help urgent.
Thanks
Muhammad Salman
[email protected]

it's not necessarily to a word file, but if you download the Java Advanced Imaging APIs from JavaSoft, they will work in JDK 1.3 to write out gif files. These optional APIs were replaced by the JDK 1.4 ones.
But to take it one step further, you can do JNI and use COM Activation to load the gif you just wrote out into a word.

Similar Messages

  • Linked images in my Word document don't show up in RoboHelp

    I'm using RoboHelp 8 and Microsoft Word 2003 on Windows XP. I create a new WebHelp project. I added all the .png image files from my Microsoft Word directory to Baggage Files. I then used the Link>>Word Document function to add my Word document to the RoboHelp project. Set my preferences for style pagination, did a Force Update All. However, most of the images I inserted as links into my Word document don't come through into RoboHelp. Apparently I'm missing a setting somewhere but I can't figure out what it is. In addition, one of the images that did come through is horribly degraded.

    Still no joy. All of the images in my Word document are linked .png files.
    Here's the step-by-step of what I just did:
    Open Word document
    Tools>>Options>>General>>Web Options.
    Change setting. Click OK
    Click OK
    Change text on page one of document to make sure document is "dirty".
    File>>Save As.
    Increment number in file name.
    File>>Exit.
    Launch RoboHelp
    Start new project
    Add all .png files to baggage.
    File>>Link>>Word Document
    Select appropriate Word file.
    File>>Project Settings>>Import tab
    Edit Word conversion settings to set pagination for heading styles and set Convert Word list to RoboHelp list
    Click OK
    Click Apply
    Click OK
    Right-click Word document in HTML Files (Topics) and choose Update>>Force Update All
    no joy

  • Insert image file to word document using active X

    Hello,
    I would like to insert an image into my word document (at the end). The image is saved as a bmp file and I'm using LV 8.2.1.
    I would like to do this using Active X (without using report generation toolkit).
    Any idea please ? Thanks in advance.
    J.
    Solved!
    Go to Solution.

    Hi J.
    The method to use is Inline shapes (Add pictures). I have linked an example. You will have to configure it in order for it to be at the end of your document but that shouldn't be a problem for you.
    Best Regards,
    Charlotte F. | CLAD
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> "Du 11 octobre au 17 novembre, 2 sessions en parallèle : bien démarrer - approfondir vos connais...
    Attachments:
    activex image.vi ‏13 KB

  • Since upgrade when I click on a image in my word documents they all select

    Hi There
    I didnt know if this is the correct forum for this, but please dont direct me over to microsoft since I get nowhere fast..
    My problem is this;
    I upgraded my Mac with some software updates, which probably have nothing to do with the problem, but since then when i click on a image in a word document and then go to click on another they both are highlighted (as though I am trying to group them) click on others and the same happens. If I go out of the word document and back in it seems to be fixed, but then it happens over.
    Didnt have the problem before, as I had to click the image and hold shift to click anything further.
    any ideas

    Hi baydreaner,
    Navigate to ~(yourHome)/Library/Preferences/Microsoft and drag that folder to the desktop. Then relaunch Word and test.
    -mj
    [email protected]

  • (Urgent)help: how to use sdk add a gif image into a pdf document

    I had use sdk plus-in add a new button of mine,if I click the button,a gif image will be inserted into the current page of pdf document
    My questions:
    one : When I clicked the button,there was a warnning box said:the image has not enough data.I don't known why?
    two : How can I be sure the position of the image which I inserted? and how to change it's position?
    three:  how to use sdk get the content of the document?

    hi Leonard:
    I do it like you said, but
    Why my image can not display in the pdf.
    code is:
    //====================================================================
    const ASInt32 theImageByteSize = IMG_WIDTH * IMG_HEIGHT;
    char* buff = new char[theImageByteSize];
    PDEImage volatile pdeImage = NULL;
    PDEImageAttrs pdeImageAttrs;
    PDEColorSpace pdeColorSpace;
    ASFixedMatrix imageMatrix;
    memset(&pdeImageAttrs, 0, sizeof(PDEImageAttrs));
    int hdl = _open(ImagePath, _O_RDONLY | _O_BINARY, _S_IWRITE | _S_IREAD);
    if (hdl == -1)
         AVAlertNote("[%s] create fail !!!!") ;
    if (_read(hdl, buff, theImageByteSize) == -1)
         AVAlertNote("read image fail!") ;
    pdeImageAttrs.width = IMG_WIDTH;
    pdeImageAttrs.height = IMG_HEIGHT;
    pdeImageAttrs.intent = ASAtomNull;
    pdeImageAttrs.bitsPerComponent = 8;
    pdeImageAttrs.flags = kPDEImageExternal | kPDEImageIsIndexed;
    pdeImageAttrs.decode[0] = fixedZero;
    pdeImageAttrs.decode[1] = fixedOne;
    pdeImageAttrs.decode[2] = fixedZero;
    pdeImageAttrs.decode[3] = fixedOne;
    pdeImageAttrs.decode[4] = fixedZero;
    pdeImageAttrs.decode[5] = fixedOne;
    ASFixedRect theMediaBox;
    PDPageGetMediaBox( AVPageViewGetPage(pageView), &theMediaBox );
    ASFixed theFixedWidth = (theMediaBox.right - theMediaBox.left);
    ASFixed theFixedHeight = (theMediaBox.top - theMediaBox.bottom);
    imageMatrix.a = ASInt16ToFixed(theFixedWidth);
    imageMatrix.d = ASInt16ToFixed(theFixedHeight);
    imageMatrix.b = imageMatrix.c = fixedZero;
    imageMatrix.h = 0;
    imageMatrix.v = 0;
    const Int32 cPaletteColors = 256;
    PDEIndexedColorData theIndexedData;
    theIndexedData.size = sizeof(theIndexedData);
    theIndexedData.baseCs = PDEColorSpaceCreateFromName(ASAtomFromString( "DeviceRGB"));
    theIndexedData.hival = cPaletteColors - 1;
    unsigned char data[3] = {255, 0, 0};
    theIndexedData.lookup = (char *)data;
    theIndexedData.lookupLen = cPaletteColors * 3;
    PDEColorSpaceStruct theColorData;
    theColorData.indexed = &theIndexedData;
    pdeColorSpace = PDEColorSpaceCreate(ASAtomFromString( "Indexed" ), &theColorData );
    pdeImage = PDEImageCreate(&pdeImageAttrs, sizeof(pdeImageAttrs), &imageMatrix,
                                                0, pdeColorSpace, NULL, NULL, NULL, (unsigned char*)buff, theImageByteSize);
    I want die, I had done this for so many days, My GIF doesn't insert into pdf,
    unsigned char data[3] = {255, 0, 0};
    theIndexedData.lookup = (char *)data;  "
    whether the data set wrong?
    I confused what I do next   

  • 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

  • When I copy paste an image onto a word document i only get a link?

    HELP!

    This only happens with Word and Power Point. I starte having this issues yesterday, before I never had a porblem with copying and pasting images from the internet.

  • After importing word document in RH 9, why does the position of image changes

    Hi All,
    I have a document which i need to import in RH9. However when i imported the document, the position of the images on my first page changed.
    i read several discussion, but could nt get any relevant suggestion.
    the first page of my document has company logo and a text box on its left but when i am importing, the image is displayed separately and text box is displayed after the image. the first page is my cover page thats the reason it has text box.
    Now can anyone please tell me how i can club the text box and image on a single htm.Robohelp also converts the text box and its data to an image format.
    Thanks for your time and consideration

    Hi there
    As you have seen, RoboHelp doesn't understand how to create the layers you are wanting to achieve the effect in Word. It simply brings the images in as separate objects.
    Basically there are two approaches you might consider.
    You could insert Positioned Text Boxes and configure them to present the images as you want. If you take this approach, you will likely find yourself struggling to maintain the positioning consistently as well as noticing text flow issues. Personally, I'd avoid that approach.
    The other approach involves displaying the images in your Word document so that you see them as intended, then screen capture so you grab the combined image. Then save that combined image and use it instead of the separate images in RoboHelp. This is the approach I'd suggest and that I use myself.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Importing a word-document to RH11 for output as WebHelp (Image-Quality)

    Hello guys,
    i have a problem with importing word-documents to RH11. It is not a problem with the process itself, but with the settings. After importing the documents to RH11 the image quality is absolutly messed up. The resolution is not even half of the original and its blurry. It seems to be that RH11 only takes a "screenshot" of the picture within the word document instead of importing the original high quality image.
    I am generating a manual and therefor im going to export the project as WebHelp Pro. My inconvinient solution is to export the high quality images from the word document manually and replace the messy pictures in the WebHelpPro folders. As you can imagin this is going to take a lot of time and resources while the project is getting bigger.
    Hopefully you can help me.
    Best regards from Germany and please pardon my English :-)

    So you are putting the image into Rh at 100% and then shrinking it there, correct?
    How are you shrinking it?
    If you are going to Image Properties and resizing there, you will get poorer results.
    Go to View > Pods > Tools > ReSize and you will get better results.
    Or use SnagIt.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How do you paste images in Word documents?

    Why when I paste an image into a word document does it often move the image to the top of the page.

    Microsoft’s documentation for 2008 did not explain how to set defaults when using *command V* to paste into Word. The pic can jump to the top of the page no matter where the cursor is under some circumstances. Someone who speaks Mac may be able to address the defaults better than passing the buck to Gates.

  • Irregular outlined GIF images

    Did we already cover this one? Gif images direct to Pages document still have a square background. The tutorial (giraffe), shows the copy can easily cope lettering to the shape of irregular images. My Gif transparent background matte is set to NONE from Photoshop, the background is Custom, its a small file size (12K), 32 colors, and still the background is held square, not irregular, on my iPad Pages (word) document, with a white background to the document page.
    Am I missing a step here? Should I be in some other program, other than Photoshop?
    I might add, it DOES work fine in iWork's Pages documents when brought in on my iMac OSX 10.5.8 platfrom...just not in Pages!
    Message was edited by: zamboniz

    hello people...
    i didn't get any answer for my previous question... could any one give an answer for that.. and i would like to know what is the format of picture message? can we create our own picture message and use it in 6600?

  • Why do the colors in images embedded in word (TIFF/JPEG) export off-color from Acrobat?

    I chose this forum as opposed to the printing and pre-press forum because I have a very limited existing knowledge of color space and profile matching and I didn't want to be (1) shunned and (2) overwhelmed by the level of technical detail.
    When I attempt to PDF a word document that contains a TIFF image, the TIFF image appears SIGNIFICANTLY off color.  I was able to substantially correct the problem by extracting the TIFF image within the Word document and resaving it as a JPEG, but it still isn't 100%.
    Here's what I know:
    I'm using Windows 7; Word 2010; and Acrobat X.  I also have Photoshop CS5.1 and InDesign CS4.
    My color SETTINGS are matched in each application to be tied to my monitor, and my monitor is set to the system default, which is a system default: :sRGBIEC61966-2.1"
    I'm using the document for professional purposes, so color matching is important to me, but I'm working with what is available to me at a nonprofit, so that means an Acer X183h monitor and a Canon iR C5185 networked office printer and no real color management policy or equipment.
    I'm looking for the best possible solution to maintain color performance between the monitor and the printer.

    Incredibly as I posted this the solution came to me - I leave it to the moderators to determine whether this should be preserved or deleted.  I wasn't able to find any help on this and it might be valuable to other users.
    The image itself that was embedded in the Word Document had a CMYK color profile. It was displaying appropriately in the software, but wouldn't convert to PDF or print. I opened the source file in Photoshop and converted it to my working profile, then re-added it to the word document and it is now reliably reproducing in the right color.
    Since dropping outside images into word is a common (if also poor) work process for people creating documents in the nonprofit sector, I think this kind of information could be valuable in the knowlegebase.

  • Printing Word Document stored in BLOB from Reports

    I have stored images and MS-Word documents in the DB in a BLOB column. Using reports 6, I am able to print the images by setting the File Format property of the item to Image. What I need to know is how can I print the Word document that has been stored in the DB using reports? Any alternative suggestions welcome...
    Thanks for your help.
    Aparna

    Hi Aparna,
    I have tried the same with CLOB instead BLOB.
    (MS Word)
    Only problem is (as expected) any graphics (BOLD, Table etc) will not work when printing. It also replaces the TABS with A single space.
    If you have found an answer, please let me know.
    Tissa
    ([email protected])
    null

  • Importing text from large Word document ID freeze

    I'm converting a large Word document to PDF via InDesign and when I import the text from the Word doc, ID always freezes.
    I want to preserve the styles and formatting in the text but unfortunately the freeze occurs at the beginning where the Placing Microsoft Office Word 2007 document progress bar shows either "Processing character attributes..." or "Processing table attributes..."
    My problem is that it is such a large document with lots of italics, bolds and styles that I would like to take over to InDesign in order to speed up the design process.

    RTF will be fine and will retain all the Bold and Italic and other styles. RTF stands for RICH TEXT FORMAT and I think it's better than the standard .doc saved from Word; for importing to InDesign.
    Try these steps.
    In Word:
    File>Save As
    Choose RTF (that way you are not overwriting the original file)
    In InDesign:
    Start a new document - completely blank - don't worry about page size (A4 will do) and don't worry about margins (standard margins will do)
    Use File>Place and import the RTF file you just saved
    If that imports ok - then select all the text
    File>Export and choose RTF (rich text format)
    Now use that new RTF to import to your layout
    (there is no need to worry about images, you should reimport all  images that are in Word through File>Place; if you have any images in  your Word document. Make sure you use the same source file as when you  placed into Word)
    The reasons for the steps above is because there is a lot of unnecessary styles made with Word - and importing to InDesign and a fresh Export to RTF makes a cleaner file to use with InDesign.
    Have a look at  this too - http://www.paperspecs.com/mainblog/degunkifying-word-files/

  • Images pasted from Word clipboard all turn green

    If I copy an image from a Word document, and paste it into Fireworks, it turns fluoro green.  The image is still visible, but appears to be colorized green.  What could cause this?  It used to work fine. (using a Mac)  Thanks

    "Select the ones you want to export with shift+click and choose "Unembed file"? "
    It didn't worked, the option was gray. I think this is because there were no original file for the pictures as they were embeded in the word document in the first place.
    Concerning the word option "save as a web page", it works partialy. It exports the images, but they were cropped. If parts of the original pictures were hidden, they won't be exported and as my new layout is a little different, that could cause problems.
    So, I already redid the job so I don't have the problem anymore but I think it would be good for the InDesign team to know there is a problem with copy/paste to correct it in the future. The image name should be incremented with each new pasted image.
    Concerning me, the method I choose to work it around was to resize the pictures in word (get them to the original size because they were for the most resized) and right-click on them to save the images individually.
    This way, I only had then to go to InDesign and relink each picture one by one (I had 240 pictures) to the file exported from word.
    Now my document is done "the best way" with linked pictures and not embeded ones, but in cases like this, when the original files have embeded pictures, it takes too much time to save them and link them compared to a simple copy/paste of the page.
    So I'm ok now, I just wanted to let Adobe know about the bug.
    Bye and thanks to all who answered :)

Maybe you are looking for

  • Problem while sending HL7 ACK to HL7 external system

    Hello, I am facing a problem with GlassFish ESB. The product version indicated in the IDE is: NetBeans IDE 6.1 (Build 200810140114). I have not yet tested the current version. My problem is as follow: - I have 2 service assemblies, one is File BC > H

  • Vendor Consignment Clearing

    Hello Experts, Can you plese explain/show me the process of clearing consignment related GR/IR up to accounting? As from what I'm thinking, before the documents can be cleared in transaction F.13, it must be first cleared on the MM side. Because docu

  • Acrobat scanning documents

    i recently tried to scan a PDF document in Acrobat. i started the scanning and Acrobat quit on me, i tried this again, and i quit again. any thoughts???????

  • Color Dodge not working properly

    For some reason color dodge has never worked properly in my version of Illustrator. I'm using Illustrator CC 2014. I'm trying to do different lighting effects for a project for work and it just is NOT behaving like normal color dodged items. I go to

  • Safari and preview quits when try printing

    Hello everybody, I have tried to solve this but no idea what I did wrong. When I try to print from safari it quits. I had the same problem with preview and I fixed it somehow but no idea what to do next. Any help please? Thanks the report I get after