apache-fop

“java.lang.UnsatisfiedLinkError: no awt in java.library.path” in running JWS Swing app

一曲冷凌霜 提交于 2021-02-08 17:24:56
问题 We are sometimes getting this strange error from clients (automatically, no user report was filled until now), and none of us can make sense of it. A user starts our Swing Java-Web-Start "fat client" on a Win7 machine, eventually use some action that should produce a PDF document (using an ancient, modified Apache FOP version), and end up getting this error. So far, it's not reproducible on our side. Google did not help on this one either. The big question is, how can awt dll be missing, when

Shell Script File(.sh) does not run from c# core on linux

给你一囗甜甜゛ 提交于 2021-02-07 19:58:29
问题 I am trying to run ".sh" file from c# core application.But it doesn't seem to be running properly.Here is my scenario. I am working on .Net core project which is hosted on Linux environment.We are trying to create "PDF" in our project for which we have used "Apache FOP". Here i have created one "shell script" file "transform.sh" which internally calls "fop" with required parameters.Since developement is being done on windows machine we tested the same usinf "batch" file i.e. "transform.bat"

Shell Script File(.sh) does not run from c# core on linux

南笙酒味 提交于 2021-02-07 19:58:07
问题 I am trying to run ".sh" file from c# core application.But it doesn't seem to be running properly.Here is my scenario. I am working on .Net core project which is hosted on Linux environment.We are trying to create "PDF" in our project for which we have used "Apache FOP". Here i have created one "shell script" file "transform.sh" which internally calls "fop" with required parameters.Since developement is being done on windows machine we tested the same usinf "batch" file i.e. "transform.bat"

FOP apache - support Hebrew letters

别说谁变了你拦得住时间么 提交于 2021-02-07 13:21:07
问题 I've been investigating in the last few days the support of Hebrew letters in the FOP apache project for generating PDF file. I saw that there was a problem with that in the past and I didn't really understood whether it been solved or not? If there is a support, can somebody show/redirect me to simple sample giving me XSL-FO file with Hebrew letters that when using FOP the PDF is generated properly(clear and not reversed by order letters). I would really appreciate your answer. This thing is

How can I create a footer on the last page

别说谁变了你拦得住时间么 提交于 2021-01-29 06:42:53
问题 Here the clean code: <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="pages-normale" page-width="297mm" page-height="210mm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"> <fo:region-body margin-top="1cm" margin-bottom="1cm"/> <fo:region-before margin-top="1cm" margin-bottom="1cm" extent="7cm"/> <fo:region-after margin-top="1cm" margin-bottom="1cm" extent="1cm"/> </fo:simple-page-master> </fo

Need to disable an automatic URL hyperlinking with XSL-FO when generating a PDF document?

落爺英雄遲暮 提交于 2021-01-27 23:30:46
问题 I'm using Apache XSL-FO to generate a PDF document from an XML using XSLT. In my XSL file I have an fo:block where I bring a URL and simply display it like this: xsl:value-of select="company_info/website" My website always contains a valid URL for some company, starting with www.abc.com It seems like that by default anything with a www is being recognized as a URL and becomes linkable. It does not seem like I can force the link of that company to load in a new window, as it always loads the

XSL-FO fo:repeatable-page-master-alternatives not working properly

╄→尐↘猪︶ㄣ 提交于 2021-01-20 06:58:06
问题 I want to add the page number in footer if the number of pages is more than one, but not for if there is only one page. I tried the following code but it shows the page number in all cases : <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="singlePage" page-height="800pt" page-width="612pt" margin-top="0pt" margin-bottom="46pt" margin-left="26pt" margin-right="26pt"> <fo:region-body margin-top="110pt" margin-bottom="65pt" /> <fo

Load a font from JAR for FOP

最后都变了- 提交于 2021-01-15 18:00:29
问题 I have a TTF font in fonts directory in the JAR with my application. myapp.jar / fop / config.xml font.ttf I create my FOP this way: FopFactory fopFactory = FopFactory.newInstance(); fopFactory.setStrictValidation(false); fopFactory.setUserConfig(getClasspathFile("/fop/config.xml")); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); ... How do I configure config.xml to embeddd font.ttf in the PDF file I am rendering? 回答1: it seems that my post is too late, but may be it'll be useful for

is there any way to start my Arabic text from right to left when export as PDF

一世执手 提交于 2021-01-01 00:02:52
问题 I am using Apache FOP 2.2 to Export as PDF. I want my arabic text to start from right to left. If i give text alignment as Right all characters are going to right end of the screen which is causing alignment issue in my pdf. Code: <fo:block font-size="2.5mm" font-weight="bold" text-align="left" white-space="normal" margin="1.5mm" xsl:use-attribute-sets="CustomStyles-ar"> الآن لحضورHarishالمؤتمر </fo:block> Arabic text should start from right to left instead it is starting from left to right:

How to embed font in PDF created from HTML with iText and Flying Saucer?

谁说胖子不能爱 提交于 2020-07-17 09:52:26
问题 I have problem with embedding Polish fonts into PDF converted from HTML. My HTML code have style in body: <BODY style="font-family: Tahoma, Arial, sans-serif;font-size : 8pt;"> I tried 2 ways of converting such HTML into PDF: FOP with htmlcleaner iText with flying-saucer For FOP I can add all used fonts into its config file and then created PDF have those fonts embedded (if font is used in HTML). In resulting PDF I have Tahoma font in Identity-H encoding. It looks good -- all Polish letters