apache-fop

Apache FOP 1.1 QRCodes with zxing

房东的猫 提交于 2019-12-06 00:49:32
OK I am having an issue producing QR Codes in FOP 1.1 using barcode4j-2.1 and zxing-0.1.2. I currently have a FOP 1.0 implementation working correctly, by adding <prefer-renderer>true</prefer-renderer> to the fop configuration file. barcode4j barcodes are working regardless if prefer renderer is set or not, fixed in barcode4j-2.1. I have all necessary dependancies: fop-zxing-0.1.2-jar-with-dependencies.jar barcode4j-fop-ext-complete.jar saxon9he.jar - using for xslt 2.0 ... here is the barcode snippet: <fo:block> <fo:instream-foreign-object> <qr:qr-code xmlns:qr="http://hobbut.ru/fop/qr-code/"

How can I prevent my footer from getting overflowed in xsl-fo?

余生长醉 提交于 2019-12-05 20:58:58
I'm generating a pdf from my xsl and xml files wherein I need to display a table at the end of the first page. But since there are some tables above this table also, displaying it as static text pushes it down to the 2nd page (or 3rd and so on). So i thought to make this table as a footer (just on the first page). So I have this table defined as a footer in my xsl file. My table is under the following code <fo:static-content flow-name="xsl-region-after" font-size="10pt"> When I try to generate the pdf, some of my rows from the footer table are getting overflowed and are not visible on the pdf.

FOP XSL-FO Anchor in an external destination

杀马特。学长 韩版系。学妹 提交于 2019-12-05 18:02:18
问题 With XSL-FO (Fop), I succeeded in creating a link to an external PDF : <fo:basic-link show-destination="new"> <xsl:attribute name="external-destination">foo.pdf</xsl:attribute> </fo:basic-link> But now, I would like to reach an anchor in this external PDF. So I tried to build something like that : <fo:basic-link show-destination="new"> <xsl:attribute name="external-destination">foo.pdf#anchorId</xsl:attribute> </fo:basic-link> Unfortunately, when I click on the generated link, I get an error.

Adding Annotation to Apache Fop

只谈情不闲聊 提交于 2019-12-05 07:23:44
I am rendering a PDF using Apache Fop . I am making XSLT templates which I used to convert xml to PDF. I want to put annotation in the output PDF using Apache Fop . I have been searching and it says iText has support for adding annotation to pdf. Is it possible to add annotation in Apache Fop? iText DOES have support for adding annotations to PDF documents. We use that in our products. You can do the following: Use an existing PDF, for example one that has been created with Apache FOP. You would need to write a Java program that adds annotations to this PDF document. Create the PDF and

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

自作多情 提交于 2019-12-05 04:44:59
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 that this text be wrapped in the table cell but just can not make it happen! </fo:block> </fo:table-cell> </fo:table-row> keep-together="always" implicitely sets keep-together.within-line="always" which basically forbids line breaking. Use keep-together.within-column="always" instead! See also:

how to keep table with header but allow page breaks inside table body in XSL-FO using FOP

a 夏天 提交于 2019-12-05 00:59:53
I'm generating a PDF using Apache FOP and a XSL-FO stylesheet. In the PDF, I output headings (html equiv h1) which belong to a table, so should be kept together always. However, my tables may also contain so much data that they don't necessarily fit on one page. The desired result is a rule set that allows a heading to be kept with the table and fit both on one page if possible, but if the table data is so long that it does not fit on one page, then page breaks would be inserted in the table while still keeping the heading element on the same page as the start of the table. The solution I have

XSL-FO Foreign Characters (Polish) Unicode in APACHE FOP (V. 1.1)

泄露秘密 提交于 2019-12-04 23:47:48
问题 I have the following xsl-fo code, attempting to produce foreign characters. <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> ... <fo:block font-size="11pt" font-family="calibri" language="pl"> Odwrotna strona tego pisma zawiera ważne informacje. jeżeli potrzebuje Pan/i pomocy, aby je zrozumieć, proszę zadzwonić pod numer X-XXX-XXX-XXXX po bezpłatne usługi językowe. </fo:block> I've tried every font-type I can think of to access the required unicode

Scale down to fit an image in FOP

£可爱£侵袭症+ 提交于 2019-12-04 22:16:58
I am using FOP version 1.0 to create PDFs. In one of the pages I'd like to display an image (2552 x 4200 pixel) and scale it down if it doesn't fully fit on the page. As far as I could see on the mailing list the recommended way of doing this would be following: <fo:external-graphic inline-progression-dimension.maximum="100%" content-height="scale-down-to-fit" content-width="scale-down-to-fit" src="..."/> Unfortunately, that still doesn't display the whole image. The lower part of the image is cut off. Can anyone give me a hint on what I am potentially doing wrong? I found this page here

How to convert xsl-fo to docx (Office Open XML) in Java?

空扰寡人 提交于 2019-12-04 19:39:08
I'm looking for an open-source or commercial friendly library in Java to convert xsl-fo to docx (Office Open XML) format. I'm planing to use xsl-fo to produce pdf documents (with Apache FOP), so I thought generating Word documents ( docx ) out of the same source XML could be a good idea. UPDATE : I forgot to mention that I'm using Java. Alternatively, you could do: your source xml -> docx -> xsl-fo -> pdf. or easier perhaps: source xml -> Flat OPC XML -> xsl-fo -> pdf. Once you have a docx (or a Flat OPC XML document), transforming that to PDF via FOP is easy with docx4j (since you mention FOP

How to display fixed image height and width using xsl-fo with apache fop 0.95

北城余情 提交于 2019-12-04 16:51:12
问题 I am trying to fix the height and width of image in pdf generated using fop 0.95. Here is the code used for it <fo:external-graphic src="s\image.png" height="2.00in" width="2.00in"/> Following also does not work <fo:external-graphic src="s\image.png" content-height="scale-to-fit" height="2.00in" content-width="2.00in"/> These gives us the image that is governed by width . In summary I am trying to stretch the image rather than keeping the aspect ratio using fop 0.95.Does any one have idea for