Can not create large PDF using XSL FO

2009-07-27 Thread Passero

I have this XML that is generated on the fly that i use to create a PDF. Most
of the time it works fine. The generation of the XML is no problem, even
when it's big it works fine. 
Now i have this XML that is over 4MB and when i try to generate a PDF from
it i always get the error i show below. 

I've done some research on the Page-sequence error and it seems that it is a
bad error handling and the real cause is somewere swallowed by SAX or so. I
also read in the FAQ that i should add my own errorListener to the
transformer so i can get more info. I have done this but i still get the
same errormessages. I don't get any more info. 

When i brake the large XML in peaces and let the engine generate sperate PDF
files, everything is working fine. I have tested this on both embedded use.
So a simple .java that transforms the XML using XSL into PDF and with a
servlet on our application server. Both the same error on large files... 

I also notice that in the output that the FOP logging sometimes prints out
the pagenumber he is creating. When i notice that he is at +/- 300 he
suddenly jumps back to 1 and then  the error occurs. I don't know if my
interpretation is correct for this but i just want to mention a lot as
possible because i don't see any solution myself... 


javax.xml.transform.TransformerException: org.xml.sax.SAXException:
Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. root
(http://www.w3.org/1999/XSL/Format)

at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:725)

at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)

at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160)

at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213)

at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668)

at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129)

at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1108)

at be.contribute.client.Test.main(Test.java:85)

Caused by: org.xml.sax.SAXException: Mismatch: page-sequence
(http://www.w3.org/1999/XSL/Format) vs. root
(http://www.w3.org/1999/XSL/Format)

at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:342)

at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169)

at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:309)

at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:716)

... 7 more

-

org.xml.sax.SAXException: Mismatch: page-sequence
(http://www.w3.org/1999/XSL/Format) vs. root
(http://www.w3.org/1999/XSL/Format)

at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:342)

at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169)

at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:309)

at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:716)

at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)

at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160)

at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213)

at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668)

at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129)

at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1108)

at be.contribute.client.Test.main(Test.java:85)

-- 
View this message in context: 
http://www.nabble.com/Can-not-create-large-PDF-using-XSL-FO-tp24679401p24679401.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Can not create large PDF using XSL FO

2009-07-27 Thread Chris Bowditch

Passero wrote:

I have this XML that is generated on the fly that i use to create a PDF. Most
of the time it works fine. The generation of the XML is no problem, even
when it's big it works fine. 
Now i have this XML that is over 4MB and when i try to generate a PDF from
it i always get the error i show below. 


Hi,

can you try feeding the XSL-FO directly to FOP? In other words, instead 
of feeding XML+XSL Files to FOP, pass only the XSL-FO File. To generate 
the XSL-FO File, use a XSLT processor like Xalan on the XML+XSL Files. 
When feeding the FO File directly to FOP, the underlying error message 
should become apparent.




Thanks,

Chris



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



Re: Can not create large PDF using XSL FO

2009-07-27 Thread Passero

THanks. I didn't realy know that it took 2 steps to create. I read the docs
and figured out how to create a seperate .fo file: 
C:\Projects\PDF\fop-0.95>java org.apache.xalan.xslt.Process -IN xml.xml -XSL
xsl.xsl -OUT xslfo.fo

Than i created from that .fo the pdf and i got an outOfMemoryIndex. I
increased the memory using the Xmx argument and it works like a charm! I had
to increase the memory to 320m in order to let it work... A bit much but it
works. Luckely our application server has lots of memory :) 


Hi,

can you try feeding the XSL-FO directly to FOP? In other words, instead 
of feeding XML+XSL Files to FOP, pass only the XSL-FO File. To generate 
the XSL-FO File, use a XSLT processor like Xalan on the XML+XSL Files. 
When feeding the FO File directly to FOP, the underlying error message 
should become apparent.



Thanks,

Chris



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




-- 
View this message in context: 
http://www.nabble.com/Can-not-create-large-PDF-using-XSL-FO-tp24679401p24680431.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Missing text parts in pdf

