Re: any plans of an FOP 2.2 release any time soon
Hi, FOP active team is quite little, so having a release plan will not help. As FOP is open source, volunteers are welcome to help. 2016-11-29 11:11 GMT+01:00 Mark Gibson: > For some of us, it’s not appropriate to take the development branch. > However, we are really keen to get the next release version of FOP so we can > use the fix for the PDF image plug-in. > > > > I appreciate the nature of these mainly volunteer led apache projects. > However, I would like to encourage you to prioritise slightly more regular > releases …. Delivering little and often. > > > > Thanks > > Mark > > > > From: Glenn Adams [mailto:gl...@skynav.com] > Sent: 25 November 2016 20:47 > To: FOP Users > Cc: Vishnu K > Subject: Re: any plans of an FOP 2.2 release any time soon > > > > We do not have a schedule yet for a 2.2 release. > > > > On Fri, Nov 25, 2016 at 11:07 AM, Vishnu K wrote: > > Hi , I am new to FOP mailing list.. I would like to ask will there be an FOP > 2.2 release sooner ? > > regards > > vishnu. > > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: fo file to pdf conversion run much slower on server than on local and command line
Hi, many things can cause such latency: URL resolution (like dtd refs), LDAP auth, proxy resol, etc. You should monitor your network communications. 2016-10-26 18:44 GMT+02:00 aluan: > I am facing a strange issue where apache fop convert fo file to pdf runs very > slow on server (tomcat 7 , liferay 6.2) but fast on local (tomcat 7, liferay > 6.2). > > on server it takes like 2mins but local only like couple seconds also if use > command line on server it is normal taking couple seconds as well. > > the pdf is about 80 pages and since xsl file is too big i cannot post it > here. > > we have monitor GC on local and server and found that on local there are > like 1 or 2 minor GC happened and on server minor GC happens every 1 or 2 > seconds. and each gc release like 500m memory, so it appears that on server > it generates more garbage than on local. > > also when running on server, cpu stays at 5% almost like a straight line. > > I have put code sample on stackoverflow: > http://stackoverflow.com/questions/40266721/apache-fop-conversion-from-fo-file-to-pdf-much-slower-on-server-than-local-and-c > > do you guys has any thoughts on what can possibly cause this? > > > > > > -- > View this message in context: > http://apache-fop.1065347.n5.nabble.com/fo-file-to-pdf-conversion-run-much-slower-on-server-than-on-local-and-command-line-tp44590.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: fop.xconf and AWT renderer
Hi, AFAIK, AWT uses system fonts only. If you want to add 'custom fonts', you have to add them to your system. 2016-07-28 22:40 GMT+02:00 Stefan Radermacher: > I'd like to use custom fonts with an AWT renderer, but I can't find in > documentation what I need to set as mimetype in fop.xconf to configure > the AWT renderer. Is that at all possible? > > > > Kind regards > Stefan > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: How to change apache fop encoding from configuration? (Default is İdentity -h)
Hi, I don't understand what you mean by "fop encoding". Do you mean pdf version, or whatever pdf option? What FOP version do you use? I remember some copy/paste problems on very old version (FOP 0.20.x), or with some exotic font files. You should at least provide a couple of files: - shortened xsl-fo file - pdf 2016-05-05 15:08 GMT+02:00 muradqeribzadeh: > I need to change apache fop encoding but i can't find any solution for this. > Now in my application encoding of fop generated pdf file is - Identity -h. > That's why i can't extract pdf file, can't copy from pdf and paste to > another textbox and etc. > Note: These are my fonts in fop config file: > name="Arial" style="normal" weight="bold"/>style="italic" weight="normal"/>weight="bold"/> > If needs i can post more information about problem. > > > > -- > View this message in context: > http://apache-fop.1065347.n5.nabble.com/How-to-change-apache-fop-encoding-from-configuration-Default-is-dentity-h-tp43899.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: font-base is ignored in 2.1
Hi, Please, can you file in a JIRA ticket to keep this in in mind. 2016-03-21 17:09 GMT+01:00 Adam Retter: > Thanks for getting back to me Chris, > > Okay that makes sense to me then, and I was able to work with custom > resolvers to get around the issue I have. > > However, you still have references in both your code and documentation > to , so it is not obvious that this has been removed! > Perhaps a little clean-up is in order ;-) > > On 21 March 2016 at 11:19, Chris Bowditch wrote: >> Hi Adam, >> >> I believe FOP Base was intentionally removed when FOP IO was reworked in the >> v2.0 release. Which version are you upgrading from? >> >> I seem to recall the developers couldn't think of a use case where Font Base >> would need to differ from wildly from Base, and so Font Base was >> consolidated with Base. >> >> Thanks, >> >> Chris >> >> >> On 11/03/2016 22:39, Adam Retter wrote: >>> >>> It seems that fonts are not being resolved relative to the font-base >>> config parameter in 2.1, instead they are being resolved directly by >>> the ResourceResolver. This looks like a bug to me, can anyone confirm? >>> >>> I have a FOP configuration file like this: >>> >>> >>> >>> true >>> >>> >>> false >>> >>> >>> ./ >>> >>> >>> >>> http://localhost:8080/exist/apps/tei-simple/resources/fonts/ >>> >>> >>> >>> >> embed-url="Junicode.ttf" >>> encoding-mode="single-byte"> >>> >> weight="normal"/> >>> >>> >> embed-url="Junicode-Bold.ttf" >>> encoding-mode="single-byte"> >>> >> weight="700"/> >>> >>> >> embed-url="Junicode-Italic.ttf" >>> encoding-mode="single-byte"> >>> >> weight="normal"/> >>> >>> >> embed-url="Junicode-BoldItalic.ttf" >>> encoding-mode="single-byte"> >>> >> weight="700"/> >>> >>> >>> >>> >>> >>> >>> >>> And I instantiate FOP like so: >>> >>> ResourceResolver resolver = >>> >>> ResourceResolverFactory.createSchemeAwareResourceResolverBuilder(ResourceResolverFactory.createDefaultResourceResolver()).build(); >>> EnvironmentProfile environment = >>> EnvironmentalProfileFactory.createDefault(new URI("file:///db"), >>> resolver); >>> final FopFactoryBuilder = builder = new >>> FopFactoryBuilder(environment).setConfiguration(configFile); >>> final FopFactory fopFactory = builder.build(); >>> >>> When I run my FO transformation I then get an error like: >>> >>> Caused by: java.io.FileNotFoundException: /Junicode.ttf (No such file >>> or directory) >>> at java.io.FileInputStream.open0(Native Method) >>> at java.io.FileInputStream.open(FileInputStream.java:195) >>> at java.io.FileInputStream.(FileInputStream.java:138) >>> at java.io.FileInputStream.(FileInputStream.java:93) >>> at >>> sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) >>> at >>> sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) >>> at java.net.URL.openStream(URL.java:1045) >>> at >>> org.apache.fop.apps.io.ResourceResolverFactory$NormalResourceResolver.getResource(ResourceResolverFactory.java:224) >>> at >>> org.apache.fop.apps.io.ResourceResolverFactory$TempAwareResourceResolver.getResource(ResourceResolverFactory.java:152) >>> at >>> org.apache.fop.apps.io.ResourceResolverFactory$DefaultResourceResolver.getResource(ResourceResolverFactory.java:121) >>> at >>> org.apache.fop.apps.io.ResourceResolverFactory$SchemeAwareResourceResolver.getResource(ResourceResolverFactory.java:256) >>> at >>> org.apache.fop.apps.io.InternalResourceResolver.getResource(InternalResourceResolver.java:92) >>> at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:103) >>> at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93) >>> at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:124) >>> at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:108) >>> at org.apache.fop.fonts.LazyFont.load(LazyFont.java:116) >>> >>> >>> When I look through the FOP 2.1 code-base I see that the `font-base` >>> only seems to be read in FontManagerConfigurator#configure, however >>> that code-path is never executed when I run my app. >>> >>> Any thoughts? >>> >> >> >> - >> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org >> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org >> > > > > -- > Adam Retter > > skype: adam.retter > tweet: adamretter > http://www.adamretter.org.uk > >
Re: Usage of Tables in Apache FOP
Hi, you should not use keep-together, witch is a composite property: .within-page + .within-column + .within-line You should use keep-together.within-column instead 2016-03-10 10:00 GMT+01:00 Sireesha Boddapati: > Hi, > > Attache id the sample FO file that we use. > > Thanks > Sireesha > > On Thu, Mar 10, 2016 at 11:49 AM, Sireesha Boddapati > wrote: >> >> Hi Team, >> >> We have different page-sets with different widths of region-body. The page >> content is dynamic and it will have lots of tables with dynamic number of >> columns. >> >> So, when the table has more number of columns and has cell data with long >> text with no spaces, the text is getting overlapped with next cell. >> >> >> Is there any way to avoid this? >> >> Thanks >> Sireesha > > > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Usage of Tables in Apache FOP
hi, please, provide a simple xsl-fo file that allows to reproduce what you get. You will get quicker help. 2016-03-10 7:19 GMT+01:00 Sireesha Boddapati: > Hi Team, > > We have different page-sets with different widths of region-body. The page > content is dynamic and it will have lots of tables with dynamic number of > columns. > > So, when the table has more number of columns and has cell data with long > text with no spaces, the text is getting overlapped with next cell. > > > Is there any way to avoid this? > > Thanks > Sireesha -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: keep-together question
Hi, from my POV, integer value seems to behave as 'auto' does. That sounds like a bug. Please, can you file in a bug entry on JIRA, attaching your modified FO, resulting PDF, and if possible, expected result. 2016-02-25 19:12 GMT+01:00 Matthew R. Wilson <mwil...@mattwilson.org>: > On Thu, Feb 25, 2016 at 09:41:20AM +0100, Pascal Sancho wrote: >> That can be achieved using an integer value rather than 'always'. >> See [1] (compliance page) & [2] (XSL-FO rec v1.1) for further info. >> >> NOTE: keep-together should be considered as a shorthand for >> *.within-line, *.within-column, and *.within-page > > I've tried using an integer value, but that doesn't seem to do anything. > For example, changing my original example attachment to the following > snippet > > > line 1 > line 2 > > line n > > > does not do what I expect. Even though this block can fit on a page, I > don't end up with a page break before it and it just breaks in the > middle. The same block with keep-together.within-page="always" results > in the expected page break before the block. I've removed all other > keeps in the document so there shouldn't be anything conflicting with > the attempt to make this block appear on its own page. > > The FOP compliance page says that there is "Minimal support for > values", but I don't see anything explaining further. So I'm > back to not knowing if I'm just not doing it right (i.e. is there > something more to it than changing "always" to "100"), or am I hitting a > scenario that isn't supported by the minimal support. > > Thanks, > Matthew > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: keep-together question
Hi, That can be achieved using an integer value rather than 'always'. See [1] (compliance page) & [2] (XSL-FO rec v1.1) for further info. NOTE: keep-together should be considered as a shorthand for *.within-line, *.within-column, and *.within-page It's a good practice to set only the desired property, rather than the shorthand one, to avoid unexpected behavior regarding the inline axis. [1] http://xmlgraphics.apache.org/fop/compliance.html [2] https://www.w3.org/TR/xsl/#keep-together 2016-02-24 22:11 GMT+01:00 Matthew R. Wilson: > Hello, > > I'm using FOP 2.1 and wondering if I can accomplish the pagination I > want. My example XML is attached. Essentially, what I'm wondering is if > I can get the behavior of keep-together="always" on a block but still > allow pagination if the block is too big to fit on one page. > > In my example, there are three sections. I want complete sections to > appear together on one page, so I'm putting keep-together="always" on a > block that wraps the section. This usually works the way I want, only > putting in a page break between sections if the next section doesn't fit > in the remaining space on the page. > > However, my example section 3 is too big to fit even on a dedicated > page, so at render-time I get the warning from FOP that it exceeds the > page size. > > So my question: is there a way to get the behavior of keeping sections > together on a page when possible, but if it's not possible, allow > pagination? > > The example I've attached is very simple in that I just > keep-together="always" on the block. But I've also tried variations that > include making each individual text line block have a > keep-with-previous="always", and I've tried integer values instead of > "always". But what I don't know is how much I'm running into limitations > of my own knowledge about how to correctly do this, versus FOP's > limitations with keep support. > > I'd appreciate any suggestions, or it'd be good to know it's not > possible with current implementation if that's the case. > > Thank you, > Matthew > > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Upgrading from 0.20.5 to FOP 2.1
Hi, you should start reading [1]. Globally, FOP 2.x is more compliant and less buggy than FOP 0.x: - better and stricter conformance to XSL recommendation v1.1 - better spacing, alignment, etc. computations that make result more as expected In short, you probably will have to rewrite all your XSLT material, and you will not get exactly same result (mainly due to how v0.x compute lengths in a buggy way) In addition, you will get some great improvements, among with more complete font support, complex scripts, better pageMaster handling, etc. [1] http://xmlgraphics.apache.org/fop/2.1/upgrading.html#pre-1.0 [2] http://www.w3.org/TR/xsl11/ 2016-02-04 15:35 GMT+01:00 Sireesha Boddapati: > Hi, > > We want to move our application from FOP 0.20.5 to FOP 2.1. > After upgrading do i get the PDF same as before? > We are using many features of 0.20.5, like fox:outline, continued label, > write page number, orphans etc. and also we have used the API . > > Will i face any challenges in it? > > Please let me know if you have any samples/ reference guide? > > > Thanks in advance, > Sireesha -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table text is overflowing on to the right margin
Hi, ah, FOP 0.20.x... very old version that is not maintained any more. What I'll say here has not been tested on FOP 0.20.x, but is perfect valid with newer versions. The issue is caused by the property keep-together set on fo:table-row This property should be considered as a combination of 3 ones: keep-together.within-line keep-together.within-column keep-together.within-page If you omit to decompose it, the specified value applies on all 3 sub-properties, including the .within-line one. See [1]. In your case, you should only change the keep-together.within-column one. I don't remember if this was applicable on FOP 0.20.x [1] https://www.w3.org/TR/xsl/#keep-together 2016-01-28 11:22 GMT+01:00 Sireesha Boddapati: > Hi, > > Please note, i am using FOP 0.20.5 version jar in my application. Please > suggest solution with the same jar. > > Thanks > Sireesha > > On Thu, Jan 28, 2016 at 3:50 PM, Sireesha Boddapati > wrote: >> >> Hi, >> >> Please find the attached FO file. >> >> Thanks >> Sireesha >> >> On Thu, Jan 28, 2016 at 11:20 AM, Sireesha Boddapati >> wrote: >>> >>> Hi >>> >>> I have a pdf file defined with 2 page masters. >>> First page with total width of 8.5in. In that i have defined xsl-body >>> with left margin 2.375in and right margin of 0.75 in. Normally text is >>> displaying correctly but the table text is overflowing to the right. >>> >>> Below are the two page masters i have >>> >> page-width="8.5in" margin-top = "0.5in"> >>> >>> >> margin-top = "1.925in" margin-left="2.375in" margin-right=".75in" >>> margin-bottom="1.5in" /> >>> >> precedence="true"/> >>> >> extent="2.26in"/> >>> >>> >>> >> page-width="8.5in"> >>> >> margin-bottom="0.625in" margin-left="0.75in" margin-right="0.75in" /> >>> >>> >>> And the table definition is like below >>> >>> >> font-style="normal" line-height="10px" border-collapse="collapse" >>> table-layout="fixed" space-after="0.12in"> >>> >>> >>> >>> From the second page, it is taking left and right margins and displaying >>> the tables correctly. >>> >>> Can you please suggest whats the issue with this and What could be the >>> possible solution for this? >>> >>> Thanks >>> Sireesha >> >> > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table text is overflowing on to the right margin
Hi, Please, attach a full XSL-FO example, as short as possible (not XSLT), this will help to reproduce the issue, then help you. 2016-01-28 6:50 GMT+01:00 Sireesha Boddapati: > Hi > > I have a pdf file defined with 2 page masters. > First page with total width of 8.5in. In that i have defined xsl-body with > left margin 2.375in and right margin of 0.75 in. Normally text is displaying > correctly but the table text is overflowing to the right. > > Below are the two page masters i have > page-width="8.5in" margin-top = "0.5in"> > >= "1.925in" margin-left="2.375in" margin-right=".75in" margin-bottom="1.5in" > /> > precedence="true"/> > > > > page-width="8.5in"> > margin-bottom="0.625in" margin-left="0.75in" margin-right="0.75in" /> > > > And the table definition is like below > > font-style="normal" line-height="10px" border-collapse="collapse" > table-layout="fixed" space-after="0.12in"> > > > > From the second page, it is taking left and right margins and displaying > the tables correctly. > > Can you please suggest whats the issue with this and What could be the > possible solution for this? > > Thanks > Sireesha -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Ampersand in FOP
Hi, your XSL-FO snippet [1] is rendered correctly by FOP: "Cat & Mouse". I suspect something being wrong in your XSLT, so you should look at it closer. More appropriate list for this is XSLT list (see [2]). [1] Cat Mouse [2] http://www.mulberrytech.com/xsl/xsl-list/ 2016-01-21 8:47 GMT+01:00 Gordon Ross: > I’m struggling to get an ampersand (“&”) outputting correctly with FOP. It > always comes out as “” > > I want to render the text > > Cat & Mouse > > The source is a XML file, which contains: > > Cat Mouse > > (This is an XML file, so the “&” has to be escaped to “” for the file to > be valid) > > My XSLT transforms this into: > > Cat Mouse > > (This is still an XML file, so the “&” still has to be “” for it to be > valid) > > And FOP renders it as: > > Cat Mouse. > > My googling hasn’t been very successful. The FOP FAQ just says to escape the > “&” (Which I’ve done!) The best suggestion I found was to enclose the initial > “&” in a > > What am I missing? I’ve tried both FOP 1.1 & FOP 2.0 > > Thanks, > > GTG > -- > Gordon Ross -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: table-header question
Hi, AFAIK, there is no such extension with FOP like XEP has (see [1]). As a workaround, you can remove it in a middle-process, using the Intermediate Format (see [2]), and re-feed FOP with changed IF. [1] http://www.renderx.com/reference.html#Omitted_Header [2] http://xmlgraphics.apache.org/fop/2.1/intermediate.html#usage-if 2016-01-20 15:27 GMT+01:00 bishnu: > Hi, > > how to omit the initial header but keeping the subsequent page break > headers with out using renderx in fop. > > > regards > bishnu > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: table header omit with apache fop
please, check this mailing list, you just have asked this topic 3 times today, and it has been answered. 2016-01-21 15:17 GMT+01:00: > Hi, > > > > How to omit the initial header but keeping the subsequent page break > > headers with out using renderx in apache fop. > > > > > > regards > > bishnu > > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Migrating from 1.1 to 2.1 (FIXED image path)
Hi, 2016-01-19 17:50 GMT+01:00: > Thanks for the pointer! That was what I was looking for. > > So it seems that the config file MUST reside WITH the FO file, in the same > directory. But only IF base is used in the config file? No, the config file can be put in any location you want. You just have to indicate its URI. > If the base parameter is not used in the config, every relative URI is > relative to the FO file's location? Do I understand that correctly? Yes > In a message dated 1/19/2016 1:31:20 A.M. Pacific Standard Time, > psancho@gmail.com writes: > > Hi, > there is a big change between FOP 1.x and FOP 2.x regarding the base: > 1.x: base defaults to FOP uri > 2.x: base defaults to FO uri > > See https://issues.apache.org/jira/browse/FOP-2306 > > 2016-01-19 1:21 GMT+01:00 : >> All, >> Thanks to Tosten who made me think hard ;-) >> >> It turns that the FOP config file parameter is the issue. Like >> Torsten mentioned, the base parameter appears to be an absolute path now >> in >> FOP 2.1. However, this is not a good option for an existing system that >> supports many projects and various paths. My base was set as: >> ./ >> >> When I set it to an absolute path for testing, FOP 2.1 found all of the >> files. However, when I REMOVED it, allowing to go to it's default setting >> (current directory), everything ran normally and files were located >> correctly. >> >> So for my situation, removing the parameter works on FOP 2.1, and >> it >> also works on FOP 1.1. I do believe that there is a bug in that section of >> the 2.1 code. >> >> Thanks to everyone that helped out! >> >> Regards, >> Dean Nelson >> >> In a message dated 1/18/2016 8:16:34 A.M. Pacific Standard Time, >> torsten.stolpm...@verit.de writes: >> >> Dean, >> >> yes, I did this in our docbook xsl configuration layer via changing >> admin.graphics.path. You may also want to set img.src.path. >> >> Hope this helps, >> >> Torsten >> >> >> On 18.01.2016 17:04, deannel...@aol.com wrote: >>> Torsten >>> Did you do this via XSL? Or could you describe how you did this? >>> Thanks >>> Dean >>> In a message dated 1/18/2016 6:12:37 A.M. Pacific Standard Time, >>> torsten.stolpm...@verit.de writes: >>> >>> Hi Dean, >>> >>> I made the same experience recently, attempting a similar port from >>> Fop >>> 1.1 to Fop 2.1 of our DocBook documents. >>> >>> Apparently, Fop 2.1 seems to be more strict about the format of the >>> url >>> argument. I managed to resolve this by converting image references to >>> absolute file URIs (e.g. file:images/). I was not able to >>> use >>> a relative path and folded. >>> >>> Luckily, in my case mostly admonition graphics were affected, which I >>> could resolve by specifying an absolute admon.graphics.path. >>> >>> Hope this helps, >>> >>> Torsten >>> >>> On 17.01.2016 02:29, deannel...@aol.com wrote: >>> > Hello! >>> > Thanks for everyone's hard work on the FOP 2.1 release! >>> > I have a stable Docbook system with FOP 1.1 and when I upgraded >>> to 2.1 I >>> > noticed an issue: It appears that FOP cannot find the images in >>> the new >>> > system. >>> > [ERROR] FOUserAgent - Image not found. URI: images/redneck9.bmp. >>> (See >>> > position 15:562) >>> > Which points to this line: >>> > >> > height="auto" content-width="scale-to-fit" >>> content-height="scale-to-fit" >>> > content-type="content-type:image/BMP" text-align="center"/> >>> > This is exactly the same file that FOP 1.1 processes just fine and >>> I >>> > looked to see if there were any changes in the way I needed to >>> run FOP >>> > but I could not see anything related to that. >>> > Was there a change for FOP 2.1 that would cause this? >>> > Thanks >>> > Dean Nelson -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Migrating from 1.1 to 2.1 (FIXED image path)
Hi, there is a big change between FOP 1.x and FOP 2.x regarding the base: 1.x: base defaults to FOP uri 2.x: base defaults to FO uri See https://issues.apache.org/jira/browse/FOP-2306 2016-01-19 1:21 GMT+01:00: > All, > Thanks to Tosten who made me think hard ;-) > > It turns that the FOP config file parameter is the issue. Like > Torsten mentioned, the base parameter appears to be an absolute path now in > FOP 2.1. However, this is not a good option for an existing system that > supports many projects and various paths. My base was set as: > ./ > > When I set it to an absolute path for testing, FOP 2.1 found all of the > files. However, when I REMOVED it, allowing to go to it's default setting > (current directory), everything ran normally and files were located > correctly. > > So for my situation, removing the parameter works on FOP 2.1, and it > also works on FOP 1.1. I do believe that there is a bug in that section of > the 2.1 code. > > Thanks to everyone that helped out! > > Regards, > Dean Nelson > > In a message dated 1/18/2016 8:16:34 A.M. Pacific Standard Time, > torsten.stolpm...@verit.de writes: > > Dean, > > yes, I did this in our docbook xsl configuration layer via changing > admin.graphics.path. You may also want to set img.src.path. > > Hope this helps, > > Torsten > > > On 18.01.2016 17:04, deannel...@aol.com wrote: >> Torsten >> Did you do this via XSL? Or could you describe how you did this? >> Thanks >> Dean >> In a message dated 1/18/2016 6:12:37 A.M. Pacific Standard Time, >> torsten.stolpm...@verit.de writes: >> >> Hi Dean, >> >> I made the same experience recently, attempting a similar port from >> Fop >> 1.1 to Fop 2.1 of our DocBook documents. >> >> Apparently, Fop 2.1 seems to be more strict about the format of the >> url >> argument. I managed to resolve this by converting image references to >> absolute file URIs (e.g. file:images/). I was not able to >> use >> a relative path and folded. >> >> Luckily, in my case mostly admonition graphics were affected, which I >> could resolve by specifying an absolute admon.graphics.path. >> >> Hope this helps, >> >> Torsten >> >> On 17.01.2016 02:29, deannel...@aol.com wrote: >> > Hello! >> > Thanks for everyone's hard work on the FOP 2.1 release! >> > I have a stable Docbook system with FOP 1.1 and when I upgraded >> to 2.1 I >> > noticed an issue: It appears that FOP cannot find the images in >> the new >> > system. >> > [ERROR] FOUserAgent - Image not found. URI: images/redneck9.bmp. >> (See >> > position 15:562) >> > Which points to this line: >> > > > height="auto" content-width="scale-to-fit" >> content-height="scale-to-fit" >> > content-type="content-type:image/BMP" text-align="center"/> >> > This is exactly the same file that FOP 1.1 processes just fine and >> I >> > looked to see if there were any changes in the way I needed to >> run FOP >> > but I could not see anything related to that. >> > Was there a change for FOP 2.1 that would cause this? >> > Thanks >> > Dean Nelson >> >> >> - >> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org >> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org >> > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Embedding Fonts for PDF/A
Hi, Simon asked for XSL-FO file (what feeds FOP), not fop.xconf 2016-01-06 13:18 GMT+01:00 Tunahan Coban: > Edit: > > > > I change the font to Arial. But it still doesn’t work. > > > > > >true > > > > > > PDF/A-1a > > 1.4 > > > > embed-url="file:///C:/Utilities/arial.ttf"> > > weight="normal"/> > > > > > > > > > > > > > > > > Thanks. > > > > -- -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Embedding Fonts for PDF/A
(Tunahan sent me the FO file off-list, due to confidential things) Tunahan, I can reproduce DejaVu substitution: Your config lacks font descriptions for variations: 2016-01-06 15:26 GMT+01:00 Tunahan Coban <tunahan.co...@coconet.de>: > Hi Pascal, > > Thank you to invest your time for me. It is better for me that our > conversation don't been uploaded to the mail list site. Because of the > internal informations. I hope I understand you correctly with the xsl-fo file. > Now I have converted my XML file with the stylesheet to FO. > I will send you this as a mail-attachment. > > When you could say me what kind of mistakes you search, so can I help you.. > Because the file is too long, you will see.. :/ > > Thanks so much ! > > -- > > > -Ursprüngliche Nachricht- > Von: Pascal Sancho [mailto:psancho@gmail.com] > Gesendet: Mittwoch, 6. Januar 2016 14:43 > An: Tunahan Coban > Betreff: Re: Embedding Fonts for PDF/A > > Hi, > > Please, rather than XSL stylsheet, it's easier for us to play with resulting > XSL-FO, witch can be achieved without FOP, using XALAN, for example. > And it is better to attach such file rather than copy/paste in mail > body: all blank spaces and lines are preserved, with actual used encoding. > > 2016-01-06 14:06 GMT+01:00 Tunahan Coban <tunahan.co...@coconet.de>: >> Hi Pascal, >> >> >> >> I sent the first part (because the file is 3000 lines long) from the >> *.xsl file, too. >> >> Here again: >> >> >> >> >> >> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform; >> xmlns:fo="http://www.w3.org/1999/XSL/Format;> >> >> >> >> >> >> > page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" >> margin-right="2cm"> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > initial-page-number="1" format="1"> >> >> >> >> >> >> >> >> >> >> >> >> > space-before.optimum="1pt" space-after.optimum="2pt"> >> >> >> >> >> >> >> >> >> >> >> >> > text-align="center" padding-start="3pt" padding-end="3pt" >> padding-before="3pt" padding-after="3pt" display-align="center" >> border-style="solid" border-width="1pt" border-color="white"> >> >> >> >> > select="data"> >> >> > select="texts"> >> >> > select="DateText"> >> >> > font-size="7pt"> >> >> >> >> >> >> >> >> >> >> >> >> >>….. >> >> >> >> … >> >> >> >> I tested now the normal PDF converting and its still does work. Only >> the PDF/A doesn’t work.. >> >> Maybe my java-code is wrong? >> >> >> >> // TODO:Fonts configuration in work >> >>DefaultConfigurationBuilder cfgBuilder = new >> DefaultConfigurationBuilder(); >> >>Configuration cfg = cfgBuilder.buildFromFile(new >> File("cfg.xml")); >> >>FopFactoryBuilder fopFactoryBuilder = new FopFactoryBuilder(new >> File(".").toURI()).setConfiguration(cfg); >> >> >> >> >> >> final FopFactory fopFactory = FopFactory.newInstance(new >> File(".").toURI()); >> >> >> >> >> >> F
Re: font question (was Re: alternate text extension not working in FOP version 2.0)
Hi, You don't need metric files anymore since v0.95 (or earlier, don't remember exactly). To have both normal, extended, or condensed fonts, you have to name them differently, style attribute is only used to distinguish regular Vs italic. The main improvement in font variations, between v0.2.x and after, is the weight attribute that support numeric values, allowing to map 'light', 'normal', 'medium', 'bold', etc. to 300, 400, 500, 700, etc. 2015-10-26 16:20 GMT+01:00 Eva: > Hi Chris, > > I'm in the process of converting fop from version 0.25 to version 2. There > are several custom fonts and I had no problem registering custom fonts when > I specify style with "normal" or "italic" in font-triplet. However, I've a > font with different styles which registered as below where style is being > used to distinguish the difference from the same font. I assume I can put > any style name in font-triplet and I should be able to use it in fo where I > need to specify the matching font-family and style. My current work around > would be register each style with a unique name in font-triplet and change > all the corresponding references in fo. I just want to verify if the newer > version of FOP won't be able to specific any other styles other than > "normal" and "italic" in in the config. Or I'm missing > something in the config in order to add a new style. Do I need a metric-url > in this case?? > > fop.xconf: > > > > > > > fo: > (Error: Invalid property value encountered in font-style="condensed" ) > font-family="Eurostile" font-style="condensed" font-weight="normal" > font-size="8pt" color="white">April 30, 2015 > > (No error produce when having the same config, but changing the font-style > from condense to normal in fo then it works) > font-family="Eurostile" font-style="normal" font-weight="normal" > font-size="8pt" color="white">April 30, 2015 > > > > > -- > View this message in context: > http://apache-fop.1065347.n5.nabble.com/alternate-text-extension-not-working-in-FOP-version-2-0-tp42921p42992.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Using Sections In Technical Documentation
Hi, this list is not the right place for such question: this list is only about FOP usage, witch job starts with xsl-fo. You should ask on docbook mailing list; follow http://www.docbook.org/help. 2015-09-29 7:53 GMT+02:00 Ray J.: > I am hoping to use DocBook for some of my company's technical documentation. > I have attached the DocBook XML, my customization layer stylesheet, and the > PDF output from FOP. Can anyone help me with what I need to add/remove from > my customization layer stylesheet so that the PDF output is output nicely? > > DocBook XSL -> 1.78.1 > FOP -> 2.0 > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: javax.xml.transform.TransformerException: java.lang.NullPointerException
Hi, you should give further info to permit the audience to reproduce what you get: - FOP version - description of FOP inputs and environment - etc. 2015-09-22 21:58 GMT+02:00 Jim: > Stack trace > > javax.servlet.ServletException: > javax.xml.transform.TransformerException: java.lang.NullPointerException > org.apache.fop.servlet.FopServlet.doGet(FopServlet.java:158) > javax.servlet.http.HttpServlet.service(HttpServlet.java:624) > javax.servlet.http.HttpServlet.service(HttpServlet.java:731) > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > > > line 158 is throw new ServletException(ex); > > > public void doGet(HttpServletRequest request, > HttpServletResponse response) throws > ServletException { > try { > //Get parameters > String foParam = request.getParameter(FO_REQUEST_PARAM); > String xmlParam = request.getParameter(XML_REQUEST_PARAM); > String xsltParam = request.getParameter(XSLT_REQUEST_PARAM); > String rootParam = > request.getParameter(ROOT_REQUEST_PARAM); > > //Analyze parameters and decide with method to use > if (foParam != null) { > renderFO(foParam, response); > } else if ((xmlParam != null) && (xsltParam != null)) { > renderXML(xmlParam,xsltParam,rootParam,response); > } else { > response.setContentType("text/html"); > PrintWriter out = response.getWriter(); > out.println("Error\n" > + "FopServlet ErrorNo 'fo' > " > + "request param given."); > } > } catch (Exception ex) { > throw new ServletException(ex); > } > } > > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: rendering TIFF with FOP 2.0
Hi, can you please file in a Jira entry, attaching your material (test case, patch, etc) This will ensure that nothing will be lost or omitted. 2015-09-16 16:37 GMT+02:00 johannes.katel...@t-online.de: > OK, with the help of the FOP source I figured it out myself. > > But to make it work I hat to patch the class > org.apache.fop.render.bitmap.TIFFDocumentHandler. > > I had to change visibility of the constructor to protected, because I derive > from that class and need to call the constructor. > > Can any of the developers please respond to this? > > Or is this list not being read by the FOP developers? > > Best regards > > Johannes > > -Original-Nachricht- > Betreff: rendering TIFF with FOP 2.0 > Datum: Wed, 16 Sep 2015 12:14:20 +0200 > Von: "johannes.katel...@t-online.de" > An: fop-users@xmlgraphics.apache.org > > Hello, > > I have to move my application from FOP 1.1 to FOP 2.0 for generating PDF/A > that validates OK. > > I have successfully migrated PDF and PDF/A rendering to FOP 2.0. No major > problem with that. > > But now after migrating to FOP 2.0 the TIFF rendering that happens in the > same application is broken. Unfortunately I can't figure out how to change > the code to make it work again. > > This ist the first thing that doesn't work anymore: > > protected class MyTiffDocumentHandlerMaker extends > TIFFDocumentHandlerMaker { > ... > @Override > public IFDocumentHandler makeIFDocumentHandler(FOUserAgent ua) { > > TIFFDocumentHandler handler = new MyTiffDocumentHandler(color); > handler.setContext(new IFContext(ua)); > return handler; > > } > > Problems: > > 1. makeIFDocumentHandler(FOUserAgent ua) does not exist anymore in > TIFFDocumentHandlerMaker > 2. TIFFDocumentHandler has no setContext method anymore. > > Here's ist the second thing that doesn't work anymore: > >protected class MyTiffDocumentHandler extends TIFFDocumentHandler { >... > BitmapRenderingSettings settings = getSettings(); > settings.getWriterParams().setCompressionMethod( > TIFFConstants.COMPRESSION_PACKBITS); > > Problem: > > TIFFConstants does not exist anymore. > > Can't I find sample code or documentation somewhere that explains how to do > this with FOP 2.0. > > I need to render TIFF. And I need to set resolution, compression and color > mode. > > Thanks > > Johannes > > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: how can override the start fo:page-number in xsl:fo with my number
Hi, the right attribute is "initial-page-number". And from what I can read in FOP 0.20.5 doc (see [1]), this was implemented. Not sure however if it worked perfectly, since FOP redesign (starting from v0.9x), 0.20.x remains unmaintained. [1] https://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-0_20_5/src/documentation/content/xdocs/compliance.xml 2015-09-08 9:49 GMT+02:00 Marc: > Hi, > You have an attribute start-page-number in the sequence element. > I don't know if it's ok in FOP 0.20.5 > Marc > Le 07/09/2015 14:28, robyp7 . a écrit : >> >> Hi, >> >> i use an old fop lib version 0.20.5 >> I have an xsl:fo with >> >>
Re: how can read content of every rendered Page
Hi, I don't understand what you mean. Please provide an example: - your input - what you expect 2015-09-03 14:21 GMT+02:00 robyp7 .: > hi > > I have a problem. I need to see the content of a page before it will be > rendered by FOP, beacuse i need to get the content data (xml start tag + > character data + xml end tag) > How can i? An impl of XMLReader needed? An example? > > thanks > > Roberto -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: monospaced block behavior while wrapping lines
Hi, I see no difference between what you expect and what you get. Please provide attached files (xsl-fo and pdf) rather than copy/paste, not sure what is rendered by my mail client is what you can see on your side. 2015-09-03 16:16 GMT+02:00: > Hi, > > > > Iwant to have a PDF with a (Code)Block-Element. I done it with these lines: > > > > … > > font-size="8pt" padding-top="3pt" padding-bottom="3pt" padding-left="3pt" > padding-right="3pt" margin-right="16pt" space-before.minimum="0.8em" > space-before.optimum="1em" space-before.maximum="1.2em" > space-after.minimum="0.8em" space-after.optimum="1em" > space-after.maximum="1.2em" hyphenate="false" white-space-collapse="false" > white-space-treatment="preserve" linefeed-treatment="preserve" > font-family="monospace" background-color="#E0E0E0">Christian brothers > jameson long island iced tea caju amigo glen elgin caipiroska dark and > stormy. Lemon drop, lime rickey batida seagrams tinto de verano. Glenburgie > bijou the blenheim bijou kilchoman polish martini moscow mule ... on the > beach dark and stormy heart > > of fire early > > times mickey slim harper's > > dark and stormy.# > > > > > > … > > > > What I expected was some thing like this: > > > > Christian brothers jameson long island iced tea caju amigo glen elgin > caipiroska dark and stormy. > > Lemon drop, lime rickey batida seagrams tinto de verano. Glenburgie bijou > the blenheim bijou kilchoman > > polish martini moscow mule ... on the beach dark and stormy heart > > of fire early > > times mickey slim harper's > > dark and stormy.# > > > > > > But I’ve got this: > > > > Christian brothers jameson long island iced tea caju amigo glen elgin > caipiroska dark and stormy. > > Lemon drop, lime rickey batida seagrams tinto de verano. Glenburgie bijou > the blenheim bijou kilchoman > > polish martini moscow mule ... on the beach dark and stormy heart > > of fire early > > times mickey slim harper's > > dark and stormy.# > > > > As you can see the wrapped line starts with a space. > > > > So, what did I wrong? > > Kind regards > > > > Markus -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fop cannot resolve local font declared in fop.conf
no problem. a side note: you should not use metric files, this is deprecated unless you don't want to embed your font in PDF. for further info, see http://xmlgraphics.apache.org/fop/2.0/fonts.html#custom 2015-08-27 15:33 GMT+02:00 Christoffer Bruun cdbr...@flyingpigs.dk: As I should have guessed earlier not every rendering reused my global FopFactory that is configured with a fop.conf. After adressing this the FreeMono font worked perfectly - I apologize the disturbance Br Christoffer Bruun Den 26-08-2015 kl. 15:42 skrev Christoffer Bruun: Hi List, I am having a bit of a problem using a custom font in FOP and I am hoping someone know which knob I have failed to turn. I am using FOP 1.1 embedded on Windows7. I have configured the FreeMono font in my fop.conf file: fop version=1.0 strict-configurationtrue/strict-configuration source-resolution72/source-resolution target-resolution72/target-resolution default-page-settings height=11in width=8.26in/ font-base./fonts/freefont-20120503/font-base renderers renderer mime=application/pdf filterList valueflate/value /filterList fonts font metrics-url=FreeMono.xml embed-url=FreeMono.ttf font-triplet name=FreeMono style=normal weight=normal / /font /fonts /renderer /renderers /fop The FreeMono.xml file was generated using org.apache.fop.fonts.apps.TTFReader with no options except the filenames If I run org.apache.fop.tools.fontlist.FontListMain on my fop.conf I get this output: ... FreeMono: F15 [FreeMono] FreeMono,normal,400 ... When I try to build the PDF my FOPEventListener emits these errors: FOPEventListener:353 - Font FreeMono,normal,400 not found. Substituting with any,normal,400. If I introduce an error in fop.conf (e.g. changes the embed-url to some nonexisting file) then my PDF generation fails as would be expected. I use the FreeMono font like this: fo:inline font-family=FreeMono font-style=normal font-weight=400 font-size=12ptFreeMono IS HERE/fo:inline Is there anything else I need to do before the font is available ? Br Christoffer Bruun - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP 2.0 Docbook XSL NullPointerException
Hi, FOP uses XSL-FO as input. So, the best practice is to provide XSL-FO file on this list, not XSLT. That said, you should provide full error trace with your test case; information is not sufficient here to understand from what part the Exception is thrown. 2015-08-22 15:23 GMT+02:00 Rahman USTA rahman.usta...@gmail.com: Hello; I want to switch 1.1 to 2.0 but when converting Docbook5 to PDF I'm getting; docbook/fo/docbook.xsl; Line #312; Column #54; java.lang.NullPointerException There is no problem with docbook's latest docbook.xsl but with my custom xsl, it gives me NLP. But, there is no problem with fop1.1 also. Example docbook xml content that produces NLP; ?xml version=1.0 encoding=UTF-8??asciidoc-toc??asciidoc-numbered?article xmlns=http://docbook.org/ns/docbook; xmlns:xlink=http://www.w3.org/1999/xlink; version=5.0 xml:lang=en info titleSelam/title date2015-08-17/date /info section xml:id=_selam titleSelam/title note simparaHello world/simpara programlisting language=javascript linenumbering=unnumbered// code/programlisting /note /section /article Used xsl is; https://github.com/asciidocfx/AsciidocFX/blob/fop2/conf/docbook-config/fo-pdf.xsl If I change fo-pdf.xsl as follows, then the issue is resolved, but how can give bottom padding and bottom line for that case ?; https://github.com/asciidocfx/AsciidocFX/blob/fop2/conf/docbook-config/fo-pdf.xsl#L152 Make zero bottom padding https://github.com/asciidocfx/AsciidocFX/blob/fop2/conf/docbook-config/fo-pdf.xsl#L164 Remove line 164 https://github.com/asciidocfx/AsciidocFX/blob/fop2/conf/docbook-config/fo-pdf.xsl#L251 Make zero bottom padding Thanks -- Rahman USTA Istanbul JUG https://github.com/rahmanusta -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP2.0 taking more time format complex script documents
Hi, AFAIK, there is no rules that prevent such usage. as a starting point, you can follow this: http://xmlgraphics.apache.org/fop/dev/conventions.html 2015-08-13 10:15 GMT+02:00 Klaus Malorny klaus.malo...@knipp.de: On 12.08.2015 08:38, Pascal Sancho wrote: Hi, please, can you file in a Jira entry, attaching all materials (test case, patch, etc.) 2015-08-11 16:36 GMT+02:00 dvineshku...@gmail.com dvineshku...@gmail.com: Hi, After analysis, found a bug in MultiByteFont::findGlyphIndex() method. In FOP2.0, MultiByteFont::findGlyphIndex() method, for loop is continous even after a glyph character is found. Updated the findGlyphIndex() method to terminate the loop once the glyph character is found and performance got improved much. Refer below existing and updated method. Existing: public int findGlyphIndex(int c) { int idx = c; int retIdx = SingleByteEncoding.NOT_FOUND_CODE_POINT; // for most users the most likely glyphs are in the first cmap segments (meaning the one with // the lowest unicode start values) if (idx NUM_MOST_LIKELY_GLYPHS mostLikelyGlyphs[idx] != 0) { return mostLikelyGlyphs[idx]; } for (CMapSegment i : cmap) { if (retIdx == 0 i.getUnicodeStart() = idx i.getUnicodeEnd() = idx) { retIdx = i.getGlyphStartIndex() + idx - i.getUnicodeStart(); if (idx NUM_MOST_LIKELY_GLYPHS) { mostLikelyGlyphs[idx] = retIdx; } } } return retIdx; } Updated: public int findGlyphIndex(int c) { int idx = c; int retIdx = SingleByteEncoding.NOT_FOUND_CODE_POINT; // for most users the most likely glyphs are in the first cmap segments (meaning the one with // the lowest unicode start values) if (idx NUM_MOST_LIKELY_GLYPHS mostLikelyGlyphs[idx] != 0) { return mostLikelyGlyphs[idx]; } for (int i = 0; (i cmap.size()) retIdx == 0; i++) { if (cmap.get(i).getUnicodeStart() = idx cmap.get(i).getUnicodeEnd() = idx) { retIdx = cmap.get(i).getGlyphStartIndex() + idx - cmap.get(i).getUnicodeStart(); if (idx NUM_MOST_LIKELY_GLYPHS) { mostLikelyGlyphs[idx] = retIdx; } } } return retIdx; } Regards, Vinesh Kumar. D Just for curiosity: Are breaks and returns within loops forbidden in your coding conventions? ;-) By the way, if this is really a performance bottleneck and the number of segments are typically larger (say e.g. = 10), I would sort the segments by their starts and convert the three values into arrays (during object construction) and would perform a binary search on the starts, then test for the end and finally calculate the index. Regards, Klaus - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP2.0 taking more time format complex script documents
Hi, please, can you file in a Jira entry, attaching all materials (test case, patch, etc.) 2015-08-11 16:36 GMT+02:00 dvineshku...@gmail.com dvineshku...@gmail.com: Hi, After analysis, found a bug in MultiByteFont::findGlyphIndex() method. In FOP2.0, MultiByteFont::findGlyphIndex() method, for loop is continous even after a glyph character is found. Updated the findGlyphIndex() method to terminate the loop once the glyph character is found and performance got improved much. Refer below existing and updated method. Existing: public int findGlyphIndex(int c) { int idx = c; int retIdx = SingleByteEncoding.NOT_FOUND_CODE_POINT; // for most users the most likely glyphs are in the first cmap segments (meaning the one with // the lowest unicode start values) if (idx NUM_MOST_LIKELY_GLYPHS mostLikelyGlyphs[idx] != 0) { return mostLikelyGlyphs[idx]; } for (CMapSegment i : cmap) { if (retIdx == 0 i.getUnicodeStart() = idx i.getUnicodeEnd() = idx) { retIdx = i.getGlyphStartIndex() + idx - i.getUnicodeStart(); if (idx NUM_MOST_LIKELY_GLYPHS) { mostLikelyGlyphs[idx] = retIdx; } } } return retIdx; } Updated: public int findGlyphIndex(int c) { int idx = c; int retIdx = SingleByteEncoding.NOT_FOUND_CODE_POINT; // for most users the most likely glyphs are in the first cmap segments (meaning the one with // the lowest unicode start values) if (idx NUM_MOST_LIKELY_GLYPHS mostLikelyGlyphs[idx] != 0) { return mostLikelyGlyphs[idx]; } for (int i = 0; (i cmap.size()) retIdx == 0; i++) { if (cmap.get(i).getUnicodeStart() = idx cmap.get(i).getUnicodeEnd() = idx) { retIdx = cmap.get(i).getGlyphStartIndex() + idx - cmap.get(i).getUnicodeStart(); if (idx NUM_MOST_LIKELY_GLYPHS) { mostLikelyGlyphs[idx] = retIdx; } } } return retIdx; } Regards, Vinesh Kumar. D -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP2-0-taking-more-time-to-format-complex-script-documents-tp42461p42749.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: [FOP] Watermark does not overlay over text
Hi, To do so, one solution is to output your doc in IF format, add missing watermarks on every page, and re-inject the IF to FOP, that should do the trick. Read [1] for further info. [1] http://xmlgraphics.apache.org/fop/2.0/intermediate.html#usage-if 2015-07-02 1:18 GMT+02:00 Puja Jain pujajai...@gmail.com: Thanks for the reply Chris. I have tried putting the watermark in the body as suggested and it works, but I would like the watermark to appear on every page. Is there any way to force the block to appear on every page at a fixed position? What Im trying to achieve is an image watermark that will be rendered on top of contents on every pdf page at a fixed position. I have tried rendering it as a background image in the region-* but they all result in the same overlay issue. So although adding it at the end of the body contents works but it just appears on one page. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Watermark-does-not-overlay-over-text-tp42498p42511.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: How to draw these arrow characters?
Hi, In your SVG, the 4 missing glyphes (PI, OMEGA, LT-ARROW, LTRT-ARROW) are laid out with the Times New Roman font. Note that such font name includes font-family (Times New) plus font style (Roman, i.e. not italic). You should configure FOP to use such font, with the same family name, style, and weight. Note also that Times is one of the Base-14 Fonts from PDF spec (see [1]), and such fonts are handled in a particular way (not embedded, replaced if not available, automatic naming, etc.). You should try to: either use another font-family in your SVG, or explicitly configure FOP to embed what font you want here. Read [2] for further information. [1] http://xmlgraphics.apache.org/fop/1.1/fonts.html#Base-14-Fonts [2] http://xmlgraphics.apache.org/fop/1.1/graphics.html#svg-font-selection 2015-05-13 16:01 GMT+02:00 markus.sticker.e...@zf.com: Ok … This is the result on Windows without auto-detect /. Maybe now the fo is much shorter. ;-) Von: Luis Bernardo [mailto:lmpmberna...@gmail.com] Gesendet: Mittwoch, 13. Mai 2015 15:37 An: fop-users@xmlgraphics.apache.org Betreff: Re: How to draw these arrow characters? Works for me (using Mac OS X) without using a configuration file since the any font is equivalent to the New Times Roman (may even be the same) font specified in the SVG. Do not use auto-detect if you want to have better control of the fonts used. Also, supplying a bare minimum FO file that shows the problem makes it easier for us to help you... On 5/13/15 3:08 PM, markus.sticker.e...@zf.com wrote: Hello FOP, I just have a very simple question: How to setup FOP right that this arrows do not disappear? Please have a look at the attached pdf. There are two images. The first is a SVG and the second is a JPG. The JPG is just that what I expected to get. Also attached is the fo source and the svg. In my config fonts are auto-detected. When I open the svg with Chrome there are only small differences comparing to the JPG. Thanks for your help. Best regards Markus - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Unable to copy Hyphen from PDF generated using FOP
Hi, In order to get better help, you should provide XSL-FO example rather than XSLT; FOP is fed with the former. 2015-04-02 12:04 GMT+02:00 smruthi smruthi.mohan...@arisglobal.com: Thank you for your response. The PDF is viewed using Adobe Reader X - version - 10.1.0 OS used - Windows 7 Enterprise SP1 Font Used is - Arial Hyphenation is not used anywhere. The xml data itself contains a Hyphen at the end of the data. Snippet of the FOP config xml is given below : renderers renderer mime=application/pdf filterList valueflate/value valueascii-85/value /filterList fonts font-triplet name=Arial style=normal weight=normal / font-triplet name=Arial style=normal weight=bold / font-triplet name=Arial style=italic weight=normal / font-triplet name=Arial style=italic weight=bold / font-triplet name=MSGothic style=normal weight=normal/ font-triplet name=MSGothic style=normal weight=bold/ font-triplet name=MSGothic style=italic weight=normal/ font-triplet name=MSGothic style=italic weight=bold/ /fonts /renderer /renderers Also, the snippet of the xsl given below is used to fetch data(companynumb) from xml and display it : fo:table-row border-top-width=0.6pt border-top-style=solid fo:table-cell margin-right=1pt margin-left=1pt number-columns-spanned=2 border-bottom- width=0.6pt border-bottom-style=solid margin-bottom=1pt margin-top=1pt space-before.conditionality=retain space-before.optimum=1.5pt space-after.conditionality=retain space-after.optimum=1.5pt keep-together.within-column=always height=20pt fo:block text-align=start line-height=10pt font-weight=bold color=#00 font-size={$textLabelFontSize} font-family={$useFont} space-before.conditionality=retain space-before.optimum=1.5pt space-after.conditionality=retain space-after.optimum=0.2pt keep-together.within-column=always xsl:value-of select=ResourceProcesor:getMessage($resourceProcessor,'label.CompanyNumber')/ /fo:block fo:block text-align=start line-height=10pt color=#00 font-size={$textFontSize} font-family={$useFont} space-before.conditionality=retain space-before.optimum=0.2pt space-after.conditionality=retain space-after.optimum=0.2pt keep-together.within-column=always xsl:value-of select=companynumb/ /fo:block /fo:table-cell /fo:table-row I have no clue as to what is going wrong here. Please let me know what can be done... -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Unable-to-copy-Hyphen-from-PDF-generated-using-FOP-tp41920p41925.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
Hi, generally speaking, FOP prior 0.9x was widely buggy, regarding block-progression-dimension (AKA height) related things. Current FOP versions (since refactoring started with 0.9x) gives expected results. In addition, older versions didn't fully respect XSL-FO recommendations. So you'll get substantial benefits upgrading FOP 0.2x to latest release (currently 1.1). 2015-02-16 14:05 GMT+01:00 fop_ag nithinurs.venugopalraj...@arisglobal.com: Hi Pascal, Will check this solution.. But one doubt , y with newer fop version it stopped working in expected way ? In older version it was working properly.. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Re-Fixing-the-table-height-tp41699p41772.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
fingers too big ... That said, I'm not sure that fixed table height will be implemented in short-term; the main question is: how distribute remaining vertical space between rows. 2015-02-17 8:47 GMT+01:00 Pascal Sancho psancho@gmail.com: Hi, generally speaking, FOP prior 0.9x was widely buggy, regarding block-progression-dimension (AKA height) related things. Current FOP versions (since refactoring started with 0.9x) gives expected results. In addition, older versions didn't fully respect XSL-FO recommendations. So you'll get substantial benefits upgrading FOP 0.2x to latest release (currently 1.1). 2015-02-16 14:05 GMT+01:00 fop_ag nithinurs.venugopalraj...@arisglobal.com: Hi Pascal, Will check this solution.. But one doubt , y with newer fop version it stopped working in expected way ? In older version it was working properly.. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Re-Fixing-the-table-height-tp41699p41772.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
Hi, I understand now what you want. For that, you need to set row height. This can be computed at XSLT stage: xsl:variable name=rowHeigh value=concat($availableHeight div count($myInputData/row), 'pt')/ ... fo:row height={$rowHeigh} ... /fo:row 2015-02-16 6:14 GMT+01:00 fop_ag nithinurs.venugopalraj...@arisglobal.com: Hi, I've attached a snapshot which gives pictorial representation of the problem. problem.jpg http://apache-fop.1065347.n5.nabble.com/file/n41769/problem.jpg -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Re-Fixing-the-table-height-tp41699p41769.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
My mistake, I was talking about space-before and space-after properties, with are composite too (.minimum, .maximum, and .optimum) 2015-02-12 13:58 GMT+01:00 Pascal Sancho psancho@gmail.com: that can be achieved playing with block-progression-dimension.minimum, b-p-d.optimum, and b-p-d.maximum properties. -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
Hi, link seems broken plus, the best material in this list will be a short xsl-fo (not xlst) demonstrating the issue. 2015-02-11 6:28 GMT+01:00 fop_ag nithinurs.venugopalraj...@arisglobal.com: Hi, I tried the same thing u told. Still same problem with the height. I'm attaching the snapshot of generated report. http://apache-fop.1065347.n5.nabble.com/file/n41725/snapshot.jpg -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Re-Fixing-the-table-height-tp41699p41725.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
Hi, FOP 1.1 only accepts value auto for fo:table@height. Other values are replaced with 'auto'. If you want a frame with a fixed (or minimal) height, then embed your table in an fo:block-containter: fo:block-container border=solid red 1pt block-progression-dimension.minimum=1cm inline-progression-dimension=100% fo:table table-layout=fixed width=100% ... /fo:table /fo:block-container 2015-02-10 13:05 GMT+01:00 fop_ag nithinurs.venugopalraj...@arisglobal.com: Hi, I'm trying to use the fo:block-container like u mentioned, but still the table height is not constant.. It grows or shrinks depending on total no of rows in the table. THis is the xsl i used xsl_updated.txt http://apache-fop.1065347.n5.nabble.com/file/n41706/xsl_updated.txt -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Re-Fixing-the-table-height-tp41699p41706.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
Hmm, rather than use an fo:table to get a fixed height area, you should use an fo:block-container. Note that with modern FOP, such elements are handled in a better way than the (very old) FOP 0.2.x. Then, you can insert an fo:table in your fo:block-container if you lay out tabular data. 2015-02-10 5:29 GMT+01:00 fop_ag nithinurs.venugopalraj...@arisglobal.com: Hi, The total no of columns defined is also proper, I'm getting the error after moving the fo:table-row inside xsl:for-each. If the fo:table-row is placed outside for-each tag i.e., after fo:table-body the report gets generated without any error. But the table height is not fixed in this case. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Re-Fixing-the-table-height-tp41699p41700.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
hi, For such question please ask on FOP-users list, FOP-dev list is for internal dev. That said, for minimum table height, you should set it on a table-row: fo:table table-layout=fixed width=100% border=solid red 1pt fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row block-progression-dimension.minimum=1cm fo:table-cell fo:block/ /fo:table-cell /fo:table-row /fo:table-body /fo:table Note that the message you get has nothing to do with table height; it is related to column count; On the resulting table grid, you have more cells thant expected. You should have a look on the resulting XSL-FO to find the issue. XSLT cannot help here. HTH, 2015-02-09 12:45 GMT+01:00 fop_ag nithinurs.venugopalraj...@arisglobal.com: I upgraded to fop 1.1 from 0.20.5. In older version the table height was fixed, but with newer fop version the height of table is limited to amount of rows available. I'm using the xsl code provided in attached file - xsl_sample.txt http://apache-fop.1065347.n5.nabble.com/file/n41697/xsl_sample.txt I tried to move the fo:table-row height=5mm after the creation of fo:table-body, but its giving the following exception - The column-number or number of cells in the row overflows the number of fo:table-columns specified for the table. (See fo:table-row, ???(39994080, ???(, ...) Is there any way to have a table of fixed length of 5mm, so that even when there is no data, the table should always be of same height. Thank You. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Fixing-the-table-height-tp41697.html Sent from the FOP - Dev mailing list archive at Nabble.com. -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Barcode generation with FOP 1.1
Hi, Bugzilla was replaced with Jira few years ago. *all* issues had been transferred to the latter. The cited issue can be monitored in Jira DB: follow [1]. [1] https://issues.apache.org/jira/browse/FOP-1842 2015-01-18 18:12 GMT+01:00 Luis Bernardo lmpmberna...@gmail.com: I tested your example from the command line using fop-1.1 and the the jars barcode4j-fop-ext.jar, barcode4j-xgc.jar and barcode4j.jar and it worked. So the issue is probably with your environment setup. After you run you code, in the debug perspective, right click in the execution entry and select properties. You should see then the classpath used by eclipse. On 1/17/15 10:54 PM, MartinKl wrote: Thanks for reproducing the issue. I´ve checked the the link with same issue you provided. Issues is still in reopen state and noone probably touched four 2+ years :/ I am still hoping to in fixing the issue or finding some workaround. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617p41619.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Searching hyphenated variablenames in PDF (with Acrobat)
Hi, tried on same version but win, with same result as Luis. Same result with Firefox buitin reader: I get 1 occurrence for both search words 2015-01-14 23:11 GMT+01:00 Luis Bernardo lmpmberna...@gmail.com: There was only one file attached Also, I was not able to reproduce the issue (maybe because I don't understand what you describe) -- I used the Mac version of Adobe Reader 11.0.10. Can you clarify? What is the word you are searching for? On 1/14/15 6:26 PM, markus.sticker.e...@zf.com wrote: Hi, I wonder about the different behavior with these two files in the attachment. The part I’m dealing with looks nearly the same, but as I try to search or copy the text parts I get different results. At first I tried to seach the some words: Kraftfahrzeugsteuer à 1 hit Kraft_fahrzeugsteuer à 1 hit Jesuslatschenherstellerdachverbandsvorsitzender à 1 hit Jesus_latschenhersteller_dachverbandsvorsitzender à 0 hits So why does the last one do not work? Kind regards Markus Sticker -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: AW: AW: Searching hyphenated variablenames in PDF (with Acrobat)
Hi, reading back the post, I confirm what said Thanasis: only reproductible on adobe for win, either english or french language, Firefox buildin reader working as expected. 2015-01-15 11:06 GMT+01:00 A Gian a.yan...@hotmail.com: My findings were based on the pdf file that Markus provided on his original post. Thanasis From: markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org Subject: AW: AW: Searching hyphenated variablenames in PDF (with Acrobat) Date: Thu, 15 Jan 2015 09:51:37 + You tried the sample I send yesterday? Von: A Gian [mailto:a.yan...@hotmail.com] Gesendet: Donnerstag, 15. Januar 2015 10:35 An: fop-users@xmlgraphics.apache.org Betreff: RE: AW: Searching hyphenated variablenames in PDF (with Acrobat) Hello, I do not know if this is helpful, but i could only reproduce the issue with acrobat reader 11.0.10 on windows. When tried different reader (foxit) the word Jesus_latschenhersteller_dachverbandsvorsitzender was found. Thanasis . From: markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org Subject: AW: Searching hyphenated variablenames in PDF (with Acrobat) Date: Thu, 15 Jan 2015 09:16:29 + Hi, sorry, but the second files was demaged. For a better understanding what I want to do I did a screen capture: https://www.youtube.com/watch?v=3kjofqFxx7o Maybe that will help. Best regards Markus -Ursprüngliche Nachricht- Von: Pascal Sancho [mailto:psancho@gmail.com] Gesendet: Donnerstag, 15. Januar 2015 09:21 An: fop-users@xmlgraphics.apache.org Betreff: Re: Searching hyphenated variablenames in PDF (with Acrobat) Hi, tried on same version but win, with same result as Luis. Same result with Firefox buitin reader: I get 1 occurrence for both search words 2015-01-14 23:11 GMT+01:00 Luis Bernardo lmpmberna...@gmail.com: There was only one file attached Also, I was not able to reproduce the issue (maybe because I don't understand what you describe) -- I used the Mac version of Adobe Reader 11.0.10. Can you clarify? What is the word you are searching for? On 1/14/15 6:26 PM, markus.sticker.e...@zf.com wrote: Hi, I wonder about the different behavior with these two files in the attachment. The part I’m dealing with looks nearly the same, but as I try to search or copy the text parts I get different results. At first I tried to seach the some words: Kraftfahrzeugsteuer à 1 hit Kraft_fahrzeugsteuer à 1 hit Jesuslatschenherstellerdachverbandsvorsitzender à 1 hit Jesus_latschenhersteller_dachverbandsvorsitzender à 0 hits So why does the last one do not work? Kind regards Markus Sticker -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org B�CB��[��X��ܚX�KK[XZ[ ��� ]\�\��][��X��ܚX�P‑[ܘ\X�˘\X�K�ܙ�B��܈Y][ۘ[��[X[� �K[XZ[ ��� ]\�\��Z[ ‑[ܘ\X�˘\X�K�ܙ�B� -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: DITA-OT/FOP and Devanagari Scripts
Hi, Theorically, FOP should support Devanagari scripts. you should provide further information: - FOP version - used fonts (for Devanagari scripts) - short FO example demonstrating the issue, - etc. That said, and IIUC, you are probably facing to the existing issue about Devanagari diacritics (see issue [1]). Can you confirm that point? if yes, you should want to add further info/comment there. [1] https://issues.apache.org/jira/browse/FOP-2437 2015-01-12 8:09 GMT+01:00 Janaki Ramamurthy janaki...@gmail.com: Good Afternoon, I am customizing the PDF plug-in and have got it working for the most part. However, the customer wants us to include some Hindi content (Devanagari script) and I notice that it is not rendered properly when I use Apache FOP. (As to details of not rendered properly, I can only explain in lay man terms that the matras, half-matras and jod-akshars are displayed incorrectly. Attached is the image of the original and rendered content.) https://lh5.googleusercontent.com/-KURl0tsIbLM/VK-fSDxNQuI/AAU/FnXD51BcCE4/s1600/Test_1.png However, when I used a trial version of Antenna House FOP Processor, the Hindi text was rendered correctly. I was reading the documentation for both OT and FOP. Am I correct in understanding that I cannot render DITA content in Devanagari script using the FOP combination? I am using Oxygen as the XML Editor. Any help will be appreciated. Regards, Janaki -- You received this message because you are subscribed to the Google Groups DITA-OT Users group. To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Eliot Kimber -- pascal
Re: Different sort between FOP and XSL
Hi, Sorting is only an XSLT feature, not a XSL-FO one. Note that sort implementation may differ from XSLT engines, as said in XSLT-REC (see [1]): It is possible for two conforming XSLT processors not to sort exactly the same. Note again that FOP bundle comes with Xalan as XSLT engine for convenience, but you can use your own, i.e. MSXML, and feed FOP with the resulting FO. [1] http://www.w3.org/TR/xslt#sorting 2014-10-20 9:02 GMT+02:00 Jean-Pierre Lamon g...@ngscan.com: Hi all, FOP 1.1 - XSLT 1.0 With exactly the same code for my key indexing, I'm getting two different ordering sequences through XSLT or FOP: XSLT (MSXML) (Tried with XML2PDF, sort is also OK) A CACCIA DEL BOSONE DI HIGGS A DOS DE DROMADAIRE ABATON ABATON ABATON ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI AFFOLTER JEHANNE First white space after A is preserved FO ABATON ABATON ABATON A CACCIA DEL BOSONE DI HIGGS ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI A DOS DE DROMADAIRE First white space A after here is ignored Any idea? Regards JP - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Different sort between FOP and XSL
Xerces is an XML parser, not an XSLT engine. If you are speaking about the latter, you can use your own, including Xalan (2.7.1), MsXml, Saxon, LibXslt, etc. the general process is: 1. transform xml+xslt to get xsl-fo using the chosen Xslt engine 2. transform xsl-fo to get pdf (or whatever final format) using Fop The way to proceed between the 2 stages depends on how you invoke FOP (command line, embedded, webservice, etc.): pipe, stream, temp file, etc. 2014-10-20 11:52 GMT+02:00 Jean-Pierre Lamon g...@ngscan.com: Thx for your reply. And if I would like to test Xerces with FOP? Possible? With version 1.1 I can see xercesImpl-2.7.1.jar A way to change that? Cheers JP -Message d'origine- De : Pascal Sancho [mailto:psancho@gmail.com] Envoyé : lundi 20 octobre 2014 11:17 À : fop-users@xmlgraphics.apache.org Objet : Re: Different sort between FOP and XSL Hi, Sorting is only an XSLT feature, not a XSL-FO one. Note that sort implementation may differ from XSLT engines, as said in XSLT-REC (see [1]): It is possible for two conforming XSLT processors not to sort exactly the same. Note again that FOP bundle comes with Xalan as XSLT engine for convenience, but you can use your own, i.e. MSXML, and feed FOP with the resulting FO. [1] http://www.w3.org/TR/xslt#sorting 2014-10-20 9:02 GMT+02:00 Jean-Pierre Lamon g...@ngscan.com: Hi all, FOP 1.1 - XSLT 1.0 With exactly the same code for my key indexing, I'm getting two different ordering sequences through XSLT or FOP: XSLT (MSXML) (Tried with XML2PDF, sort is also OK) A CACCIA DEL BOSONE DI HIGGS A DOS DE DROMADAIRE ABATON ABATON ABATON ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI AFFOLTER JEHANNE First white space after A is preserved FO ABATON ABATON ABATON A CACCIA DEL BOSONE DI HIGGS ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI A DOS DE DROMADAIRE First white space A after here is ignored Any idea? Regards JP - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP alignment problem between two font type
Font char box seem different, and baselines are not correctly aligned As a workaround, you can use this: fo:block747 fo:inline alignment-adjust=0.3emΩ/fo:inline/fo:block 2014-10-20 13:11 GMT+02:00 Puja pujaag...@gmail.com: http://apache-fop.1065347.n5.nabble.com/file/n41322/FOP_AlignmentProblem.png Hi, I am using FOP 1.0 version for converting reports in PDF. Problem I am facing is alignment between two font type. I am using Font-Family=Halvetica,Symbol My xml requirement is to display greek omega sign as a unit for impedance.As per my understanding as omega is not present in Halvetica, font used to diplay omega is Symbol but alignment for both font type does not match. I tried display-align, text-align, vertical-align but it doesn't work. Below is section from my fo file, please suggest how to correct the alignment. I have attached current alignment screen shot as well. fo:table-cell number-columns-spanned=2 text-align=right fo:block fo:inline fo:inline747/fo:inline /fo:inline fo:inline space-start=5pxΩ/fo:inline /fo:block /fo:table-cell -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-alignment-problem-between-two-font-type-tp41322.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: java.lang.IllegalStateException: fontLookup must return an array with at least one FontTriplet on the last call. Lookup: Calibri
Hi, to get some help, you should provide further info, i.e.: - FOP version, - environment: - OS + version, - how FOP is invoked (embedded, commandline, ...) - short xsl-fo that demonstrates the issue, - full stack trace. 2014-09-24 22:17 GMT+02:00 mani amkanth.dondap...@gmail.com: why do we get this error java.lang.IllegalStateException: fontLookup must return an array with at least one FontTriplet on the last call. Lookup: Calibri when i'm trying to print a document in an application i'm getting this error. we don;t use calibri font at all but still we are getting this error. we have similar setup in another environment and it is working there. any help please!! - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Read html content inside XML node and render this in PDF
Hi, first, this is a pure XSLT related question. You should get better answers on appropriate list (see [1]). That said, you need to parse the text node nested in the CDATA section. Basically, this is a 2 passes process: 1- make a clean XML, without CDATA markup that can be done with: xsl:value-of select=elt disable-output-escaping=yes/ 2- transform the resulting XML as usual. With Xalan, you can use the xalan:pipeDocument extension to perform both stages in a single action (see [2]). With Saxon, thee is the magic extension saxon:parse that makes the whole job (see [3]). Alternatively, XSLT processors may be extended with your own scripts, then you can write your own to parse CDATA sections. [1] http://www.mulberrytech.com/xsl/xsl-list/ [2] http://xml.apache.org/xalan-j/extensionslib.html#pipedocument [3] http://www.saxonica.com/documentation9.4-demo/html/extensions/functions/parse.html 2014-09-17 10:57 GMT+02:00 sandeshchauhan sandesh.chau...@capgemini.com: Hi, I have a XML file from which I am generating PDF. My XML file has multiple elements with CDATA which also contains html(list, table) contents. I would like to process these html content from CDATA and transform that as XSL-FO list and table. Could you please help with the approach? Sample XML file is as follows: Contact-info sand...@xyz.com address /address phone/phone /Contact-info -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Read-html-content-inside-XML-node-and-render-this-in-PDF-tp41223.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Upgrading fop 0.95 to fop 1.1 because of PDF/A-1b
Hi, embedding-mode is a new feature recently added in FOP trunk (see [1]). FOP v1.1 doesn't implement it (see [2]). [1] http://xmlgraphics.apache.org/fop/trunk/fonts.html#register [2] http://xmlgraphics.apache.org/fop/1.1/fonts.html#register 2014-08-20 19:13 GMT+02:00 MartinKl klapec.mar...@hotmail.com: Hello Simon, Thank you for your response. I will try to apply the path you give the link on it. You also gave me a kick to look up if embedding-mode=full work in FOP 1.1 . Apparently not https://issues.apache.org/jira/browse/FOP-2128?jql=text%20~%20%22embedding-mode%3D%5C%22full%5C%22%22 https://issues.apache.org/jira/browse/FOP-2128?jql=text%20~%20%22embedding-mode%3D%5C%22full%5C%22%22 and here is also patch. If these two patches will work for me I will be happy and angry on same time... but more happy :-D I will try it tomorrow when I get to work. Thank you a lot. Martin -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Upgrading-fop-0-95-to-fop-1-1-because-of-PDF-A-1b-tp41090p41093.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Upgrading fop 0.95 to fop 1.1 because of PDF/A-1b
Hi, sure, font embedding exists for a long time in FOP. we 're talking about embedding subset or full font, witch is a quite recent feature. 2014-08-21 9:16 GMT+02:00 Szeak (Register Man) szea...@gmail.com: Hi, I think font embedding into PDF works with FOP 1.1, as described here: http://xmlgraphics.apache.org/fop/1.1/fonts.html#embedding I'm using FOP 1.1 and embedding works well with PDF format. Bye, Szeak 2014-08-21 08:56 keltezéssel, Pascal Sancho írta: Hi, embedding-mode is a new feature recently added in FOP trunk (see [1]). FOP v1.1 doesn't implement it (see [2]). [1] http://xmlgraphics.apache.org/fop/trunk/fonts.html#register [2] http://xmlgraphics.apache.org/fop/1.1/fonts.html#register 2014-08-20 19:13 GMT+02:00 MartinKl klapec.mar...@hotmail.com: Hello Simon, Thank you for your response. I will try to apply the path you give the link on it. You also gave me a kick to look up if embedding-mode=full work in FOP 1.1 . Apparently not https://issues.apache.org/jira/browse/FOP-2128?jql=text%20~%20%22embedding-mode%3D%5C%22full%5C%22%22 https://issues.apache.org/jira/browse/FOP-2128?jql=text%20~%20%22embedding-mode%3D%5C%22full%5C%22%22 and here is also patch. If these two patches will work for me I will be happy and angry on same time... but more happy :-D I will try it tomorrow when I get to work. Thank you a lot. Martin -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Upgrading-fop-0-95-to-fop-1-1-because-of-PDF-A-1b-tp41090p41093.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Formating issue with fop
Hi, Your XSL-FO snippet is not very usefull, since truncated. FOP job comes after the XSLT transformation. You should pay attention on the XSLT process. As you used XEP before, you may take the XSL-FO sent to XEP and feed directly FOP with it. Note: the FOP package comes with Xalan, but this is only for convenience, you can use the one you are familiar with. 2014-08-11 11:00 GMT+02:00 rushabh rushabh.ajm...@igate.com: Hi, The FO file is generating truncated only. I think this might be due to formatting error occured while transformation. But here i want to add something that, I am migrating from XEP to FOP. In XEP it's working fine. Whereas in FOP it doesn't . So i am able to locate the error in xsl file to fix. :( -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Formating-issue-with-fop-tp41053p41055.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Report Header issue when migrating from XEP to FOP
Hi, In addition to expected/issued output, please, you should provide further information: - short XSL-FO (resulting from xml+xslt transformation). Without this material, help you will be difficult. - FOP version Both FOP and XEP provide extensions that do not have same scope or do not work in the same way. In addition, XSL-FO implementation coverage may differ in some points. 2014-08-05 8:31 GMT+02:00 rushabh rushabh.ajm...@igate.com: Hi , I am suppose to migrate XSLT Processor from XEP to Apache FOP. I am kind of a new to FOP . I am facing a kind of formatting issue with header of pdf report . Both the result defers when running in XEP and FOP . I have tried a lot to resolve . I have attached XML and XSL file along with Resulting POC. Can you guide me the problem please. ? in xsl of attachment i have added fo:block here in Table:cell Tamplate which is not required to add while running in XEP .. And i have puted background color to each row to identify.. SO it is greatful if you can suggest me the issue .. sample_XML.txt http://apache-fop.1065347.n5.nabble.com/file/n41027/sample_XML.txt sample_XSL.txt http://apache-fop.1065347.n5.nabble.com/file/n41027/sample_XSL.txt XEP_Output.png http://apache-fop.1065347.n5.nabble.com/file/n41027/XEP_Output.png FOP_Output.png http://apache-fop.1065347.n5.nabble.com/file/n41027/FOP_Output.png Thanks, Rushabh Software Engineer xsl:template match=report:tableCell extension:ifAvailable availability={@availability} fo:table-cell fo:block xsl:for-each select=@rowSpan xsl:attribute name=number-rows-spanned xsl:value-of select=string()/ /xsl:attribute /xsl:for-each xsl:for-each select=@columnSpan xsl:attribute name=number-columns-spanned xsl:value-of select=string()/ /xsl:attribute /xsl:for-each extension:ifAvailable/ extension:alignmentAttributes/ extension:borderAttributes/ extension:paddingAttributes/ extension:fontAttributes/ extension:colorAttributes/ extension:fontSizeAttributes/ extension:withinContainer orientation=vertical xsl:apply-templates/ /extension:withinContainer /fo:block /fo:table-cell /extension:ifAvailable /xsl:template -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Report-Header-issue-when-migrating-from-XEP-to-FOP-tp41027.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Loading fonts problem
Hi, To prevent FOP from using font cache, you can configure FOP to deactivate it: just add this in your configuration file: use-cachefalse/use-cache Notes: Metric files are deprecated since FOP 1.0. With FOP 0.94 et 0.95, such files were usefull only if you wanted to only reference fonts, not embed them in PDF. Since FOP 1.0, there is a command line tool to get font list: org.apache.fop.tools.fontlist.FontListMain 2014-08-04 14:07 GMT+02:00 MartinKl klapec.mar...@hotmail.com: Hello, I have problems with loading fonts and the default fonts are used instead. I´ve generated fonts metrics using TTFReader which is in FOP0.95. Then I paste to our application and configured paths to it. renderer mime=image/png fonts font-triplet name=Arial style=normal weight=normal/ ... but everytime I run document generation from our application I always found all fonts from config file in op-fonts.cache which means the fonts were not loaded and wont be loaded againg. I would like to ask if there a way how to get more information about the problem? Some extended logging? Because I do not get what is wrong with it. Thank you for your response. Great Regards MartinKl -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: SingleByteFont Patch
Hi, can you file in entries in Jira, please? see our HowTo [1] submitting patches. [1] http://xmlgraphics.apache.org/fop/dev/#patches 2014-07-01 12:36 GMT+02:00 Kai Hofmann powers...@web.de: Dear all, looks like there is another bug based on the before mentioned problem: FOPGVTGlyphVector: private void buildBoundingBoxes() { boundingBoxes = new Rectangle2D[glyphs.length]; for (int i = 0; i glyphs.length; i++) { Rectangle bbox = fontMetrics.getBoundingBox(glyphs[i], fontSize); boundingBoxes[i] = new Rectangle2D.Float(bbox.x / 100f, -(bbox.y + bbox.height) / 100f, bbox.width / 100f, bbox.height / 100f); } } Here the result of the patched getBoundingBox seems to be used without a null pointer check. Please keep attention on getBoundingBox which explizitly returns null Looks like it would help to have complete javadocs which describe the possible return values to avoid such mistakes. Gesendet: Dienstag, 01. Juli 2014 um 10:52 Uhr Von: Kai Hofmann powers...@web.de An: fop-users@xmlgraphics.apache.org Betreff: SingleByteFont Patch Dear all, I found a small bug in SingleByteFont - please see attached patch - in getBoundingBox: if (idx = 0 idx boundingBoxes.length) might result in a null pointer exception, when getBoundingBox is called before setBoudning box. So repleace with: if (boundingBoxes != null idx = 0 idx boundingBoxes.length) -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: NPE from GraphicsUtil.getAlphaRaster
Hi, You should provide a test case (short xsl-fo + image causing NPE). Did you test against FOP 1.1 or FOP trunk? For submitting a Patch, please open a dedicated issue in Jira (see [1] for further details). Note: I'm not sure getAlphaRaster() may return null. If true, your patch should be against xmlgraphics rather than fop. [1] http://xmlgraphics.apache.org/fop/dev/#patches 2014-06-20 5:19 GMT+02:00 Shane Witbeck sh...@digitalsanctum.com: Hi, We use FOP 1.0 for converting documents to PDF. In certain cases when the document contains an image that returns null from GraphicsUtil.getAlphaRaster, this results in a NPE shown below: 2014-06-19 10:08:12,932 [http-nio-8080-exec-4] [1:admin:REGULAR] ERROR org.apache.fop.area.AreaTreeModel - Error while rendering page 1 java.lang.NullPointerException: Parameter alpha must not be null at org.apache.fop.pdf.AlphaRasterImage.init(AlphaRasterImage.java:53) at org.apache.fop.pdf.AlphaRasterImage.init(AlphaRasterImage.java:67) at org.apache.fop.render.pdf.ImageRenderedAdapter.setup(ImageRenderedAdapter.java:125) at org.apache.fop.pdf.PDFDocument.addImage(PDFDocument.java:828) at org.apache.fop.render.pdf.PDFImageHandlerRenderedImage.handleImage(PDFImageHandlerRenderedImage.java:80) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:227) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:183) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:148) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingURI(AbstractIFPainter.java:270) at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:146) at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1171) at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1158) at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:741) at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:709) at org.apache.fop.render.intermediate.IFRenderer.renderViewport(IFRenderer.java:860) at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:634) at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:912) I have a possible fix patch for the org.apache.fop.pdf.AlphaRasterImage (line ~58) here: /** * Create a alpha channel image. * Extracts the alpha channel from the RenderedImage and creates a new bitmap image * with the given data. * * @param k the key to be used to lookup the image * @param image the image (must have an alpha channel) */ public AlphaRasterImage(String k, RenderedImage image) { this(k, getAlphaRaster(image)); } private static java.awt.image.Raster getAlphaRaster(RenderedImage image) { java.awt.image.Raster raster = GraphicsUtil.getAlphaRaster(image); if (raster == null image.getColorModel() instanceof IndexColorModel) { int width = image.getWidth(); int height = image.getHeight(); WritableRaster writableRaster = image.getColorModel().createCompatibleWritableRaster(width, height); image.copyData(writableRaster); return writableRaster; } return raster; } This fixes the NPE but results in a muted image in the resulting PDF file. I’d like feedback on the possible fix as well as any ideas as to why the resulting image is muted. Thanks in advance! -- Shane -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: NPE from GraphicsUtil.getAlphaRaster
I'm speaking about GraphicsUtil.getAlphaRaster(), of course. 2014-06-20 10:36 GMT+02:00 Pascal Sancho psancho@gmail.com: Note: I'm not sure getAlphaRaster() may return null. If true, your patch should be against xmlgraphics rather than fop. -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Misleading Error Message When Image Exceeds Viewport
Hi, to prevent such warning, you should use *-progression-dimension.maximum properties. on i-p-d axis, this is trivial (100% is usable), but on b-p-d axis, you have to compute the maximum size by yourself: fo:external-graphic src=woman_navy_1918.jpg inline-progression-dimension.maximum=100% content-width=scale-down-to-fit block-progression-dimension.maximum=20cm content-height=scale-down-to-fit/ 2014-06-18 18:58 GMT+02:00 bob swanson bobswans...@gmail.com: I was working on a large (530+ pages) PDF creation and was receiving an error that the viewport was being exceeded. I finally figured out that an image was too long, and bled beyond the text of the page. That is my issue, and I figured out at least one way to get around that. The problem is that the error message issued gave the wrong page number, and I was looking for trouble in the wrong part of the output PDF. The following ZIP file has a script and input files that reproduce the problem with the error message. The script would need modification to run on another machine, as I have quite a configuration mess to deal with. However, the fop script invocation is pretty simple, and the input .fo file is also pretty simple. http://swansongrp.com/misc/the_test.zip If necessary, I can open a problem report. Thanks for all your help, Bob Swanson bobswans...@gmail.com -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Misleading Error Message When Image Exceeds Viewport
regarding the warning message, I can't reproduce the wrong page number. 2014-06-18 18:58 GMT+02:00 bob swanson bobswans...@gmail.com: I was working on a large (530+ pages) PDF creation and was receiving an error that the viewport was being exceeded. I finally figured out that an image was too long, and bled beyond the text of the page. That is my issue, and I figured out at least one way to get around that. The problem is that the error message issued gave the wrong page number, and I was looking for trouble in the wrong part of the output PDF. The following ZIP file has a script and input files that reproduce the problem with the error message. The script would need modification to run on another machine, as I have quite a configuration mess to deal with. However, the fop script invocation is pretty simple, and the input .fo file is also pretty simple. http://swansongrp.com/misc/the_test.zip If necessary, I can open a problem report. Thanks for all your help, Bob Swanson bobswans...@gmail.com -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: [PDF Renderer] Why FOP scales down 300 dpi images and not maintain the intrinsic image dimension?
Hi, When the dpi values (pixel width and hight) are explicitely specified in the image, so it's easy to compute the actual size (IOW natural size). Many API or tools can read such values. When those values are not available, FOP uses its own pixel size, witch defaults to 1/72in. 2014-06-17 15:21 GMT+02:00 Dridi Seifeddine sdr...@iptech-group.com: Thanks everyone, OK. I understand better now. Just one last question Vincent: How do you know the “natural” size of an image? Isn’t it the size in pixels specified in the image file? -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: xsl fo 1.1 pdf duplex printing
Hi, 2014-06-17 17:23 GMT+02:00 Vijaya Raghavan.R vijayaraghava...@solartis.net: Need some clarifications in xsl fo 1.1 version. - Is it possible set duplex (back to back ) printing setup in xsl design? There is nothing in XSL-FO 1.1 for that. Such directives are for PDF reader. IMHO that should be possible with appropriate metadata witch are outside the XSL-FO namespace. But such metadata need exrta development to be properly handled - Need to show notes in pdf, but need to hide it while printing the pdf ( using xsl ) Same as above. - how to include book marks for external pdf's perhaps the internal-destination property [1] meets your need here. If anyone having ideas, please help. [1] http://www.w3.org/TR/xsl/#internal-destination -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: how to find page numbers while merging more than one PDF
Hi, Did you tried the external-document FOP extension [1]? It's incomplete but could do the trick (not tried, yet). Other alternative is to post process with third tool like iText [2]. [1] http://xmlgraphics.apache.org/fop/1.1/extensions.html#external-document [2] http://sourceforge.net/projects/itext/ 2014-06-17 17:29 GMT+02:00 Vijaya Raghavan.R vijayaraghava...@solartis.net: Hi, We are generating pdf's separately ,at the end we merge it to single pdf. (ex: generating three pdf's with 4,8,3 pages respectively. at the end we merge it to single pdf) In this case how to find the total page numbers dynamically using page-number-citation . Please help. Thanks in advance -- View this message in context: http://apache-fop.1065347.n5.nabble.com/how-to-find-page-numbers-while-merging-more-than-one-PDF-tp40801.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Migrating FOP and XSL FO to 1.1
Hi, FOP 0.93 is quite old (released on 9 January 2007), so many improvments, bugfixes, new features, etc. were added since that version (see [1]). performance is not ommited: - less memory consuption - faster - producing smaller files - etc. To upgrade, read 1st the uprgrading page at [2]. You may pay attention on - font management (metrics files are deprecated, and many heavy other improvments were made on this area) - uri resolution (more consistant now), used in links, external images, etc. - images (deep improvments on this area, resizing, colors, ...) - complex scripts (not all fonts support this feature) - etc. [1] http://xmlgraphics.apache.org/fop/changes.html [2] http://xmlgraphics.apache.org/fop/1.1/upgrading.html 2014-06-17 9:52 GMT+02:00 Vijaya Raghavan.R vijayaraghava...@solartis.net: Hi, I'm new to xsl . Currently we are using XSL-FO 1.0 and FOP 0.93. we planned to migrate xsl and fop to latest 1.1 version. Please let me know that,what are the things should I consider while migrating XSL FO and FOP. Is performance improved in fop 1.1? Thanks in Advance. Please guide me. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Migrating-FOP-and-XSL-FO-to-1-1-tp40792.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: [PDF Renderer] Why FOP scales down 300 dpi images and not maintain the intrinsic image dimension?
Hi, px unit defaults to 1/72 in, but you can specify other size: either in conf file with source-resolution, or in logic with fopFactory.setSourceResolution() Note that px is device dependant. You should use absolute unit instead. 2014-06-17 10:46 GMT+02:00 Dridi Seifeddine sdr...@iptech-group.com: Hello, Is that what you were trying to achieve? No. I want to leave the image as it is and prevent FOP from scaling up or down. Using this: fo:external-graphic src=300dpi.jpg width=”1919px” height=”1272px” content-width=scale-to-fit content-height=scale-to-fit/ FOP implicitly assumes that the image’s DPI is 72, so when calculating the mpt size we get (1919000, 1272000), and the image is rendered with no scaling applied. My question is: Is there any way to override the image’s DPI in FOP using the config? Thanks Seifeddine -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOnt config
Hi, Fop 0.20.x was an old design where font features were quite different from current Fop releases: IIRC, regarding this old version: - no support for auto-detect - no support for directory - metric-files required - etc. Fop 0.20.x doc can be found in archives, at [1]. I strongly encourage you to update Fop with the latest release. See [2]. [1] https://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-0_20_5/src/documentation/ [2] http://xmlgraphics.apache.org/fop/1.1/upgrading.html#pre-1.0 2014-06-04 18:17 GMT+02:00 Donald Paul Winston satchwins...@yahoo.com.invalid: FOP 0.20.5 oops, I don’t know where I got this. I see FOP 1-1 has an fop.xconf file which jives with what I see in the examples. On Jun 4, 2014, at 12:06 PM, Amick, Eric eric.am...@mail.house.gov wrote: I use auto-detect with no difficulty, and I'm sure plenty of people use the other features as well. Which version of FOP are you using? You should probably post the actual config file you're using. -Original Message- From: Donald Paul Winston [mailto:satchwins...@yahoo.com] Sent: Wednesday, June 04, 2014 11:56 To: fop-users@xmlgraphics.apache.org Subject: Re: FOnt config This does not work. fonts directoryC:\MyFonts1/directory directory recursive=trueC:\MyFonts2/directory auto-detect/ /fonts the DTD does not support directory or auto-detect -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOnt-config-tp40743p40744.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Quality of included image degrades when png rendering is used
Hi, I'm afraid that this issue still remain open. Note that now our issue database is on Jira: https://issues.apache.org/jira/browse/FOP-1663 2014-06-05 13:26 GMT+02:00 rushabh rushabh.ajm...@igate.com: Hi , Can anyone tell me that wheather this issue with PNG, is solved or not .?? I think some one has raised a bug id - 47157 regarding this to you .. So is it solved or not ?? Because i am facing the same problem with Rendering PNG files in PDF .. Thanks, Rushabh Ajmera -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Quality-of-included-image-degrades-when-png-rendering-is-used-tp5702p40755.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Adobe TextLayout Problem
Hi, you need 1st some background in both: - xslt (Xml transformation) (see [1]), - xsl-fo (see [2]) Then the process looks like this: - stage 0: develop your own xslt - stage 1: transform your xml, using your xslt, into xsl-fo - stage 2: feed fop with your xsl-fo and get pdf. Note that stage 1 and 2 can be done in a single fop call (for convenience), using command line. Also, You can start with the Fop website at [3]. [1 ]http://www.w3schools.com/xsl/ [2] http://www.w3schools.com/xslfo/ [3] http://xmlgraphics.apache.org/fop/quickstartguide.html 2014-06-03 9:56 GMT+02:00 the_mountain stefan.f.h...@web.de: Hello, I get an XML file from an Adobe.air Programm and must convert this file to an PDF file. First step is to convert the XML to a fo file with xslt and then i convert the fo to PDF. In the XML file there ist a formatted content like thie textFlow flashx.textLayout.elements.TextFlow TextFlow whiteSpaceCollapse=preserve version=2.0.0 xmlns=http://ns.adobe.com/textLayout/2008; list listStyleType=disc li p Liste1 - normal /p /li li p Liste2 - kursiv /p /li li p Liste3 - fett /p /li li p Liste4 - underlinde /p /li li p Liste5 - coloured red /p /li /list /TextFlow /flashx.textLayout.elements.TextFlow /textFlow how can i convert this style with the xsl file to fo and later to pdf? -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Adobe-TextLayout-Problem-tp40735.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: preserving a trailing space in inline
Hi, I've done further checks with your snippet. The behaviour is definitively an issue when a fo:page-number-citation-last (PNCL) comes after a fo:inline element and no content comes after the PNCL. Please, can you file in a bug entry in Jira, attaching short FO snippet (the one I've extended from yours is OK) plus PDF output. Fortunately, I've found a workaround: Just add a character AFTER the PNCL element other than a regular white space. The ZWSP (Zero Width SPace, AKA #x200b;) will do the trick (see attached snippet). 2014-05-20 6:06 GMT+02:00 Jason Harrop jhar...@gmail.com: Ooops, sorry, the space is lost after of, so I'm getting: oflast page no Thanks for pointing that out Manuel! cheers .. Jason On Tue, May 20, 2014 at 1:56 PM, Manuel Mall m...@arcus.com.au wrote: You other option might be to use a non breaking space (#160;). Also your original description is a bit confusing as you said: I'm losing the space between the word page and page-number-citation-last. According to your fo snippet there is no word page it looks more like Page No: current page no of last page no So you should be able to clearly say where the 'space is lost'. Manuel -Original Message- From: Jason Harrop [mailto:jhar...@gmail.com] Sent: Tuesday, 20 May 2014 11:04 AM To: fop-users@xmlgraphics.apache.org Subject: Re: preserving a trailing space in inline Hi Terence, thanks, it's good to know the simple FO works fine! Its non trivial for me to get rid of the inline elements, although I could get rid of the nested ones if it is these which are causing the problem. I'll look into that, but it would still be useful to get confirmation as to which of the whitespace attributes I should be using. thanks .. Jason - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal _test.fo Description: Binary data - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Drastic Performance Improvement by dropping xerces and xalan
Hi, -xsl and -xml command line parameters are there for convenience. FOP delegates XSLT transformation to Xalan before do its own job: render pdf (or whatever supported format). You can do the XSLT transformation by yourself, using whatever XSLT processor you want, and feed FOP with resulting XSL-FO. That can be done a batch processing. So, Xalan dependencies (and associated Xerces) can be removed from FOP bundle. 2014-05-14 10:38 GMT+02:00 Peter p.kullm...@arenae.ch: Actually, we are using -xsl and -xml as input. Glenn Adams-2 wrote Personally, I support removing all XSLT functions from FOP, but I'm afraid that would cause many users to find it less useful. I think it was a serious architectural error to combine those functions in the first place, but that horse left the gate long ago. On Tue, May 13, 2014 at 4:18 AM, Peter lt; p.kullmann@ gt; wrote: We had some performance problems with fop and began to investigate. For a specific example document of about 400 pages fop took about 55 seconds on a server at a client. The same process was much faster in our own setting (taking about 11 seconds). What we found out is the following: - fop from the distribution (either 1.1 release or 1.2 snapshot) takes 55 seconds - fop from the suse package takes only 11 seconds The two configurations differ in the jars: The suse config does not include xercesImpl, xalan and serializer We are running java version 1.7.0_40 OpenJDK Runtime Environment (IcedTea 2.4.1) (suse-8.18.1-x86_64) OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode) So, removing these three libraries drastically improved performance for us. Can someone explain why this is so? Can I safely drop these jars? -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Greek Characters in Postscript Output
Hi, metric files are depreca 2014-05-19 11:01 GMT+02:00 Normen n.ruh...@alphasoft.biz: iam testing with FOP 1.0 and tested with Arial and verdana True Type Fonts and the POSTSCRIPT renderer; created Metrics for it and put it into the configuration file like shown further down in this post, but the result is non readable gibberish as shown in the image below. (btw i have no problems with the PDF renderer...) Any kind of hint/help would be greatly appreciated. -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Greek Characters in Postscript Output
Sorry, fingers too big... metric files are deprecated with recent FOP releases. You don't neet them if you want to embed fonts, witch is the common way. Note also that the config schema as widely changed since FOP 0.2.x; there were many issues in the past when upgrading from 0.2.x. you should also provide short XSL-FO that demonstrates the issue. You will get quicker help from list. 2014-05-19 11:53 GMT+02:00 Pascal Sancho psancho@gmail.com: Hi, metric files are depreca 2014-05-19 11:01 GMT+02:00 Normen n.ruh...@alphasoft.biz: iam testing with FOP 1.0 and tested with Arial and verdana True Type Fonts and the POSTSCRIPT renderer; created Metrics for it and put it into the configuration file like shown further down in this post, but the result is non readable gibberish as shown in the image below. (btw i have no problems with the PDF renderer...) Any kind of hint/help would be greatly appreciated. -- pascal -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Greek Characters in Postscript Output
Hi, Did you get any error or warning message? Regarding the config file: both base and font-base value should start with file:/// 2014-05-19 12:56 GMT+02:00 Normen n.ruh...@alphasoft.biz: Hey Pascal and others, i have now uploaded the XML, XSL and the config file iam using (with several blocks commented out). I removed the mextric references in the config and deleted the metric xml files of the TTFs Arial and Verdana but without success, still. Hope someone can help me out, Thanks Normen kith_sample_1.xml http://apache-fop.1065347.n5.nabble.com/file/n40638/kith_sample_1.xml kithFO.xsl http://apache-fop.1065347.n5.nabble.com/file/n40638/kithFO.xsl FOPconfig.xml http://apache-fop.1065347.n5.nabble.com/file/n40638/FOPconfig.xml -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Greek-Characters-in-Postscript-Output-tp40610p40638.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP can not create a special table?
Hi, 1st, for FOP usage questions, please ask on fop-users list, fop-dev is for fop internal questions. That said, IIUC, you need writing-mode tb-rl for asian characters, right? Unfortunately, FOP implements only horizontal left-to-right and right-to-left modes. As a workaround, you may use the newly implemented fo:inline-container. While some required properties are not yet implemented (see FOP-1524 at [1] for further details), you can use a fo:block-container within the fo:inline-container: fo:block line 1 fo:inline-container width=20mm height=20mm fo:block-container reference-orientation=270 width=20mm height=20mm fo:blockline 2/fo:block fo:blockline 3/fo:block /fo:block-container /fo:inline-container line 4 /fo:block NOTE: since fo:inline-container is quite new in FOP, feedback is welcome. [1] https://issues.apache.org/jira/browse/FOP-1524 2014-04-14 4:34 GMT+02:00 inferyes ldming...@gmail.com: Now, I put the table in a block-container /fo:block-container reference-orientation=270/, the result is like that: http://apache-fop.1065347.n5.nabble.com/file/n40480/table-rotate.png Now, I want the text in table to arrange vertically as follow: T E S T NOT rotate the characters. Anybody have a method? Thanks very much. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-can-not-create-a-special-table-tp40479p40480.html Sent from the FOP - Dev mailing list archive at Nabble.com. -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Alternating background-color for table rows, but always restart on page break
Hi, That can only be done after XSL-FO processing. Fortunately, FOP provides XML intermediate formats (see [1]) that feed renderers. You can modify such intermediate format as you want. [1] http://xmlgraphics.apache.org/fop/1.1/intermediate.html 2014-03-27 15:15 GMT+01:00 Frank Hirsch frank.hir...@mac.com: Hi Rob, Of course there will be a parent xsl:for-each select=... selector to iterate over a list of nodes. Still I am 99% sure it will be rather a programmatic issue to be solved in the Renderer instead of XSLT... On 27 Mar 2014, at 15:10, Rob Sargent rsarg...@xmission.com wrote: Over what are you iterating? ie. to what is position() referring? Sent from my iPhone On Mar 27, 2014, at 7:55 AM, Frank Hirsch frank.hir...@mac.com wrote: It's easy to toggle to background color of table rows in XSLT using mod: fo:table-row xsl:attribute name=background-color xsl:choose xsl:when test=(position() mod 2) = 0 #ff /xsl:when xsl:otherwise #cc /xsl:otherwise /xsl:choose /xsl:attribute fo:table-cell.../fo:table-cell /fo:table-row Unfortunately this does not match my current requirement and can not be solved in XSLT which does not now of page breaks: I need to start each page with #cc - espacially if there is a page break and the table will be continued on the next page. Any ideas? -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: How to create 3D pdf with FOP 1.1
Hi, are you speaking about 3D artwork? AFAIK, there is no such extension against latest FOP release. Also, note that this feature is part of PDF 1.6 spec (see [1] §9.5, p 746). FOP v1.1 produces PDF 1.4 by default, but implements some PDF 1.5 features. (target PDF version can be changed up to 1.7 in config since FOP v1.1, see [2]). [1] http://stuff.mit.edu/afs/sipb/contrib/doc/specs/software/adobe/pdf/PDFReference16-v4.pdf [2] http://xmlgraphics.apache.org/fop/1.1/configuration.html#pdf-renderer 2014-03-27 9:06 GMT+01:00 Sebastien HO s...@traceparts.com: Hi, I would like to know if there is an extension to create a 3D pdf with FOP 1.1. I found out on the web that an phd student has done an extension for FOP 0.85 but since FOP Version 1.0 changed its design the extension doesn’t work anymore. Does anyone plan to migrate/create a extension? Regards, Sébastien -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: symbol font, versus symbolMT
Hi, The Symbol font is not a Unicode one: In a Unicode font, you have 2 glyphes that can be used: - MICRO SIGN = U+00B (#xb5; as XML entity) (the one got from keybord). - GREEK SMALL LETTER MU = U+03BC (#x03bc; as XML entity). In Symbol font, the code for the corresponding glyph is 0x6d (Unicode SMALL LETTER M). You may, either: - use the 'm' letter with the Symbol font, - or (best practice) use a Unicode letter with a Unicode font. for example: fo:wrapper font-family=Symbolm/fo:wrapper fo:wrapper font-family=DejaVuµ/fo:wrapper!-- equivalent to #xb5;-- 2014-02-19 0:45 GMT+01:00 Jason Harrop jhar...@gmail.com: With this FOP config: fop version=1.0 strict-configurationtrue/strict-configuration renderers renderer mime=application/pdf fonts font embed-url=file:/C:/Windows/FONTS/symbol.ttf font-triplet name=Symbol style=normal weight=normal/ /font : I'd like to render: inline font-family=Symbolµ/inline But FOP (1.1) says: WARN org.apache.fop.apps.FOUserAgent .processEvent line 94 - Glyph µ (0xb5, mu) not available in font SymbolMT. Is it getting confused because symbol is a Base-14 font? thanks .. Jason - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: page break at pdf file
Hi, You should give more relevant details (at least, FOP version, with short XSL-FO attached). That said, if you have a page-break after your last table, you probably have some content (not visible) after it. You should analyse what you get AFTER XSLT processing. 2014-02-13 22:43 GMT+01:00 edi4988 edi4...@gmail.com: Hi everyone, I have a template with the same table at every page from the document and after from every table I have a page break, but I have a blank page to the end of the pdf document. how can i delete a page break of the last page from the document and delete the blank page? Do I need to use a XPath condition to do this? Do you Know any idea? I use the XSL-FO property break-after (page). I use StyleVision for the XSLT template and Apache Fop for the pdf file. Thanks. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/page-break-at-pdf-file-tp40067.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Placing Copyright notice on SigPlan without using float?
Hi, Internal FOP unit is millipoint, AKA mpt To compute the right value, you just need to convert the desired one to mpt: 1pt = 1000mpt 1in = 72000mpt 1mm = 2835mpt (72000/25.4 rounded to integer) 2014-02-11 4:33 GMT+01:00 Aaron W. Hsu arcf...@sacrideo.us: Pascal Sancho psancho@gmail.com writes: If your requirement is to change the only 1st page/1st column height, the only solution I can imagine is: - add a space before to the 1st fo:block, - and tweak the FOP intermediate format (see [1]) to move up the 1st column area. I am now all but certain that this will work. I'm a bit confused about how the integers in the g elements of the intermediate value translate to actual units on the page. For instance, if I make sure there is 1in of space for the notice that I want to put in the bottom, what is the amount I have to reduce the Y axis of the transform attribute? I can get pretty close by trial and error, but I couldn't find the units documented in the Intermediate File format specification. I'd like to avoid trial and error so that this value does not need tweaking across multiple documents, fonts, and so forth. -- Aaron W. Hsu | arcf...@sacrideo.us | http://www.sacrideo.us לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Set metadata to hint the PDF viewer not to scale the content when printing
Hi, AFAICK, there is no such feature in FOP. Currently, you can post-process your PDF with iText for that (see [1]) Also, you can open a Jira ticket to suggest this feature as Enhancement. [1] http://api.itextpdf.com/itext/com/itextpdf/text/pdf/interfaces/PdfViewerPreferences.html#addViewerPreference%28com.itextpdf.text.pdf.PdfName,%20com.itextpdf.text.pdf.PdfObject%29 2014-02-06 14:09 GMT+01:00 Peter Hopfgartner peter.hopfgart...@r3-gis.com: Hi all I would like to print some technical drawings, where an accurate control of the printing scale matters. As it seems, most PDF viewers rescale the content, in order to respect the printer margins, usually by some percent. AS stated in http://stackoverflow.com/questions/4725711/set-pdf-to-print-with-no-scaling, the metadata of the document can be set, in order to hint the viewer not to scale the image. Can this be controlled from FOP? -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: problem with layout
Hi, There is a quite old FOP branch that aims to implement fo:float (see [1]) IIRC, it was based on FOP-1196 patch (see [2]). This issue is still open, but there is no plan to merge it to trunk. [1] https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats [2] https://issues.apache.org/jira/browse/FOP-1196 2014-02-07 9:05 GMT+01:00 suman ray suman.r...@tcs.com: Hi Robert, Thanks for your help. I can see your solution but my point is, the solution you provided is strictly content specific. And my primary requirement is, the content can be changed with respect to different xml and the content can be of any length. Until the float functionality is there in FOP,your solution is the only one I can use. But unfortunately it will not fulfill my requirement,so I have to come up with another layout. Regards, Suman Ray -Robert Meyer-5 [via Apache FOP] wrote: - To: suman ray [hidden email]http://user/SendEmail.jtp?type=nodenode=39988i=0 From: Robert Meyer-5 [via Apache FOP] [hidden email]http://user/SendEmail.jtp?type=nodenode=39988i=1 Date: 02/06/2014 10:10PM Subject: RE: problem with layout Hi, Floats are not currently supported by FOP: http://xmlgraphics.apache.org/fop/compliance.html http://www.w3.org/TR/xsl/#d0e14346 If you're not using XSLT and rather creating an actual FO document, what you could do is use an absolute positioned block-container to reproduce the effect. You would need to know how much text to put in it and follow it up with a block with some follow-on text. I created the attached PDF using that method, but as a warning it's very finicky and you'd need to add a margin to the top of the following block to ensure the correct line spacing. Unless someone has a better suggestion it's about the best that can be done until the feature is implemented unfortunately. Regards, Robert Meyer Date: Thu, 6 Feb 2014 07:48:03 -0800 From: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=0 To: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=1 Subject: problem with layout I want to insert two content like the attached picture. But I can not do that using apache fop. Please help me with this problem. http://apache-fop.1065347.n5.nabble.com/file/n39983/problem.jpg -- View this message in context: http://apache-fop.1065347.n5.nabble.com/problem-with-layout-tp39983.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=2 For additional commands, e-mail: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=3 - To unsubscribe, e-mail: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=4 For additional commands, e-mail: [hidden email]https://inchnm24.tcs.com/user/SendEmail.jtp?type=nodenode=39985i=5 *output.pdf* (9K) Download Attachmenthttp://apache-fop.1065347.n5.nabble.com/attachment/39985/0/output.pdf -- If you reply to this email, your message will be added to the discussion below: http://apache-fop.1065347.n5.nabble.com/problem-with-layout-tp39983p39985.html To unsubscribe from problem with layout, click here. NAMLhttp://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -- View this message in context: RE: problem with layouthttp://apache-fop.1065347.n5.nabble.com/problem-with-layout-tp39983p39988.html Sent from the FOP - Users mailing list archivehttp://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.htmlat Nabble.com. -- pascal
Re: Placing Copyright notice on SigPlan without using float?
Hi, For such questions, you should ask on DocBook List (follow [1]). [1] http://www.docbook.org/help 2014-02-06 Aaron W. Hsu arcf...@sacrideo.us: I'm not an FO expert, and I've only tweaked a few things in the DocBook XSL to do things like put the authors in a table instead of listing them one after another. I'd appreciate help in understanding how to do this, since I'm a total FO noob. -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Placing Copyright notice on SigPlan without using float?
Hi, IIUC, you want to have the copyright block only at the bottom of the 1st column of the 1st page. AFAIK, there is no FO solution for that; in one page, all columns will have same height (at least regarding XSL-FO REC 1.1). That said, you can easily change the 1st page body, , and put your copyright cartouche in a static region of the 1st page (in absolute position, if you want). If your requirement is to change the only 1st page/1st column height, the only solution I can imagine is: - add a space before to the 1st fo:block, - and tweak the FOP intermediate format (see [1]) to move up the 1st column area. Note that there is an open issue when using footnote in multicolumn (see [2]). [1] http://xmlgraphics.apache.org/fop/trunk/intermediate.html [2] https://issues.apache.org/jira/browse/FOP-1943 2014-02-05 Aaron W. Hsu arcf...@sacrideo.us: I have a nearly complete template for the Sigplan article format converting Docbook into FO using the Docbook XSL. So far, I've been able to figure out each element and have it working, so that I get something that's nearly ideal. Unfortunately, there is one problem which I cannot seem to solve. For reference, this work can be found here: https://github.com/arcfide/DocBook-Sigplan This includes the adjustments to the stylesheet and the like. It also includes a PDF showing the document as it is now. At the moment, I'm missing a small copyright notice that gets put as a block of text in the lower left hand corner, taking up part of the first column's text space on the first page. This brings the height of the first column up a bit, and leaves the bottom of the text of the copyright notice flush with the bottom of the second column of the title page. Because this is meant for academic use in research publications, I'm hoping to make it work with an open source FO processor. However, I cannot figure out the right way to put that block of text right there. I could use an absolute positioning, but that seems to be a bit of a problem, because it would cause overlap with the first column. I can't use a float because it would be rendered as a footnote if I floated it to the bottom, and that would span both columns. The only solution I can think of right now is if there were some way to lift up the first column bottom edge so that I could manually ensure that the overlap didn't happen. I would really appreciate any suggestions and solutions anyone could provide that would give me the look I'm going for. It feels like this shouldn't be something out of my reach, and it would be quite depressing if it were technically impossible, because academic publishers need a good alternative to LaTeX. :-) -- Aaron W. Hsu | arcf...@sacrideo.us | http://www.sacrideo.us לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: SVG - embedded CMYK bitmaps
Hi, Batik provides SVG REC 1.1 support. Unfortunately, CMYK is introduced in SVG 1.2 WD (see [1]). [1] http://www.w3.org/TR/SVGColor12/#icc-colors 2014-01-28 Matthias Reischenbacher matthias8...@gmx.at: Hi, I've noticed that JPEGs with DeviceCMYK color space, embedded in SVGs, are converted to sRGB when generating a PDF file. Does that happen with all kind of JPEG CMYKs? How are embedded bitmaps processed? Is that done by Batik and that's way its handled differently than normal fo:external-graphic CMYK-JPEGs? Thanks for any clarification on this matter... I've attached a sample SVG file. Best regards, Matthias - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP - features I miss
Hi Jan, see below... 2013/12/9 Jan Tosovsky j.tosov...@email.cz: Dear All, I like the idea of FOP, i.e. open-source implementation of XSL-FO processor, but I have to admit it is still not mature enough for my projects. A) For automated production of product documentation I miss mainly: 1. support for change bars (used in the review cycle phase) - https://issues.apache.org/jira/browse/FOP-1760 2. enhanced index generating (at least merging same pages into a single item) B) For my hobby projects I require high quality typography so I miss: 1. support for microtypography (protrusion, expansion) 2. support for ligatures for non-english environments https://issues.apache.org/jira/browse/FOP-2093 3. ability to typeset on grid While (A) is now handled by commercial XSL-FO product, for (B) I switched to TeX based solution (ConTeXt). None of these is ideal and I still believe one day FOP will replace them in my workflow. But I am rather sad from recent (in)activity. Is there any rough roadmap for next development? There is no roadmap for our FOP project. There is only a wiki page called User Requests Most Wanted Features (see [1]), but it is quite old. That said, you can find in Jira [2] Improvement or New Feature requests, [PATCH] from users, etc. that can figure what is expected/realized. Since FOP team is a quite small one, *all* volunteers are welcome. See FOP dev general page [3] on how to contribute. Btw, in the light of new approaches I am curious what is the future of XSL-FO technology in general: https://lists.oasis-open.org/archives/docbook-apps/201312/msg00019.html I hope FOP is not a next candidate for the abandonware list... FOP is definitively an active project, and the FOP community is always adding new features (in progress today: fo:inline-container support, fo:multi-switch support, OTF handling, etc.) Regards, Jan [1] http://wiki.apache.org/xmlgraphics-fop/MostWantedFeatures [2] https://issues.apache.org/jira/ [3] http://xmlgraphics.apache.org/fop/dev/ -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Problem with FOP, Barcode4J and AreaTreeModel
Hi, did you ask on Saxon mailing list at [1]? That should be the right place for such question. The NPE is thrown during Saxon stage. Then FOP stage runs after the Saxon one (as it takes XSL-FO as input). [1] https://lists.sourceforge.net/lists/listinfo/saxon-help 2013/12/3 Michael Mest michael.m...@gmx.de: Hi @all. At first, i want to introduce me. I'm Michael from germany and i'm working as software developer. At the moment, we are in a project which include producing barcodes. We are using barcode4j in combination with FOP Ver. 1.1 in a WebApplication hosted in a apache tomcat environment. Everything worked fine with creating files including the barcode until we got a new feature request. because of this feature request, we are not able to produce PDF-Files ans more. Instead, we have to produce pcl-files. Because of the measurement differences between pdf and pcl, we decides to produce an AreaTree file first with overriding the renderer. So the measurment is done in PDF-Style and after that, we convert the AreaTree-File to a PCL-File. The problem is that we cannot produce the AreaTree file using saxon. Everything works fine when whe use xalan, but wit saxon, we get a NullPointerException inside the Methode getNameCode in Class net.sf.saxon.event.ReceivingContentHandler The Namespace-URI seems to be Null! The Code-Snippet inside the FO-File is: barcode:barcode xmlns:barcode=http://barcode4j.krysalis.org/ns; orientation=90 message=440180 barcode:intl2of5 barcode:height10mm/barcode:height barcode:module-width0.5mm/barcode:module-width barcode:wide-factor3.0/barcode:wide-factor barcode:quiet-zone enabled=true10mw /barcode:quiet-zone barcode:checksumauto/barcode:checksum barcode:human-readable barcode:placementnone/barcode:placement barcode:display-checksumfalse/barcode:display-checksum /barcode:human-readable /barcode:intl2of5 /barcode:barcode Can anyone tell me what's wrong with it? Thanks! Michael - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Block displacement
Hi, You should ask a more precise question, many properties affect the fo:block sizing/positionning, like *-indent, margin, padding, space-*, etc., if this is what you are talking about. If your concern is about XSL-FO knowledge, there are some relevant sites. see: http://xmlgraphics.apache.org/fop/resources.html#documents-xslfo http://www.w3schools.com/xslfo/xslfo_blocks.asp 2013/11/20 Gonzalo Vasquez gvasq...@altiuz.cl After reading: http://www.schemacentral.com/sc/fo11/e-fo_block.html How can one control/override the block displacement described? Gonzalo Vásquez Sáez Gerente Investigación y Desarrollo (RD) Altiuz Soluciones Tecnológicas de Negocios Ltda. Av. Nueva Tajamar 555 Of. 802, Las Condes - CP 7550099 +56 2 335 2461 gvasq...@altiuz.cl http://www.altiuz.cl http://www.altiuzreports.com https://www.facebook.com/altiuz http://twitter.com/altiuz http://www.linkedin.com/company/altiuz -- pascal
Re: Content overflows the viewport
Hi, This is a pure fop-users_list topic, you don't need to post such thread on fop-dev_list. That said, the first stage of the debug process is to isolate the FO snippet that cause the warning. So, you should get first the resulting XSL-FO; then you should feed FOP with that input. etc... 2013/11/18 Gonzalo Vasquez gvasq...@altiuz.cl I'm getting several warnings like these: Nov 18, 2013 12:58:40 PM org.apache.fop.events.LoggingEventListener processEvent Advertencia: Content overflows the viewport of an fo:block-container in inline-progression direction by 54 millipoints. Content will be clipped. (No context info available) How can I properly identify the offending elements? Please consider that the FO is XSL generated. Regards, Gonzalo Vásquez Sáez Gerente Investigación y Desarrollo (RD) Altiuz Soluciones Tecnológicas de Negocios Ltda. Av. Nueva Tajamar 555 Of. 802, Las Condes - CP 7550099 +56 2 335 2461 gvasq...@altiuz.cl http://www.altiuz.cl http://www.altiuzreports.com https://www.facebook.com/altiuz http://twitter.com/altiuz http://www.linkedin.com/company/altiuz -- pascal
Re: Transforming Incompatible Stylesheets over to FOP Apache
Hi, FOP doesn't handle directly XSLT, but resulting XSL-FO. If an XSLT produces an XSL-FO that is not handled correctly by FOP, that be caused by, either... - not implemented feature (see FOP Compliance page [1]) (for example, in your XSLT *FIGURE*.xsl, I've found the fo:change-bar-begin but there can be other things) - old FOP version, - unresolved URI, - missing dependence, - etc. In order to get better and quicker help, you should provide some material: - FOP version - environment (OS, JVM, etc.) - how FOP is run (CLI, embedded, ...) - short XSL-FO (not XSLT) that points the issue - trace, or at least precise description of what you get Vs expect [1] http://xmlgraphics.apache.org/fop/compliance.html 2013/10/31 matrix ivan.teno...@lmco.com: Thanks for your post Rsargent. It makes sense that after looking at a few the Army stylesheets located in the link I provided you are pointing out they speak directly to S1000D. The MIL-SPEC-3031A is actually the Army's version of the S1000D standard. The Army borrows from the S1000D standard a lot of stylesheet related code. However, there are some differences on how the PDF looks like on paper. For example the 3031A standard requires the ICN number for a graphic appear on the lower right hand corner of a graphic. In contrast, the S1000D standard does not require the ICN number display on the page at all. Like this example, there are a bunch of other stylesheet related differences between the 3031A standard and S1000D standard that are too numerous to cover. Therefore, I somehow need to make the 3031A stylesheets I got from the Army work in harmony with my Arbortext Publisher app because currently it doesn't recognize them at all. It only recognizes the S1000D standard stylesheets that were included with Arbortext Publisher. From what I was told by the Arbortext technical support person the 3031A stylesheets are not compatible with Arbortext Publisher because they are not correctly coded to FOP Apache stylesheet coding conventions. My stylesheet coding skills are not strong enough to figure out how the 3031A stylesheet code deviates from FOP Apache stylesheet code. Therefore, I would be very grateful if anyone out there can take a good look at the XSL files inside the 3031A ZIP file and let me know how this code deviates from FOP Apache stylesheet coding conventions. In closing, the way I see it is I need to do one of two things: 1. Find a FOP Apache transformation engine that will transform my 3031A stylesheets to a format my Arbortext Publisher app likes. 2. I need to figure out how to modify the code to the existing S1000D FOP Apache stylesheets my Arborext Publisher app uses so that it follows all of the formatting rules the Army 3031A standard requires. Any info or suggestions that will help me make progress will be greatly appreciated. Thanks. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Transforming-Incompatible-Stylesheets-over-to-FOP-Apache-tp39504p39507.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: force-page-count=even dropping data
Hi, This seems to be related to open issue [1]. From what I read in comments, there is a lake of test file, so your xsl-fo should help. [1] https://issues.apache.org/jira/browse/FOP-1976 2013/10/9 Rob Sargent rsarg...@xmission.com: Running the attached, admittedly rather large, fo through fop 1.1 drops the tabular found beginning at line 135. Simply changing the force-page-count value on line 61 from even to no-force will then generate the tabular data. I believe it requires at least 3 pages to get into this situation. A skeletal one page attempt failed to produce the (un)desired affect. I have not yet tried 5 or greater pages of content. I suspect it may also require that the fourth page have only the tabular data, but my tests are inconclusive. I would really appreciate confirmation or contradiction from the group. Thanks rjs - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: force-page-count=even dropping data
Yes, all comment is welcome. if you can provide (attach to the issue) a reduced test file, that should help too. 2013/10/11 Rob Sargent rsarg...@xmission.com: Oh, so nice to not be alone! Thanks. Should I add comment to this thread or to the issue you mention? rjs On 10/11/2013 08:32 AM, Pascal Sancho wrote: Hi, This seems to be related to open issue [1]. From what I read in comments, there is a lake of test file, so your xsl-fo should help. [1] https://issues.apache.org/jira/browse/FOP-1976 2013/10/9 Rob Sargent rsarg...@xmission.com: Running the attached, admittedly rather large, fo through fop 1.1 drops the tabular found beginning at line 135. Simply changing the force-page-count value on line 61 from even to no-force will then generate the tabular data. I believe it requires at least 3 pages to get into this situation. A skeletal one page attempt failed to produce the (un)desired affect. I have not yet tried 5 or greater pages of content. I suspect it may also require that the fourth page have only the tabular data, but my tests are inconclusive. I would really appreciate confirmation or contradiction from the group. Thanks rjs - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: force-page-count=even dropping data
the cited issue will remain on todo list if still open, while this list is archived, so adding comment to issue is better, if relevant. 2013/10/11 Pascal Sancho psancho@gmail.com: Yes, all comment is welcome. if you can provide (attach to the issue) a reduced test file, that should help too. 2013/10/11 Rob Sargent rsarg...@xmission.com: Oh, so nice to not be alone! Thanks. Should I add comment to this thread or to the issue you mention? rjs On 10/11/2013 08:32 AM, Pascal Sancho wrote: Hi, This seems to be related to open issue [1]. From what I read in comments, there is a lake of test file, so your xsl-fo should help. [1] https://issues.apache.org/jira/browse/FOP-1976 2013/10/9 Rob Sargent rsarg...@xmission.com: Running the attached, admittedly rather large, fo through fop 1.1 drops the tabular found beginning at line 135. Simply changing the force-page-count value on line 61 from even to no-force will then generate the tabular data. I believe it requires at least 3 pages to get into this situation. A skeletal one page attempt failed to produce the (un)desired affect. I have not yet tried 5 or greater pages of content. I suspect it may also require that the fourth page have only the tabular data, but my tests are inconclusive. I would really appreciate confirmation or contradiction from the group. Thanks rjs - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: max-width ignored inside a table-cell?
Hi, max-width property doesn't apply to fo:external-graphic; see REC XSL-FO § 6.6.5 at [1] but... block-progression-dimension does; so you can use: block-progression-dimension.maximum=100%, that should do the trick. [1] http://www.w3.org/TR/xsl/#fo_external-graphic 2013/9/19 Robert Gurol robert.gu...@signavio.com: Hi all, I am currently trying to embed an external-graphic with a given absolute width inside a table-cell. My problem is, it overflows the table-cell's right boundary. I tried setting max-width to 100%, yet it does not seem to work. Here's a code snippet from my fo, with a shortened src attribute containing the Base64 image data: table-cell border=solid 1pt border-color=#99 padding=2pt text-align=left block text-align=left inline / block inline font-size=8.0ptThe invoice needs to checked for factual correctness, i.e. correctly delivered goods./inline block font-size=8.0pt space-after=0.0 space-before=0.0 / inline font-size=8.0pt / block font-size=8.0pt leader leader-pattern=space / /block inline font-size=8.0pt / block font-size=8.0pt block external-graphic content-height=scale-down-to-fit content-type=content-type:image/jpg content-width=scale-down-to-fit max-width=100% scaling=uniform src=data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD...= width=100mm / /block /block inline font-size=8.0pt / block font-size=8.0pt leader leader-pattern=space / /block inline font-size=8.0pt / block font-size=8.0pt block external-graphic content-height=scale-down-to-fit content-type=content-type:image/jpg content-width=scale-down-to-fit max-width=100% scaling=uniform src=data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD...== width=100mm / block text-align=center width=100mmSome text!/block /block /block inline font-size=8.0pt / /block inline / /block /table-cell Of course, I can provide the complete code if so desired. Best regards, Robert -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: html content in xml input file.
Hi, This is not a FOP related question, but an XML/XSLT one. That said, unless you have a strict DTD that prevent to add alternate namespace xml in your xml source, you don't need to put your FO snippet in a CDATA section. then, in your XSLT, you just need to use a xsl:copy-of rather than a xsl:value-of[@disable-output-escaping=yes] 2013/9/3 Spoorthi Myneni spoorthi.myne...@gmail.com: Hi All, I am trying to generate PDF output using xml and xsl files as my input files. My input xml and xsl files are: 24_24177_Proof.xsl 24_24177_Recipient.xml (I have attached them). My xml file has a node where in I have CDATA like below: Return_Address ![CDATA[ fo:block fo:block fo:inline font-size=16px fo:inline font-weight=bold fo:inline font-family= times new romanThis is a smaple text with bold./fo:inline /fo:inline /fo:inline /fo:block fo:block /fo:block fo:block fo:inline font-size=16px fo:inline font-family= times new roman fo:inline font-style=italicThis is a sample text with Italic./fo:inline /fo:inline /fo:inline /fo:block fo:block /fo:block fo:block fo:inline font-size=16px fo:inline font-family= times new roman fo:inline text-decoration=underlineThis is a sample text with underline./fo:inline /fo:inline /fo:inline /fo:block /fo:block ]] /Return_Address I have run the below command and generated an fo file using the 24_24177_Proof.xsl and 24_24177_Recipient.xml file. fop -xml C:\Users\spoorthi\Desktop\24_24177_Reciepients. xml -xsl C:\Users\spoorthi\Desktop\24_24177_Proof.XSL -foout C:\Users\spoort hi\Desktop\24_24177_Proof.fo and then Generated pdf file using the above created fo file using the following command. fop -fo C:\Users\spoorthi\Desktop\24_24177_Proof.fo -pd f C:\Users\spoorthi\Desktop\24_24177_FoOutput.pdf -c fop.xconf My 24_24177_FoOutput.pdf gets the formatting of the content in the xml correctly. But when I directly use the -xml and -xsl files as input and generate the pdf file as ouput then the formatting of the text is not retained. I have used the following command and the output file is 24_24177_Proof.pdf fop -xml C:\Users\spoorthi\Desktop\24_24177_Reciepients. xml -xsl C:\Users\spoorthi\Desktop\24_24177_Proof.XSL -pdf C:\Users\spoorthi \Desktop\24_24177_Proof.pdf -c fop.xconf Can someone explain me on why it doesnot retain the formatting in the second case(using xml and xsl as input and generating pdf as output)? and I would like to know what else I need to include in order to get the formatting in the second case. I have attached all the files in the mail, for your reference. I have many instances like this for which I need this to work, any advice will be appreciated a lot. Thank you in advance. -Spoorthi - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FW: Print renderer does not render body region
Hi, there are known issues when using -print option on windows. Perhaps you are facing to one; see [1] for further information. [1] http://xmlgraphics.apache.org/fop/1.1/output.html#print 2013/9/6 Arkady Leyner ark...@islandpacific.com: Dear fop users, I use FOP 1.1 on Windows XP, JRE 1.7, JDK 6. I have no problem with rendering to PDF. But I can't print to printer. Following simple test demonstrates my problem. Very simple FO sheet helloworld_static.fo fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simpleA4 page-height=29.7cm page-width=21cm margin-top=2cm margin-bottom=2cm margin-left=2cm margin-right=2cm fo:region-body margin-top=3cm / fo:region-before extent=3cm/fo:region-before /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simpleA4 fo:static-content flow-name=xsl-region-before fo:blockHello Static!/fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockHello World!/fo:block /fo:flow /fo:page-sequence /fo:root I render to PDF with the command fop -fo helloworld_static.fo -pdf helloworld_static.pdf. Result looks like expected - attached in the file helloworld_static_fop.pdf. Then I print to PDF printer with the command fop -fo helloworld_static.fo -print. Result attached in the file helloworld_static_print.pdf. Body region not printed. Similar result if I print to laser printer. By the way when I render this and much more complicated sheet to PCL then print it works perfectly. What is wrong with the direct printing? Every recommendation will be highly appreciated. Best regards Arkady Leyner ark...@islandpacific.com t. +61 2 9369 8519 reception +61 2 9369 8500 f. +61 2 9387 7110 Ground Floor / 35 Spring Street, Bondi Junction NSW 2022 Australia - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: SVG Graphics in FOP
Hi, a good practice is to use the (viewBox, height, width) attribute set on svg element; you can leave all your size values without unit (defaulting to px or pt, I don't remember). ... And explicitly add your preferred unit on both svg/@width and svg/@height. Another option is to use FO content-* properties on fo:instream-foreign-object or fo:external-graphic, and leave svg/@width and svg/@height without unit. fo:block font-size=0pt fo:instream-foreign-object content-height=24pt content-width=48pt svg xmlns=http://www.w3.org/2000/svg; viewBox=0 0 48 24 height=24pt width=48pt g style=fill: none; stroke:black; stroke-width:0.25; line y2=12 x2=48 y1=12 x1=0/ line y2=24 x2=24 y1=0 x1=24/ circle r=6 cy=12 cx=24/ /g /svg /fo:instream-foreign-object /fo:block 2013/9/5 Martin Edge martin.e...@intellimail.com.au: Hi Guys, Any idea why when I’m using SVG to draw, it seems to have a whacky concept of units if I use anything _other_ than no units at all? I used a height of 55mm for instance and it seemed to take up several pages, and my x/y co-ordinates were not consistent between lines and rectangles either Thanks Martin -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: SVG Graphics in FOP
Yes, px is media dependant, so its usage is not recommended. 2013/9/5 Martin Edge martin.e...@intellimail.com.au: Hey Pascal - Ill give that a go, (the instream sizing might help), trying to steer clear of pixels because I believe that it varies based on FOPs DPI setting and therefore would have mixed results on differing installations Thanks! Martin On 05/09/2013, at 7:04 PM, Pascal Sancho psancho@gmail.com wrote: Hi, a good practice is to use the (viewBox, height, width) attribute set on svg element; you can leave all your size values without unit (defaulting to px or pt, I don't remember). ... And explicitly add your preferred unit on both svg/@width and svg/@height. Another option is to use FO content-* properties on fo:instream-foreign-object or fo:external-graphic, and leave svg/@width and svg/@height without unit. fo:block font-size=0pt fo:instream-foreign-object content-height=24pt content-width=48pt svg xmlns=http://www.w3.org/2000/svg; viewBox=0 0 48 24 height=24pt width=48pt g style=fill: none; stroke:black; stroke-width:0.25; line y2=12 x2=48 y1=12 x1=0/ line y2=24 x2=24 y1=0 x1=24/ circle r=6 cy=12 cx=24/ /g /svg /fo:instream-foreign-object /fo:block 2013/9/5 Martin Edge martin.e...@intellimail.com.au: Hi Guys, Any idea why when I’m using SVG to draw, it seems to have a whacky concept of units if I use anything _other_ than no units at all? I used a height of 55mm for instance and it seemed to take up several pages, and my x/y co-ordinates were not consistent between lines and rectangles either Thanks Martin -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Special Character
Hi, Since FOP 0.2x is quite old, I don't remember exactly what were limitations about custom fonts. If you plan to upgrade your FOP version, that will be very useful for maintaining your material, and I encourage you in that way. You should first read the upgrading page [1] [1] http://xmlgraphics.apache.org/fop/1.1/upgrading.html 2013/9/3 Daniele Palladino pa...@wedjaa.net Thanks. I have only one problem, I must use the Dejavu font, but I have fop v 0.20. I can change the fop version. Can I do something? Thanks On Wed, Aug 28, 2013 at 4:01 PM, Pascal Sancho psancho@gmail.comwrote: Hi, What you need is tu use a font that contains all glyphes you need. Follow [1] to attach a new font to FOP. The Dejavu font (opensource) [2] should be usefull. [1] http://xmlgraphics.apache.org/fop/1.1/fonts.html#register [2] http://dejavu-fonts.org/wiki/Main_Page 2013/8/28 Daniele Palladino pa...@wedjaa.net Hi to all, I use your project to generate a pdf list name. All people in this list have names and/or surnames with special character. Only when a (sur)name contains this letter http://en.wikipedia.org/wiki/%C5%98 FOP write # because it isn't into the map characters (I checked this list http://xmlgraphics.apache.org/fop/fo/fonts.fo.pdf ). How can I resolve this problem? Can you help me? -- Daniele Palladino Via P. Blaserna, 101 - 00146 Roma e-mail: pa...@wedjaa.net - daniele.pallad...@wedjaa.net mobile: (+39) 392 909 5949 -- pascal -- Daniele Palladino Via P. Blaserna, 101 - 00146 Roma e-mail: pa...@wedjaa.net - daniele.pallad...@wedjaa.net mobile: (+39) 392 909 5949 -- pascal
Re: Embed base14
Hi, 1/ upgrade fop 0.95 to 0.95 ??? why do you not plan to directly upgrade to v1.1 ? since v0.91, FOP is stable enough to permit such jump. speaking about embedding base 14 fonts, you have to get them by yourself (they are not free). Then, you can embed them in the same way than other fonts. 2013/8/27 mrkmrk m...@autocom.dk: Hi I'm using FOP 0.94 I might be able to upgrade to FOP 0.95. Is it possible to embed base14 fonts? If so, how? I have tried putting this in the fop.xconf: font-metrics type=TYPE1 font-nameTimes-Roman/font-name /font-metrics That didn't work. Best regrds, Morten -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Embed-base14-tp39097.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Does fop-1.1 block-container respect top attribute?
Hi, top is one of the relative position properties, when applied to the fo:block (see [1] [2]). Currently, FOP doesn't implement such properties (see [2]). I see 2 workaround alternatives: As Glenn said, you should use absolute ones that come with fo:block-container: fo:block-container abolute-position=absolute top=1in fo:block.../fo:block /fo:block-container Or play with space-before property: fo:block space-before=-0.5em space-before.conditionality=retain .../fo:block [1] http://www.w3.org/TR/xsl/#fo_block [2] http://www.w3.org/TR/xsl/#common-relative-position-properties [3] http://xmlgraphics.apache.org/fop/compliance.html#fo-property-commonrelpos-section 2013/8/28 Glenn Adams gl...@skynav.com: P.S. In the future, don't bother sending the XSLT if your question is related to formatting. Only the XSL-FO content is relevant. P.S.S. Why do you use nested block containers for the first block? On Tue, Aug 27, 2013 at 5:24 PM, Rob Sargent rsarg...@xmission.com wrote: I cannot seem to push a block down using 'top=n' set to any value n 0 (and 1 of course) I've even added an extra, enclosing (superfluous?) block-container inside the table-cell. left and right are working just fine but top not so much. I thought this was a compliant piece of FOP. Am I wrong about that or just doing something stupid again. (Hey, I've been away awhile). Thanks. My xsl: this template is called as the table-cell is laid out. xsl:template name=scout-image xsl:param name=curpage/ xsl:param name=curpos/ xsl:param name=imageCount/ xsl:if test=contains($curpage/@layout-id, 'scout') and count($curpage/image[@pos = $imageCount + $curpos]) = 1 xsl:variable name=scoutsize xsl:choose xsl:when test=$imageCount = 3 xsl:value-of select=number(0.9)/ /xsl:when xsl:when test=$imageCount = 1 xsl:value-of select=number(1.0)/ /xsl:when xsl:otherwise xsl:value-of select=number(1.25)/ /xsl:otherwise /xsl:choose /xsl:variable fo:block-container fo:block-container position=absolute z-index=-1 height={$scoutsize}in width={$scoutsize}in xsl:choose xsl:when test=$curpage/@pos mod 2 = 0 xsl:attribute name=left xsl:value-of select=0/ /xsl:attribute /xsl:when xsl:otherwise xsl:attribute name=right xsl:value-of select=0/ /xsl:attribute /xsl:otherwise /xsl:choose xsl:choose xsl:when test=$imageCount = 1 xsl:attribute name=top xsl:value-of select=0.1/ /xsl:attribute /xsl:when xsl:otherwise xsl:attribute name=top xsl:value-of select=0/ /xsl:attribute /xsl:otherwise /xsl:choose xsl:call-template name=show-image xsl:with-param name=img select=$curpage/image[@pos= $curpos + $imageCount] / xsl:with-param name=width select=$scoutsize / xsl:with-param name=height select=$scoutsize / xsl:with-param name=addBlack select=false() / /xsl:call-template /fo:block-container /fo:block-container /xsl:if /xsl:template My fop: fo:table-cell fo:block-container fo:block-container width=1in height=1in z-index=-1 position=absolute left=0 top=0.1 fo:block fo:external-graphic border-collapse=separate content-height=1in content-width=1in display-align=center src=ref_scout_3_0_650043924 / /fo:block /fo:block-container /fo:block-container fo:block-container width=1.2102857142857144in top=3.9297774842857143in position=absolute left=0.0in height=0.6in fo:block linefeed-treatment=preserve white-space-collapse=false font-size=8pt font-family=StoneSerifAnterior surface of patella/fo:block /fo:block-container fo:block-container width=1.2102857142857144in top=5.698118852857143in position=absolute left=0.0in height=0.6in fo:block linefeed-treatment=preserve white-space-collapse=false font-size=8pt font-family=StoneSerifPatellar tendon/fo:block /fo:block-container fo:block-container width=1.2102857142857144in top=2.4832606942857147in position=absolute left=0.0in height=0.6in fo:block linefeed-treatment=preserve