Re: Invalid CSS document

2012-01-30 Thread J.Pietschmann
Am 30.01.2012 22:47, schrieb Li, Jing:
> Dear All,
> 
> I was working on a report using FOP which convert a lot of JFreeCharts to svg 
> and render them in PDF.
> 
> I got it all working in my intellj development environment.  In the end, I 
> bundle the whole project in one jar using http://one-jar.sourceforge.net/.
> 
> But when I run it in one jar, I got the following messages:
> 
> Error: SVG graphic could not be built. Reason: org.w3c.dom.DOMException: 
> :
> Invalid CSS document.
> JAR entry 
> lib/batik-svg-dom-1.7.jar!/org/apache/batik/dom/svg/resources/UserAgentStyleSheet.css
>  not found in C:\Users\lij40\AppData\Local\Temp\temp0.jar

Just for completeness, check whether
 C:\Users\lij40\AppData\Local\Temp\temp0.jar
contains
 lib/batik-svg-dom-1.7.jar
Even if it's there, the URL resolver probably can't resolve recursive
jar URLs, so you'd either hack up your very own resolver which will
do this, or unpack the onejar after deployment.

J.Pietschmann

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Invalid CSS document

2012-01-30 Thread Rob Sargent
Get your development to work at the command line, exclusive of idea.
You're probably getting a jar from intellij when you run there and it's
missing when you don't run from the debugger.

IDE's are not the place from which to deploy.



On 01/30/2012 02:47 PM, Li, Jing wrote:
>
> Dear All,
>
>  
>
> I was working on a report using FOP which convert a lot of JFreeCharts
> to svg and render them in PDF.
>
>  
>
> I got it all working in my intellj development environment.  In the
> end, I bundle the whole project in one jar using
> http://one-jar.sourceforge.net/.
>
>  
>
> But when I run it in one jar, I got the following messages:
>
>  
>
> Error: SVG graphic could not be built. Reason:
> org.w3c.dom.DOMException: :
>
> Invalid CSS document.
>
> JAR entry
> lib/batik-svg-dom-1.7.jar!/org/apache/batik/dom/svg/resources/UserAgentStyleSheet.css
> not found in C:\Users\lij40\AppData\Local\Temp\temp0.jar
>
>  
>
> And of course, the PDF is missing all the nice charts because of it.
>
>  
>
> Your suggestions and comment to how to fix it will be highly appreciated.
>
>  
>
> Thanks
>
> Jing
>


Intermediate format: Are there examples for n-up and rotation?

2012-01-30 Thread Michael Meyer
Hi

I need to create a PDF file that meets the following requirements:

- Every second page needs to be rotated by 180 degrees
- Each A4 page needs to contain four pages

I found the documentation about the intermediate format [1]. This
seems to be the perfect solution for my problem: "Modifications
include ... imposition (n-up, rotation, scaling etc.) ". So I
guess a solution for my problem would be the following:

- Create xsl-fo template for ordinary PDF file (no rotation, no n-up)
- Render to Intermediate format
  - Rotate every second page
  - Add four pages to each page (4-up)
- Render the actual PDF

The example in ExampleConcat.java uses an IFConcatenator. I didn't
find any examples for n-up and rotation (neither in the sources nor on
the web).

Has anybody got an example for n-up and rotation manipulations of the
Intermediate format?

Cheers michael

[1] http://xmlgraphics.apache.org/fop/1.0/intermediate.html

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org