Re: fop called in xslt extension is not finding fonts

2011-06-03 Thread Rob Sargent
Never mind. My first cut at putting the interface into the getMethod call was broken. Obviously reflection requires the interface explicitly, not the implementation. On 06/03/2011 11:17 AM, Rob Sargent wrote: I'm having trouble with XMLRender.mimicRenderer(Render) using fop-1.0 Unfortunat

Re: Hair ripping time

2011-06-03 Thread Andreas L. Delmelle
On 03 Jun 2011, at 17:27, Theresa Jayne Forster wrote: Hi Theresa > This makes no sense its crashing out with no error on this line > Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out); > And it jumps straight to > System.out.print("*"); >} catch (TransformerCon

Re: Problems with FOP and image

2011-06-03 Thread Rob Sargent
Very odd. I'm having no problems getting images into pdfs using fop-1.0. On 06/03/2011 11:04 AM, Oscar.Flores wrote: aaa hey thanks for the help the other day, i resolve the problem changing the version of FOP for the 0.95beta instead of the 1.0, it works now it prints the image and its good, t

Re: fop called in xslt extension is not finding fonts

2011-06-03 Thread Rob Sargent
I'm having trouble with XMLRender.mimicRenderer(Render) using fop-1.0 Unfortunately I have to do this all via reflection: Here's the broken part: Method getRendererFactory = userAgent.getClass().getMethod("getRendererFactory", null); Object rendererFactory = getRendererFactory.invoke(u

Re: Hair ripping time

2011-06-03 Thread Rob Sargent
That print statement will always be called since it's in the finally block. On 06/03/2011 09:27 AM, Theresa Jayne Forster wrote: This makes no sense its crashing out with no error on this line Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out); And it jumps straight to

Re: Problems with FOP and image

2011-06-03 Thread Oscar.Flores
aaa hey thanks for the help the other day, i resolve the problem changing the version of FOP for the 0.95beta instead of the 1.0, it works now it prints the image and its good, thanks and we are in touch if anything else fails jejeje Rob Sargent-4 wrote: > > Nothing in the log from the transf

Re: FOP EMPTY PDF

2011-06-03 Thread Rob Sargent
Looking at your external-graphics calls, some of the sizes seem strange to me. 20pt is a rather small space for a logo? But if all the files names are correct, you might try using content-width="scale-to-fit". On 06/03/2011 07:53 AM, Oscar.Flores wrote: Hi there Rob yeah it actually work

Re: Problems with FOP and image

2011-06-03 Thread Rob Sargent
Nothing in the log from the transformer? On 06/03/2011 09:47 AM, Oscar.Flores wrote: hi there i have another problem i hope you can help me the pdf that i create with foe has no image, it dont show any of them, the xsl seems to be rigth i tested with EditX and the pdf show me the image, what can

RE: Hair ripping time

2011-06-03 Thread Theresa Jayne Forster
Sorry I think we have moved on from that – I was testing it in a slightly different way as the example method wasn’t working, The problem is when I do the newFop command its exiting from the system completely, the standalone app works fine with the same config etc. The spring app under t

Problems with FOP and image

2011-06-03 Thread Oscar.Flores
hi there i have another problem i hope you can help me the pdf that i create with foe has no image, it dont show any of them, the xsl seems to be rigth i tested with EditX and the pdf show me the image, what can it be, i have xmlgraphics-commons-1.5svn, fop 1.0, fop-pdf-images 2.0.1 Snapshot for t

Re: Hair ripping time

2011-06-03 Thread Glenn Adams
XSLT != XSL-FO Completely different languages. G. On Fri, Jun 3, 2011 at 8:30 AM, Theresa Jayne Forster wrote: > Ok I cannot see what is wrong here, > > A test app does this > > > > Fop fop = > fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out); > > TransformerFact

RE: Hair ripping time

2011-06-03 Thread Theresa Jayne Forster
This makes no sense its crashing out with no error on this line Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out); And it jumps straight to System.out.print("*"); The code I am using is as follows public File generatePDFFromXml(File xslFile,File xmlFile) { FopFa

RE: FOP with embedded font running in Oracle 10g

2011-06-03 Thread Eric Douglas
If you're using embedded code doing your own transform with all custom fonts you can use FOP's FontLoader classes to manually load your own fonts into the renderer. It's a bit more complicated but it should run faster than trying to find the font on the path. -Original Message- From:

RE: Hair ripping time

2011-06-03 Thread Eric Douglas
1. You can and should reuse the TransformerFactory. 2. FO is not a stylesheet. The FO is the input to the transform, where you were putting the XML not the XSL. Leave out the XSL part on the FO one. From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] S

RE: Hair ripping time

2011-06-03 Thread Theresa Jayne Forster
Tried that same result, it jumps immediately out of the try catch into the finally Kindest regards Theresa Forster Senior Software Developer Seems like you need: Transformer transformer = factory.newTransformer(); transformer.transform(new StreamSource(inputFO)); HTH! Regards Andreas -

Re: Hair ripping time

