fop

Set image size relative to page size

Hi, I am generating pdf files using FOP. is used to include images. My requirement is to set the width and height of image relative to the page size. Thanks in Advance. ...

Including a PDF file in a PDF file generated by FOP

I'm using FOP to generate PDF files. What's the best way to either include another PDF file in a PDF generated by FOP or to cook multiple PDF files together using PHP? ...

Generating pdf files from xml with fop and xsl with html formatted content

I'm using FOP to generate pdf files from xml sources. Some xml files have html in them like this: <element><value>&lt;strong&gt;lorem ipsum&lt;/strong&gt;</value></element> Is it possible with xsl to keep the html formatted content in the generated pdf? ...

xls-fo fop 0.94 Using the keep-together with wrap-option="wrap"

In xls-fo fop 0.94 Using the keep-together along with with wrap-option="wrap" ignores the wrap option ? Is there a way to make them both work? <fo:table-row border="1pt solid black" keep-together="always"> <fo:table-cell> <fo:block overflow="scroll" wrap-option="wrap"> This is a long text It is desired t...

restart asterisk flash operator panel server from the web

Need to restart asterisk flash operator panel (fop) from the web after configure file (op_buttons.cfg) is altered. Web server runs under daemon user. Via root user restart works. ...

Is it possible to generate a XSL-FO template from a PDF?

Given a PDF document, is it possible to generate a XSL-FO (FOP) template? Obviously, this would be a one-time thing - the generated template would just be a starting point for creating a proper template that pulls in the appropriate data. For me, the ideal tool for doing so would be a Java-based one and should be executable from the co...

what is benefit of using Antennahouse over Apache FOP?

I would like to know the difference and additional features in Antennahouse over Apache FOP. ...

Is there a XSL-FO renderer which supports <fo:table table-layout="auto"> ?

I'm using Pandoc to convert Markdown to Docbook, doing stuff to it then rendering the Docbook to XSL-FO using Apache FOP. Unfortunately, Pandoc makes tables with table-layout="auto" and FOP only supports table-layout="fixed". Is there a XSL-FO renderer which does support table-layout="auto"? ...

Apache FOP in Visual Studio 2008

I am writing some XML -> PDF generating templates in Apache FOP for an asp web app. I need to use Visual Studio for my development. Visual studio has great editing and auto complete for regular XSL, I was wondering if there is any way to add this functionality for FOP tags. At least is there a way to stop it from thinking the file is h...

How can I disable the strerr logging output from FOP?

How would I disable the logging output (usually sent to stderr) that FOP automatically generates when processing an FO file? I've tried putting a log4j.properties file in the classpath, changing the log-level for org.apache.fop but this hasn't worked. ...

Is there a clean cut way of adding NOP records to an AFP file using Java?

I have created an AFP file using embedded FOP Trunk. Since FOP Trunk does not support the no-operation tag directly under root I need to modify the created file to add a NOP record as the first record in the file. How does one do this? ...

What is the maximum number of pages tha apache fop can generate ?

Hi I was working with apache fop and when the number of pages exceeds about 130 pages ,it could not generate the pdf .... Is there any limit to page number or the length of xml file... Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.io.BufferedReader.(BufferedReader.java:80) ...

Cannot find Package fop ( Ithink)

Hello friends I try to use fop engine programatically I search for an example and I find this class import java.io.File; import java.io.IOException; import java.io.OutputStream; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import javax.xml.transform.TransformerException; import javax.xml.transf...

Apache FOP generating blank page

Hello,I am trying to generate a PDF using Apache FOP and Java. I am using a valid xsl-fo file which I can create a pdf with using the command line FOP. My problem occurs when I try to run FOP using the Apache FOP Libraries. Running across a java/php bridge. The bride is properly configured and java / php communicate. On the java side ...

XSL FO dual page number in the same fo:page-sequence

I have a sequence of pages with one flow that overflow in many pages. I need to have dual page number: one sequence that start from 1 in the firs page and increment by one till the last page and one that reset every "chapter" change. Chapter 1 Page(total) 1 Page(in chapter) 1 Page(total) 2 Page(in chapter) 2 Page(total) 3 Page(in ch...

Topichead not being generated

I have the following code: <map title="Authoring Guide"> <topicref href="topics/front-matter.xml"/> <topichead navtitle="My TopicHead"> <topicref href="topics/who-should-use.xml"/> </topichead> ... When the PDF is generated using oXygen editor with the PDF Legacy plugin, the topichead element is completely ignored,...

FOP Encoding issue

Hi Guys, I have a similar issue.. I have HTML stored in DB clob. I am retrieving that and converting to XHTML using TIDY.jar. Once i got XHTML then using FOP i am converting to XSL-FO. Finally XSL-FO is rendering in PDF. Previously everything is working fine with Linux-WAS5-java1.4. Recently we migrated the apps to Linux-WAS6-Java1.5...

Apache FOP org.apache.fop.pdf package usage examples

I tried to use the org.apache.fop.pdf package but not success. Appreciated if someone can give some working examples to: Create PDFDocument Add PDFPage to PDFDocument Add some text to PDFPage ...

Integration of own fonts into the XSL/FOP

I'm using FOP to generate PDF reports. The problem is I need the DIN-Regular font instead of the default Times New Roman. Can anybody tall me how to change the font? I'm using fop-0.94.boc.02 version. Thanks ...

How to manipulate page number in FOP?

I am using Apache FOP 0.95, and all I want to do is add 1 to the current page number. So, on page 12, I want to show 12 / 13. Then nothing on page 13, of course. Any ideas how I could do this, perhaps by manipulating <fo:page-number /> ? Thanks y'all! ...