Is it possible to merger pdf's using xsl-fo alone?

2014-07-03 Thread Vijaya Raghavan.R
Is it possible to merge pdf's using xsl-fo alone...?

Hi,

Now we are using Itext for merging pdf's. 
Is there any solution to merge pdf's without using itext..

Note: Is it possible to merge pdf's in xsl fo ? If yes, guide me.

Thanks in advance





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Is-it-possible-to-merger-pdf-s-using-xsl-fo-alone-tp40856.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: OutOfMemoryError: Java heap space

2014-07-03 Thread chandone
Hello,

This is an old thread but this problem is more newsworthy than ever. I'm
running FOP 1.1 (trunk didn't help either), my XSL-FO is only 500 KB large,
and /*only text!*/, I allocated 7(!)GB to my JVM on a 64 bits Windows 7 and
despite all that, FOP, after reeling in a long time, throws a
java.lang.OutOfMemoryError: Java heap space exception when generating a
PDF.
Oh, and I just can't split my XSL-FO into several page-sequences, it's a
one-block text that doesn't allow page breaks. There aren't any page
references either.
So that's it. No workaround works and I'm stuck being unable to generate a
all-text PDF from a 500 KB XSL-FO with 7GB allocated memory.
Here is the stack, for what it's worth:

at
org.apache.fop.layoutmgr.BreakingAlgorithm.createNode(BreakingAlgorithm.java:712)
at
org.apache.fop.layoutmgr.BreakingAlgorithm.addBreaks(BreakingAlgorithm.java:1151)
at
org.apache.fop.layoutmgr.BreakingAlgorithm.considerLegalBreak(BreakingAlgorithm.java:965)
at
org.apache.fop.layoutmgr.BreakingAlgorithm.handlePenaltyAt(BreakingAlgorithm.java:818)
at
org.apache.fop.layoutmgr.BreakingAlgorithm.handleElementAt(BreakingAlgorithm.java:754)
at
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:553)
at
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:503)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:895)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:815)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:635)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:497)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:238)
at
org.apache.fop.layoutmgr.list.ListItemLayoutManager.getNextKnuthElements(ListItemLayoutManager.java:221)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:497)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:238)
at
org.apache.fop.layoutmgr.list.ListBlockLayoutManager.getNextKnuthElements(ListBlockLayoutManager.java:105)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:497)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:238)
at
org.apache.fop.layoutmgr.list.ListItemLayoutManager.getNextKnuthElements(ListItemLayoutManager.java:221)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:497)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)

Any help would be highly appreciated.
Cheers,

Erwann



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/OutOfMemoryError-Java-heap-space-tp4271p40861.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: Is it possible to merger pdf's using xsl-fo alone?

2014-07-03 Thread Glenn Adams
No.


On Thu, Jul 3, 2014 at 6:34 AM, Vijaya Raghavan.R 
vijayaraghava...@solartis.net wrote:

 Is it possible to merge pdf's using xsl-fo alone...?

 Hi,

 Now we are using Itext for merging pdf's.
 Is there any solution to merge pdf's without using itext..

 Note: Is it possible to merge pdf's in xsl fo ? If yes, guide me.

 Thanks in advance





 --
 View this message in context:
 http://apache-fop.1065347.n5.nabble.com/Is-it-possible-to-merger-pdf-s-using-xsl-fo-alone-tp40856.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: Is it possible to merger pdf's using xsl-fo alone?

2014-07-03 Thread Maruan Sahyoun
is there a specific reason for not using iText? You might also take a look at 
Apache PDFBox for merging PDFs.

BR
Maruan

Am 03.07.2014 um 14:34 schrieb Vijaya Raghavan.R 
vijayaraghava...@solartis.net:

 Is it possible to merge pdf's using xsl-fo alone...?
 
 Hi,
 
 Now we are using Itext for merging pdf's. 
 Is there any solution to merge pdf's without using itext..
 
 Note: Is it possible to merge pdf's in xsl fo ? If yes, guide me.
 
 Thanks in advance
 
 
 
 
 
 --
 View this message in context: 
 http://apache-fop.1065347.n5.nabble.com/Is-it-possible-to-merger-pdf-s-using-xsl-fo-alone-tp40856.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