apache-fop

A table-cell is spanning more rows than available in its parent element

亡梦爱人 提交于 2019-12-13 10:22:38
问题 I am trying to track down the following error in my fo file [*]. Since there is no context in the error message I do not understand how I am supposed to search for the root issue. The fo file has been generated from a proper (at least per XSD validation) docbook 5 file, but the generated fo file is not correct: $ xmllint --nonet --noout --schema /usr/share/xml/docbook/schema/xsd/5.0/docbook.xsd source/docbook/part02/part02.xml source/docbook/part02/part02.xml validates How would one search

For each for Apache FOP

会有一股神秘感。 提交于 2019-12-13 08:44:48
问题 I have a question. This is my xml <OrdersSchedulePDFView> <OrdersSchedulePDFViewRow> <ScheduleDesc>График № 6723</ScheduleDesc> <Ridesc>Каждый день</Ridesc> <Items> <ItemDesc>Пельмени Родной Дом Премиум 1кг пл/пак</ItemDesc> <ItemDesc>Пельмени Алекон Мини 900г пл/пак</ItemDesc> </Items> <Locations> <LocName>Ноймайер</LocName> <LocName>Беллинсгаузен</LocName> </Locations> </OrdersSchedulePDFViewRow> </OrdersSchedulePDFView> How can I write for-each for Items and Locations elements in xsl-fo

Java Generate a PDF with flying Saucer

大兔子大兔子 提交于 2019-12-13 07:13:41
问题 The jar i am using is from the maven repo The code i am testing is from a previous stack solution I fear it might be outdated because the libraries are depreciated. When testing the following code: import java.io.ByteArrayInputStream; import java.io.FileOutputStream; import org.w3c.dom.Document; import org.xhtmlrenderer.pdf.ITextRenderer; public class test { public static void main(String[] args) { ITextRenderer renderer = new ITextRenderer(); // if you have html source in hand, use it to

Docx4j Issues converting to pdf

半腔热情 提交于 2019-12-13 05:46:40
问题 I know there's a lot of issues in this console report, but since I'm not that expert in docx4j and all the related packages, I' d like to have some explanations, especially on the reason why it is having formatting issues. Please give me some help. This is the console output 09:40:08,964 WARN [org.docx4j.fonts.PhysicalFonts] (http-/0.0.0.0:8080-5) Aborting: file:/C:/Windows/FONTS/impact.ttf (can't get EmbedFontInfo[] .. try deleting fop-fonts.cache?) 09:40:09,025 INFO [org.docx4j.fonts

Getting an unwanted second title page when processing docbook to PDF via fop

空扰寡人 提交于 2019-12-13 04:42:21
问题 I'm constructing a standard book format in dockbook xml then formatting it to PDF via fop. When I construct the final PDF however i'm getting a second broken title page that has the title and the inline image again. On this page the title is justified across the whole page (so spread oddly) and the image is off-centre. The title also has an additional colon after it that is not present in the book title. If I remove the title page using XSL parameters, the title page is removed, but the

XSL-FO: wrapping long words in table cell

狂风中的少年 提交于 2019-12-13 02:28:41
问题 I'm using Docbook-XSL and Apache FOP to generate PDF documents containing tables. With the default settings, tables have fixed-width columns and lines wrap at word boundaries. But if a word is longer than the cell width, it overflows the cell. I'd like to break up the words across multiple lines in such a case. How could this be done? Hyphenation is not a solution since the words need not be in English. (Edit: hyphenation in other languages is not a solution either. It may not be known ahead

Setting XSL FO background image from embedded SVG

╄→гoц情女王★ 提交于 2019-12-12 20:07:27
问题 I am creating a background text within a XSL FO document this way: <svg:svg width="285" height="70"> <svg:g transform="rotate(-5)"> <svg:text x="10" y="60" style="font-family:Courier;font-size:40;font-weight:normal;stroke-width:0.5;fill:none;stroke:lightgray;stroke-opacity:0.75;"> Background Watermark Text </svg:text> </svg:g> </svg:svg> Is there any way to display this SVG in background of the page? The problem is that importing an external image as watermark works fine, but I do not find

Apache FOP the method newInstance(FopFactoryConfig) in the type FopFactory is not applicable for the arguments ()

时光总嘲笑我的痴心妄想 提交于 2019-12-12 11:35:26
问题 I am getting the following error: Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method newInstance(FopFactoryConfig) in the type FopFactory is not applicable for the arguments () at fopdemo.fopvass.PDFHandler.createPDFFile(PDFHandler.java:42) at fopdemo.fopvass.TestPDF.main(TestPDF.java:40) This is my code: package fopdemo.fopvass; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileOutputStream;

XSLT Generate Dynamic Columns for Apache FOP

佐手、 提交于 2019-12-12 06:49:46
问题 I need to make a dynamic table with 3 columns zones Is better with an example: I don't know if you are gonna understand this, but the "----" is only to format the table in the post |--Number--|--Doc--|--Status---------|--Number--|--Doc--|--Status---------|--Number--|--Doc--|--Status--| |-----11------|1111- |-- _____________---------|--22------- |2222 --|______________----------|---- 33----- |3333- | _______________| |-----44----- |4444- |-- _____________ -------- |------------|----------|----

For each in FOP xml

点点圈 提交于 2019-12-12 05:43:21
问题 I'm generating a PDF through Apache FOP, and since now things are going pretty well. Now I need to loop through a list and display every element in it and to achieve this I'm using the command <xsl:for-each select="myObject/myList"> , but when FOP begin to parse the XML I get this error: 2015-09-30 12:04:39,772 [http-nio-8080-exec-4] WARN org.apache.fop.apps.FOUserAgent - Unknown formatting object "{http://www.w3.org/1999/XSL/Transform}for-each" encountered (a child of fo:root}. (See position