2011-06-03 Thread Andreas L. Delmelle
On 03 Jun 2011, at 16:30, Theresa Jayne Forster wrote: Hi Theresa > Ok I cannot see what is wrong here,` > The app I am working on does this > > Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out); > TransformerFactory factory = TransformerFactory.newInsta

Re: Hair ripping time

2011-06-03 Thread John Burgess
The xslt is used to transform from your source format to the FO format used by FOP. If you already have a formatting object file, you can pass it to fop immediately without transformation. xsl can be a bit tricky to get started on, some like O'reilly's Java and XSLT book is probably a good pla

Hair ripping time

2011-06-03 Thread Theresa Jayne Forster
Ok I cannot see what is wrong here, A test app does this Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out); TransformerFactory factory = TransformerFactory.newInstance(); Source xslt = new StreamSource(new File("C:/sample.xsl"));

Re: FOP EMPTY PDF

2011-06-03 Thread Oscar.Flores
Hi there Rob yeah it actually work Thanks the only thing that left its the images that has the have the pdf but it great jejeje, do you know what can i do about that?? Rob Sargent-4 wrote: > > Not at all certain if this is your problem, but what about changing > Source src = new Strea

RE: Problems since upgrading,

2011-06-03 Thread Eric Douglas
I'm not sure what you're trying to do here but XSL is not used by FOP. For convenience, FOP can accept FO input or XML and XSL input but it only uses the FO. I'm using embedded code to transform XML with an XSL, and for debugging I wanted to see the FO, so I split out the FOP and call the transform

Re: Problems since upgrading,

2011-06-03 Thread Glenn Adams
keep in mind that you do not have to use FOP to perform the XSL to FO transformation; you can use other tools outside of FOP to perform the transformation, and then feed the resultant XSL-FO file to FOP; On Fri, Jun 3, 2011 at 7:04 AM, Theresa Jayne Forster wrote: > On that note, is it possible

RE: Problems since upgrading,

2011-06-03 Thread Theresa Jayne Forster
On that note, is it possible to chain XSL files on the fop input, or even make it double process, Ie multi pass processing to allow for calculations on page number etc? Kindest regards Theresa Forster Senior Software Developer

Re: Arabic Font in FOP

2011-06-03 Thread Glenn Adams
I would recommend using the following because it is the most up to date version of the Complex Scripts work (the SVN version that Peter references below is somewhat behind in terms of bug fixes, etc): http://github.com/skynavga/fop See branch i18n.arabic. Also see documentation at http://skynav.t

Re: Problems since upgrading,

2011-06-03 Thread Glenn Adams
The spec for XSL-FO is the spec. It is up to you to translate from your XML design language into XSL-FO. G. On Fri, Jun 3, 2011 at 4:10 AM, Theresa Jayne Forster wrote: > The problem is that the Designers specify it must be HEAVY not BOLD and > they have no understanding of the numeric weights.

Re: FOP with embedded font running in Oracle 10g

2011-06-03 Thread Michael Rubin
Ooh didn't know about that. Shows I'm still very new to FOP and learning all the while... This sounds much better than my idea to programmatically extract the font to a temporary location which may be disregarded... Thanks. -Mike On 03/06/11 11:33, Theresa Jayne Forster wrote: Are you just

RE: FOP with embedded font running in Oracle 10g

2011-06-03 Thread Theresa Jayne Forster
Are you just saying your Java App has to be able to access the font to create the PDF based on data from the database or are you saying you have to store the ttf file inside the database? The former, just use in the fopconfig. With 1.0 it searches the classpath (which includes your application J

Re: Problems since upgrading,

2011-06-03 Thread Michael Rubin
If you are generating your fo file via a transform, maybe you could add to it to convert light, heavy and black to appropriate numeric values? Then the fo file would contain all legal values while maintaining the source's values as required by the designers and avoids making changes to FOP to s

Re: FOP with embedded font running in Oracle 10g

2011-06-03 Thread Michael Rubin
One thought that comes to mind off the cuff: Since a jar file is a zip file, and java can extract files from a zip, could your java class extract the font to a temporary location on the file system, then update your xconf file to point to the font, then run FOP using the xconf file, and then a

FOP with embedded font running in Oracle 10g

2011-06-03 Thread Flipz-007
Dear all, I need to create Java application which will generate PDF report from given data. This application needs to be run in Oracle DB 10g environment as a stored procedure. The main problem is that I don't know how to configure FOP to use my specific font which is embedded in application j

RE: Problems since upgrading,

2011-06-03 Thread Theresa Jayne Forster
The problem is that the Designers specify it must be HEAVY not BOLD and they have no understanding of the numeric weights. The designers use light, normal, bold, heavy and black The current FOP only supports normal and bold. I guess I will need to make sure that the fop I use is modde

Re: Arabic Font in FOP

2011-06-03 Thread Peter Hancock
Hi, You are going to have to checkout the branch http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ComplexScripts/ using subversion: info here http://xmlgraphics.apache.org/fop/download.html Once you have the codebase you have to build it: info here http://xmlgraphics.apache.org/