-----Ursprungliche Nachricht----- Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. Juni 2008 17:35 An: [email protected] Betreff: Re: Problem with EPS Pictures in fop 0.95
I'm on WinXP, too. The exact same thing you do works here on Sun JDK 1.5.0_14-b03. The only thing that remains for me is that you copied some JARs into the JRE's lib/ext or lib/endorsed directory so that they are higher up in the class loader hierarchy and are somehow causing class loding issues. Otherwise, I can't explain this. You still haven't answered my questions: > Are you really, really sure that you're loading the > right file? (one that begins with "%!PS-Adobe-3.0 EPSF-3.0") THE EPS File begins with the following code: langh_bilder_3_direkt.eps EPSF8BIM langh_ @ ? < @ ??aO %!PS-Adobe-3.0 EPSF-3.0 %%Creator: Adobe Photoshop Version 10.0x001 %%Title: langh_bilder_3_direkt.eps %%CreationDate: 16.06.2008 13:41 Uhr %%BoundingBox: 0 0 269 127 %%HiResBoundingBox: 0 0 269.28 127.44 %%SuppressDotGainCompensation %%DocumentProcessColors: Cyan Magenta Yellow Black %ADO_ContainsXMP: MainFirst %%EndComments %%BeginProlog %%EndProlog %%BeginSetup %%EndSetup %ImageData: 1122 531 8 4 1 1122 1 "beginimage" %BeginPhotoshop: 15014 % 3842494D04040000000000071C020000020000003842494D0425000000000010 % E8F15CF32FC118A1A27B67ADC564D5BA3842494D03EA000000001FF53C3F786D % 6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D3822 % 3F3E0A3C21444F435459504520706C697374205055424C494320222D2F2F4170 % 706C6520436F6D70757465722F2F44544420504C49535420312E302F2F454E22 % 2022687474703A2F2F7777772E6170706C652E636F6D2F445444732F50726F70 % 657274794C6973742D312E302E647464223E0A3C706C6973742076657273696F % 6E3D22312E30223E0A3C646963743E0A093C6B65793E636F6D2E6170706C652E % 7072696E742E50616765466F726D61742E466F726D617474696E675072696E74 % 65723C2F6B65793E0A093C646963743E0A09093C6B65793E636F6D2E6170706C % 652E7072696E742E7469636B65742E63726561746F723C2F6B65793E0A09093C ...... Removing the content before "%!PS-Adobe-3.0 EPSF-3.0" leads to a better behaviour: (FOP generates no error, but the resulting out.ps seems to be invalid). I think that the image loading framework has some problems with parsing the header from the given file. And: > Do PNG or JPEG files work instead of EPS (just as a test for your > environment)? JPEG works instead of EPS. Other EPS files (transparent files work also). On 16.06.2008 16:26:16 Robert Eberhardt wrote: > Hello Jeremias, > > Unfortunately it still does not work on my computer. Maybe we can find the > difference between your configuration and mine. I have tried to collect some > data that may help you. I am using a Windows XP System. But the Productive > System is a Linux System. But both Systems have the same problem with the > image. > > If you are interested in more information let me know > > D:\Dokumente und Einstellungen\eberhardt\Desktop>fop -v -fo robert.fo -ps > out.ps > FOP Version 0.95beta > 16.06.2008 16:12:14 org.apache.fop.fo.flow.ExternalGraphic bind > SCHWERWIEGEND: Image not available: No ImagePreloader found for > langh_bilder_3_direkt.eps > > D:\Dokumente und Einstellungen\eberhardt\Desktop>java -version > java version "1.5.0_10" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) > Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode) > > D:\Dokumente und Einstellungen\eberhardt\Desktop>type robert.fo > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <fo:layout-master-set> > <fo:simple-page-master master-name="A4" page-height="29.7cm" > page-width="21cm" margin="2cm"> > <fo:region-body/> > </fo:simple-page-master> > </fo:layout-master-set> > <fo:page-sequence master-reference="A4"> > <fo:flow flow-name="xsl-region-body"> > <fo:block><fo:external-graphic > src="langh_bilder_3_direkt.eps"/></fo:block> > </fo:flow> > </fo:page-sequence> > </fo:root> > > D:\Dokumente und Einstellungen\eberhardt\Desktop>dir lang*.eps > Datentrager in Laufwerk D: ist Daten > Volumeseriennummer: 2C82-C710 > > Verzeichnis von D:\Dokumente und Einstellungen\eberhardt\Desktop > > 16.06.2008 13:51 4.263.467 langh_bilder_3_direkt.eps > 1 Datei(en) 4.263.467 Bytes > 0 Verzeichnis(se), 27.008.802.816 Bytes frei > > > > > > -----Ursprungliche Nachricht----- > Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 16. Juni 2008 15:07 > An: [email protected] > Betreff: Re: AW: Problem with EPS Pictures in fop 0.95 > > On 16.06.2008 14:55:38 Robert Eberhardt wrote: > > Hello Jeremias, > > > > First I want to apologize for sending the images off list. > > Why? I wrote that this is a possibility. Actually, you might have made a > few people grumpy by sending such a large file to the list. Large files > are better sent to individuals offering to look into an issue. > > > Second I tried to emebed the file I have sent to you (the second file), > but > > it failed with the same message (No Image Preloader found). I think the > > first file was inserted by the mail server I am using. > > Weird. > > > I Attached my classpath file, to ask if you can see if I am may using a to > > old version of a required library. (smt.jar, mail.jar an so on can be > > ignored, I need them the because my application sends the produced pdf by > > mail.) > > > > <classpathentry kind="src" path="src"/> > > <classpathentry kind="lib" path="lib/avalon-framework-4.2.0.jar"/> > > <classpathentry kind="lib" path="lib/batik-all-1.6.jar"/> > > <classpathentry kind="lib" path="lib/commons-logging-1.0.4.jar"/> > > <classpathentry kind="lib" path="lib/jdom.jar"/> > > <classpathentry kind="lib" path="lib/ojdbc14.jar"/> > > <classpathentry kind="lib" path="lib/serializer-2.7.0.jar"/> > > <classpathentry kind="lib" path="lib/xalan-2.7.0.jar"/> > > <classpathentry kind="lib" path="lib/xercesImpl-2.7.1.jar"/> > > <classpathentry kind="lib" path="lib/xml-apis-1.3.02.jar"/> > > <classpathentry kind="lib" path="lib/dsn.jar"/> > > <classpathentry kind="lib" path="lib/imap.jar"/> > > <classpathentry kind="lib" path="lib/mail.jar"/> > > <classpathentry kind="lib" path="lib/mailapi.jar"/> > > <classpathentry kind="lib" path="lib/pop3.jar"/> > > <classpathentry kind="lib" path="lib/smtp.jar"/> > > <classpathentry kind="lib" path="lib/activation.jar"/> > > <classpathentry kind="lib" path="lib/log4j-1.2.15.jar"/> > > <classpathentry kind="lib" path="lib/xmlgraphics-commons-1.3.jar" > > sourcepath="D:/Dokumente und > > Einstellungen/eberhardt/Desktop/xmlgraphics-commons-1.3/src/java"> > > <attributes> > > <attribute name="javadoc_location" value="file:/D:/Dokumente > > und Einstellungen/eberhardt/Desktop/xmlgraphics-commons-1.3/javadocs/"/> > > </attributes> > > </classpathentry> > > <classpathentry kind="lib" path="lib/fop_095.jar"/> > > <classpathentry kind="var" path="JRE_LIB"/> > > <classpathentry kind="lib" path="lib/commons-io-1.3.1.jar"/> > > > > Maybe you can tell me which jar needs to be updated. > > None. Looks good. Are you really, really sure that you're loading the > right file? (one that begins with "%!PS-Adobe-3.0 EPSF-3.0") > > Optionally, you can download XML Graphics Common 1.3.1 which contains a > few bugfixes but it shouldn't affect the present case. > > Do PNG or JPEG files work instead of EPS (just as a test for your > environment)? > > Unfortunately we have to use eps Files. JPG Files work. I have no experience > with PNG Files and fop. > > > Here you can see the fop code that I use to embed the eps file; > > > > <fo:block color="white" font-family="ArialRegular" font-size="9pt" > > > <fo:external-graphic content-width="95mm" content-height="45mm" > > scaling="uniform"> > > <xsl:attribute name="padding-left"> > > <xsl:value-of select="$padding"></xsl:value-of> > > </xsl:attribute> > > <xsl:attribute name="src"> > > <xsl:value-of select="IMAGE/@url"/> > > </xsl:attribute> > > </fo:external-graphic> > > </fo:block> > > > > Maybe you can send me the code that you have used to test the image. > > I tested from the command-line (fop -fo robert.fo -ps out.ps) with this > file: > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <fo:layout-master-set> > <fo:simple-page-master master-name="A4" page-height="29.7cm" > page-width="21cm" margin="2cm"> > <fo:region-body/> > </fo:simple-page-master> > </fo:layout-master-set> > <fo:page-sequence master-reference="A4"> > <fo:flow flow-name="xsl-region-body"> > <fo:block><fo:external-graphic > src="langh_bilder_3_direkt_2.eps"/></fo:block> > </fo:flow> > </fo:page-sequence> > </fo:root> > > > > > > -----Ursprungliche Nachricht----- > > Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] > > Gesendet: Montag, 16. Juni 2008 14:34 > > An: [email protected] > > Betreff: Re: Problem with EPS Pictures in fop 0.95 > > > > Robert sent me two files off-list. The first (size 65KB) is something I > > don't recognize. It's definitely not an EPS file (neither binary not > > ASCII). GhostScript cannot display it either. ImageMagick seems to think > > of it as an EPS file but then fails to process it. The second (size > > 4.1MB) is an ASCII-mode EPS containing a large bitmap. That is displayed > > by GhostScript and properly handled by FOP 0.95beta. > > > > I assume you get the error for the first file but you opened the second > > in GhostScript. You probably chose the wrong file format for saving the > > image in Photoshop or something like that. I mention Photoshop as that > > string can be found in both files. > > > > On 16.06.2008 13:26:50 Robert Eberhardt wrote: > > > Hello, > > > > > > I have a problem with a single eps picture. > > > > > > I try to emdeb the image as an <fo:external-graphic> in a Postscript > File. > > > I get the following Error Message > > > > > > > > > 2008-06-16 13:20:13,343 ERROR [main] org.apache.fop.fo.FONode: Image not > > > available: No ImagePreloader found for > > > > > > W:\.eclipse_Head\Mailing\res\images\tmp\tmp2\..\..\medias\0000\00\13\33\1258 > > > 418.eps > > > > > > The picture is in the given directory and other eps files are loaded as > > > well. Loading the eps picture with gostview also works fine. > > > > > > > > > Maybe someone can help me to find the right image preloader for that > file. > > > > > > > > > Kind regards Robert Eberhardt > > > -- > > Jeremias Maerki --------------------------------------------------------------------- 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]