2009-07-27 Thread Georg Datterl
Hi everybody,

I have a PDF (http://www.geneon.de/test/P0801260.pdf) which is included in 
another PDF, once through iText and once through FOP and PDFBox. When including 
it through FOP, I can only see part of the content. As you can see in this 
screenshot (http://www.geneon.de/test/fop.jpg), part of the text is missing in 
the right (FOP-)document which is visible in the left (iText-)Document. 

Any guess about a reason for this is highly welcome.
 
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 

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



Re: Missing text parts in pdf

2009-07-27 Thread Jeremias Maerki
Georg, I suggested you send this to the PDFBox mailing list, not here.
This list is not likely to help you with this.

On 27.07.2009 17:37:35 Georg Datterl wrote:
> Hi everybody,
> 
> I have a PDF (http://www.geneon.de/test/P0801260.pdf) which is included
> in another PDF, once through iText and once through FOP and PDFBox.
> When including it through FOP, I can only see part of the content. As you can
> see in this screenshot (http://www.geneon.de/test/fop.jpg), part of the
> text is missing in the right (FOP-)document which is visible in the
> left (iText-)Document. 
> 
> Any guess about a reason for this is highly welcome.


Jeremias Maerki


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



Re: PDF file with mixed japanese and english characters

2009-07-27 Thread Jeremias Maerki
Ashish,

please look at the following page: 
http://xmlgraphics.apache.org/fop/0.95/embedding.html#config-internal
It shows you have to load a FOP configuration file from within Java.

HTH

On 24.07.2009 21:44:47 Ashish Kulkarni wrote:
> HiCan anyone point to a tutorial or how to to create a PDF file using XML
> and XSL:FO,
> I need to run this fop process on AS400, how do i set required font on AS400
> or on unix machine
> 
> I read a few articles which talk about creating a XML file etc,
> How do i set this xml file as option, from command line i can set it as -c,
> but how do i set it programmatically?
> 
> Ashish




Jeremias Maerki


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



Fw: ApacheCon US 2009: Early bird registration + Travel assistance details and dates!

2009-07-27 Thread Simon Pepping
- Forwarded message from annou...@apachecon.com 

Subject: ApacheCon US 2009: Early bird registration + Travel assistance
details and dates!


Two announcements regarding the upcoming ApacheCon US 2009:

1) Early-bird registration ends 14 August. Sign up today!

Join us at ApacheCon US 2009, the ASF's official user conference and expo, 2-6 
November in Oakland, California. This year???s show is anticipated be the 
largest gathering of the global Apache community, bringing together Foundation 
members, code contributors, users, developers, system administrators, business 
managers, service providers, and vendors for a week of training classes, 
seminars, sharing and hacking. In celebration of the ASF's milestone 10th 
Anniversary, this year's ApacheCon features the largest program to date, 
including special content tracks, MeetUps, GetTogethers, and a number of free 
events that are open to the public, such as the Hackathon and 2-day 
BarCampApache, in appreciation of their support over the past decade. We're 
excited to return to the San Francisco Bay Area, where we held our first 
ApacheCon, and hope that you will help us celebrate the ASF's success! For 
details on ApacheCon, including registration and sponsorship
information, visit http://www.us.apachecon.com/


2) Applications for Travel Assistance for ApacheCon US 2009 Now Open!

The ASF Travel Assistance Committee (TAC) has opened applications to assist 
those seeking to attend ApacheCon US 2009, but are unable to do so for 
financial reasons. Assistance is open to all people involved in Open Source 
projects; financial support is available for flights, accommodation, 
subsistence and Conference fees, either in full or in part, depending on 
circumstances.

There are limited places available, and all applications will be scored on 
their individual merit. Hurry -- the application period is 27 July-17 August 
2009: be sure to complete the application form at http://www.apache.org/travel/ 
today!

(Applicants will be informed of their status within two weeks of application 
closing date.)

- End forwarded message -

-- 
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