Break PDF into 2

2008-11-21 Thread Raphael Parree
Hi, Is there a way using FOP to break a PDF into two after x number of pages...using XSL 2.0? getting the page number? The problem is that we need to break a book after 600 pages into two books with the book number on the front cover. The other problem is that we would need to before hand how

AW: Break PDF into 2

2008-11-21 Thread Georg Datterl
Hi Raphael, Is there a way using FOP to break a PDF into two after x number of pages...using XSL 2.0? getting the page number? The problem is that we need to break a book after 600 pages into two books with the book number on the front cover. The other problem is that we would need to

Re: Break PDF into 2

2008-11-21 Thread Raphael Parree
Georg, Thanks for this i will experiment with your suggestion...looks like a way forward. Tx(!) Raphael On Fri, Nov 21, 2008 at 11:08 AM, Georg Datterl [EMAIL PROTECTED]wrote: Hi Raphael, Is there a way using FOP to break a PDF into two after x number of pages...using XSL 2.0? getting

SVG1.2 and flowRoot in PDF

2008-11-21 Thread Sebastien
Hi, I would like to use the flowing text abilities of SVG1.2 with FOP but i can't get FOP to switch to SVG1.2 mode and i get this error: GRAVE: Exception org.w3c.dom.DOMException: The current document is unable to create an element of the requested type (namespace: http://www.w3.org/2000/svg,

Re: SVG1.2 and flowRoot in PDF

2008-11-21 Thread Jeremias Maerki
I forgot: you also need to enclose the flowPara with a flowDiv element. I believe the example in the SVG 1.2 working draft is actually wrong (it doesn't conform to the schema given further above in the document). On 21.11.2008 16:16:30 Jeremias Maerki wrote: I have a pretty good idea why it

Re: SVG1.2 and flowRoot in PDF

2008-11-21 Thread Sebastien
On Fri, Nov 21, 2008 at 4:16 PM, Jeremias Maerki [EMAIL PROTECTED]wrote: I have a pretty good idea why it doesn't work. For i-f-o the basic SVG 1.1 DOMImplementation is currently hard-coded but it actually needs to be selected based on the version attribute like for the e-g variant. I'm

Re: SVG1.2 and flowRoot in PDF

2008-11-21 Thread Sebastien
On Fri, Nov 21, 2008 at 4:37 PM, Jeremias Maerki [EMAIL PROTECTED]wrote: I forgot: you also need to enclose the flowPara with a flowDiv element. I believe the example in the SVG 1.2 working draft is actually wrong (it doesn't conform to the schema given further above in the document). Yes,

Re: SVG1.2 and flowRoot in PDF

2008-11-21 Thread Jeremias Maerki
Ok, you can now use SVG 1.2 in FOP Trunk: http://svn.apache.org/viewvc?rev=719616view=rev On 21.11.2008 16:43:27 Sebastien wrote: On Fri, Nov 21, 2008 at 4:37 PM, Jeremias Maerki [EMAIL PROTECTED]wrote: I forgot: you also need to enclose the flowPara with a flowDiv element. I believe the

Re: SVG1.2 and flowRoot in PDF

2008-11-21 Thread Jeremias Maerki
Actually, it doesn't seem to work in all cases. I have to revise my fix. My current solution causes a ClastCastException inside Batik. On 21.11.2008 17:10:29 Jeremias Maerki wrote: Ok, you can now use SVG 1.2 in FOP Trunk: http://svn.apache.org/viewvc?rev=719616view=rev On 21.11.2008

Re: SVG1.2 and flowRoot in PDF

2008-11-21 Thread Jeremias Maerki
Found a solution that works: http://svn.apache.org/viewvc?rev=719646view=rev On 21.11.2008 17:47:22 Jeremias Maerki wrote: Actually, it doesn't seem to work in all cases. I have to revise my fix. My current solution causes a ClastCastException inside Batik. On 21.11.2008 17:10:29 Jeremias

Re: SVG1.2 and flowRoot in PDF

2008-11-21 Thread Sebastien
It works just the way i want, you rock ! Thanks a lot, again ;) P.S: visibility=hidden does the trick indeed On Fri, Nov 21, 2008 at 6:26 PM, Jeremias Maerki [EMAIL PROTECTED]wrote: Found a solution that works: http://svn.apache.org/viewvc?rev=719646view=rev On 21.11.2008 17:47:22 Jeremias

Re: Break PDF into 2

2008-11-21 Thread Raphael Parree
Sean , Thanks i will look into that as well, as it might allow me to make a cleaner cut... tx., On Fri, Nov 21, 2008 at 10:14 PM, Griffin,Sean [EMAIL PROTECTED] wrote: Another option may be to use iText to split the entire PDF into multiple PDFs and then insert your own page at the split.