Reading emf files

I'm needing to read an emf file or inputstream into a buffered image and haven't found any library that can do this correctly. Does anyone have any suggestions of a library that can handle this format? I know Aspose can do it, but it's not an option for my project. The emf is an embedded object in a power point doc and I need to be able to read it into a buffered image or render image. Balik seems to work with wmf's but cannot find anything that will work with emf. I've tried creating a hack using the apache image loader by writing the object to a file, which opens in windows paint, but could not get the apache image loader to read it. Failed on the getImageInfo call of the preloader step. this code worked on gif and tif files so I don't believe its the code. Any help would be appreciated.

Peter,
If you haven't changed the model, then the XMI instance documents will
be compatible.
Frank.
Peter Bendel wrote:
>Our project consists of two components that need to exchange serialized XMI
>files.
>
>- One component using Eclipse 3.0, EMF 2.0 and XMI default serialization
>that generates XMI files.
>- One component using EMF 1.1 reading those XMI files.
>
>In a simple proof of concept we could read the EMF 2.0 generated XMI files
>from our EMF 1.1 based classes.
>
>Are there any known restrictions to that appraoch?
>
>We are generating the EMF 2.0 and the EMF 1.1 classes from the same Rational
>Rose UML model.
>
>Peter
>
>
>
>

Similar Messages

  • Import .emf files to PS CS6X

    Is there an import plugin to read .emf files directly into PS CS6X on PC?  I have very large that I'd like to rasterize in PS.  Now what I have to do is load to MSPaint and output as .bmp but have no control of the dpi so output is not as good as it could be.
    I have older version of Illustrator and will not import the .emf files.
    Thanks,
    RONC

    I looked up .emf perhaps you could do better with ADCSee http://filext.com/file-extension/EMF then with MSPaint...

  • Problem in converting Word Document into PDF after inserting EMF file

    Hi
    I have VB 6.0 program, which automatically inserts an EMF file in to MS-Word and converts it in to Post Script file and finally to PDF.
    But the Size of the generated PDF file is too large i.e., 8MB
    If am inserting an .PNG file in MS-Word and conveting it in to Post Script and finally in to PDF, the size of PDF file is somewhere around 330KB.
    I am using Acrobat Distiller 6.0 for this conversion
    Can any one let me how I can reduce the file size of PDF, if I insert an EMF file.
    Thanks in Advance
    Vijay Kumar

    Saying a WMF file does not mean much. It could be a bitmap with 2400dpi or a vector graphic. WMF and EMF are wrappers that can include both. You may be best to open the WMF in PhotoShop or Illustrator and see if you can get a consistent size, possibly doing a copy and paste to WORD.

  • PDFMaker rasterizes a Vector EMF file

    Greetings!
      I use PDFMaker add-in of Adobe Acrobat Pro (11.0.10) with Word 2013 to PDF a document, which contains a vector EMF file.
      After conversion I see that original vector image is rasterized completely. If I either save the same source Word document As PDF in Word or print it via Adobe PDF printer the EMF vector image stays vector in result PDF. If you want I can share the EMF file that causes the issue.
      I am forced to use PDFMaker as I need to convert Word bookmarks to PDF as well.
      What can cause this behavior and how can I try fixing it?
    Thank you for the prompt reply.

    Dear Sukrit,
    I have sent you an e-mail message, where attached two files causing the issue, as well as DOCX that you might want to convert to PDF using PDFMaker of Adobe Acobat Pro (11.0.10).
    Please let me know results of the investigation.

  • EMF files have no preview in Bridge CS6

    Actually, haven't had EMF (WMF) previews since CS2 or something. Surprised that such a robust viewer can't manage a preview of such a common file. Is there any kind of fix? Win7.

    kretsch wrote:
    …haven't had EMF (WMF) previews since CS2 or something. Surprised that such a robust viewer can't manage a preview of such a common file…
    Sorry I can't help, but…
    Common file?  I've been using computers in the course of my work since the 1960s, and I had to do a Google search to figure out what an "EMF file" is.  Just saying…
    Remember that Bridge began as nothing more than Photoshop's Image File Browser.  It has been somewhat adapted (or is it just "adopted"?) for the totally artificial "suite" concept.
    Inconsistency between or among applications in the artificial "suites" should come as no surprise.
    The "suite" concept is a fabrication of Adobe marketing and bean-counting types.  The engineering teams are totally independent of each other, they are not only in different buildings but in different cities and states of the American Union, even in different countries.
    The fact that they have little if any communication among them is highlighted by requests occasionally made in these forums by top Adobe engineers to let the other teams know when there are problems in one application that impact our workflow in another one.

  • WMF/EMF Files Illustrator CS4

    I truly hope this helps someone else out!
    After much frustration, I have finally solved the problems I was having with:
    A.      Viewing  WMF/EMF files on a Windows Vista pc.
    B.      Manipulating WMF/EMF files in Illustrator CS4.
    Viewing WMF/EMF Files:
    Download IrfanView (Freeware)
    During the install, associate WMF/EMF files with IrfanView.
    Launch program, select FILE, Select Thumbnails and navigate to folder containing target files.
    Manipulate WMF/EMF files in Illustrator:
    Select Options, Select Properties/Settings, Select Miscellaneous
    Under “Set external editors”
    Click Browse, navigate to the Illustrator exe file and select it
    Click ok
    From the thumbnail viewer window
    Right Click on the target image
    Go down to “Open with external editor”
    Select Illustrator from the fly out
    Illustrator launches and the image is available for manipulation.
    Cheers
    Dan

    So the comuter is only for running a script in Illustrator nothing else except it happens in photoshop as well, speaking with forked tongue.
    Let m make a suggestion, create a new user account log into that user account aand without loading fonts etc try an open a file in Illustrator or Photoshop.
    Leave the fonts as default.
    I would say it is a question of a possible conflict or corruption with fonts or plug ins and or the font cache files.
    Also the possibility that you are using the stat up disk as the scratch disk instead of another drive true a mca mini only has one drive but a fast external drive of RAID 0 might serve better.
    And there may be some dirctories on yu drive that do not have read write privileges when they should so Repair the Permissions as well.

  • EMF file opens as blank

    I am trying to open an emf file in Illustrator, but it just appears as a blank page.  I tried some emf files that I created a few years ago, and they open fine.  But the new ones that I made are not appearing.  What am I doing wrong? 

    Hi Mike,
    Thanks for your quick response!  Admittedly, I am not using Illustrator for it's full capacity, so I'm definitely a novice.  But, again, I'm just a little bit perplexed as to why some of the emf files appear with no problem, and the ones I'm working with now are not appearing.  Here is a bit more detail:
    The emf files are created in MatLab (they are graphs for research).  I save them as an emf file from that program.  However, that program is relatively crude, so I need to make some adjustments to make them look better, which is what I have used Illustrator for in the past.  I can open these files with other programs (paint, photo viewer, etc), but when I try to open them with Illustrator, I just see a plain white box.  Again, when I open emf files that I made a few years ago (using the same techniques), there is no probelm -- the figure appears and I can edit it.
    When I save the figures in another format (e.g., if I convert to a pdf), the picture appears, but some of the quality is lost.  The lines become a bit fuzzy and less defined. 
    I have not tried to insert into Word first, then open in Illustrator, so I will try that next.  What is the porper way to do this?  I know how to insert the image, but should I then just save as a .docx, then open that in Illustrator?  Let me know, and I'll give it a shot.

  • Can no longer read plist files

    I've got a script that iterates through a list of hostnames, connects to each host, looks for the existence of a list of applications, and if they exist reads their Info.plist for the version.  This worked seamlessly until a couple of days ago.  The only change I can think of is having changed my username on all of my Macs from <username> to <username>.sa to differentiate privileged accounts from unprivileged accounts.  Yes, this caused a number of issues, and I've hunted them down.  I can connect to every host with <username>.sa, perform actions with sudo, etc.  What I can't do any more is read plist files, even when logged in locally:
    quad:~ username.sa$ defaults read /Applications/Utilities/Adobe\ Flash\ Player\ Install\ Manager.app/Contents/Info.plist
    2014-06-26 15:03:59.588 defaults[49157:507]
    Domain /Applications/Utilities/Adobe Flash Player Install Manager.app/Contents/Info.plist does not exist
    quad:~ username.sa$ ls -l /Applications/Utilities/Adobe\ Flash\ Player\ Install\ Manager.app/Contents/Info.plist
    -rw-r--r--  1 root  wheel  1344 May 28 12:02 /Applications/Utilities/Adobe Flash Player Install Manager.app/Contents/Info.plist
    quad:~ username.sa$ cat /Applications/Utilities/Adobe\ Flash\ Player\ Install\ Manager.app/Contents/Info.plist
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>BuildMachineOSBuild</key>
      <string>12E55</string>
      <key>CFBundleDevelopmentRegion</key>
      <string>English</string>
      <key>CFBundleExecutable</key>
      <string>Adobe Flash Player Install Manager</string>
      <key>CFBundleIconFile</key>
      <string>FlashPlayerInstaller.icns</string>
      <key>CFBundleIdentifier</key>
      <string>com.adobe.flashplayer.installmanager</string>
      <key>CFBundleInfoDictionaryVersion</key>
      <string>6.0</string>
      <key>CFBundleName</key>
      <string>Adobe Flash Player Install Manager</string>
      <key>CFBundlePackageType</key>
      <string>APPL</string>
      <key>CFBundleSignature</key>
      <string>????</string>
      <key>CFBundleVersion</key>
      <string>14.0.0.125</string>
      <key>DTCompiler</key>
      <string>com.apple.compilers.llvm.clang.1_0</string>
      <key>DTPlatformBuild</key>
      <string>4H1503</string>
      <key>DTPlatformVersion</key>
      <string>GM</string>
      <key>DTSDKBuild</key>
      <string>10K549</string>
      <key>DTSDKName</key>
      <string>macosx10.6</string>
      <key>DTXcode</key>
      <string>0463</string>
      <key>DTXcodeBuild</key>
      <string>4H1503</string>
      <key>NSMainNibFile</key>
      <string>FPIMMain</string>
      <key>NSPrincipalClass</key>
      <string>NSApplication</string>
    </dict>
    </plist>
    The file is there.  It is readable.  I can read it... just not with the 'defaults' command.  This is with all plists on all of my Macs.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Error: Unable to read footer file

    Hoping someone out there can help me. I get this error on
    everypage in my site and have no idea how to stop it.
    Error: Unable to read footer file
    The error does not show up when I preview inside dreamweaver
    but only rears its ugly head after I post the site up on the
    internet. I have searched for hours through the Dreamweaver menus
    and can not find these elusive footers and have no idea where they
    are coming from or what footer file it is trying to read.. Please
    help. This probably has a simple solution and I am just not able to
    understand it. Thank you.

    sdrouillard wrote:
    > This probably has a simple solution and I am just not
    able to understand
    > it.
    Possibly, but without a URL we can't comment. Post it, and
    we'll see.
    At a guess, sounds like an include file is missing. Are you
    on some sort of
    free hosting plan where the host puts some adverts in the
    footer? If that
    file is removed from your site directory you might get the
    error you've
    mentioned (at least, that was the case on the only other time
    I've seen this
    error)
    Regards,
    Pete.
    Peter Connolly
    http://www.acutecomputing.co.uk
    Derby
    UK
    Skype ID: acutecomputing

  • Error reading excel file using POI.

    Hi ,
    I am having some problem when reading the excel file.
    While reading excel file I am getting error-java.io.IOException: Unable to read entire block; 4 bytes read; expected 512 bytes.
    part of my code:-
    InputStream stream = objFormFile.getInputStream();
    POIFSFileSystem fs = new POIFSFileSystem(stream);//getting above error here.
    HSSFWorkbook wb = new HSSFWorkbook(fs);
    Case 1:
    I download the file on the system ,save it ,and then directly upload it to the system ,I get the above error .
    Case 2:
    It works fine if I download the excel and manually open and save it and then upload it .
    I am using JDK1.4.1 and poi-2.5.1-final-20040804.jar.
    Can any one please help me out for the above problem?
    Edited by: hruday on Jul 31, 2008 3:20 AM

    Instead of using POIFSFileSystem, try to directly create the HSSFWorkbook
    InputStream stream = objFormFile.getInputStream();
    //POIFSFileSystem fs = new POIFSFileSystem( stream );//getting above error here.
    HSSFWorkbook wb = new HSSFWorkbook( stream );

  • Error reading Remote file when the connection is slow

    I have a program that reads a file from a remote server. The file is an xml file.
    This uses URL inputstream.
    This works just fine but when the xml that it reads grow in size, the content of the file is not completely sent to the variable string.
    I have come to a conclusion that slow connection to the server could somehow cause this. The error is intermittent. Sometimes it works, sometimes it doesn't.
    I hope you guys could help me tune this code or if you have suggestions like other ways to read a remote file. Which will work even if the file grows bigger.
    Thanks
    public String readRemoteFile(String fName)
    try
    boolean bolContinue = true;
    URL tUrl = new URL(fName); //create a URL object with the server source file
    //Logger.log("Getting filesize : " + fName);
    InputStream is = tUrl.openStream();
    String strFileSize = "";
    StringBuffer sbXML = new StringBuffer();
    byte[] b1 = new byte[10];
                   int intBytesToDownload = 0;
    int i = is.read(b1);
    strFileSize = new String(b1, 0, i);
    //Logger.log(fName + " --- " + strFileSize);
    try
    intBytesToDownload = Integer.parseInt(strFileSize);
    catch (NumberFormatException nfe)
    Logger.log("Could not read the file : " + fName);
    return null;
    int bytesReadInTrip = intBytesToDownload;
    int bXMLLocation = 0;
    while (bytesReadInTrip > 0)
    bytesReadInTrip = 0;
    bolContinue = true;
    //System.out.println(strFileURLPath);
    tUrl = new URL(fName + "&fileOffset=" + bXMLLocation);
    //Logger.log("reading file1 : " + fName + "&fileOffset=" + bXMLLocation);
    is = tUrl.openStream(); //get Input stream of the server file.
    //continue download till continuation flag is set i.e. input stream
    // is available.
    while (bolContinue)
              byte[] bXML = new byte[intBytesToDownload];
    i = is.read(bXML);
    //Logger.log("i " + i);
    if (i > 0)
    bXMLLocation += i;
    bytesReadInTrip += i;
    String strTmpXML = new String(bXML,0,i);
         sbXML.append(strTmpXML);
    else
    bolContinue = false;
    is.close(); //close the input stream of the input file.
    //Logger.log("bytesReadInTrip : " + bytesReadInTrip);
    //Logger.log("Read file : "+ sbXML.toString());
    return sbXML.toString();
    catch (Exception e)
    Logger.log("Exception while reading the file : " + fName);
    return null;
    }

    well looks that ur run() method is being called more then one time (..)
    why dont u try file method exists() before writing it to ensure that it is not written previously

  • Error reading from file glibc-2.5-24.i686.rpm RHEL 5 Setup stuck at 80%

    Hi, I am installing Oracle 10g on RHEL 5 (Red Hat Enterprise Linux 5) machine I am facing two problems
    1) while installing the rpm packages the following package gave an error
    Error reading from file glibc-2.5-24.i686.rpm
    2) I still gave a try to runInstaller command the installer opened but was stuck at 80%
    I have 3 GB ram and 320GB hard drive I am not sure what to put in the swap memory and other settings i blindly followed instructions given here
    http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnRHEL5.php
    What could be the problem where do I find the error log if its created
    Please help me
    Thanks
    Edited by: 891355 on Nov 6, 2011 12:06 PM

    I found the installActions file in the installer folder and I think this could be the problem
    INFO: The 'shiphomeproperties.xml' file is missing from shiphome location '/home/oracle/Desktop/database/install/../stage/products.xml.' Add this file to the 'Disk1/stage' directory of the shiphome.
    though I am attaching the log file for more details do you think the installer is corrupt :(
    InstallActions log file ==> http://www.mediafire.com/?nh7mx7bxqht9ovu
    Edited by: 891355 on Nov 6, 2011 1:35 PM

  • Error reading wsdl file excepetion null

    Hi
    I am trying to invoke a proxy service (web service) wsdl from a bpel process. When i add a web service adapter, put url of external web service and save it, all my service end points defined in the BPEL process are becoming non editable. Binding of operation is changing from web service to HTTP binding for all end points. When I try to edit any partner link, Jdev throws an error " error reading wsdl file excepetion null " for local services. For external service, even though i am refering to a url on the server, it points to " C:\Oracle\Middleware\jdeveloper\jdev\bin\...\xxxx?WSDL" and throws same error " failed to read wsdl file(System could not find the path specified". I am just clueless as to why this is happening. Any help is much appreciated.

    Try the SOA Forum - SOA Suite

  • \\Error Reading Rules File when dimbuild with DLR

    Hi
    I am using Essbase 11.1.2.1.
    I create a DLR via the web console EAS (11.1.2.1 too) : a very simple one : dimbuild DLR, ";" as separator, 2 fields (parent and child)
    when i try do do a "Update Ouline..." with a very simple file (1 line : accounts;test) I have this error message "\\Error Reading Rules File"
    I don't know if it can help but if I create the same DLR on another 7.1 essbase serveur through this same wec eas console (11.1.2.1), I have no problem...
    another information, too : my 11.1.2.1 server has a //ESS_LOCALE English_UnitedStates.Latin1@Binary ESSLANG. My 7.1 server has a //ESS_LOCALE French_France.ISO-8859-15@Default ESSLANG. I really don't know if there is a link, or absolutely not.
    Thanks in advance for your help!
    Fanny

    unable to load essmsh.exe : the error message seems to indicate that it is a problem with a path in the environment variables.
    So if you say that the "Error Reading Rules File" is typically a path issue, all is probably linked!
    The admin will probably correct that tomorrow : I let you know if it solves the problem!
    Thanks!
    Fanny

  • Error reading product file driver files

    When attempting apply a large merge patch I receive the following error:
    Screening out files not valid for this installation...
    Determining valid on-site files...
    AutoPatch error:
    The following file is missing:
    /oracle/prodappl/pa/11.5.0/admin/driver/pasb038.drv
    AutoPatch error:
    Error reading product file driver files [complete; make tapes]
    AutoPatch error:
    Error determining valid on-site files
    Any ideas?
    I've tried using options=noprereq option, but that didn't help.

    - Try to restore the file from a backup you have Or just copy it from any other environment.
    - Make sure that you have included all pre-req patches in the merged file.
    I've tried using options=noprereq optionBy this you tell adpatch not to check for pre-req, use 'options=prereq' instead.

Maybe you are looking for