Re: Adding support for PDF images to FOP

2008-08-07 Thread Jeremias Maerki
I have verified that version 1.2 still works with FOP 0.95.

If you get the message No ImagePreloader found for *.pdf it means that
the plug-in isn't in the classpath. Please note that on Windows, it's
not enough to put some JARs in FOP's lib directory if you use fop.bat.
You'll have to edit this file and add the two JARs
(fop-pdf-images-1.2.jar and PDFBox-0.7.4-dev.jar). fop.cmd is a little
smarter as is the shell script on Unixes.

BTW, you don't need to add the fop-pdf-images-1.2-res.jar. It only
contains some resources I needed during development. They shouldn't have
been included in the distribution. It was an oversight on my part.

On 07.08.2008 18:43:23 John Brown wrote:
 Hello All,
 
 I had this working on a Linux computer to which I do not
 have access right now. I was running fop-trunk.
 
 I have reconstructed my DocBook, xmllint/xsltproc and FOP
 environment on a Windows XP computer, but I cannot get
 FOP-0.95 (Release) to accept PDF as images:
 
 Aug 7, 2008 11:27:52 AM org.apache.fop.fo.flow.ExternalGraphic bind
 SEVERE: Image not available: No ImagePreloader found for images/capex.pdf
 Aug 7, 2008 11:27:52 AM org.apache.fop.render.pdf.PDFRenderer putImage
 SEVERE: Image not found: images/capex.pdf
 
 I downloaded the fop-pdf-images archive at
 http://www.jeremias-maerki.ch/download/fop/pdf-images/fop-pdf-images-1.2-
 bin.zip.
 
 I put the jar files in fop-0.95\build where fop.jar is located.
 That did not work, so I also copied them to fop-0.95\lib.
 
 JAR files in fop-0.95\lib:
 
 avalon-framework-4.2.0.jar
 batik-all-1.7.jar
 commons-io-1.3.1.jar
 commons-logging-1.0.4.jar
 fop-hyph.jar
 fop-pdf-images-1.2-res.jar
 fop-pdf-images-1.2.jar
 PDFBox-0.7.4-dev.jar
 serializer-2.7.0.jar
 xalan-2.7.0.jar
 xercesImpl-2.7.1.jar
 xml-apis-1.3.04.jar
 xml-apis-ext-1.3.04.jar
 xmlgraphics-commons-1.3.1.jar
 
 JAR files in fop-0.95\build:
 fop-hyph.jar
 fop-pdf-images-1.2-res.jar
 fop-pdf-images-1.2.jar
 fop.jar
 PDFBox-0.7.4-dev.jar
 
 I am using fop-0.95 (Release).
 What am I doing wrong?
 



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Adding support for PDF images to FOP

2008-08-07 Thread John Brown


Jeremias Maerki wrote:


 I have verified that version 1.2 still works with FOP 0.95.

 If you get the message No ImagePreloader found for *.pdf it means that
 the plug-in isn't in the classpath. Please note that on Windows, it's
 not enough to put some JARs in FOP's lib directory if you use fop.bat.
 You'll have to edit this file and add the two JARs
 (fop-pdf-images-1.2.jar and PDFBox-0.7.4-dev.jar). fop.cmd is a little
 smarter as is the shell script on Unixes.


That fixed it. I really should have tried that. Anyway, thanks.

By the way, there is no fop.cmd in fop-0.95-bin.zip; only fop and fop.bat.



_
Reveal your inner athlete and share it with friends on Windows Live.
http://revealyourinnerathlete.windowslive.com?locale=en-usocid=TXT_TAGLM_WLYIA_whichathlete_us
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]