xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: Producing PDF from subset of IF file <page>s
Date Wed, 14 Sep 2011 15:00:28 GMT
Hi Melanie,

IF <page> and <page-segment> elements are generally self-contained. I
can imagine that there could be problems with document navigation tags,
so they might need to be filtered, too. Did you get any specific error
message? The X/Y coordinates are indendent between pages. You can filter
them using XSLT or by implementing the IFDocumentHandler interface.

Take a look at the following classes for inspiration:
- org.apache.fop.render.intermediate.util.IFConcatenator
- org.apache.fop.render.intermediate.util.IFDocumentHandlerProxy
- examples/embedding/java/embedding/intermediate/ExampleConcat.java

There is currently no convenience class (like the IFConcatenator) that
demonstrates page filtering, but it should really be easy to do. So I'm
a little surprised that removing <page> elements didn't work for you. It
might help if you posted a file that demonstrates your problems.

On 14.09.2011 16:30:20 jeanyo wrote:
> Hi,
> I'm new to FOP.  I could not find any discussion related to my question.
> My goal is to produce a PDF that contains only a subset of pages from a FOP
> intermediate (IF) file.  I thought I could manipulate the IF file, deleting
> some of the <page-sequence> and <page> elements, but this does not work.
> suspect that it fails because the IF file contains X-Y coordinates.  
> Is there an obvious way to create a PDF using only a subset of <page>s from
> an IF file?  Is there a simple option to "print" only certain pages?
> My colleague suggested that there is a way to read the IF file into a set of
> FOP objects.  He suggested that I may be able to selectively append these
> objects to generate the PDF.  Does anyone know the mechanism (i.e., classes)
> to accomplish this?  
> Oh, and in my case, starting off with less content (i.e., in the XSL-FO) is
> not an option.  I have a very specific need to eliminate just certain pages
> and I have no way of determining which pages to remove/exclude until the IF
> file is generated.
> Thanks!!
> -Melanie
> Operating System: Windows XP
> FOP Version: 1.0
> JDK: 1.5
> -- 
> View this message in context: http://old.nabble.com/Producing-PDF-from-subset-of-IF-file-%3Cpage%3Es-tp32463958p32463958.html
> Sent from the FOP - Users mailing list archive at Nabble.com.

Jeremias Maerki

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

View raw message