Based on my experience the Batik support for WMF is somewhat limited and may have a hard time with certain WMF files depending on how they're created, especially in the case when they are missing the Placeable header. For our case we had to go the route of a third-party library called Aspose.Metafile.
-----Original Message----- From: Mario Madunic [mailto:[email protected]] Sent: Tuesday, March 02, 2010 12:55 PM To: [email protected] Subject: RE: How to place wmf files into pdf Venkat, I'm using FOP 0.95 and have tested against 0.94 (also am running java 1.6). Same result for both with wmf. Also added a task to move the files locally so now I have a the following paths <fo:external-graphic src="images/test.wmf" /> <fo:external-graphic src="url(images/test.wmf)" /> <fo:external-graphic src="url('images/test.wmf')" /> Tested against a jpg in the same dir and it displayed no problem with all 3 @src values. Could it be how the wmf was created? Something faulty with the file itself? Here is a little background as to why the use of wmf. Even though most image file types display well on the computer screen they do not print well. The only two that do are wmf and svg. The issue with svg is that the image ends up a bit skewed after creation. All the image types are created from a source file (Designer file). I have the conf file stating 300dpi source 300dpi target. All images are created at 300dpi. Marijan (Mario) Madunic Publishing Specialist New Flyer Industries -----Original Message----- From: Venkat Reddy [mailto:[email protected]] Sent: Tuesday, March 02, 2010 11:24 AM To: [email protected] Subject: Re: How to place wmf files into pdf Hi, FOPTrunk is the latest development version of source code. What binary version of FOP are you using for your tests? I have used the server path (file://myserver/image/img.wmf) to get my output with WMF image file, which is working. i.e., <fo:external-graphic src="file://server-name/img/Eiffel.wmf"/> Cheers, Venkat. Mario Madunic wrote: > Venkat, > > Thanks for your quick reply. > > I've used a similar line to the one you have. I've also wrapped the src in > url() to test that method also. The one difference is that I'm grabbing the > images from a network drive and my src path begins with > file:///p:/pathtoimage/image.wmf. I made a jpg of one of the wmfs to test the > path and the path is fine, jpg appears. > > What do you mean by FOPTrunk? I am using Windows also (XP sp3) but am using > ANT 1.7 to automate the task. > > Marijan (Mario) Madunic > Publishing Specialist > New Flyer Industries > > > -----Original Message----- > From: Venkat Reddy [mailto:[email protected]] > Sent: Tuesday, March 02, 2010 8:01 AM > To: [email protected] > Subject: Re: How to place wmf files into pdf > > Hi, > > The following line is working for me. I am able to see the WMF image on > my PDF output file. > <fo:block><fo:external-graphic src="Eiffel.wmf"/></fo:block> > > I have used the FOPTrunk version on Windows environment. > > Cheers, > Venkat. > > Mario Madunic wrote: > >> I can't seem to place wmf graphics into a pdf created using FOP. Thought I >> read someplace that this is possible using batik, but that was as far as the >> explanation went. Any pointers or solutions would be nice. >> >> Thanks >> >> Marijan (Mario) Madunic >> Publishing Specialist >> New Flyer Industries >> >> >> -------------------------------------------------------------------- >> Please consider the environment before printing this e-mail. >> >> CONFIDENTIALITY STATEMENT: This communication (and any and all information >> or material transmitted with this communication) is confidential, may be >> privileged and is intended only for the use of the intended recipient. If >> you are not the intended recipient, any review, retransmission, circulation, >> distribution, reproduction, conversion to hard copy, copying or other use of >> this communication, information or material is strictly prohibited and may >> be illegal. If you received this communication in error or if it is >> forwarded to you without the express authorization of New Flyer, please >> notify us immediately by telephone or by return email and permanently delete >> the communication, information and material from any computer, disk drive, >> diskette or other storage device or media. Thank you. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -------------------------------------------------------------------- > Please consider the environment before printing this e-mail. > > CONFIDENTIALITY STATEMENT: This communication (and any and all information > or material transmitted with this communication) is confidential, may be > privileged and is intended only for the use of the intended recipient. If you > are not the intended recipient, any review, retransmission, circulation, > distribution, reproduction, conversion to hard copy, copying or other use of > this communication, information or material is strictly prohibited and may be > illegal. If you received this communication in error or if it is forwarded to > you without the express authorization of New Flyer, please notify us > immediately by telephone or by return email and permanently delete the > communication, information and material from any computer, disk drive, > diskette or other storage device or media. Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] -------------------------------------------------------------------- Please consider the environment before printing this e-mail. CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] ---------------------------------------------------------------------- CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
