Re: Help with TIFF output

2010-04-08 Thread Ryan Connolly
Ok, I got some sleep and figured out how to override the default renderer to
use a different resolution and scale. This still results in a larger file
size than I would think possible. Generating a PDF results in a file size of
18k while the TIFF file is at 861k. I've seen docs on the FOP site
mentioning needing JAI to do group 4 compression but I cannot figure out how
to get this working in a maven build. Any help would be greatly appreciated.
Thanks, -Ryan


"Unable to create ImageInputStream for local file" for graphic

2010-04-08 Thread Arian
So I got my fop thing to work on one server. on another server, it
runs gij (GNU libgcj 1.5), and not the sun version of jvm... i read
that to get it to work with fop/svg, i needed to add -Dheadless=true
(didnt work), or other options...
Adding the PJAToolkit jars as recommended by the FOP website helped
get passed that major error ... But my images are not being found when
creating pdf: I get an error:

SEVERE: Unable to create ImageInputStream for local file
/home/test/src/apache-tomcat-5.5.12/webapps/theApp/WEB-INF/images/common_old/footer.png
from system identifier
'file:/home/test/src/apache-tomcat-5.5.12/webapps/theApp/WEB-INF/images/common_old/footer.png'

Im running trunk fop on command line via a bash script:

CLASS_PATH=lib/activation-1.1.jar:lib/asm-3.1.jar:lib/asm-commons-3.1.jar:lib/asm-util-3.1.jar:lib/avalon-framework-4.2.0.jar:lib/axiom-api-1.2.7.jar:lib/axiom-dom-1.2.7.jar:lib/axiom-impl-1.2.7.jar:lib/axis2-adb-codegen-1.4.1.jar:lib/axis2-codegen-1.4.1.jar:lib/axis2-corba-1.4.1.jar:lib/axis2-fastinfoset-1.4.1.jar:lib/axis2-java2wsdl-1.4.1.jar:lib/axis2-jaxbri-1.4.1.jar:lib/axis2-jaxws-1.4.1.jar:lib/axis2-jaxws-api-1.4.1.jar:lib/axis2-jibx-1.4.1.jar:lib/axis2-json-1.4.1.jar:lib/axis2-jws-api-1.4.1.jar:lib/axis2-kernel-1.4.1.jar:lib/axis2-metadata-1.4.1.jar:lib/backport-util-concurrent-3.1.jar:lib/batik-all-1.7.jar:lib/classes12.jar:lib/commons-io-1.3.1.jar:lib/commons-logging-1.0.4.jar:lib/commons-validator.jar:lib/fop.jar:lib/jaxen-1.1.1.jar:lib/jdom.jar:lib/jimi.jar:lib/mail-1.4.jar:lib/pmd-4.2.5.jar:lib/qdox-1.6.3.jar:lib/retroweaver-2.0.6-patched.jar:lib/retroweaver-rt-2.0.6-patched.jar:lib/serializer-2.7.0.jar:lib/servlet-2.2.jar:lib/struts.jar:lib/weblogic.jar:lib/xalan-2.7.0.jar:lib/xercesImpl-2.0.1.jar:lib/xercesImpl-2.7.1.jar:lib/xml-apis-1.3.04.jar:lib/xml-apis-ext-1.3.04.jar:lib/xmlgraphics-commons-1.4svn.jar:lib/xmlunit-1.2.jar:classes/:lib/pjatoolkit/pja.jar:lib/pjatoolkit/pjatools.jar

#Still need headless=true after adding PJA, or it will not run
java -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.headless=true
-classpath $CLASS_PATH com.ourcompany.foo.bar.ReportGenerator

