Apache FOP: Layer in PDF
Hi there Is there the possibility to generate different layers in the pdf with ApacheFOP? I would like to place e.g. fo:block-containers or fo:external-graphics to different layers in pdf. If there is the possibility, could you give an example to me how to define the layers and how to place a block-container onto a special layer? Thanks, Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache FOP: XSL Parameters
Hi there again... To define the configuration for rendering I use: - ... fopFactory.setUserConfig(new File(fop.xconf)); Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out); TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(new StreamSource(Test.xsl)); ... transformer.transform(src, res); - Is there the possibiliy to define xsl-parameters in fop.xconf, which are passed to my Test.xsl? Thanks kind regards, Oliver Hirschi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache FOP: Trimbox, Bleedbox, Crop marks
Jeremias Maerki [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] On 07.04.2008 07:55:42 Oliver Hirschi wrote: Thanks for your answer at first What do you think, how much effort (in man-day) is used for initial skill adaptation training in fop-code and writing the expansion for supporting trim-, bleed-box and crop-marks? It depends how these elaborate those crop-marks should be. The necessary extension code is easy. The painting of the crop-marks should probably be as renderer-independent as possible (so it can be reused by other renderers). So it should probably be implemented using Java2D/Graphics2D (see AbstractRenderer.getGraphics2DAdapter()). But that shouldn't take too long, either. I guess with all testing and some documentation, not more than 2 or 3 days. As already mentioned I have the beginnings of a patch for bleed box which could serve as a starting point. Unfortunately, I don't have it with me here in Amsterdam this week. I talked here in our team about the implementation of the trimbox an crop-marks functionality in FOP. I think I can and will make the needed implementation for that in the future. Directly now, I have not the time to do that, so I will contact you (Jeremias) as soon as I have time to do it. Then we can talk about, if we have to meet us for the first hints and pointers you can give it to me. @Jeremias: Did you see my posting Apache FOP: Different Problems with embedding PDFs from 10.04.2008? Point 5 is solved with installing JAI Image I/O Tools, but the other??? Mainly the first point - Is it a known bug, or did I make a mistake? I wish to all of you a beautiful start of the week... Thanks regards, Oliver Hirschi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache FOP: Embedding PDF, EPS
Jeremias Maerki [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] On 07.04.2008 13:08:33 Peter Coppens wrote: For pdf, checkout http://www.jeremias-maerki.ch/development/fop/index.html Yep. ;-) I'm really confused. Due to I am using fop-0.94, I downloaded fop-pdf-images-1.0-bin.zip, extract it and copied the two jars fop-pdf-images-1.0.jar and PDFBox-0.7.4-dev.jar into my classpath and I still get the same error: -- [WARN] No ImageReader found for file:/t:/__Oli/000/2.pdf [ERROR] No ImageReader for this type of image (t:\__Oli\000\2.pdf) [ERROR] Image not available: t:\__Oli\000\2.pdf -- The relevant extract of the fo is: -- fo:block text-align=center fo:external-graphic src=t:\__Oli\000\2.pdf content-width=100.0mm content-height=96.33114mm/ /fo:block -- The 2.pdf containes only one page, but I tried also with src=t:\__Oli\000\2.pdf#page=1 without success. In the README of the downloaded fop-pdf-images-1.0-bin.zip, I saw the following information: -- * This package does not work with FOP 0.93, 0.94 or any earlier version. You will need a later release or the code from FOP Trunk. -- What about that? On the download page is written Version 1.0 (for Apache FOP 0.94)? Thanks in advanced, Oliver Hirschi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache FOP: Embedding PDF, EPS
Peter Coppens [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] For pdf, checkout http://www.jeremias-maerki.ch/development/fop/index.html I'm really confused. Due to I am using fop-0.94, I downloaded fop-pdf-images-1.0-bin.zip, extract it and copied the two jars fop-pdf-images-1.0.jar and PDFBox-0.7.4-dev.jar into my classpath and I still get the same error: -- [WARN] No ImageReader found for file:/t:/__Oli/000/2.pdf [ERROR] No ImageReader for this type of image (t:\__Oli\000\2.pdf) [ERROR] Image not available: t:\__Oli\000\2.pdf -- The relevant extract of the fo is: -- fo:block text-align=center fo:external-graphic src=t:\__Oli\000\2.pdf content-width=100.0mm content-height=96.33114mm/ /fo:block -- The 2.pdf containes only one page, but I tried also with src=t:\__Oli\000\2.pdf#page=1 without success. In the README of the downloaded fop-pdf-images-1.0-bin.zip, I saw the following information: -- * This package does not work with FOP 0.93, 0.94 or any earlier version. You will need a later release or the code from FOP Trunk. -- What about that? On the download page is written Version 1.0 (for Apache FOP 0.94)? Thanks in advanced, Oliver Hirschi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache FOP: Different Problems with embedding PDFs
Hi there I have different problems with embedding PDFs using apache fop 0.95beta and fop-pdf-images-1.2-bin. I made several tests with the reference pdf PXR-OutputTest_SPOT_20d_x3.pdf of http://www.pdfx-ready.ch/files/PXR-OutputTest_SPOT_20d.zip. I had the following problems: - 1. I tried to definie the embedding like t:\__Oli\000\PXR-OutputTest_SPOT_20d_x3.pdf#page=1 or ...#page=2 and ...#page=3, but there is always embedding the first page. Du to that, I split the pages of the reference document (for the following tests) into three documents - One document for every page. 2. The first page of the reference pdf can be embedded with fop with no errors. I don't know something about the quality of the embedded pdf at the moment, but it did not happen any errors :-) 3. The second page can not be embedded. There happens the exception (see below *1) in fop. 4. The third page can be embedded without errors, but the genarated pdf can not be opened with adobe reader (Error 110) 5. With the newely versions fop 0.95beta and fop-pdf-images-1.2-bin, I can not ebbed TIFF graphics. There happens the exception (see below *2) in fop. With fop 0.94, the same graphic could be embedded well. Is there any help for that? In the next days, I will do the same tests with Antennahouse. Are there the same problems to expect? Thanks kind regards, Oliver Hirschi *1) -- 10.04.2008 16:39:17 org.apache.fop.area.RenderPagesModel addPage SCHWERWIEGEND: Error while rendering page 1 java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.fop.pdf.PDFObject at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:102) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:81) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:115) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:102) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:81) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.transferDict(PDFBoxAdapter.java:187) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:134) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:102) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:81) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:142) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:81) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:142) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:81) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.createFormFromPDFBoxPage(PDFBoxAdapter.java:200) at org.apache.fop.render.pdf.pdfbox.PDFBoxPDFImageHandler.generateImage(PDFBoxPDFImageHandler.java:93) at org.apache.fop.render.pdf.PDFRenderer.putImage(PDFRenderer.java:1745) at org.apache.fop.render.pdf.PDFRenderer.renderImage(PDFRenderer.java:1679) at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:734) at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:557) at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:617) at org.apache.fop.render.pdf.PDFRenderer.renderInlineArea(PDFRenderer.java:1345) at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:592) at org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java:1336) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:529) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:564) at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:519) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:564) at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:519) at org.apache.fop.render.AbstractPathOrientedRenderer.renderBlockViewport(AbstractPathOrientedRenderer.java:478) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:546) at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:519) at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:424) at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:403) at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:337) at org.apache.fop.render.AbstractRenderer.renderRegionViewport
Apache FOP: Embedding PDF, EPS
Hi there again Is there a way to embed a PDF or an EPS as a graphic using apache fop 0.94? With PDF, I get the error [Fatal Error] :1:1: Content is not allowed in prolog. [WARN] No ImageReader found for file:/t:/test/2.pdf... With EPS, I get no error, but the graphic is not embedded... Thanks kind regard, Oliver Hirschi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache FOP: Trimbox, Bleedbox, Crop marks
Thanks for your answer at first What do you think, how much effort (in man-day) is used for initial skill adaptation training in fop-code and writing the expansion for supporting trim-, bleed-box and crop-marks? by-the-way: Ech glaub eigentlech chönntemer üs im lozärner dialäkt onderhalte...http://www.FamilyHirschi.ch :-) Gruss, Oliver Hirschi Jeremias Maerki [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] It's not available in FOP, yet. I have once started support for the bleed box (as an experiment) but since this is very low priority for me I haven't finished, yet. If you have some Java knowledge it would be an ideal opportunity to contribute something back to FOP. I can give hints and pointers into the code to get you started. On 02.04.2008 10:34:36 Oliver Hirschi wrote: Hi there Is there a way to define the trimbox, the bleedbox and maybe also corp marks by generating a pdf over xsl:fo using apache fop 0.94? I saw there is a way to do it with e.g. AntennaHouse, isn't it? So, do I have to change to AntennaHouse, or is there also a way to do it with apache fop? Great thanks Kind regards, Oliver Hirschi Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache FOP: Trimbox, Bleedbox, Crop marks
Hi there Is there a way to define the trimbox, the bleedbox and maybe also corp marks by generating a pdf over xsl:fo using apache fop 0.94? I saw there is a way to do it with e.g. AntennaHouse, isn't it? So, do I have to change to AntennaHouse, or is there also a way to do it with apache fop? Great thanks Kind regards, Oliver Hirschi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]