Any idea what doing wrong?,
This same project works on a similar server/setup... but has Sun
'IcedTea' 1.6 jvm installed and the CLASS_PATH on 1.6 i keep simple
with lib/* since that is allowed in java 1.6.

Thanks,
Ari

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



RE: javax.xml.transform.TransformerException: The entity name must immediately follow the '&' in the entity reference.

2010-04-08 Thread Amick, Eric
> 223c: &223C;

Presumably you meant ∼

Eric Amick   Systems Engineer II
Legislative Computer Systems


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



Maven artifact for OFFO (FOP hyphenation files)

2010-04-08 Thread Simon Pepping
Cedric Pronzato created a maven artifact for OFFO (FOP hyphenation
files). fop-hyph is now synchronized with maven public central
repository using:

net.sf.offo
fop-hyph
1.2

Regards, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.eu

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



Re: javax.xml.transform.TransformerException: The entity name must immediately follow the '&' in the entity reference.

2010-04-08 Thread Mathieu Malaterre
On Thu, Apr 8, 2010 at 7:00 PM, Mathieu Malaterre
 wrote:
> Hi there,
>
>  I do not understand what I am doing wrong in the following xml file:
>
>
> 
>  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
> 
>  
>  
>  bla
> 
> 
> 223c: &223C;

Nevermind, I found out my error, it should be instead: ∼

Sorry for the noise,
-- 
Mathieu

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



javax.xml.transform.TransformerException: The entity name must immediately follow the '&' in the entity reference.

2010-04-08 Thread Mathieu Malaterre
Hi there,

  I do not understand what I am doing wrong in the following xml file:



http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>

  
  
  bla


223c: &223C;




$ fop -xsl /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
-xml hex.xml -pdf t.pdf
/home/mathieu/.foprc: line 1: find_jars: command not found
Apr 8, 2010 7:07:22 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException: The entity name must
immediately follow the '&' in the entity reference.
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
at org.apache.fop.cli.Main.startFOP(Main.java:174)
at org.apache.fop.cli.Main.main(Main.java:205)

-

; SystemID: file:/home/mathieu/Projects/Documentation/bin/hex.xml;
Line#: 9; Column#: 8
javax.xml.transform.TransformerException: The entity name must
immediately follow the '&' in the entity reference.
at 
org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerImpl.java:780)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:756)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
at org.apache.fop.cli.Main.startFOP(Main.java:174)
at org.apache.fop.cli.Main.main(Main.java:205)

Thanks for comments,
-- 
Mathieu

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



Re: Change logging level?

2010-04-08 Thread Phillip Oldham

Yes, log4j is in my classpath, but there's no difference.

Would anyone happen to have a working log4j.properties/.xml file which 
changes the logging level they could email/share?


On 01/04/2010 15:51, Peter Hancock wrote:

Hi Philip,

Do you have the log4j jar in the FOP/your app classpath?  It does not 
come shipped with FOP.


I hope that helps,

Pete

On Thu, Apr 1, 2010 at 2:40 PM, Phillip Oldham > wrote:


How can I change the logging level to only fatal errors? I've
tried adding an log4j.properties/.xml file to the classpath but it
was unsuccessful.
-- 


*Phillip B Oldham*
ActivityHQ
ph...@activityhq.com 



*Policies*

This e-mail and its attachments are intended for the above named
recipient(s) only and may be confidential. If they have come to
you in error, please reply to this e-mail and highlight the error.
No action should be taken regarding content, nor must you copy or
show them to anyone.

This e-mail has been created in the knowledge that Internet e-mail
is not a 100% secure communications medium, and we have taken
steps to ensure that this e-mail and attachments are free from any
virus. We must advise that in keeping with good computing practice
the recipient should ensure they are completely virus free, and
that you understand and observe the lack of security when
e-mailing us.







--

*Phillip B Oldham*
ActivityHQ
ph...@activityhq.com 



*Policies*

This e-mail and its attachments are intended for the above named 
recipient(s) only and may be confidential. If they have come to you in 
error, please reply to this e-mail and highlight the error. No action 
should be taken regarding content, nor must you copy or show them to anyone.


This e-mail has been created in the knowledge that Internet e-mail is 
not a 100% secure communications medium, and we have taken steps to 
ensure that this e-mail and attachments are free from any virus. We must 
advise that in keeping with good computing practice the recipient should 
ensure they are completely virus free, and that you understand and 
observe the lack of security when e-mailing us.





AW: Alternatives to "float" graphics?

2010-04-08 Thread Georg Datterl
Hi Brad,

I'm not sure I understand " causes nested sections to get "indented" one 
column-width per level" but it sounds like a margin property is inherited to 
lower levels. Find that property and reset it to 0 on lower levels. Maybe that 
already solves your problem.

Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:www.irs-nbg.de
Willmy PrintMedia GmbH:www.willmy.de
Willmy Consult & Content GmbH: www.willmycc.de

-Ursprüngliche Nachricht-
Von: Brad Smith [mailto:usernamenum...@gmail.com]
Gesendet: Mittwoch, 7. April 2010 21:33
An: fop-users@xmlgraphics.apache.org
Betreff: Alternatives to "float" graphics?

I would like to alter my docbook stylesheets so that sections with a
given role are designated by a margin icon. This seems like a place
where figure floats
(http://www.sagehill.net/docbookxsl/FigureFloats.html) would be
appropriate, but apparently fop does not support these. So, I am
looking at other ways of achieving a similar effect. The closest I've
come is changing the section template to create a two-column table,
with the icon on in col one and the content in col2, but this causes
nested sections to get "indented" one column-width per level, which I
don't want, because it creates nested tables. What I want is a single
table wherein each section and sub-section is represented by a row
with two columns: an icon (if applicable) in the left col, and the
content in the right. But so far I'm having trouble figuring out how
to do that in xslt. Before I hurt my brain too badly trying to figure
out a way to implement this, I wanted to check here and see if anyone
had other suggestions for how to get margin icons based on arbitrary
section roles.

Thanks,
--Brad

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


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