Re: Different footer text on each page
Hi Jon, Dynamic footer content can be achieved using fo:marker and fo:retrieve-marker Thanks, Chris On 05/07/2023 02:52, Jon Schewe wrote: I'm using the Java XML API to create a document tree and then using FOP to render the PDF. I've created simple footers that show the current page and reference the last page. Now I'd like to customize the footer per page. Instead of "Page 2 of 3" in the footer, I'd like to have "Before: next page title Page 2 of 3" where "next page title" changes per page. I understand that the page number and last page numbers are special tags that get populated at render time. Is it possible to modify the footer content per page with a single page sequence, or do I need to create a page sequence for each unique footer? If I need a page sequence for each, how do I get the last page number of the last sequence so that I can still populate "Page 2 of 3"? Thank you, Jon - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Java 8
+1 On 03/02/2022 08:38, Simon Steiner wrote: Hi, I am going to bump a dependency on our commons and fop trunk, that requires java 8. This means java 7 will no longer be supported for our next release. Thanks - 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
Re: Arial font not rendered correctly after update from v2.3 to v2.6
Hi Denis, Can you attach the fop.xconf file so we can see how you configured fonts Thanks, Chris On 26/10/2021 09:48, Denis Maltzahn wrote: Hi, since we updated the FOP library from v2.3 to v2.6 the “Arial” font is not rendered correctly. It looks like FOP does not know the os font directory. As fallback it uses “Times”. We also updated Batik from v1.10 to v1.14. I’m not sure if this is a FOP or Batik problem but FOP also uses Batik so I think this is the right place to ask the question. We have a SVG that we want to convert to a pdf. I added our code and a little description as a PDF. I can’t write it directly into the E-mail because it will be getting filtered (Maybe because of the html tags) If you have some questions, feel free to ask. Can you help me with this problem? Mit freundlichen Grüßen / Kind regards, *Denis Maltzahn* Software Engineer *Beta Systems DCI Software AG * Development Europastraße 3, 67433 Neustadt an der Weinstraße Phone: +49 6321 49915 146_ Email: denis.maltz...@betasystems.com <mailto:denis.maltz...@betasystems.com>_ www.betasystems-dci.com <http://www.betasystems-dci.com> Mandatory Information for business emails according to German trade laws / Pflichtangaben für geschäftliche E-mails gemäß Handelsgesetzbuch und Aktiengesetz: Beta Systems DCI Software AG, Alt-Moabit 90d, 10559 Berlin, Germany Phone: +49-(0)30-726 118-0, Fax: +49-(0)30-726 118-800, E-mail: info-...@betasystems.com <mailto:info-...@betasystems.com> Management board / Vorstand: Dr. Andreas Huth, Mirko Minnich, Gerald Schmedding | Chairman of the supervisory board / Vorsitzender des Aufsichtsrats: Dr. Wolfgang Schlaak Legal form / Rechtsform: Aktiengesellschaft | Registered office / Sitz: Berlin | Commercial register / Handelsregister: Amtsgericht Charlottenburg HRB 165021 B VAT-ID / Ust-ID-Nr.: DE300955711 | Tax No. / St.-Nr.: 30/036/75458 Bank / Bankverbindung: Commerzbank AG, BIC: COBADEFF, IBAN: DE60 1004 0230 9375 00 - 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
Re: Embed image from database, not from file
Hi, yes you can use data URI to avoid saving it to a file Thanks, Chris On 26/03/2021 13:45, Markus Ruggiero wrote: Folks, I have image data stored in a database, not as a file. It is JPEG data in Base64 encoding. My understanding is that with fo.external-graphic I can only use a proper file url for the image reference - but there is no file in my case. Is there any other way to embed image data in the PDF output? Can I somehow put the image data into the input xml data file and pull it from there? Thanks for any help ---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
Re: TTF->AFP Font | Looking for IBM Type Transformer for Windows
Hi, This utility is provided when you buy an IBM AFP Printer. I have it but it would be a copy right infringement to share it Also, you don't need to do this if the printer supports TTF Fonts as FOP supports TTF fonts in AFP Thanks, Chris On 26/02/2021 13:04, Tino maier wrote: Hi everyone, I'm trying to create some afp raster fonts from true type fonts and I found the link to the "IBM Type Transformer for Windows <http://www-01.ibm.com/support/docview.wss?uid=psd1P4000840>" on the AFP-Resource Wiki-Page. Unfortunately the link is broken and the software seems to be gone. Does anyone have a copy of it and could send it to me? This would be great. Best regards, Tino - 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
Re: Using Various Fonts to Achieve Multiple Languages Sometimes Results in Errors
Hi, You shouldn't be seeing that error. If you can share the fonts you configured then please log a bug with XSL-FO attached with fonts and fop.xconf file Thanks, Chris On 16/02/2021 15:43, Martin Furek wrote: I think I didn't explain myself well. I need to support multiple languages with mixed text (latin in Chinese and other way around). I never know beforehand where the text is. This works with multiple fonts, but sometimes throws an error as in the text that I already mentioned. - 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
Re: Visual Debugging using borders or background colors
Hi, Background colours are a more effective way of identifying which part of a document comes from which Formatting object. As you already mentioned using border is less effective as it alters the layout of the objects as borders themselves require space in the document Thanks, Chris On 02/01/2021 21:53, Kirkilis, John (Nokia - US/Austin) wrote: Hello, I made a feeble attempt to put borders on fo:blocks with different colors to help identify which blocks were contributing to adjacent vertical white space areas, but the border itself would take up vertical space and shift the content below it down. If several blocks had borders, then the cumulative displacement was pronounced. Are there any border attribute settings that would mitigate this effect? Are background colors a better way to go? Ideally, it would be great of FOP had such an option to show various kinds of object boundaries without disturbing the placement of objects. Best Regards, John - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Does conditionality work for table cell borders?
Hi Christian, The borders are actually specified on the table cells, not the table itself. Therefore conditionality only comes into effect when a cell spans the page. Thanks, Chris On 11/11/2020 11:33, Christian Schröder wrote: Hi list, When a table is continued across page breaks, I would expect the before-border of the table cells to be suppressed on all pages after the first (unless I explicitly set the conditionality to "retain"); however, in my example document, the borders are visible on the second page. You can find my example FO document at https://www.dropbox.com/s/w679cjb9gampdq6/table-borders.fo?dl=0 and the result PDF document at https://www.dropbox.com/s/bpc5avwsrzb8k6j/table-borders.pdf?dl=0 I thought this might maybe only work for the table-row elements, so I tried it there, but the result is the same. Besides, as you can see in my example, I need the border for the *cells*, not the whole row (because I want a gap in the middle). I use FOP 2.5. What do I miss? Thanks, Christian PS: I found http://apache-fop.1065347.n5.nabble.com/Omitting-Bottom-table-border-on-page-break-td37527.html, but this only points me at the conditionality, which should already implicitly be "discard" in my case. - 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
Re: FOP Retrieve-Marker
Hi Jean-Pierre, Your code snippet is XSLT not XSL-FO, and also incomplete so hard to say why its not working Thanks, Chris On 07/11/2020 12:07, Jean-Pierre Lamon wrote: Hi all, fop-users@xmlgraphics.apache.org I would like to display a chapter value on each page header (in one language on even, another on odd but that's not the problem). I'm using markers with retrieve-marker. This works perfectly with FOP, but not with XML2PDF for example. Am I doing something wrong? Could someone be so kind to correct my code ;-) I know retrive-marker must be just under a flow right? table-omit-header-at-break="false"> font-size="9pt"> text-align="center"> font-size="9pt"> text-align="center"> font-style="italic" text-align="left" border-bottom="0.5pt solid black"> ---> --> text-align="right" border-bottom="0.5pt solid black"> Bibliographie de l'histoire suisse test="collection/AdditionalTag/yearIssueNumber"> select="concat(' ',collection/AdditionalTag/yearIssueNumber)"/> Marker definition : marker-class-name="chapterF"> select="@Value2"/> Thx and regards - 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
Re: Repeating Table Captions Across Pages
Sorry for slow reply, but yes table markers do work and no need for the workarounds you found; they have been superceded The reason for a partial implementation status is that they can only handle a single line of text. Showing (continued) or sub totals will work perfectly. What you can't do with table markers is place an image, a sub table, or a paragraph of text in them Thanks, Chris On 01/09/2020 23:44, Kirkilis, John (Nokia - US/Austin) wrote: Greetings, I’ve spent a couple hours in the mail archives trying to determine the current state of the implementation of retrieve-table-marker. The compliance table states that this is still just partially implemented, and I’d like to understand what works and does not work in FOP 2.5. The archives yielded a couple work-arounds, one that uses regular markers and the other which uses table-markers, but these are at least 8 years old and I can’t tell if they’ve been superceded. * https://www.mail-archive.com/fop-users@xmlgraphics.apache.org/msg18790/example-1.fo * https://www.mail-archive.com/fop-users@xmlgraphics.apache.org/msg18521.html I need a solution that can generate repeating table titles with the string “(continued)” on the 2^nd and subsequent pages of a long table. These pages are generated dynamically using the DITA Open-Toolkit’s DITA to FO transform, which we’ve customized when needed. Here’s what I’d like to understand: * What is the current state of the retrieve-table-marker compliance? * Is full compliance needed to support repeating table titles? * If so, how much effort would be required to address it? o by a regular FOP contributor o a Master’s student with Java background * If not, what’s the most up-to-date method to implement repeating table titles using a work-around for FOP 2.5? Thanks in advance for any feedback, John - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: TM text is replaced with superscript - trademark symbol
Hi, Seems like the result of a lookup table in your font similar to ligatures, which convert groups of characters into other characters. Especially since you mention the issue is specific to the font. You can try turning off complex script support if you don't need it, as outlined at [1] Thanks Chris [1] https://xmlgraphics.apache.org/fop/trunk/complexscripts.html#Disabling-complex-scripts On 06/04/2020 21:23, cen wrote: Hi I stumbled upon a weird situation where a simple text "TM" gets automatically converted to superscript position as if it was the trademark symbol, when rendered. For example, TM in PDF gets rendered as seen in the attachment. I noticed that this only happens when using a specific OCR font and not with regular fonts like Courier. I had a hard time to even figure out what to search for on google and I haven't seen anything like this mentioned in the FOP documentation. Anyone has an idea what this is and how to disable it? Best regards, cen - 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
Re: build error in fop-trunk
Hi, Can you share the errors you are seeing? Also don't forget FOP supports older Java versions so might need to build with Java 7 Thanks Chris On 10/03/2020 19:31, jfrm.mau...@gmail.com wrote: Hi, I just cloned from git repository with: git clone https://github.com/apache/xmlgraphics-fop.git I build with: mvn clean install but the builds fails in the fop core task apparently from missing resources. Am I doing something wrong to build fop ? Regards PS: I am on windows 10 if relevant - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Joining the forum
Hi Keshor, See [1] for details on how to join the mailing list. Thanks, Chris [1] https://xmlgraphics.apache.org/fop/maillist.html On 02/03/2020 11:52, keshor karan wrote: Hii, this is keshor.I'm one of the fop users. I'm trying to learn more about fop. I'm willing to join the fop forum. Can you please tell me what is the procedure to join the forum? I'm genuinely waiting to hear from you. Regards, Keshor - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Surrogate pair error
Hi Jan, Indeed this should work since FOP 2.3 thanks to FOP-1969. I suggest you log a new bug if you are able to share your XSL-FO and supporting Font files. Thanks, Chris On 24/02/2020 14:05, Jan Driesen wrote: Hi, If we set the MPH 2b Damas font (https://fedoraproject.org/wiki/MPH_2B_Damase_fonts), we get the exception from my initial email. Using fontforge, I could verify that this font has a glyph for the character. If we set Segoe UI Historic (https://docs.microsoft.com/en-us/typography/font-list/segoe_ui_historic) as a font (it also has a glyph for this), we get a different exception. Both fonts are referred to in fop.xconf A version of the FO for each font is attached to this mail. INFO: Default page-height set to: 297mm feb 24, 2020 2:59:28 PM org.apache.fop.apps.FopConfParser configure INFO: Default page-width set to: 210mm feb 24, 2020 2:59:29 PM org.apache.fop.cli.Main startFOP SEVERE: Exception org.apache.fop.apps.FOPException: ill-formed UTF-16 sequence, contains isolated high surrogate at end of sequence java.lang.IllegalArgumentException: ill-formed UTF-16 sequence, contains isolated high surrogate at end of sequence at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116) at org.apache.fop.cli.Main.startFOP(Main.java:183) at org.apache.fop.cli.Main.main(Main.java:214) Caused by: java.lang.IllegalArgumentException: ill-formed UTF-16 sequence, contains isolated high surrogate at end of sequence at org.apache.fop.fonts.MultiByteFont.mapCharsToGlyphs(MultiByteFont.java:666) at org.apache.fop.fonts.MultiByteFont.charSequenceToGlyphSequence(MultiByteFont.java:570) at org.apache.fop.fonts.MultiByteFont.performSubstitution(MultiByteFont.java:551) at org.apache.fop.fonts.LazyFont.performSubstitution(LazyFont.java:424) at org.apache.fop.fonts.Font.performSubstitution(Font.java:471) at org.apache.fop.fonts.GlyphMapping.processWordMapping(GlyphMapping.java:141) at org.apache.fop.fonts.GlyphMapping.doGlyphMapping(GlyphMapping.java:92) at org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:960) at org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:819) at org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:698) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:627) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:290) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:223) at org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:147) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:69) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:251) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:770) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:178) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:158) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:389) at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:112) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:143) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:139) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:362) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
Re: Fwd: fo:float not rendering image fop2.4
Its not the level of nesting that is the problem as I first thought, but the fact you have nested it within a table. From the docs, it says Floats cannot co-exist with a table: floats next to a table are not supported unless the start and end of the table happens in between the start and end of the float Thanks, Chris On 13/02/2020 17:17, Alex Muir wrote: Thanks Chris, Does seem that is the case. Let me know if I'm wrong, but after reading the restrictions on fo:float in apache documentation, I didn't notice anything to that nature. Meanwhile I've switched to a different fop engine which renders the float effectively. Regards Alex _https://www.linkedin.com/in/alexgmuir/_ On Thu, 13 Feb 2020 at 15:18, Chris Bowditch mailto:bowditch_ch...@hotmail.com>> wrote: Sorry please ignore my first e-mail, I spotted the attachment too late! I believe the fo:float needs to be a top level block, and not nested deep within a table Thanks, Chris On 11/02/2020 08:33, Alex Muir wrote: > Greetings, > > I'm having an issue where my images are not displayed within an > fo:float using apache fop 2.4 with dita-ot 2.0.1 > > I created some test output. > > I was wondering if you see anything wrong with what I'm doing? > > I read over the documentation for fo:float but didn't see any reason > why the following wouldn't work. > > Regards > Alex > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org <mailto:fop-users-unsubscr...@xmlgraphics.apache.org> > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org <mailto:fop-users-h...@xmlgraphics.apache.org> - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org <mailto:fop-users-unsubscr...@xmlgraphics.apache.org> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org <mailto: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
Re: Fwd: fo:float not rendering image fop2.4
Sorry please ignore my first e-mail, I spotted the attachment too late! I believe the fo:float needs to be a top level block, and not nested deep within a table Thanks, Chris On 11/02/2020 08:33, Alex Muir wrote: Greetings, I'm having an issue where my images are not displayed within an fo:float using apache fop 2.4 with dita-ot 2.0.1 I created some test output. I was wondering if you see anything wrong with what I'm doing? I read over the documentation for fo:float but didn't see any reason why the following wouldn't work. Regards Alex - 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
Re: Fwd: fo:float not rendering image fop2.4
Hi, Can you share your XSL-FO file? Thanks, Chris On 11/02/2020 08:33, Alex Muir wrote: Greetings, I'm having an issue where my images are not displayed within an fo:float using apache fop 2.4 with dita-ot 2.0.1 I created some test output. I was wondering if you see anything wrong with what I'm doing? I read over the documentation for fo:float but didn't see any reason why the following wouldn't work. Regards Alex - 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
Re: Issue with table borders
Hi Remi, Sorry for the slow reply. This is an FAQ, see: https://xmlgraphics.apache.org/fop/faq.html#acrobat-anti-aliasing Thanks, Chris On 12/12/2019 13:07, Rémi Lerolle wrote: > Hello, > > Opening PDF generated by FOP 2.1 in Acrobat or Evince, > we have noticed that table and cell borders are not joined properly. > As you can see in the screenshot attached to this email, > a thin gap appears between borders and the background of the cells. > And even inside borders. > > Is there a way to correct this artifact ? > Or to make borders lap backgrounds ? > > table borders > > > thanks > > r l > > > > - > 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
Re: Unclear error
Hi Dave, fo:wrapper should be supported. Compliance page says it is, and I know I've used it before Thanks, Chris On 19/11/2019 16:06, Dave Pawson wrote: > Hi Chris... bit late? > I kept reducing the fo until it worked. > > I think the problem centred around fo:wrapper? > > Is that not supported (or error reported) in fop? > > regards > > On Tue, 19 Nov 2019 at 14:50, Chris wrote: >> Hi Dave, >> >> Can you share your XSL-FO File? The warning you highlight seems less >> important than the NullPointerException being thrown. >> >> Thanks, >> >> Chris >> >> On 15/11/2019 08:52, Dave Pawson wrote: >>> fop 2.2 on Fedora Linux. >>> error is beneath message >>> >>> >From help pages. >>> 1. removed all keeps/breaks >>> 2. fo:leaders kept simple >>> >>> Basically looking for something to alter to address >>> "Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> " >>> >>> which seems incomplete and is of little help in searching for >>> a problem. >>> >>> Any suggestions please, >>> >>> tiA, Dave P >>> >>> FOP Version 2.2 >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak >>> WARNING: glue-type break possibility not handled properly, yet >>> Nov 15, 2019 8:47:33 AM org.apache.fop.cli.InputHandler error >>> SEVERE: javax.xml.transform.TransformerException: >>> Nov 15, 2019 8:47:33 AM FOP startFOP >>> SEVERE: Exception >>> org.apache.fop.apps.FOPException: java.lang.NullPointerException >>> javax.xml.transform.TransformerException: java.lang.NullPointerException >>> at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296) >>> at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116) >>> at org.apache.fop.cli.Main.startFOP(Main.java:186) >>> at org.apache.fop.cli.Main.main(Main.java:216) >>> Caused by: javax.xml.transform.TransformerException: >>> java.lang.NullPointerException >>>
Re: SVG Arial Font Problem
Hi Normen, It sounds like you are trying to use a glyph that is missing in Arial, but it is difficult to comment without seeing your SVG/FO input. Does FOP output any warnings when rendering the Postscript? I'd expect to see a message about missing glyphs Thanks, Chris On 04/10/2019 16:05, Normen Ruhrus wrote: > > Hey FOP Gurus, > > am working with the excellent FOP 2.2 and wanted to include some SVG. > I had no specific font set on that svg:text tag and FOP seemed to > autoselect Arial (seems to be default since a test with command line > FOP also logs Arial being tried to be used). > > The thing is that if i output this into Postscript, the Output looks > like this and several characters are replaced with a "Character > unknown" Char: > > ... > > /Arial-BoldMT 6 F > > 1 GC > > <0001000200030004000500060007> > > [4.662 1.998 3.66 1.662 3.336 1.662 0] xshow > > ... > > If i add the attribute "font-family" with value "Helvetica" to the > svg:text node the printer likes the ouput aka output is ok: > > style="font-size:6px;font-weight:bold;" x="-24" y="7" fill="white" > text-anchor="middle" transform="rotate(270)"> select="WARNING"/> > > is translated into: > > ... > > /Helvetica-Bold 6 F > > 1 GC > > (\330-hjelp) > > [4.668 1.998 3.666 1.668 3.336 1.668 0] xshow > > ... > > My FOP Font Config for Postscript looks like this: > > > > > > > > > > > > > > > > > > > > > > > > > > Is this a problem of the Arial font, or do i need to investigate > somewhere else? > > Best Regards > > Normen > > --- > > Alphasoft Software Dienstleistungs- und Datenverarbeitungs GmbH > - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: About converting HTML to FO to RTF
Seems to be a problem with the HTML2FO XSL. Did you report the issue to them? XSL-Fo specification dictates a strict order between region elements under fo:simple-page-master Thanks, Chris On 11/10/2019 12:42, Евгений Король wrote: > Hello. I can't to produce valid XSL FO file for converting FO to RTF > like in example ExampleFO2RTF. How its can be done fully write (good > if it will be with styles)? I tried project > http://html2fo.sourceforge.net/ but had a errors like > javax.xml.transform.TransformerException: > org.apache.fop.fo.ValidationException: For "fo:simple-page-master", > "fo:region-body" must be declared before "fo:region-before"! (See > position 11:37) > and some else. Please help me ASAP. > > Evgeny > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > .
Re: Apache FOP 2.3.1 or 2.4 release date?
Hi Tobias, We hope to do a FOP release soon. As you say it is a bit over due now, but as always finding time is difficult Thanks, Chris On 27/08/2019 10:45, Tobias Hain wrote: > Sorry, my former e-mail of 06.08.2019 was sent HTML encoded by accident. > Here in plain text again: > > The recent Apache FOP versions were released on a regular yearly basis: > > 24.05.2018 : FOP 2.3 > 10.04.2017 : FOP 2.2 > 14.01.2016 : FOP 2.1 > 03.06.2015 : FOP 2.0 > > Most of the changes are bugfixes and I was wondering whether a FOP > release 2.4 or 2.3.1 this summer (2019) would be possible. This will > enable the users to actually receive the bugfixes. There are quite some > already pipelined up on SVN TRUNK. > > regards, > Tobias > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > . >
Re: reference-orientation inside table-cell
Hi, A fo:block-container is an out of flow object, meaning that it can appear anywhere on the page esp when you specify absolute-position="position" I realize you didn't do that, but wouldn't it make more sense to apply reference-orientation to table-cell instead? Thanks, Chris On 22/05/2019 17:36, dnovo wrote: > Hi, > > I'm trying to apply reference-orientation (90, 180 and 270) inside a > table-cell like this: > > with 90 - "My Text" shows up outside the cell, and the row heigth is > ignored. > > What am i missing? > > Thanks in advanced. > > > http://www.w3.org/1999/XSL/Format;> > >page-width="21.0cm" margin-top="0.0cm" margin-bottom="0.0cm" > margin-left="1.0cm" margin-right="1.0cm"> > > > > > > >font-size="10pt" > font-family="Times Roman" font-style="normal" font-weight="normal" > text-align="start"> > > >top="8.6cm" left="0.0cm" > position="absolute"> > > >column-width="4.7cm"> > > >background-color="#ff" border-start-style="solid" > border-end-style="solid" border-top-style="solid" > border-bottom-style="solid" border-color="#00" border-width="medium"> > > >font-size="7pt" font-family="sans-serif">My Text > > > > > > > > > > > > > > > -- > Sent from: http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > . >
Re: compile fop 2.3 from source
Hi Which version of Java are you using? Thanks, Chris On 19/02/2019 23:19, ngong wrote: > Did not find any javadoc of fop 2.3. Tried to generate it from downloaded > source. > Doing a "mvn clean install" led to failures: > > Downloaded from central: > https://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar (121 > kB at 25 kB/s) > Downloaded from central: > https://repo.maven.apache.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.jar > (358 kB at 73 kB/s) > Downloaded from central: > https://repo.maven.apache.org/maven2/com/google/collections/google-collections/1.0/google-collections-1.0.jar > (640 kB at 128 kB/s) > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 3 source files to > E:\winEclipse\fop-2.3\fop-util\target\classes > [INFO] - > [ERROR] COMPILATION ERROR : > [INFO] - > [ERROR] > E:\winEclipse\fop-2.3\fop-util\src\main\java\org\apache\fop\util\XMLResourceBundle.java:[20] > error: cannot access org.apache.fop.util > [ERROR] error accessing directory > E:\winEclipse\fop-2.3\fop-util\src\main\javajava.nio.file.InvalidPathException: > Illegal char <:> at index 42: > org\apache\fop\util\XMLResourceBundle.java:Zone.Identifier > E:\winEclipse\fop-2.3\fop-util\src\main\java\org\apache\fop\util\text\AdvancedMessageFormat.java:[20] > error: cannot access org.apache.fop.util.text > [INFO] 2 errors > [INFO] - > [INFO] > > [INFO] Reactor Summary for Apache FOP Parent 2.3: > [INFO] > [INFO] Apache FOP Parent .. SUCCESS [ 13.520 > s] > [INFO] Apache FOP Utilities ... FAILURE [ 54.544 > s] > [INFO] Apache FOP Events .. SKIPPED > [INFO] Apache FOP Core SKIPPED > [INFO] Apache FOP All-In-One .. SKIPPED > [INFO] Apache FOP Sandbox . SKIPPED > [INFO] Apache FOP Servlet . SKIPPED > [INFO] Apache FOP Transcoder .. SKIPPED > [INFO] Apache FOP Transcoder All-In-One ... SKIPPED > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 01:08 min > [INFO] Finished at: 2019-02-19T23:58:13+01:00 > [INFO] > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) > on project fop-util: Compilation failure: Compilation failure: > [ERROR] > E:\winEclipse\fop-2.3\fop-util\src\main\java\org\apache\fop\util\XMLResourceBundle.java:[20] > error: cannot access org.apache.fop.util > [ERROR] error accessing directory > E:\winEclipse\fop-2.3\fop-util\src\main\javajava.nio.file.InvalidPathException: > Illegal char <:> at index 42: > org\apache\fop\util\XMLResourceBundle.java:Zone.Identifier > [ERROR] > E:\winEclipse\fop-2.3\fop-util\src\main\java\org\apache\fop\util\text\AdvancedMessageFormat.java:[20] > error: cannot access org.apache.fop.util.text > [ERROR] -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > [ERROR] mvn -rf :fop-util > > E:\winEclipse\fop-2.3> > > > > -- > Sent from: http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > . >
Re: Glyph not found error on different linux kernel version
Hi, Auto-detect is fairly unreliable, and listing the specific fonts you need is recommended. What do you mean by latency increased? Thanks, Chris On 19/02/2019 08:58, Yogesh Bhosale wrote: > I am using apache fop 2.0 for document generation. I was using > auto-detect feature to detect fonts from the specified directory. This > directory contained two font files (.ttf, .pfb) for a same font; > earlier this setting used to work for me. Until I upgraded my linux > kernel version and It started picking wrong font file, so while > generating PNG document I am getting error "Glyph not found" for some > characters and document generated is garbled. To fix this error, I > added the manual font mapping to .ttf file along with auto-detect. > This fix worked but it caused latency to increase. Any clue on this > behaviour?
Re: https external-graphics
Hi Neil, It could be that the certificate used in by the https service is self signed. This means Java won't trust it by default unless you import it into the Java Trust store. Open the URL in the browser and inspect the certificate to see what kind of certificate the service is using to encrypt the https data. Thanks, Chris On 20/12/2018 16:50, Neil Smeby wrote: > Hello, > I'm having some problems with getting images to resolve when using https > instead of http. An example .fo file follows: > > http://www.w3.org/1999/XSL/Format;> > >master-name="BodyPage"> >margin-bottom=".5in" margin-left=".5in"/> >display-align="after"/> >display-align="before"/> > > > > > >src="url(https://ichef.bbci.co.uk/images/ic/960x540/p01br4cp.jpg)" > overflow="hidden" content-width="scale-to-fit" content-height="scale-to-fit" > width="100%" scaling="uniform"/> > > > > > > When I run this: > java.exe -Djava.ext.dirs=C:\fop\fop-2.3 org.apache.fop.cli.Main -d -fo > C:\foo\testhttps.fo -pdf C:\foo\testhttps.pdf > > Despite curl being able to fetch this image (using https), I get this error: > SEVERE: Image not found. URI: > https://ichef.bbci.co.uk/images/ic/960x540/p01br4cp.jpg. (See position 13:202) > > But when I simply change https to http, things work. Is that expected? If so, > why isn't https supported? Are there any workarounds? > Thanks in advance for any help/advice! > > -Neil > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > . >
Re: [ANN] Apache FOP 2.3 Released
Thanks Simon On 25/05/2018 08:43, Simon Steiner wrote: > The Apache XML Graphics team is pleased to announce the immediate > availability of Apache FOP Version 2.3 [1]. > > Apache FOP (Formatting Objects Processor) [2] is an output independent print > formatter driven by XSL Formatting Objects (XSL-FO) [3]. FOP is a Java > application that reads a formatting object tree and renders the resulting > pages to a specified output format, of which a variety of formats are > supported. Apache FOP is published under the Apache License v2.0. > > This release fixes a number of bugs. In addition the following significant > functional enhancements are provided: > > Support for unicode Surrogate pairs > OTF fonts not working on Mac Preview > > For release notes see [4]. Source and binary distributions can be downloaded > from an ASF Mirror at [5]. Further download information is available at [6]. > Maven artifacts for this release are available at [7]. > > Note, that depending on which download mirror you use, it may take up to 24 > hours to see the download images at [5]. > > [1] http://xmlgraphics.apache.org/fop/2.3/ > [2] http://xmlgraphics.apache.org/fop > [3] http://www.w3.org/TR/xsl11/ > [4] http://xmlgraphics.apache.org/fop/changes.html > [5] http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop > [6] http://xmlgraphics.apache.org/fop/download.html > [7] > https://repository.apache.org/index.html#nexus-search;gav~org.apache.xmlgrap > hics~fop~2.3~~ > > The Apache XML Graphics team. > > > - > 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
List
[no subject]
Re: Issue with PDF generated using Apache FOP
Hi Ramesh, This is an FAQ. See [1] Thanks Chris [1] https://xmlgraphics.apache.org/fop/faq.html#cells-overflow On 18/04/2017 10:40, zenmonics_softwa.venkata_ram...@daimler.com wrote: > > Hi Team <mailto:gad...@apache.org>, > > Myself Ramesh. > > I have been facing an issue while generating pdf using Apache FOP, > that “Long text flows into adjacent cells/block” in table when there > are no spaces between words. > > I have been generating the XSLT using Altova Style Vision. > > Can you please help me if there is any attribute that will resolve > this issue. Find below screenshot for reference. > > Thanks and Reagrds, > > Ramesh. K. V > > +919003429757 > > Default Disclaimer Daimler AG > > > If you are not the addressee, please inform us immediately that you > have received this e-mail by mistake, and delete it. We thank you for > your support. > - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Aw: Re: Tagging fo:blocks as artifacts
Hi Holger, I'm happy to advise you, but please lets keep FOP related stuff on list. The basic info you need for setting up a FOP Dev environment is here: https://xmlgraphics.apache.org/fop/dev/ The latest FOP versions are developed using Maven, which makes importing the source code into your favorite IDE a one click process. I personally use IntelliJ, but others use Eclipse or Netbeans Thanks, Chris On 12/04/2017 09:04, Holger Bast wrote: > Hey Chris, > thx for your mail. > The last time I programmed in Java was more then 10 years ago. But I would > try implementing this feature. > What do I need for that? Toolchain? Repository? > > Bye, Holger > > >> Gesendet: Montag, 10. April 2017 um 10:14 Uhr >> Von: Chris <bowditch_ch...@hotmail.com> >> An: "fop-users@xmlgraphics.apache.org" <fop-users@xmlgraphics.apache.org> >> Betreff: Re: Tagging fo:blocks as artifacts >> >> Hi Holger, >> >> I agree the easiest solution would be to mark the unwanted blocks as >> artifacts. Its a shame that FOP only supports role="artifact" on >> fo:table-header and fo:table-footer :( If you were to submit a patch on >> an enhancement it would be welcomed. I think this would be a good >> improvement to FOP's accessibility support. >> >> Thanks, >> >> Chris >> >> On 05/04/2017 21:41, Holger Bast wrote: >>> Hi there, >>> I'm trying to use fop (2.1) to generate accessible pdf files. My document >>> source is docbook5 that is transformed to >>> xsl-fo and then processed with fop to pdf. >>> The official docbook5-xsl files often generate deep nested fo:block >>> structures like the following example: >>> >>> >>> >>> >>> >>> >>> Level >>> 1 >>> 1.1. Level >>> 1 >>> >>> >>> >>> >>> >>> >>> >>> This code also generates a deep nested p(aragraph) structure in the pdf >>> file, because every fo:block automatically is >>> tagged as paragraph. I'm trying to evaluate different approaches to get rid >>> of this nested structure: >>> >>> 1) better code generation >>> That's the most obvious point but the docbook-xsl files are quite complex >>> and I think this goal is hard to achieve. >>> >>> 2) tagging the unwanted block as 'artifacts' >>> Is there a way to tag fo:blocks as kind of artifact, so that they are not >>> recognized being part of the document >>> structure? The role="artifact" can only be applied to 'wrapper' and >>> 'static-content' structures. An explicit way to >>> deactivate tagging for dedicated structure elements would be nice and the >>> easiest way for me. >>> >>> 3) merging of the fo:blocks >>> Another way would be merging all nested fo:blocks that only contain another >>> fo:block element as child together that only >>> one is left which can correctly be rendered. This goal is not easy to >>> achieve, because you must have an eye on the >>> attributes; addition/subtraction of indents and so on. >>> >>> 4) ?? >>> >>> Did I forget something? Are there other ways to get rid of this nested >>> structure? >>> >>> Thanks, Holger >>> >>> >>> >>> >>> >>> >>> >>> - >>> 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 >> >> > . >
Re: Tagging fo:blocks as artifacts
Hi Holger, I agree the easiest solution would be to mark the unwanted blocks as artifacts. Its a shame that FOP only supports role="artifact" on fo:table-header and fo:table-footer :( If you were to submit a patch on an enhancement it would be welcomed. I think this would be a good improvement to FOP's accessibility support. Thanks, Chris On 05/04/2017 21:41, Holger Bast wrote: > Hi there, > I'm trying to use fop (2.1) to generate accessible pdf files. My document > source is docbook5 that is transformed to > xsl-fo and then processed with fop to pdf. > The official docbook5-xsl files often generate deep nested fo:block > structures like the following example: > > > > > > > Level > 1 > 1.1. Level > 1 > > > > > > > > This code also generates a deep nested p(aragraph) structure in the pdf file, > because every fo:block automatically is > tagged as paragraph. I'm trying to evaluate different approaches to get rid > of this nested structure: > > 1) better code generation > That's the most obvious point but the docbook-xsl files are quite complex and > I think this goal is hard to achieve. > > 2) tagging the unwanted block as 'artifacts' > Is there a way to tag fo:blocks as kind of artifact, so that they are not > recognized being part of the document > structure? The role="artifact" can only be applied to 'wrapper' and > 'static-content' structures. An explicit way to > deactivate tagging for dedicated structure elements would be nice and the > easiest way for me. > > 3) merging of the fo:blocks > Another way would be merging all nested fo:blocks that only contain another > fo:block element as child together that only > one is left which can correctly be rendered. This goal is not easy to > achieve, because you must have an eye on the > attributes; addition/subtraction of indents and so on. > > 4) ?? > > Did I forget something? Are there other ways to get rid of this nested > structure? > > Thanks, Holger > > > > > > > > - > 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
Re: There is a problem about directory line feed!
Hi Harry, I'm not sure what you mean by *full space* I suggest you attach an XSL-FO file so we can see what you mean. Also, please state which version of FOP you are using. Thanks Chris On 30/03/2017 03:48, Harry wrote: > When I make a catalog,I set up a attribute:text-align-last="justify".*In > order to making the catalog align at both ends*.But if the title include a > *full space*,and after the full space there are more than one line > text,there will be a *line feed* at the full space. > so,is there any body could tell me how can I do to make the catalog align > at both ends and don't make line feed. > If there is no way to achieve what I want.Could you please tell me the > *rules* of the line feed.Besides the full space ,is there any other symbol > can make this things? > best wishes! > > > > -- > View this message in context: > http://apache-fop.1065347.n5.nabble.com/There-is-a-problem-about-directory-line-feed-tp45055.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
Re: Trying to use font Quicksand
Hi Chris, In order to use custom fonts in FOP you need to add them into the fop.xconf file. You can add the auto-detect element as mentioned below but it is recommended that you configure each font you require individually within the fop.xconf file. This allow you to use the name you prefer (autodetect can sometime use unexpected names), and avoids importing every font from the Operating System. See [1] for further details Thanks Chris [1] https://xmlgraphics.apache.org/fop/trunk/fonts.html On 20/02/2017 14:17, Szeak (Register Man) wrote: > Hi, > > You need configure the fop for your output renderer to > mode. See FOP Configuration on the web. > > Szeak > > 2017-02-20 12:20 keltezéssel, Chris Dams írta: >> Dear all, >> >> I am trying to use the font Quicksand >> (https://www.fontsquirrel.com/fonts/quicksand) with fop. This is an >> opentype font. I am generating PDF. I installed the font on Windows. >> When I use cygwin and list the files in the Windows/Fonts directory >> it lists "Quicksand_Dash.otf Quicksand-Bold.otf >> Quicksand-BoldItalic.otf Quicksand-Italic.otf Quicksand-Light.otf >> Quicksand-LightItalic.otf Quicksand-Regular.otf". When I go to the >> directory with Windows Explorer it shows files "Quicksand" and >> "Quicksand Dash Extra Light". I can choose the font Qiucksand in Word >> and this works. In my fo file I also try to use this font by doing >> font-family="Quicksand". This, however, does not work. Instead Times >> is displayed. When I run fop from the command line by running >> "fop.bat ", I see the warning "WARNING: Font >> "Quicksand,normal,400" not found. Substituting with "any,normal,400". >> The page https://xmlgraphics.apache.org/fop/2.1/fonts.html suggests >> that this should work out of the box. Am I missing something? >> >> Have a nice day, >> Chris > > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > . >
Trying to use font Quicksand
Dear all, I am trying to use the font Quicksand ( https://www.fontsquirrel.com/fonts/quicksand) with fop. This is an opentype font. I am generating PDF. I installed the font on Windows. When I use cygwin and list the files in the Windows/Fonts directory it lists "Quicksand_Dash.otf Quicksand-Bold.otf Quicksand-BoldItalic.otf Quicksand-Italic.otf Quicksand-Light.otf Quicksand-LightItalic.otf Quicksand-Regular.otf". When I go to the directory with Windows Explorer it shows files "Quicksand" and "Quicksand Dash Extra Light". I can choose the font Qiucksand in Word and this works. In my fo file I also try to use this font by doing font-family="Quicksand". This, however, does not work. Instead Times is displayed. When I run fop from the command line by running "fop.bat ", I see the warning "WARNING: Font "Quicksand,normal,400" not found. Substituting with "any,normal,400". The page https://xmlgraphics.apache.org/fop/2.1/fonts.html suggests that this should work out of the box. Am I missing something? Have a nice day, Chris
Re: Page overlay question.
Hi, Define a different fo:simple-page-master for every page then you can select which overlay is applied to which page. Thanks, Chris On 28/12/2016 14:33, Baldev wrote: > How page overlay can be implemented at page level. > > > Thanks. > > > > -- > View this message in context: > http://apache-fop.1065347.n5.nabble.com/Page-overlay-question-tp44706p44707.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
Re: Issue with upgrade from FOP 0.95 to 2.0
Hi Naveen, This has been reported before at [1] Simon made a suggestion to put font-base into the config file, and call API a different way. Can you try that? Thanks Chris [1] https://issues.apache.org/jira/browse/FOP-2600 On 04/10/2016 17:26, Kandula, Naveen wrote: > > Hi, > > We have been using fop to generate the PDF’s from xml in various > languages and we were using FOP 0.95 version. > > Now, We are planning to migrate from FOP version 0.95 to 2.0. > > Below is the piece of code which we were using with FOP 0.95 > > _FopFactory_fopFactory = _FopFactory_.newInstance(); > > _FOUserAgent_foUserAgent = fopFactory.newFOUserAgent(); > > Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out); > > TransformerFactory factory = TransformerFactory./newInstance/(); > > Transformer transformer = > factory.newTransformer(*new*StreamSource(xsltfile)); > > // for korean PDF > > *if*(langPref.equalsIgnoreCase("ko-kr")) > > { > > foUserAgent.setFontBaseURL("file:///usr/share/X11/fonts/TrueType/korean.st/typefaces/"); > > fopFactory.setUserConfig(*new*File(scriptsRoot + " /prds/korean.xml")); > > } > > Now, with 2.0, I do not see setFontBaseURL method under foUserAgent class. > > I tried something like below > > DefaultConfigurationBuilder cfgBuilder = > *new*DefaultConfigurationBuilder(); > > Configuration cfg = cfgBuilder.buildFromFile(*new*File(scriptsRoot + > "/prds/korean.xml")); > > FopFactoryBuilder fopFactoryBuilder = > *new*FopFactoryBuilder(*new*File(".").toURI()).setConfiguration(cfg); > > FopFactory fopFactory = fopFactoryBuilder.build(); > > But I am really not sure how can I set FontBaseURL with version 2.0. I > could not able to generate the pdf’s in local languages. > > Any assistance here would be greatly appreciated. > > Thanks In Advance. > > Thanks > > Naveen > > > > > > > CONFIDENTIALITY NOTICE: This message (including any attachments) may > contain Molex confidential information, protected by law. If this > message is confidential, forwarding it to individuals, other than > those with a need to know, without the permission of the sender, is > prohibited. > > This message is also intended for a specific individual. If you are > not the intended recipient, you should delete this message and are > hereby notified that any disclosure, copying, or distribution of this > message or taking of any action based upon it, is strictly prohibited. > > English | Chinese | Japanese > www.molex.com/confidentiality.html - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fonts in the class path makes fonts listing fail
Hi Maxime, You can file a bug using JIRA, see: http://xmlgraphics.apache.org/fop/bugs.html Thanks, Chris On 17/06/2016 08:24, Maxime Bégnis wrote: Hello, Is there a way for me to file a bug report about this? BR, -- *NeoDoc* *Maxime Bégnis* max...@neodoc.fr Tél: +33 (0)4.42.52.24.20 789 Rue de La Gare 13770 Venelles France http://www.neodoc.fr/ Le 10/06/2016 10:43, Maxime Bégnis a écrit : When using fonts embedded in a .jar file in the class path (https://xmlgraphics.apache.org/fop/2.1/fonts.html#autodetect), fonts listing fails with this exception: org.apache.fop.cli.Main startFOP GRAVE: Exception java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.(File.java:418) at org.apache.fop.fonts.FontCache.addFont(FontCache.java:335) at org.apache.fop.fonts.autodetect.FontInfoFinder.getFontInfoFromCustomFont(FontInfoFinder.java:157) at org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:269) at org.apache.fop.fonts.FontAdder.add(FontAdder.java:63) at org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:110) at org.apache.fop.fonts.FontManager.autoDetectFonts(FontManager.java:229) at org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:82) at org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147) at org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127) at org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170) at org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187) at org.apache.fop.area.RenderPagesModel.(RenderPagesModel.java:75) at org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135) at org.apache.fop.area.AreaTreeHandler.(AreaTreeHandler.java:105) at org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350) at org.apache.fop.fo.FOTreeBuilder.(FOTreeBuilder.java:107) at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104) at org.apache.fop.apps.Fop.(Fop.java:78) at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:182) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:107) at org.apache.fop.cli.Main.startFOP(Main.java:186) at org.apache.fop.cli.Main.main(Main.java:217) I found a way around this by using a custom resolver that will discard any "jar: ..." URI. I use fonts in a jar file for them to be taken into account by JEuclid (I didn't find any other way so far). I finally made this work by duplicating the fonts in the jar file in a regular folder (so I must maintain 2 copies of each file). I'm using FOP 2.1 (from https://xmlgraphics.apache.org/fop/download.html) under Ubuntu 14.04 LTS Linux. BR, -- -- *NeoDoc* *Maxime Bégnis* max...@neodoc.fr Tél: +33 (0)4.42.52.24.20 789 Rue de La Gare 13770 Venelles France http://www.neodoc.fr/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: ImageInputStream issue when using
Hi Michael, Can you generate the XSL-FO File? i.e. the result of the XSLT transform? If you then call FOP from the command line instead of via your embedded program do you see the issue? Can you also elaborate what you mean by "occasionally" is that 1 in 100, 1 in 10? Thanks, Chris On 23/05/2016 18:13, Michael Hansen wrote: Hello community, using FOP 2.1 I occasionally get the following exception when trying to transform xml to pdf using images: java.lang.IllegalStateException: ImageInputStream is not reset for: another_image.png at org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.returnSource(AbstractImageSessionContext.java:230) at org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:129) at org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:139) at org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81) I am searching for a solution for a little while now, without success. My (simplified) xsl file looks like: xmlns:xsl="http://www.w3.org/1999/XSL/Transform; xmlns:xs="http://www.w3.org/2001/XMLSchema; xmlns:fo="http://www.w3.org/1999/XSL/Format; exclude-result-prefixes="fo"> src="url('data:image/jpeg;base64,{$imageTest}')" content-width="scale-to-fit" content-height="scale-to-fit" scaling="uniform" inline-progression-dimension.maximum="160mm" block-progression-dimension.maximum="40mm"/> width="13.5cm" content-width="scale-to-fit" content-height="scale-to-fit" scaling="uniform"/> and the responsible java part for transformation looks like: final TransformerFactory tf = TransformerFactory.newInstance(); final DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder(); final DOMSource domSource = new DOMSource(db.parse(xmlFile.toFile())); final InputStream inputStream = resourceLoader.getResource("classpath: path/to/file.xsl").getInputStream(); final StreamSource xslt = new StreamSource(inputStream); final ClasspathUriResolver resolver = new ClasspathUriResolver(resourceLoader); tf.setURIResolver(resolver); final Transformer transformer = tf.newTransformer(xslt); final Resource resource = resourceLoader.getResource("classpath:fop.xconf"); final File configFile = resource.getFile(); final FopConfParser parser = new FopConfParser(configFile); final FopFactoryBuilder builder = parser.getFopFactoryBuilder(); final FopFactory factory = builder.build(); try (ByteArrayOutputStream outStream = new ByteArrayOutputStream()) { final Fop fop = factory.newFop(MimeConstants.MIME_PDF, outStream); final Result res = new SAXResult(fop.getDefaultHandler()); transformer.transform(domSource, res); } catch(...) { } We are getting a java.nio.file.Path-object "xmlFile", manipulating the DOMSource befor transforming it into a PDF file. The fop.xconf-file just contains fonts-configurations. So, a little more complex than the examples on xmlgraphics.apache.org, but this shouldn't result in an image issue... The problems start when we started to add the second image using I have no clue what I am doing wrong. Any recommendation|help is welcome. // Michael - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Is there a way to remove "INFO org.apache.fop.apps.FOUserAgent - Rendered page XXX" logs ?
You should be able to configure Commons logger to only output Warnings and higher and ignore INFO messages Chris On 28/04/2016 15:02, Julien Lancelot wrote: Hi, I'm using FOP 2.1, and when I generate a PDF, I can see the following logs in my console : 15:52:59.057 INFO org.apache.fop.apps.FOUserAgent - Rendered page #1. 15:52:59.140 INFO org.apache.fop.apps.FOUserAgent - Rendered page #2. 15:52:59.155 INFO org.apache.fop.apps.FOUserAgent - Rendered page #3. 15:52:59.159 INFO org.apache.fop.apps.FOUserAgent - Rendered page #4. 15:52:59.853 INFO org.apache.fop.apps.FOUserAgent - Rendered page #1. 15:52:59.890 INFO org.apache.fop.apps.FOUserAgent - Rendered page #2. 15:52:59.900 INFO org.apache.fop.apps.FOUserAgent - Rendered page #3. Is there a way to not generate this logs ? Thanks ! -- Julien LANCELOT |SonarSource http://sonarsource.com <http://sonarsource.com/> - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Showing images in PDF embeded in a web app.
Hi Sunrita, I note you've not yet received a reply to your questions. Please can you supply the FO File together with the errors observed as I'm not sure I follow the question about the image URL. Also can you paste the actual warning messages you get so we can advise you precisely as to cause and possible solution together with your fop.xconf file. Otherwise we'll just be guessing. Thanks, Chris On 12/03/2016 17:11, Sunrita Bagchi Basu wrote: Hi, I am struggling to show images and data in PDF within a web application. I could make the stand alone work easily. But in web it fails to get the images. I have tried the following: Approach 1: [Here i tried using the ServletContextURIResolver to resolve the images] URIResolver uriResolver = new ServletContextURIResolver(servletContext); DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder(); Configuration cfg = cfgBuilder.build(GeneratePDFWithFOP.class.getResourceAsStream("/fop.xconf")); ResourceResolver resolver = new ResourceResolver() { public OutputStream getOutputStream ( URI uri) throws IOException { URL url = servletContext.getResource(uri.toASCIIString()); return url.openConnection().getOutputStream(); } public Resource getResource ( URI uri) throws IOException { return new Resource(servletContext.getResourceAsStream(uri.toASCIIString())); } }; FopFactoryBuilder builder = new FopFactoryBuilder(new File(".").toURI(), resolver).setConfiguration(cfg); final FopFactory fopFactory = builder.build(); In the xsl for images I have put: content-width="0.30in" src="url(servletcontext: /arrow-pdf-header.png)" /> But this doesn't load the images. SAX error show invalid URI for image. Though the same is accessible via browser Approach 2: [Here i used the Local path, so the images are coming through but the data is not getting printed] String appPath = servletContext.getRealPath(""); Configuration cfg = cfgBuilder.buildFromFile(new File(appPath+"/WEB-INF/classes/fop.xconf")); FopFactoryBuilder builder = new FopFactoryBuilder(new File(appPath).toURI()).setConfiguration(cfg); final FopFactory fopFactory = builder.build(); In the xsl for images i have put: content-width="0.40625in" src="url(/arrow-pdf-header.png)" /> Though this one loads the images, the data fails to show up!. I also get a few warning in the console such as table width was adjusted, and few fonts were not found. Thanks, Sunrita - 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 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/ 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
Re: table-header question
Hi, There is no identical extension to RenderX. However, FOP 2.x supports table markers, which are more powerful. Simply set the marker in the first row to blank, and subsequent rows to the value you want to show in the 2nd page onwards. Then retrieve the first marker in each page. Thanks, Chris On 21/01/2016 09:03, Pascal Sancho wrote: 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 <parida2...@gmail.com>: 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 - 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 Glenn, thank you for your links. I just tried to create layers in my xsl-fo script - I am rendering those through apache's fop - the pdf I got seems to have layers - but they don't show up in both Adobe Reader or Adobe Acrobat: <http://apache-fop.1065347.n5.nabble.com/file/n43110/Bildschirmfoto_2015-11-29_um_16.png> Do you have an Idea whats the problem here? Thanks in advance! Best Chris -- View this message in context: http://apache-fop.1065347.n5.nabble.com/xsl-fo-1-1-pdf-duplex-printing-tp40800p43110.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
Cannot embed font in servlet pdf output
I recently started migrating my FOP 1.1 implementation to 2.0 and I'm having an issue loading a custom font for embedding. We have all our fonts stored in a "/fonts" directory on the web application's class path. We used the ServletContextURIResolver in the past and this worked fine, but trying to load our XML configuration and making the necessary 2.0 changes, I continue to have problems loading the fonts. When specifying the font using embed-url="myFont.ttc": IllegalArgumentException: URI is not absolute. When specifying the font using embed-url="servlet-context:///WEB-INF/classes/fonts/myFont.ttc" IllegalArgumentException: URI scheme is not "file" Could someone please clearly explain how I should have my fop.xml defined and loaded in my servlet so that my font is properly loaded. Thanks, Chris
Re: alternate text extension not working in FOP version 2.0
Hi Eva, If it works with -a option then this suggests the config file isn't being recognized. You need to specify -c option at command line to use a config file. Thanks, Chris On 19/10/2015 20:43, Eva wrote: Hi Chris, >From FOP's website, it mentions there are 3 ways to turn on accessibility. I've been using the config way by adding accessibility entry in the config. I just tried another way using -a in the command and found the pdf generated was passing the full check for the very first time. I don't know where did I do wrong in the config file. I just got all the files downloaded from the website and adding a new entry in fop.xconf. true Do I need to change anything else for the program to read from conf/fop.xconf or by default it should read the config file from conf folder? I'm new to FOP, really apprecipated your help here. Thanks, Eva -- View this message in context: http://apache-fop.1065347.n5.nabble.com/alternate-text-extension-not-working-in-FOP-version-2-0-tp42921p42979.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
Re: alternate text extension not working in FOP version 2.0
Hi Eva, Did you enable accessibility in the fop.xconf, via the tags: true Thanks Chris On 14/10/2015 15:24, Eva wrote: Hi Chris, I've simplify the original XSL with only one image for testing purpose and still found alt-text not showing when running a full check on accessibility. http://www.w3.org/1999/XSL/Format; xmlns:fox="http://xmlgraphics.apache.org/fop/extensions; xmlns:h="http://tempuri.org/ReportTypeDataSet.xsd; xmlns:m="http://tempuri.org/MPRDataSet.xsd; xmlns:myObj="urn:myObj"> http://localhost/PCom3-phase3-t3/images/3441_2.png; /> -- View this message in context: http://apache-fop.1065347.n5.nabble.com/alternate-text-extension-not-working-in-FOP-version-2-0-tp42921p42967.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
Re: alternate text extension not working in FOP version 2.0
Hi Eva, I've not seen this problem before. fox:alt-text works fine for me and passes acrobat preflight. Can you share your complete XSL-FO File? Thanks, Chris On 24/09/2015 14:48, Eva Chang wrote: Hi, Trying to use xsl-fo to generate a pdf for accessibility compliance. Need to add alternate text to images as the first thing. Getting the latest version of FOP 2.0 and follow the example on the website. I've test it with simply one image on the pdf and pdf was generated without any error. However, after opening the document and ran a full check for accessibility still see the warning for missing alternate text on the image and the only way to fix it would be manually apply the alternate text through acrobat. The namespace I was using is "http://xmlgraphics.apache.org/fop/extensions;, not sure if it is still a valid one to use. I've tried searching for solutions online and couldn't find anyone has similar problem as I do. Please let me know if you guys know what's the possible problem that alternate-text is not showing without any error message. Thanks, Eva - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Apache FOP 0.95
Hi Nikos, FOP is a Java application so it doesn't care which windows version you are using. x86 or x64 should be fine. Also, there are no known security issues. Thanks, Chris On 17/09/2015 11:52, Papaiakos, Nikos (Nokia - GR/Athens) wrote: Hello, I know that this version is rather old, however I would like to know: - if the mentioned version (0.95) is compatible with x64 bit windows. - Is there any security issue for this version? Thanks in advance Regards, Nikos - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: fop-pdf-images upgrade in line with FOP 2.0
Hi Mark, Sadly not. The trunk version of fop-pdf-images depends on PDFBox v2.0.0, and since PDFBox are not releasing v2, it makes it necessary to use a snapshot version. An official Apache release is not supposed to depend on a snapshot version. So we are waiting for PDFBox to release, and have been for nearly a year now :-( Chris On 28/07/2015 17:33, Mark Gibson wrote: Hi, Is there any plans on releasing a version of fop-pdf-images in line with the fop 2.0 release? The current binary release of fop-pdf-images has been built against fop 1.1 Thanks Mark - 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 Puja, Put the block-container into the body region after the text to overlay. FOP renders block-container's in the order it encounters them in the XXSL-FO. region-* are always rendered before the body, so the body contents will always overlay any block-containers placed in region-* Thanks, Chris On 30/06/2015 15:13, Puja Jain wrote: I’m trying to overlay a watermark over text by placing the watermark in fo:region-after as per the FOP documentation in https://xmlgraphics.apache.org/fop/0.95/output.html. But the watermark is always rendered under the text. How can I get the watermark to overlay over the text? Here’s the code snippet: ?xml version=1.0? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=A4 margin-top=1.5cm margin-bottom=1.5cm margin-left=1.25cm margin-right=1cm fo:region-body / fo:region-after extent=11in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=A4 fo:static-content flow-name=xsl-region-after fo:block-container position=absolute top=80px left=0px fo:block display-align=center font-weight=bold font-size=40pt color=red”Watermark /fo:block /fo:block-container /fo:static-content fo:flow flow-name=xsl-region-body font-size=20pt fo:block-container fo:block margin-top=0pxThis text should appear under the watermark /fo:block /fo:block-container /fo:flow /fo:page-sequence Thanks, Puja - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: AW: Missing glyph error, but font contains glyph
Hi Daniel, The built in Times Font is embedded within the PDF Viewer. You can't adjust it. All you can do is tell FOP to use a different Font to render your XSL-FO. This is done via your fop.xconf file. If you believe you've done that already, then can you post your fop.xconf file here for review? Thanks, Chris On 24/06/2015 08:24, mulos wrote: Thanks, but where can I find the built-in Times font? In my fop\fonts – folder I have: times.ttf timesbd.ttf timesbi.ttf timesi.ttf All of them contain this character. Could this be a codepage problem? Daniel *Von:*Glenn Adams-2 [via Apache FOP] [mailto:ml-node+[hidden email] /user/SendEmail.jtp?type=nodenode=42467i=0] *Gesendet:* Dienstag, 23. Juni 2015 18:08 *An:* Daniel Strackbein *Betreff:* Re: Missing glyph error, but font contains glyph If you are using the built-in Times font, then it does not include a glyph for that character. On Tue, Jun 23, 2015 at 9:09 AM, mulos [hidden email] /user/SendEmail.jtp?type=nodenode=42466i=0 wrote: Hi, output format is PDF. Font type is TTF. If I embedd another font (cambria), the character is found correctly. But why? Times contains this character. The config file (times.xml) contains it, too. Thanks, Daniel *Von:*Robert Meyer-5 [via Apache FOP] [mailto:[hidden email] /user/SendEmail.jtp?type=nodenode=42466i=1[hidden email] http://user/SendEmail.jtp?type=nodenode=42465i=0] *Gesendet:* Dienstag, 23. Juni 2015 17:00 *An:* Daniel Strackbein *Betreff:* RE: Missing glyph error, but font contains glyph Hi, Could you provide extra details such as the output format (PDF, Postscript, AFP) and the font type you're using (Type1, TTF, OpenType)? Thanks, Robert Date: Tue, 23 Jun 2015 07:34:36 -0700 From: [hidden email] http://user/SendEmail.jtp?type=nodenode=42464i=0 To: [hidden email] http://user/SendEmail.jtp?type=nodenode=42464i=1 Subject: Missing glyph error, but font contains glyph Hi, I get the following error: Jun 23, 2015 4:28:46 PM org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph ? (0x1e7, gcaron) not available in font TimesNewRoman. java version 1.7.0_17 Java(TM) SE Runtime Environment (build 1.7.0_17-b02) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode) This character exists in the times new roman font. Why does this message appear? -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=42464i=2 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=42464i=3 *If you reply to this email, your message will be added to the discussion below:* http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42464.html To unsubscribe from Missing glyph error, but font contains glyph, click here. NAML http://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 View this message in context: AW: Missing glyph error, but font contains glyph http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42465.html Sent from the FOP - Users mailing list archive http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html at Nabble.com. *If you reply to this email, your message will be added to the discussion below:* http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42466.html To unsubscribe from Missing glyph error, but font contains glyph, click here. NAML http://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 View
Re: FOP2.0 taking more time format complex script documents
Hi Sripathi, Not much we can do to help without at least the following: 1. XSL-FO file. Please attach your file. Please don't send XSLT/XML 2. fop.xconf. Please send the configuration file you are using. 3. The version of Java and Operating System you are using. Thanks, Chris On 24/06/2015 12:04, sripathi wrote: Hi Glenn, Thanks for your reply..We are already disabled the Complex scripts feature..Actually ,here the problem with Chinese and Japanese fonts.I tried in FOP1.1 also, FOP2.0 is 4times slower than 1.1 ,when processing these fonts. Could you please help me on this Performance issue. Thanks, Sripathi. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP2-0-taking-more-time-to-format-complex-script-documents-tp42461p42468.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
Re: floats
XSL 1.1 is finalized. There was a draft v2.0 XSL specification written but then the working group shutdown due to lack of interest. Its not up to the FOP community whether something is in or out of the XSL specification. All we can say is that this feature doesn't exist in the current specification. FOP is an open source project, so if you want this feature you will need to develop an extension to do it, and submit a patch file for the committers to review. Thanks, Chris On 11/06/2015 09:30, Michał Jaworski wrote: can it be considered as a part of XSL 1.1 spec? You are right that wrapping is not necessary but still mirror (outer) placement is an issue. Michał Jaworski W dniu 2015-06-11 o 08:43, Luis Bernardo pisze: That is not really a float in the sense that the text does not need to wrap around it. And that in fact makes the implementation of the feature a lot simpler. On 6/10/15 5:41 PM, Michał Jaworski wrote: Example attached, one float always on the outer side. W dniu 2015-06-10 o 17:19, Luis Bernardo pisze: Can you show an example? Do you have two floats with text flowing in between or just one float that is always on the outer side of the page? On 6/10/15 4:36 PM, Michał Jaworski wrote: Hi, mirror floats appear always on the outer side of the book page. We are using FOP to print truth books :) on the paper. In the simplest version floats are equal size and contains growing numbers of neighbouring paragraphs. It is used later in citations. Part of books templates have mirror floats simply and we have to handle it somehow. Today we are using Tex in such a cases but after very good experiences with FO we want to get rid of Tex and use truly xml approach everywhere. Unfortunately XSL 1.1 spec forgotten about it :( Michał Jaworski W dniu 2015-06-10 o 16:14, Luis Bernardo pisze: No, and since that does not seem part of the XSL 1.1 spec it is highly unlikely that it will be implemented. What is the purpose of mirror floats? Are the two floats the same (meaning same content) or do they have at least the same exact size? On 6/10/15 3:54 PM, Michał Jaworski wrote: Hi, I tested FOP 2.0 comparing results generated earlier using version 1.1. The content is an xml book having approx 300 B5 pages with lot of tables and complex structures. Results are surprisingly positive. Great work! I want to touch one topic known for years. Is there any way (or are you planning in an upcoming future) to achieve somehow mirror floats (on outer margins of the book) thus something like fo:float float=outsideused in xep? Michał Jaworski - 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 - 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 - 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
Re: FOP 1.1 to 2.0 Migration Guidance?!?
Hi Jesse, The only difficult part of that code is the Font Base URL. Do you really need a font base URI that's different from the global base URI? Assuming you can just set Base URL instead, there is a sample on the embedding page that's quite similar to below, i.e. DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder(); Configuration cfg = cfgBuilder.buildFromFile(new File(C:/Temp/mycfg.xml)); // swap the file here for fopConfig in your code fopFactoryBuilder = new FopFactoryBuilder(baseURI).setConfiguration(cfg); // swap baseURI for your own base URI If you do need a different font base URI to the global base URI then it might be possible with custom resolver for the Font Manager, but since I've not done that before I'm not 100% certain about that. Thanks, Chris On 08/06/2015 15:40, Jess Holle wrote: Okay, it's now clear that I could have just done: FopFactory fopFactory = FopFactory.newInstance( baseURI ); That said, now I have code doing: FopFactory fopFactory = FopFactory.newInstance(); String strFontbase = getFontbaseLocation(); File fopConfig = getConfigFile(); if (fopConfig.exists() strFontbase != null){ fopFactory.setFontBaseURL(strFontbase); fopFactory.setUserConfig(fopConfig); } And once again, it is unclear how to convert this to the 2.0 APIs. -- Jess Holle On 6/8/2015 9:03 AM, Jess Holle wrote: Okay, perhaps I over-reacted a bit as it seems one can do: FopFactoryBuilder fopFactoryBuilder = new FopFactoryBuilder( baseURI ); FopFactory fopFactory = fopFactoryBuilder.build(); and then have the remainder of the API work much as it used to (apart from FOUserAgent lacking any API for setting the base URI). Simple guidance to this effect would have been quite helpful, though! On 6/8/2015 7:52 AM, Jess Holle wrote: So I downloaded FOP 2.0 to use in place of 1.x for embedded use in creating PDFs from XSL-FO within Java server code. Unfortunately: 1. The extremely simple code using FOP 1.x does not compile with 2.0 * No big deal but 2. It is unclear how one should modify 1.x code to use 2.0 APIs 3. There appears to be no migration guidance in the documentation whatsoever * This is the real kicker -- given #2. This issue starts with the very first line of FOP 1.x API calls: FopFactory ff = org.apache.fop.apps.FopFactory.newInstance(); What's the replacement for this line? It's completely unclear from the documentation. Any assistance here would be greatly appreciated. -- Jess Holle - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: PostScript trays for printer Xerox 7835
Hi Christian, Thanks for pointing this out. Can you log a JIRA entry for this issue? It sounds like the original author of the ps:set-pagedevice extension assumed the variable would always be the 2nd operand, but that is not a fair assumption with Postscript. Make sure you include a sample FO File on the JIRA entry As a workaround can you use the ps:ps-page-setup-code extension instead? Thanks, Chris On 06/02/2015 16:48, Christian Pestel wrote: Hi, I would like to print on a Xerox 7835 printer With LasetJet Printer trays, this work fine but not with Xerox 7835. With LaserJet, trays PostScript instruction are for Tray 1 : /MediaPosition 1 for Tray 2 : /MediaPosition 2 With Xerox : for Tray 1 : (tray1) xerox$MediaInputTray for Tray 2 : (tray2) xerox$MediaInputTray Here is an extract of my IF file (Intermediate Format) for LaserJet : Page 1 : ps-setpagedevice xmlns=apache:fop:extensions:postscript name=Paper_1 /MediaPosition 1 /ps-setpagedevice Page 2 : ps-setpagedevice xmlns=apache:fop:extensions:postscript name=Paper_2 /MediaPosition 2 /ps-setpagedevice PS file for LaserJet : Page 1 : %FOPBeginSetPageDevice /PageSize [595 842] /MediaPosition 1 /ImagingBBox null setpagedevice %FOPEndSetPageDevice Page 2 : %FOPBeginSetPageDevice /PageSize [595 842] /MediaPosition 2 /ImagingBBox null setpagedevice %FOPEndSetPageDevice Here is an extract of my IF file (Intermediate Format) for Xerox 7835 Page 1 : ps-setpagedevice xmlns=apache:fop:extensions:postscript name=Paper_1 (tray1) xerox$MediaInputTray /ps-setpagedevice Page 2 : ps-setpagedevice xmlns=apache:fop:extensions:postscript name=Paper_2 (tray2) xerox$MediaInputTray /ps-setpagedevice PS file for Xerox : Page 1 : %FOPBeginSetPageDevice /PageSize [595 842] (tray1) xerox$MediaInputTray= correct/ImagingBBox null setpagedevice %FOPEndSetPageDevice Page 2 : %FOPBeginSetPageDevice /PageSize [595 842] (tray1) xerox$MediaInputTray = incorrect (tray2) xerox$MediaInputTray = only this line is correct /ImagingBBox null setpagedevice %FOPEndSetPageDevice I have analysed the fop source code. In fact, Fop use a key/Value HashTable and all new key/value are cumulative. Example with LaserJet Page 1 : key=/MediaPosition and value=1 = Fop write in PostScript : “/MediaPosition 1” Page 2 : key=/MediaPosition and value=2 = Fop write in PostScript : “/MediaPosition 2” Exemple with Xerox : Page 1 : key=(tray1) and value=xerox$MediaInputTray= Fop write in PostScript : “(tray1) xerox$MediaInputTray” Page 2 : key=(tray2) and value=xerox$MediaInputTray = Fop write in PostScript all keys/values : “(tray1) xerox$MediaInputTray” + “(tray2) xerox$MediaInputTray” Where is the best way to resolve this problem ? Possibly adding a new key ClearPreviousTrayInfosBeforeSettingNewPage=true/false in fop config PostScript section ? Thank you for your advice. Christian Pestel christian.pes...@orange.fr mailto:cpes...@bdoc.com - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Encoding problem with one specific letter and postscript
Hi Lembit, Sorry for slow reply, I've been on holiday. You really need to add optimize-resourcestrue/optimize-resources element to your fop.xconf file in the Postscript Renderer section. Without that FOP can't accurately judge which characters can be subset or not. Adding encoding-mode attribute will circumvent the subset issue because it will embed up to 256 characters, but since you are using a wide range of characters that probably isn't enough. I also recommend testing the Trunk version if that doesn't resolve your issue, since a lot of bugs have been fixed since v1.1 was released. Thanks, Chris On 12/10/2014 20:16, Lembit Gerz wrote: Hello, I am using FOP 1.1 to generate postscript files with embedded fonts. Later I’m using ps2pdf to convert the postscript files to pdfs. The text includes Lithuanian letters. However, after coverting them to pdf, two specific letters are displayed as squares, all the ohter Lituhuanian letters are displayed correctly. The problematic letters are the upper- and lowercase letters ė and Ė (e with dot, 0116 and 0117 in unicode). I can copy all the letters from the pdf (including the two problematic ones – when copying the square and pasting it somewhere, it displays the letter correctly). I am using the standard Arial font from Windows fonts (arial.ttf). This is my fop-config.xml: configuration renderers renderer mime=application/postscript auto-rotate-landscapetrue/auto-rotate-landscape fonts font embed-url=./arial.ttf encoding-mode=single-byte font-triplet name=Arial style=normal weight=normal/ /font /fonts /renderer /renderers /configuration When leaving out the encoding-mode=“single-byte“, the letters display correctly, but when copying from the pdf, I get gibberish. When generating straight to pdf with FOP, everything is displayed correctly and copying is also possible. I have tried other ps-pdf converters and they give the same result. Using a metric file did not help. The problem can be reproduced with the xml and xslt in the fop quick start guide (https://xmlgraphics.apache.org/fop/quickstartguide.html) with these modifications: Set the name in name.xml to ABC14pąęčėųūĘĖŲČĄ. Add the attribute font-familiy=“Arial“ to the fo:block in name2fo.xsl. Use the above fop-config file and include the standard Arial font in FOP’s directory. Run ’fop -xml name.xml -xsl name2fo.xsl -ps name.ps -c fop-config.xml’ Can anyone suggest, what could be the issue or how should I go about debugging this? Thank You. Lembit - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP: unable to locate servlet-api
Hi, Are you running FOP from the command line? If so, then you shouldn't need the servlet. That's just for testing FOP from a web application. It would be helpful for us to understand the issue if you could provide the full console output rather than just the error line. Thanks, Chris On 19/08/2014 15:29, kdjantzen wrote: Hi, when generating a pdf-file from an xml-file with fop I get the warning [warning] /usr/bin/fop: Unable to locate servlet-api in /usr/share/java Even though the result seems to be OK, I still would like to know what the servlet is good for, whether I really need it, and where I would get it from. On one website it said one should install libservletxx.xx. I did that but that did not help. I am using Debian Wheezy with the latest version of fop. Any help would be appreciated. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-unable-to-locate-servlet-api-tp41080.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
Re: Loading fonts problem
Hi Martin, There is no way to fully embed the font in FOP 0.95. If upgrading is not possible, It may be you can avoid the preflight error another way, e.g. by using a different Font. The error says that a CID subset is incomplete. Since you have to use a subset in 0.95, you could try to use a non-CID font instead. Thanks, Chris On 06/08/2014 15:39, MartinKl wrote: Hello Chris, Thank you for your response. Do I have any option to tell fop 0.95 that I want to embbed all fonts trought fop.xconf or programatically? Great Regards Martin -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41034.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
Re: Loading fonts problem
Hi Martin, The preflight warning occurs because the font is only subset, instead of fully embedded. In later FOP versions you can specify embedding-mode=full attribute on the font configuration, but that's not available in FOP v0.95. Thanks, Chris On 04/08/2014 16:55, MartinKl wrote: Thank you for your response. I am trying to generate PDF/A-1b document using FOP 0.95. I know that the version is very old but it is very hard to upgrade because noone wants to pay for it such amount of money for retesting all templates (Bank). I am struggeling with embedding fonts into pdf file. I get error below from adobe acrobat http://apache-fop.1065347.n5.nabble.com/file/n41013/preflight_verification.gif my fop.xconf is here https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf I´ve also created report from adobe acrobat which can be usefull. https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf and doc.pdf is here https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf Thank you for response. I hope I´ve provided enough info. Great Regards Martin Klapec -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41013.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
Re: FOP 0.94 showing Error with opening URL...Connection Reset and fop.fo.FONode - Image Not Available
Hi Terence, Sorry for slow reply. Just spotted your e-mail. The issue sounds like this one discussed in 2008; http://markmail.org/message/k6mno3jsxmovaz2e If it is the same issue, then the solution is to add the following system property to the JVM: -Dorg.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.no-source-reuse=true Thanks, Chris On 23/06/2014 17:08, Terence M. Bandoian wrote: On 6/20/2014 1:29 PM, Rwui wrote: Hi there, So I'm working on some applications, and they're using fop-0.94.jar as external library to generate the PDF based on certain XSL file. The problem that I'm having now is the downloaded PDFs from the applications are incomplete (in a high level environment) - there's always random missing page(s) in the PDF file. e.g. I may get page 3 and 6 missing this time for a 20 pages PDF and next time it might be page 1, 4 and 13; And if I download only the first page, as you guys can imagine, I will sometimes just have a blank PDF. The log is showing: ERROR: FOP - Error with opening URL 'http://imageURL': Connection reset ERROR: fop.fo.FONode - Image not available: url(http://imageURL) The image is from a image server and the imageURL is always working - as if I copy paste it to any browser, and as I mentioned the missing page(s) are totally random, I'm thinking the URLs are fine but need to take care on the Connection reset error. Plus, the application's PDF downloading runs perfectly in other environments like on my local Ubuntu work station (which is also connecting to the same image server). So I'm guessing this might very likely be a configuration side of thing, but so far haven't got any clue on which might be possible to change to make the fix. If anyone here have any ideas of what might be causing this kind of error or have seen this before, please let me know. Any help would be very appreciated. Thanks! R Hi, Rwui- If you're concerned about connection issues, you might consider temporarily copying the images to a drive on the server and referencing the local images in FOP. Doing so would provide the opportunity for more robust error handing and eliminate the remote connection as a source of errors in FOP. -Terence Bandoian - 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
Re: replace commons logging with slf4j
Hi Jason, Understood, but there have many other logging frameworks that supposedly offered the same thing. Commons Logging for example can handle JDK logging and log4j. S:F4J is newer than commons-logging, but other than that I see no compelling reason to move to it. Before changing the logging framework used by FOP we would want to evaluate a wide set of logging frameworks before picking one. AFAIK, No one within the committer team is currently looking at that. Thanks, Chris On 19/05/2014 04:13, Jason Harrop wrote: Hi Chris SLF4J is a widely used logging facade, which allows you - the FOP user - to use your preferred concrete logging framework (ie the one you use in the rest of your application), as opposed to having to grapple with the logging framework that at some point in time long ago seemed best to the library developer. cheers .. 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
Re: replace commons logging with slf4j
Hi Jason, What's the motivation for doing so? I had a quick glance at the slf4j website and it just looks like yet another logging framework. What problem does it solve, and what benefits does it have over commons logging? Thanks, Chris On 24/04/2014 01:10, Jason Harrop wrote: Any chance for FOP 2.0 of replacing commons-logging with slf4j? Would also need to be done in xmlgraphics commons. In the meantime, using jcl-over-slf4j instead of commons-logging works; see http://www.slf4j.org/legacy.html But it be nice not to need even that. thanks .. Jason On Tue, Jun 4, 2013 at 10:20 PM, Bonekrusher djs...@yahoo.com mailto:djs...@yahoo.com wrote: Thanks. These errors are being handled by the Apache Common Logging. I was able to turn off Logging: System.setProperty(org.apache.commons.logging.Log, org.apache.commons.logging.impl.NoOpLog); -- View this message in context: http://apache-fop.1065347.n5.nabble.com/EventListener-SEVERE-events-tp38650p38652.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org mailto:fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org mailto: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
Re: My xslt file does not work with a Servlet but it works with a Java Application, Why?
Hi, To help you we need more information; 1. FOP version 2. XSL-FO File, which is the real FOP input. XSLT file is no use on its own. 3. Example of good versus bad output Thanks Chris On 07/04/2014 21:26, edi4988 wrote: Hi. I have a Web Application and I have my xslt file and xml file. I used a Servlet to convert the xslt file to a pdf file but when I convert these files to a pdf file, the footer of the document disappears. When I uses the same xslt file in a java application the pdf has the footer but with the Servlet does not work. Do you have any idea? I attached my xslt file. Thanks -- View this message in context: http://apache-fop.1065347.n5.nabble.com/My-xslt-file-does-not-work-with-a-Servlet-but-it-works-with-a-Java-Application-Why-tp40455.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
Re: Funding for Float support in FOP?
Hi Aaron, Implementation of fo:float is one of the most trickest algorithms within the XSL-FO specification. Vincent H worked on a prototype layout engine that could accomodate fo:floats in 2008, but after 12 months we had to abandon it as it was still some distance from being finished. Thats just the prototype, and excluded all the output generation and many other features in FOP. Assuming the prototype can be finished within say another 12 months, it would then take several further man years to port the rest of FOP's functionality onto the prototype. We estimate the implementation cost would be in the range of several hundred thousand GBP :-o This is why fo:float has not yet been implemented. Sorry to be the bearer of bad news. Of course, I'm happy to learn if anyone has any idea how to implement a solution using the existing Knuth Layout Algorithm. Chris On 11/02/2014 03:47, Aaron W. Hsu wrote: It's nice that I've been able to work around the lack of floats in FOP for my sigplan article stylesheet, but it still irks me quite a bit. I don't have the time an inclination to fix the problem myself, given the lack of time and expertise in this area. However, I at least want to look into whether it might not be possible to support getting float support into FOP somehow. Thus, the following: Given appropriate amounts of funding, is there someone with the appropriate expertise willing to implement float support and the like in FOP? If so, what is the funding amount that would be necessary? I'm looking for honest answers here. I'm not sure I can raise this level of funding, but at the very least it would be good to know how much it would cost. I have enough people somewhat interested in this that it would make sense to make an effort if possible. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Rendering issue in image output when setting BufferedImage.TYPE_BYTE_BINARY
Hi Frank, The problem is caused by lack of support for dithering when converting to B+W output. This is mentioned in the documentation at [1] Thanks, Chris [1] http://xmlgraphics.apache.org/fop/trunk/output.html#bitmap On 15/01/2014 18:10, Frank B wrote: I'm creating a barcode using barcode4j. The barcode is sourrounded by a dashed border. When generating an image using BufferedImage.TYPE_INT_RGB or BufferedImage.TYPE_BYTE_GRAY, the border is rendered properly. However, when using BufferedImage.TYPE_BYTE_BINARY, the border is broken. It renders properly for PDF output. I attached sample code and the generated PNGs. The rendering issue doesn't depend on the image type. The same issue occurs for a TIFF output with TIFFConstants.COMPRESSION_CCITT_T6 and BufferedImage.TYPE_BYTE_BINARY. - TYPE_BYTE_BINARY.png: how the broken border looks like. - TYPE_BYTE_GRAY.png: what it should look like. - TYPE_INT_RGB_details.png: shows how the dashed border is generated. It uses svg and diagonal bars that clip the border. - TYPE_BYTE_BINARY_details.png: how the svg is rendered. The diagonal bars are vertical. I tested with fop versions 1.0 and 1.1. Any assistance would be appreciated. cheers, frank - 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
Re: Floating an image (block right and wrap text)?
Hi David, Thanks for pointing this out. I've logged a bug to capture this as I agree its a poor show to put an example on the homepage that can't be achieved by FOP: https://issues.apache.org/jira/i#browse/FOP-2330 In future, please report such issues on the FOP User Mailing list rather than e-mailing me directly. Thanks, Chris On 05/01/2014 19:10, qbd...@vt.edu wrote: Chris, On one of apache FOP's web pages (http://xmlgraphics.apache.org/fop/) there is a picture in the Demonstration section which looks like text has been wrapped around an image. Was this example created using Apache FOP? If so, even if the implementation of floating is incomplete can this be released as a feature of some kind? Or how else can this be accomplished? We are trying to accomplish the same thing as Jeffrey and would rather resort to a free option. By the way if anyone needs this feature and is willing to buy a product, RenderX and the Antenna House XSL-FO formatter are two options. Thank you, David - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Setting Up Trunk In Eclipse
Hi Guys, I’m going to be working on a patch to add a JPEG render. However no .project file is supplied with the trunk so I am unable to set it up in eclipse without a lot of effort.. Anyone know if there is a .project file somewhere? -- This message and any attachments transmitted with it are confidential and intended solely for the use of the addressee(s). If you are not the addressee, you may not disseminate, distribute or copy this message and you should destroy it and kindly notify the sender by return. All opinions and conclusions in this message are solely those of the author and should be understood as neither given nor endorsed by Adgistics Limited unless specifically stated. Whilst we take reasonable precautions to ensure this message is free of viruses, opening and using this message is at the risk of the recipient. Adgistics Limited: Registered in England and Wales, Company Number: 3859657, Registered Office 5 Copper Row, Tower Bridge Piazza, London SE1 2LH. Vat Registered Number: 752019256.
RE: Setting Up Trunk In Eclipse
Thanks Rob, that was easy. I’ll get the code written along with the tests and submit a patch soon! *From:* Robert [mailto:rme...@hotmail.co.uk] *Sent:* 11 December 2013 12:15 *To:* fop-users@xmlgraphics.apache.org *Subject:* RE: Setting Up Trunk In Eclipse I forgot to say to add jai_core.jar to your build path as well. That is located in your jai path installation. -- From: rme...@hotmail.co.uk To: fop-users@xmlgraphics.apache.org Subject: RE: Setting Up Trunk In Eclipse Date: Wed, 11 Dec 2013 12:11:44 + Hi, It's not that much effort to get it working. Here's what I do from fresh: 1) File New Java Project 2) Uncheck Use default location, Click Browse button and specify location of fop-trunk 3) Click Finish for the project to be created 4) Right click project Properties and select Java Build Path from tree 5) Click Add Library button and select JUnit. Click Next button and select Junit 4 and click Finish. 6) Click Add External JAR and add the ant.jar from your ant installation (or in Linux /usr/share/ant/lib/ant.jar) 7) Clean and compile and run. Regards, Robert Meyer -- From: chris.cartli...@adgistics.com Date: Wed, 11 Dec 2013 11:38:30 + Subject: Setting Up Trunk In Eclipse To: fop-users@xmlgraphics.apache.org Hi Guys, I’m going to be working on a patch to add a JPEG render. However no .project file is supplied with the trunk so I am unable to set it up in eclipse without a lot of effort.. Anyone know if there is a .project file somewhere? This message and any attachments transmitted with it are confidential and intended solely for the use of the addressee(s). If you are not the addressee, you may not disseminate, distribute or copy this message and you should destroy it and kindly notify the sender by return. All opinions and conclusions in this message are solely those of the author and should be understood as neither given nor endorsed by Adgistics Limited unless specifically stated. Whilst we take reasonable precautions to ensure this message is free of viruses, opening and using this message is at the risk of the recipient. Adgistics Limited: Registered in England and Wales, Company Number: 3859657, Registered Office 5 Copper Row, Tower Bridge Piazza, London SE1 2LH. Vat Registered Number: 752019256. -- This message and any attachments transmitted with it are confidential and intended solely for the use of the addressee(s). If you are not the addressee, you may not disseminate, distribute or copy this message and you should destroy it and kindly notify the sender by return. All opinions and conclusions in this message are solely those of the author and should be understood as neither given nor endorsed by Adgistics Limited unless specifically stated. Whilst we take reasonable precautions to ensure this message is free of viruses, opening and using this message is at the risk of the recipient. Adgistics Limited: Registered in England and Wales, Company Number: 3859657, Registered Office 5 Copper Row, Tower Bridge Piazza, London SE1 2LH. Vat Registered Number: 752019256.
External-Graphics PNG Output
Hi Guys, I have a simple fo document that includes a PDF as an *external*-*graphic. When this is rendered as a PDF the quality is great as you would expect. However, when I run this through the standard Bitmap renderer to produce a PNG the quality is awful and the image is pixelated..* *Any idea? * -- This message and any attachments transmitted with it are confidential and intended solely for the use of the addressee(s). If you are not the addressee, you may not disseminate, distribute or copy this message and you should destroy it and kindly notify the sender by return. All opinions and conclusions in this message are solely those of the author and should be understood as neither given nor endorsed by Adgistics Limited unless specifically stated. Whilst we take reasonable precautions to ensure this message is free of viruses, opening and using this message is at the risk of the recipient. Adgistics Limited: Registered in England and Wales, Company Number: 3859657, Registered Office 5 Copper Row, Tower Bridge Piazza, London SE1 2LH. Vat Registered Number: 752019256.
RE: External-Graphics PNG Output
Hi, I am using 1.1. I’ll package up a runnable example and send it over. *From:* A Gian [mailto:a.yan...@hotmail.com] *Sent:* 04 December 2013 14:10 *To:* fop-users@xmlgraphics.apache.org *Subject:* RE: External-Graphics PNG Output Hello Chris, which fop version are you using ? 1.1? Also, if you could provide all the necessary resources in order to reproduce the problem (such as fo file, images etc ) it would be easier for other people to help you. Thanasis -- From: chris.cartli...@adgistics.com Date: Wed, 4 Dec 2013 12:04:47 + Subject: External-Graphics PNG Output To: fop-users@xmlgraphics.apache.org Hi Guys, I have a simple fo document that includes a PDF as an *external*-*graphic. When this is rendered as a PDF the quality is great as you would expect. However, when I run this through the standard Bitmap renderer to produce a PNG the quality is awful and the image is pixelated..* *Any idea? * This message and any attachments transmitted with it are confidential and intended solely for the use of the addressee(s). If you are not the addressee, you may not disseminate, distribute or copy this message and you should destroy it and kindly notify the sender by return. All opinions and conclusions in this message are solely those of the author and should be understood as neither given nor endorsed by Adgistics Limited unless specifically stated. Whilst we take reasonable precautions to ensure this message is free of viruses, opening and using this message is at the risk of the recipient. Adgistics Limited: Registered in England and Wales, Company Number: 3859657, Registered Office 5 Copper Row, Tower Bridge Piazza, London SE1 2LH. Vat Registered Number: 752019256. -- This message and any attachments transmitted with it are confidential and intended solely for the use of the addressee(s). If you are not the addressee, you may not disseminate, distribute or copy this message and you should destroy it and kindly notify the sender by return. All opinions and conclusions in this message are solely those of the author and should be understood as neither given nor endorsed by Adgistics Limited unless specifically stated. Whilst we take reasonable precautions to ensure this message is free of viruses, opening and using this message is at the risk of the recipient. Adgistics Limited: Registered in England and Wales, Company Number: 3859657, Registered Office 5 Copper Row, Tower Bridge Piazza, London SE1 2LH. Vat Registered Number: 752019256.
Re: java.lang.NoSuchMethodError: org.apache.fontbox.cff.CFFFont.getGIDMappings()Ljava/util/ArrayList;
Hi Gonzalo, It is our intension to update the dependency on fontbox to be a specific version. In order to do that we need to wait for a release of fontbox containing the changes necessary to support OTF CFF Fonts to be released. Until then we must rely on snapshot releases. Thanks, Chris On 18/11/2013 13:02, Gonzalo Vasquez wrote: Thanks Luis, Tried both fontbox release versions 1.8.0 and 1.8.2, but the only one that worked was 1.8.0-SNAPSHOT, which was included in the SVN trunk. I think this should be fixed to a stable release dependency. 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 mailto: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 El 16-11-2013, a las 17:40, Luis Bernardo lmpmberna...@gmail.com mailto:lmpmberna...@gmail.com escribió: You seem to be using Eclipse. Make sure the fontbox*.jar in the the classpath. On 11/15/13, 7:18 PM, Gonzalo Vasquez wrote: When adding a specific font that contains TrueType fonts or using the auto-detect tag in the fop (trunk version) config file, I'm getting the following exception. Any comments / ideas? java.lang.NoSuchMethodError: org.apache.fontbox.cff.CFFFont.getGIDMappings()Ljava/util/ArrayList; at org.apache.fop.fonts.truetype.OTFFile.updateBBoxAndOffset(OTFFile.java:51) at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:740) at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:108) at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:92) at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:127) at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:111) at org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:251) at org.apache.fop.fonts.FontAdder.add(FontAdder.java:63) at org.apache.fop.fonts.DefaultFontConfigurator.addDirectories(DefaultFontConfigurator.java:122) at org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:85) at org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147) at org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127) at org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170) at org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187) at org.apache.fop.area.RenderPagesModel.init(RenderPagesModel.java:75) at org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135) at org.apache.fop.area.AreaTreeHandler.init(AreaTreeHandler.java:105) at org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350) at org.apache.fop.fo.FOTreeBuilder.init(FOTreeBuilder.java:106) at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104) at org.apache.fop.apps.Fop.init(Fop.java:78) at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:179) at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:220) at TestRender.test(TestRender.java:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683
PDF Controls was (Re: Floating an image (block right and wrap text)?)
Hi Jennilee, Unfortunately the XSL-FO specification does not provide for injecting PDF specific items such as AcroForms or XFA into the generated PDF. Apache FOP doesn't have an extension for it either. Thanks, Chris On 05/11/2013 04:24, Adams, Jennilee JC wrote: Good day, Do you perhaps know how to add an *Editable text box* , *Radio button* and *Check Boxes* to a XSL Stylesheet that when the form is generated / rendered via Apache FOP into a PDF format – it allows the user to enter text or check the radio button / checkbox before printing the form. We have been looking for a solution all over and you are my last hope. An easy solution would do or if you could post the code of how to add in the Editable Text box, Radio button and Check boxes to the XSL Stylesheet. In some instances the text box should also allow for multiple lines to be captured. I would really appreciate your feedback and assistance. Kind Regards, Jennilee *From:*Rob Sargent [mailto:rsarg...@xmission.com] *Sent:* Tuesday, November 05, 2013 12:16 AM *To:* fop-users@xmlgraphics.apache.org *Subject:* Re: Floating an image (block right and wrap text)? Sorry did mean to send it off-list, honest :) On 11/04/2013 03:14 PM, Rob Sargent wrote: Taking this off the list. I just think the text generation is a separate problem form getting pictures into the product. Once can make all sorts of constraints on where the text goes without including any images. rjs Generally the regions for each are carved out of the whole and On 11/04/2013 03:06 PM, Jeffrey Walton wrote: On Mon, Nov 4, 2013 at 4:59 PM, Rob Sargentrsarg...@xmission.com mailto:rsarg...@xmission.com wrote: I've always assumed typesetting was about type, not pictures. When's the last time you saw a newspaper, magazine, or catalog without a picture? Jeff Its hard to believe placing an image is considered extended functionality. That's part of core word processing functionality (I can't comment on typesetting because I'm not a typesetter, but I suspect its core for them, too). - To unsubscribe, e-mail:fop-users-unsubscr...@xmlgraphics.apache.org mailto:fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail:fop-users-h...@xmlgraphics.apache.org mailto:fop-users-h...@xmlgraphics.apache.org ** ** *Standard Bank email disclaimer and confidentiality note* Please go to http://www.standardbank.co.za/site/homepage/emaildisclaimer.htmlto read our email disclaimer and confidentiality note. Kindly email disclai...@standardbank.co.za mailto:disclai...@standardbank.co.za (no content or subject line necessary) if you cannot view that page and we will email our email disclaimer and confidentiality note to you. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Floating an image (block right and wrap text)?
Hi Jeff, The XSL-FO Working sub group categorized XSL-FO features into basic, extended and complete. This is not something the FOP developers decided. Image support is indeed a basic feature, no one is disputing that, and inserting an image is possible today. Flowing text around an image is what is not possible today. You can still position text next to an image using a Table. You mentioned you were willing to give a Paypal donation to provide support for fo:float implementation. I should warn you the reason its not been done today is because we spent 1 year developing a prototype and it still wasn't finished. So a complete implementation would be several man years to finish. Thanks, Chris On 04/11/2013 22:06, Jeffrey Walton wrote: On Mon, Nov 4, 2013 at 4:59 PM, Rob Sargent rsarg...@xmission.com wrote: I've always assumed typesetting was about type, not pictures. When's the last time you saw a newspaper, magazine, or catalog without a picture? Jeff Its hard to believe placing an image is considered extended functionality. That's part of core word processing functionality (I can't comment on typesetting because I'm not a typesetter, but I suspect its core for them, too). - 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
Re: Getting a list of font names without the memory hit...
The auto-detect feature creates the font cache, to save time on sunsequent calls to FOP, you can disable the cache using the setting: use-cachefalse/use-cache in your fop.xconf. I suspect the reason for the high memory consumption is your use of auto-detect feature. Though I've not replicated the issue. If your intention is to allow the user to pick any font installed on the Operating System, why not use the java.awt classes to list the available fonts instead? I've not tried it but I suspect it will use less memory as it doesn't need to load the full contents of every font in the system. Thanks, Chris On 31/07/2013 12:53, Bernard Giannetti wrote: Now I'm chasing my tail...looking at FontCachehas gotten me back to FontInfo.getFonts()! Any other ideas please?! From: thebernmeis...@hotmail.com To: fop-users@xmlgraphics.apache.org Subject: RE: Getting a list of font names without the memory hit... Date: Wed, 31 Jul 2013 21:33:14 +1000 I'm readingorg.apache.fop.fonts.FontCache now...red-faced and fingers crossed! From: thebernmeis...@hotmail.com To: fop-users@xmlgraphics.apache.org Subject: RE: Getting a list of font names without the memory hit... Date: Wed, 31 Jul 2013 21:29:59 +1000 The config file or the cache file? My config file has no fonts listed for PDF: renderer mime=application/pdf filterList valueflate/value /filterList fonts auto-detect/ /fonts /renderer Date: Wed, 31 Jul 2013 04:26:33 -0700 From: djs...@yahoo.com To: fop-users@xmlgraphics.apache.org Subject: RE: Getting a list of font names without the memory hit... Why don't you just read the config file which list all the available fonts? - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: RTF - Only simple-page-masters are supported on page-sequences
Hi, Thanks for the sample FO File. Since it appears to be a bug can you log a bug in JIRA and attach the test FO File there. Otherwise this issue may get forgotten. Thank you! Chris On 23/06/2013 00:27, Bonekrusher wrote: Hi Robert, Below is a small repo. Thanks for looking into this. ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#; fo:layout-master-set xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:fn=http://www.w3.org/2005/xpath-functions; fo:page-sequence-master master-name=page-sequence fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=even master-reference=seq-page-first blank-or-not-blank=not-blank page-position=first/ fo:conditional-page-master-reference odd-or-even=odd master-reference=seq-page-odd blank-or-not-blank=not-blank/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master fo:simple-page-master master-name=seq-page-first page-height=11in page-width=8.5in margin-top=0.5in margin-left=1.0in margin-right=0.5in fo:region-body region-name=xsl-region-body margin-top=0.80in margin-bottom=.5in overflow=auto/ fo:region-before region-name=xsl-region-before extent=0.5in/ fo:region-after region-name=xsl-region-after extent=0.5in/ /fo:simple-page-master fo:simple-page-master master-name=seq-page-odd page-height=11in page-width=8.5in margin-top=0.5in margin-left=1.0in margin-right=0.5in fo:region-body region-name=xsl-region-body margin-top=0.35in margin-bottom=.5in overflow=auto/ fo:region-before region-name=xsl-region-before extent=0.5in/ fo:region-after region-name=xsl-region-after extent=0.5in/ /fo:simple-page-master fo:simple-page-master master-name=alternate-blank page-height=11in page-width=8.5in margin-left=1.0in margin-right=1.0in fo:region-body/ fo:region-before region-name=header-blank extent=11in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence initial-page-number=1 force-page-count=end-on-even format=1 master-reference=page-sequence id=ps-0006 fo:static-content flow-name=xsl-region-before fo:blockdata/fo:block /fo:static-content fo:static-content flow-name=header-blank fo:block line-height=12pt font-family=Arial font-size=10pt font-weight=bold text-align=center /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:blockdata/fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockdata/fo:block /fo:flow /fo:page-sequence /fo:root -- View this message in context: http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734p38793.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
Re: FOP 1.0 Wrap text in table cell
Hi, This is an FAQ, see: http://xmlgraphics.apache.org/fop/faq.html#cells-overflow Thanks, Chris On 28/05/2013 16:48, anotherguy wrote: Hi all, I already tried wrap-option=wrap,keep-together.within-column=always but still can't put the text wrapping in the table cell. anyone know what to do? Thanks -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-1-0-Wrap-text-in-table-cell-tp38595.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
Re: Doubling result when sorting in FOP not in XSL
Hi Jean-Pierre, On 22/05/2013 09:04, Jean-Pierre Lamon wrote: Hi all, It's the first time I'm posting here and I'm newbie in both XSL and FOP. So, sorry for the horrors you'll find in my code :-) I just would like to congratulate all the developers and contributors of FOP, it's an amazing and so usefull product, I just have a problem while grouping and sorting with FOP. The result is different when using XSL or FOP. Ok with XSL, not with FOP. The files are zipped on my server, so it would be nice if someone could help me for this issue : http://www.ngscan.com/downloads/fop/ The files are partial but usable I think. It's a bibliography. Authors have many books and I want to sort by author and book titles (node indexsort). Standard XSL result (stylesheet toc.xsl) Abegg, Regine -- Die Äbtissinnenstuben im Schweizerischen Landesmuseum Zürich | 4 -- Die Kirchen von Altnau | 3 Alencastro, Camille de -- Les expositions d'art à Neuchâtel | 1 -- Liste des expositions d'arts plastiques organisées par le Musée | 2 Carli-Lanfranconi, Annina de -- Die Kirchen von Altnau | 3 Erni, Peter -- Die Kirchen von Altnau | 3 FOP result (stylesheet BHS_2012_two_records.xsl : Abegg is doubled) This looks like a bug in your XSLT file to me. To check, trying running the XSLT process outside of FOP, i.e. xalan -in bhs_2012_two_record.xml -xsl bhs_2012_two_record.xsl -out bhs_2012_two_record.fo Alternatively if you use FOP from the command line, pass the -fo switch and name of XSL-FO File. If you have 2 entries in the XSL-FO then this confirms the bugs resides in the XSLT file. For pure XSLT questions you will get a better response on the mulberry mailing list at [1] Thanks, Chris [1] http://www.mulberrytech.com/xsl/xsl-list Abegg, Regine -- Die Äbtissinnenstuben im Schweizerischen Landesmuseum Zürich : | 4 -- Die Kirchen von Altnau / | 3 Abegg, Regine -- Die Äbtissinnenstuben im Schweizerischen Landesmuseum Zürich : | 4 -- Die Kirchen von Altnau / | 3 Alencastro, Camille de -- Les expositions d'art à Neuchâtel / | 1 -- Liste des expositions d'arts plastiques organisées par le Musée : | 2 Carli-Lanfranconi, Annina de -- Die Kirchen von Altnau / | 3 Erni, Peter -- Die Kirchen von Altnau / | 3 On line 35 of BHS_2012_two_records.xsl : xsl:sort select=../indexsort/ if I put xsl:sort select=./ the record is not doubled, but not sorted Thank you a lot for your help JPL - 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
Re: FO to PDF conversion failing for the new Turkish Lira Symbol.
Hi Ashok, Can you let us know which version of FOP you are using? Would you also be able to send us the full FO File? Can you confirm the font you are using is the one at [1]? If not, send us the correct URL so we can replicate this issue. Thanks, Chris [1] http://www.evertype.com/fonts/rupakara/ On 14/05/2013 11:36, Ashok Kumar wrote: Hi, When I am trying to convert the below FO to PDF, I am getting ArrayIndexOutOfBoundException. The FO content which I am trying to convert is given below: fo:block space-before=1em space-after=1em role=p font-family=RupakaraA paragraph in Turkish for SYMBOL ₺ ₤/fo:block Actually when I am trying to convert the Turkish Lira Symbol (₺) it is converting to symbol during html to FO and throwing exception while converting FO to PDF. I am using the proper font files which supports the above symbol. Can you please resolve this issue asap. - 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
Re: Use of Type1 fonts without metrics information
Hi Luca, Yes that is correct, FOP needs the PFB plus the AFM or PFM File in order to be able to process the Type 1 Font. The metrics XML File isn't needed though. What problem are you facing? Thanks, Chris On 29/04/2013 11:04, Luca Bellonda wrote: However, even when disabling the kerning option in fop configuration file, fop accesses the 'AFM' or the 'PFM' metrics files when using Type1 fonts. If none of the metrics files is found, an exception is thrown by Type1FontLoader class (Neither an AFM nor a PFM file was found). 2013/4/29 Luis Bernardo lmpmberna...@gmail.com mailto:lmpmberna...@gmail.com Yes, see http://xmlgraphics.apache.org/fop/trunk/fonts.html#register (the documentation is for trunk but works the same in 1.1). Use of metrics file has been deprecated and is not recommended. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Adding image to PDF File : Error
On 18/04/2013 11:23, javakthar wrote: HI Hi, I get the following error when processing my agent to convert xml to PDF. THe PDF document gets created but the image does not get created. pr 18, 2013 3:51:04 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not available: The file format is not supported. No ImagePreloader found for data:image/jpeg;base64,R0lGODlhDwAPAKECzMzM/wAAACwADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw== What version of FOP are you using? That's a data URL and I'm sure support was only added for data URLs in more recent versions of FOP. Thanks, Chris Apr 18, 2013 3:51:04 PM org.apache.fop.layoutmgr.table.TableLayoutManager getNextKnuthElements INFO: table-layout=fixed and width=auto, but auto-layout not supported = assuming width=100% Apr 18, 2013 3:51:04 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'verdanna,normal,400' not found. Substituting with 'any,normal,400'. Following is the content of my xsl-fo fo:block fo:external-graphic src=url(data:image/jpeg;base64,R0lGODlhDwAPAKECzMzM/wAAACwADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw==) /fo:external-graphic Kindly let me know how this could be resolved. Regards Javed Khan -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Adding-image-to-PDF-File-Error-tp38354.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
Re: line-height.conditionality
Hi John, Sorry I didn't appreciate the full scenario you were looking at in your previous e-mail. Please do submit a patch if you have one, as I'm sure it will come in handy for others. Thanks, Chris On 26/03/2013 08:11, jsolutions wrote: Thanks Chris, That is not really the scenario I'm dealing with. I specifically want there to be no half leading above the first line in a reference area. At the bottom of a reference area, I want the line breaking to allow a line to fit on the page when it's line-height is too big for the page, but if you remove the bottom half leading then it can fit. Here is an example of it not working with the input data given, the black border is on the body region and the red border on the block I want line-height.conditionality to apply to: output.pdf http://apache-fop.1065347.n5.nabble.com/file/n38226/output.pdf I thought this was the main purpose of the line-height.conditionality property? Anyway, I have made some modifications to the fop source and split the line area into a box/glue/penalty rather than a single box, when determining page breaks. I may submit it if I thought there was enough interest, but the lack of response and also the fact that RenderX and Antenna House also don't appear to support it. The fact that they didn't appear to made me think I was doing something wrong. Cheers JC - John Cumming - jSolutions Ltd http://www.jsolutions.co.uk -- View this message in context: http://apache-fop.1065347.n5.nabble.com/line-height-conditionality-tp38191p38226.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
Re: line-height.conditionality
Hi, If you want to get rid of half leading on areas containing images or other non text items then specify font-size=0pt If the area contains text then you can specify line-height=1.0 (default is 1.2x font size) HTH, Chris On 20/03/2013 12:17, jsolutions wrote: I'm trying to get rid of half leading at the top and bottom of reference areas, as the line-height.conditionality property should, but I cannot get it to work. I'm sure I must be doing something wrong as I have been unable to find a lack of compliance on the FOP web site. However, looking through the source code (1.1) I cannot find where it is used. I am a little confused. Here's some test code I cannot get working: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page fo:region-body region-name=body margin=25.4mm border-width=0.1pt border-color=rgb(0,0,0) border-style=solid padding=0pt/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=page fo:flow font-family=Times flow-name=body fo:block font-size=36pt line-height=72pt line-height.conditionality=discard border-width=0.1pt border-color=rgb(255,0,0) border-style=solidÉ Here is some 36pt text, with 72pt height./fo:block /fo:flow /fo:page-sequence /fo:root What am I doing wrong? JC -- View this message in context: http://apache-fop.1065347.n5.nabble.com/line-height-conditionality-tp38191.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
Re: Change bars support in FOP?
Hi Alexey, Reading the JIRA entry its clear that we are still waiting for some test cases. That is why the bug is in NEEDSINFO status. If they are provided then the patch could be reviewed again to check it is still compliant with the trunk code. Thanks, Chris On 11/03/2013 16:45, Alexey Neyman wrote: Thanks. That issue does not have any further comments/changes than the one in Bugzilla, though. Regards, Alexey. On Monday, March 11, 2013 01:24:20 am Pascal Sancho wrote: Hi, Just for convenience, you should monitor the corresponding issue in Jira: https://issues.apache.org/jira/browse/FOP-1760 Bugzilla Fop issues became read-only when we migrated them to Jira. 2013/3/10 Alexey Neyman sti...@att.net Hi, Are there any plans to implement change bars in FOP? I found the bug in JIRA that claims to implement that: https://issues.apache.org/bugzilla/show_bug.cgi?id=48548 It is in NEEDSINFO state for almost a year now, even though the author has updated the patch and (presumably) addressed the review feedback on the previous version of the patch (which is why it was switched to NEEDSINFO, as far as I understand). Is this patch going to be integrated? Regards, Alexey. - 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
Re: how to merge PDFs
Hi, A better approach to merging multiple PDF files together is to use the Intermediate Format. So instead of transforming each separate File FO-PDF directly, tranform FO-IF and then once you have all the separate IF Files you can merge them into one large PDF File. If you try to do that with PDFBox or similar you will be constrained by memory as those tools have to load the entire PDF data into an object model inside the process. We can generate 10s of thousands of pages using this technique and you can resequence the page numbers with a few minor tweaks to the XML as you load the files in, rather than having to manipulate PDF Text to achieve this. Take a look at the Java code example \examples\embedding\java\embedding\intermediate\ExampleConcat.java to see how to achieve what I'm describing. Thanks, Chris On 29/01/2013 15:30, Campbell, Lance wrote: Thanks for your suggestion on submitting a bug. I put together the information to recreate the problem as well as the PDF that was in error. I submitted it just now. I think I will skip the merge and wait to hear back from the bug submission. Thanks, Lance Campbell Software Architect Web Services at Public Affairs 217-333-0382 University of Illinois at Urbana-Champaign logo http://illinois.edu/ *From:*Luis Bernardo [mailto:lmpmberna...@gmail.com] *Sent:* Monday, January 28, 2013 5:00 PM *To:* fop-users@xmlgraphics.apache.org *Subject:* Re: how to merge PDFs Please provide a test case if you think you found a bug. Most likely there is some oddity in your FO input that causes the problem. If you want to merge documents and have control over how they are generated you can use initial-page-number to set the page number for the start of a page sequence. To merge, besides PDFBox you can use pdftk (which itself uses iText). On 1/28/13 8:42 PM, Campbell, Lance wrote: I looked over the PDFBox option. Do you believe there is a way to renumber pages in a merged PDF document? Thanks, Lance Campbell Software Architect Web Services at Public Affairs 217-333-0382 University of Illinois at Urbana-Champaign logo http://illinois.edu/ *From:*Mehdi Houshmand [mailto:med1...@gmail.com] *Sent:* Monday, January 28, 2013 2:02 PM *To:* fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org *Subject:* Re: how to merge PDFs Look into PDFBox, its another Apache project that can do just that. However, you definitely shouldn't be seeing XSL-FO in the output PDF. Can you post a bug and attach a test sample? Depending on what you're doing, FOP should be able to handle big documents so the merging shouldn't be necessary. On Jan 28, 2013 5:08 PM, Campbell, Lance la...@illinois.edu mailto:la...@illinois.edu wrote: FOP 1.1 We have been using FOP for quite a few years now. We are really happy with it. We use it to generate PDF reports. We seem to be running into an issue where really large reports start to display the XSL-FOP code in the output. Example: d=submission-4 fo:static-content flow-name=xsl-region-after fo:table fs week? If so, provide details on the conference/workshop/journal, authors, paper I was thinking that maybe I could process each page into its own PDF and then splice the single page PDFs together into a master PDF document. Has anyone ever done this? This will prevent the issue from occurring. Thanks, Lance Campbell Software Architect Web Services at Public Affairs 217-333-0382 - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Suppress output to screen
Hi Stephen, On 18/01/2013 21:28, Stephen McCracken wrote: I'm trying to suppress output to the screen. I'm using FOP version 0.95 in a bash script and use the -q option and redirect stdout and stderr to /dev/null, but still get messages printed to the screen: Can you copy and paste an example of the messages you are seeing on the screen. You might be able to suppress them using log levels. $ fop -q -fo $YR.wk$WK.fo $YR.wk$WK.pdf /dev/null 21 Making landscape pages on USletter paper (11inx8.5in) Thanks for any help! Thanks, Chris sjm - 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
Re: fop-ttfreader - output bounding box information for characters?
Hi Alexey, On 08/01/2013 18:12, Alexey Neyman wrote: Hi Chris, On Tuesday, January 08, 2013 12:10:36 am Chris Bowditch wrote: Sounds like we need a FOP plug-in for pMML2SVG to replace the ageing JEuclid one. Pardon my ignorance, but what is FOP using for the XSL transformation? Is it Xalan-based? In that case, it probably won't be sufficient: pMML2SVG requires XSLT 2.0, which, as far as I understand, is only supported by Saxon. You can use whichever XSLT processor you choose with FOP, as long as you feed FOP with XSL-FO. I know that; you mentioned *plug-in* pMML2SVG - I assumed, plug-in is something to be integrated into FOP - which is why I asked what FOP uses for XSLT. Sorry I choose a poor choice of words. I meant the plug-in could use any XSLT processor it needed to. Would probably mean adding a saxon dependency. Thanks, Chris Regards, Alexey. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: fop-ttfreader - output bounding box information for characters?
On 08/01/2013 07:52, Alexey Neyman wrote: Hi Chris, Hi Alexey, On Monday, January 07, 2013 11:44:46 AM Chris Bowditch wrote: Patch from pMML2SVG, slightly modified to apply to FOP 1.1 sources, attached. Thanks for the patch. To get this added to the code base please raise an issue in JIRA, add the diff as an attachment and include [PATCH] in the subject line. A committer will then review the patch before applying it. Created an issue: https://issues.apache.org/jira/browse/FOP-2180 Thank you. So, can this patch be reviewed/integrated? That shouldn't be a problem. As I indicated Peter is working in a similar area right now, so I will ask him if he can take a look. I know Peter Hancock is looking into doing something similar as he is working on getting Batik to use FOP configured fonts instead of the system ones. Peter mentioned to me offlist that he was going to need to expose a few extra things in TTFReader to facilitate this, could be you are covering similar ground here. Maybe. Then again, the root of the issue is not Batik - that issue I work around by embedding fonts. It is JEuclid's use of system fonts which is why I am switching to pMML2SVG - which needs bounding box information for glyphs. BTW, another useful feature in pMML2SVG that was not available in JEuclid is that pMML2SVG outputs baseline position information in the generated SVG - so that inline equations can be properly positioned on the line. Sounds like we need a FOP plug-in for pMML2SVG to replace the ageing JEuclid one. Pardon my ignorance, but what is FOP using for the XSL transformation? Is it Xalan-based? In that case, it probably won't be sufficient: pMML2SVG requires XSLT 2.0, which, as far as I understand, is only supported by Saxon. You can use whichever XSLT processor you choose with FOP, as long as you feed FOP with XSL-FO. Thanks, Chris Regards, Alexey. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: fop-ttfreader - output bounding box information for characters?
Hi Alexey, On 04/01/2013 19:41, Alexey Neyman wrote: snip/ Interesting workaround. We are trying to tackle this issue by providing an alternative implementation of GVTFont in Batik that uses FOP's Font Library to load the font metrics. First, as I was told on the list previously, it is not a small feat and it would take some time before this fix is released. Yes, that is correct. Then, even though it would solve the issue for SVGs, it won't help with font selection for MathML. As I explained below, JEuclid pre-renders the glyphs into paths. That's true. I missed the fact you were working with JEuclid And as far as I can tell, JEuclid project is all but dead: the last non- trivial commit was 16 months ago, and the last release 30 months ago. I don't think it is likely JEuclid will catch up with FOP improvements, even when they're available. I'm subscribed to the JEuclid mailing list and I get the same impression. This does not work well with JEuclid, though. When JEuclid generates SVG from MathML, it performs font rendering - that is, replaces characters by actual paths. And again, it uses system fonts, not the fonts available in FOP - even if running as FOP plugin. To work around this issue for MathML, I am currently switching from JEuclid to pMML2SVG (http://pmml2svg.sourceforge.net). It generates SVGs with text characters, not paths. But in order to do so, it needs font metrics. Unfortunately, font metrics produced by stock FOP TTFReader are not sufficient - this stylesheet also needs bounding box for each glyph. To obtain these, pMML2SVG currently packages an augmented TTFReader Java sources which are to be compiled and used in lieu of the stock one. Given that the patch is very small and as far as I can tell, compatible with current users of font metrics (it just adds 4 attributes to glyph description), is it possible to integrate this support into stock FOP? Patch from pMML2SVG, slightly modified to apply to FOP 1.1 sources, attached. Thanks for the patch. To get this added to the code base please raise an issue in JIRA, add the diff as an attachment and include [PATCH] in the subject line. A committer will then review the patch before applying it. Created an issue: https://issues.apache.org/jira/browse/FOP-2180 Thank you. I know Peter Hancock is looking into doing something similar as he is working on getting Batik to use FOP configured fonts instead of the system ones. Peter mentioned to me offlist that he was going to need to expose a few extra things in TTFReader to facilitate this, could be you are covering similar ground here. Maybe. Then again, the root of the issue is not Batik - that issue I work around by embedding fonts. It is JEuclid's use of system fonts which is why I am switching to pMML2SVG - which needs bounding box information for glyphs. BTW, another useful feature in pMML2SVG that was not available in JEuclid is that pMML2SVG outputs baseline position information in the generated SVG - so that inline equations can be properly positioned on the line. Sounds like we need a FOP plug-in for pMML2SVG to replace the ageing JEuclid one. Thanks, Chris Regards, Alexey. Anyway, please raise the JIRA issue otherwise your patch could get lost. Thanks, Chris Regards, Alexey. - 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 - 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
Re: fop-ttfreader - output bounding box information for characters?
Hi Alexey, Apologies for the slow reply. I'm just catching up on e-mail after the holidays. On 28/12/2012 05:56, Alexey Neyman wrote: Hi all, As I mentioned in another email, I am trying to constrain FOP to use only local fonts (i.e. ones described in fop.cfg). For SVGs, I have a workaround: - Generate fonts in SVG format using ttf2svg utility from Batik; - Use an XSL stylesheet to embed all the fonts used by an SVG image into the image itself; - Use such preprocessed SVG image as the input to FOP. Interesting workaround. We are trying to tackle this issue by providing an alternative implementation of GVTFont in Batik that uses FOP's Font Library to load the font metrics. This does not work well with JEuclid, though. When JEuclid generates SVG from MathML, it performs font rendering - that is, replaces characters by actual paths. And again, it uses system fonts, not the fonts available in FOP - even if running as FOP plugin. To work around this issue for MathML, I am currently switching from JEuclid to pMML2SVG (http://pmml2svg.sourceforge.net). It generates SVGs with text characters, not paths. But in order to do so, it needs font metrics. Unfortunately, font metrics produced by stock FOP TTFReader are not sufficient - this stylesheet also needs bounding box for each glyph. To obtain these, pMML2SVG currently packages an augmented TTFReader Java sources which are to be compiled and used in lieu of the stock one. Given that the patch is very small and as far as I can tell, compatible with current users of font metrics (it just adds 4 attributes to glyph description), is it possible to integrate this support into stock FOP? Patch from pMML2SVG, slightly modified to apply to FOP 1.1 sources, attached. Thanks for the patch. To get this added to the code base please raise an issue in JIRA, add the diff as an attachment and include [PATCH] in the subject line. A committer will then review the patch before applying it. I know Peter Hancock is looking into doing something similar as he is working on getting Batik to use FOP configured fonts instead of the system ones. Peter mentioned to me offlist that he was going to need to expose a few extra things in TTFReader to facilitate this, could be you are covering similar ground here. Anyway, please raise the JIRA issue otherwise your patch could get lost. Thanks, Chris Regards, Alexey. - 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
Re: How to find out why fop needs a certain font?
Hi Alexey, On 21/12/2012 03:07, Alexey Neyman wrote: Yes, I want to understand how FOP treats the fonts in SVG (and, if you know that, how fonts are selected in embedded MathML via JEuclid plugin - we use that, too). We've had some font discrepancies in the past depending on the fonts installed on each developer's machine (in part, because some of the authors are on Windows machines and some are on Linux - so they're likely to have different fonts). Thus, we've decided to do away with using system fonts and use only local fonts (i.e. fonts checked out from the repository along with the document sources). Understood. We have similar challenges too. On Thursday, December 20, 2012 03:32:04 pm Luis Bernardo wrote: With SVG, fonts are more complicated. The font used in the SVG needs to be installed in the system and needs to be configured in fop.xconf too. The warning you got usually happens when the font is in the system but not configured in fop.xconf, which looking at your example does not seem to be the case... Are you saying that the font used in SVG needs to be present both as a system font, even if it is listed in fop.conf? What is FOP going to use then, system font or local font? If it is using system font, that's more than disturbing. As I mentioned, this completely prevents setting up a controlled environment with known fonts. yes that is true. Just to be clear, this is a limitation of Batik, not FOP. Batik uses the AWT Font system as mentioned by Mehdi and Pascal. Peter is researching the possibility of changing Batik so that it can use fonts defined in fop.xconf, but that is a long term project with no quick fix. Thanks, Chris If you want to get to the bottom of the matter please indicate what version of fop you are using and what OS. FOP 1.1, Linux (RedHat Enterprise, 6.2). Also, the use of metrics-url is not needed anymore (and is not recommended) so you can remove that. I tried, it didn't have any effect on the warning. I see you refer to the font file TimesNewRoman.ttf without specifying a font-base path (which only works if you have the file in the same directory you have your *.fo file). I made it so for this reduced test case. Originally, it was embed- url=../fonts/TimesNewRoman.ttf - as I mentioned above, we want to have a controlled font environment. Is that font file an exact copy of the installed font in the system of the same name? The machine does not have a 'Times New Roman' system font (it's a Linux machine, it comes with a different set of system fonts by default). But why would FOP need a system font if it has the required font specified in the configuration file? Another question is, would embedding fonts in SVGs prevent FOP from using system fonts? Regards, Alexey. On 12/20/12 6:44 PM, Alexey Neyman wrote: Hi Luis, No, it is not the case. In the FO I am using, fo:root has a font-family specified, and that font family is described in the fop.cfg. Actually, I traced this warning down to the watermark image specified for the background. However, that SVG does not refer to 'Serif' font, either. Can somebody please explain how does FOP treat the fonts in the included SVG files? I even tried to add a substitution from font-family=Serif to font- family=Times New Roman, it did not help either. Here is the reduced FO file that exhibits the issue: [[[ ?xml version=1.0? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; font-family=Times New Roman fo:layout-master-set fo:simple-page-master master-name=draft fo:region-body background-image=url(draft.svg)/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=draft fo:flow flow-name=xsl-region-body fo:block/ /fo:flow /fo:page-sequence /fo:root ]]] And here is the draft.svg: [[[ ?xml version=1.0 encoding=UTF-8 standalone=no? svg xmlns=http://www.w3.org/2000/svg; viewBox=80 80 600 600 version=1.1 width=5in height=5in text font-weight=normal xml:space=preserve transform=matrix(0.70710678,-0.70710678,0.70710678,0.70710678,0,0) font-size=250px y=640 x=-315 font-family='Times New Roman' fill=#f2f2f2Draft/text /svg ]]] And fop.cfg: [[[ ?xml version=1.0? fop version=1.0 renderers renderer mime=application/pdf fonts font kerning=yes metrics-url=TimesNewRoman.metric embed- url=TimesNewRoman.ttf font-triplet name=Times New Roman weight=normal style=normal/ /font /fonts /renderer /renderers /fop ]]] Regards, Alexey. On Wednesday, December 19, 2012 04:45:31 pm Luis Bernardo wrote: This is of no consequence although is it puzzling at first. If you specify a global font-family in the fo root element I think the warning goes away. I think what you are seeing has been discussed here: http://apache-fop.1065347.n5
Re: Omitting Bottom table border on page-break
On 14/12/2012 10:48, Bonekrusher wrote: Hello, Hi, I have the following requirement for my xsl:fo : When a table is continued on more than one page.. The closing rule is omitted at the foot of a continued table; the opening rule is continued at the head of the continued portion along with the heading title data. Using xslt I could omit the bottom border if and only if I knew where the page-break was going to occur. This could be problematic and could be a lot of work for the xml author. Especially if the xml file is modified. That could change the location of where the page breaks. Is there a way to do this in xsl-fo, to know if the page is going to break? If not, any ideas on how to do this automatically? Your requirement sounds similar to the conditionality component of border property properties. By default this is set to discard, so I would expect border-bottom to be absence on the bottom of a table spanning 2 pages on page 1 and present on page 2. Setting conditionality to retain will make the border be drawn on all pages that the table spans over. Thanks, Chris Thx -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Omitting-Bottom-table-border-on-page-break-tp37527.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
Re: Omitting Bottom table border on page-break
Hi, On 17/12/2012 11:44, Bonekrusher wrote: Thank you Chris, but unfortunately this is the opposite of what I want to accomplish (if I understand your post). In this case I want the bottom border to be absent except on the last page. With border-bottom-width.conditionality=discard that is exactly the behaviour you get; absent on all pages except the last. Thanks, Chris Chris Bowditch wrote Your requirement sounds similar to the conditionality component of border property properties. By default this is set to discard, so I would expect border-bottom to be absence on the bottom of a table spanning 2 pages on page 1 and present on page 2. Setting conditionality to retain will make the border be drawn on all pages that the table spans over. - To unsubscribe, e-mail: fop-users-unsubscribe@.apache For additional commands, e-mail: fop-users-help@.apache -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Omitting-Bottom-table-border-on-page-break-tp37527p37553.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
Re: Maven dependencies for fop 1.1
Thanks for the suggestion Stephen. I have changed the POM template so that the avalon dependency will be fixed in the next release. Committed in revision 1416937 Thanks, Chris On 02/12/2012 21:29, Stephen More wrote: avalon 4.2.0 artifact is already loaded in repo, it just has a different group id. Changing fop-1.1.pom from: dependency groupIdorg.apache.avalon.framework/groupId artifactIdavalon-framework-api/artifactId version4.2.0/version /dependency dependency groupIdorg.apache.avalon.framework/groupId artifactIdavalon-framework-impl/artifactId version4.2.0/version /dependency to dependency groupIdavalon-framework/groupId artifactIdavalon-framework-api/artifactId version4.2.0/version /dependency dependency groupIdavalon-framework/groupId artifactIdavalon-framework-impl/artifactId version4.2.0/version /dependency should resolve the issue. The maintainers of the repo do not want to the see the same artifact loaded twice with 2 different name spaces. Since the pom has already been released I guess a new pom 1.1.1 would have to be pushed out with the fix. -Stephen More On Sun, Dec 2, 2012 at 11:26 AM, Glenn Adams gl...@skynav.com mailto:gl...@skynav.com wrote: to implement, perhaps someone could upload the 4.2.0 artifact to maven to fix this. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Cell border rendering error (thicker) with number-column-spanned
On 02/11/2012 13:55, reevev wrote: Hi, Hi Reeve, Thanks for your reply. While I can confirm that disabling Enhance thin lines corrects the display it doesn't solve the issue that the same templates rendered correctly even with this option enabled when we use 0.20.5 to generate the pdf. Our issue is that Enhance thin lines is turned on by default and for most users they will end up seeing a poor looking PDF now that we've started using Fop 1.0, vs. a correct looking PDF prior to the upgrade, so from the end user's perspective this is broken. Is there any way we can have the same sort of rendering used in 0.20.5 for table borders? No such option exists today. However, FOP is an open source project, so patches are welcome :) However, please be warned that the table border drawing code is very complicated so altered the way borders are drawn to work around Acrobat bugs will not be trivial. Thanks, Chris Thanks, Reeve. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Cell-border-rendering-error-thicker-with-number-column-spanned-tp17999p37229.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
Re: Does FOP-1.1rc1 change handling of RGB values?
On 31/08/2012 21:52, rsargent wrote: Chris, I'm not sure how to read this. Are you endorsing string-replace as the way to go to get cmyk into the pdf or was that meant to be tongue-in-cheek? No I certainly was not endorsing string replace. I was intending to endorse the rgb-icc function. I was about to switch over to using rgb-icc since we have two colour profiles in play. If you're suggesting that string-replace is preferrable, then I really have to get the correct(ed) strings from somebody. Thanks, Chris Chris Bowditch wrote Definitely the right way to use FOP though :-) Chris -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Does-FOP-1-1rc1-change-handling-of-RGB-values-tp36690p36735.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
Re: using cmyk() in fop-1.1rc1 SOLVED
On 27/08/2012 17:07, Rob Sargent wrote: Hi Rob, Bingo. I was completely off-base in thinking it was an xslt function. Your suggestion works like a charm. This helps clean up local colour-guessing a lot. BTW, I strongly recommend using rgb-icc function instead of cmyk. The rgb-icc function achieves the same thing as cmyk, but has 2 key benefits over cmyk: 1. It is more flexible as it supports any named ICC Profile, not just uncalibrated CMYK 2. rgb-icc is part of the XSL-FO recommendation and therefore portable to other XSL-FO Formatters. cmyk function is custom to FOP. Thanks, Chris THANKS, rjs On 08/27/2012 09:39 AM, Sergiu Dumitriu wrote: On 08/27/2012 11:09 AM, Rob Sargent wrote: Does anyone have at hand (a link to) an example of using the cmyk() function. All I get is Could not find function: cmyk. Who supplies this function? Running from cli ~/tools/fop/fop-1.1rc1/fop -xml doc-1.xml -xsl /d3/support/config/stylesheet/prose.xsl -foout cmyk.fo with this (attempted) call in my stylesheet: xsl:param name=darkbackgroundcolor xsl:value-of select=cmyk(0.0, 0.564, 0.529, 0.325)/ /xsl:param Definitely not XSLT. The way you wrote this, it's not FOP that fails to find the function, but the XSLT engine that transforms XML into FO. Try something like: xsl:param name=darkbackgroundcolor xsl:textcmyk(0.0, 0.564, 0.529, 0.325)/xsl:text /xsl:param - 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
Re: next stable version for FOP?
On 23/07/2012 14:59, Danut Clapa wrote: Hello, Hi Danut, I seen that the latest version of the FOP is 1.1rc. Taking in consideration that is an release candidate. Do you have any information when will be next stable release after 1.1rc? You don't need to cross post your question to multiple lists. Please avoid doing so in future. Thanks. To answer your question; the plan is to release FOP 1.1 a few weeks after 1.1rc1 when we've had sufficient feedback to be sure the release is sufficiently stable. Thanks, Chris Thank you, Danut Clapa Senior Java Developer TIC Phone 0314138592 danut.cl...@uti.ro Sos. Oltenitei, nr 107 A, corp C1, Etaj 5 107-111A Oltenitei RO-041393 Bucuresti 4 Romania www.uti.eu.com http://www.uti.eu.com%20/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Small error to the documentation
On 14/07/2012 22:14, Glenn Adams wrote: Hi Glenn, I've moved this discussion to fop-dev as its now more relevant there. the source for this file is under src/documentation/content/xdocs/compliance.ihtml; you can create a bug attaching a patch, or if it is a simple change, just send the diff or describe it in an email Actually the changes you made to update the documentation for the 1.1 release don't appear to have yet been merged back to trunk. This error only exists in the 1.1 branch. I have committed a fix to the 1.1 branch in revision: 1362810, but this raises the question on when the changes for the 1.1 documentation will be merged back to trunk? Thanks, Chris On Sat, Jul 14, 2012 at 12:08 PM, polymorphisme webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org wrote: Hi, I have see an error to the documentation : http://xmlgraphics.apache.org/fop/compliance.html#fo-property-script How can I do a patch to the documentation ? Regards. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Small-error-to-the-documentation-tp36342.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org mailto:fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org mailto: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
Re: AFP Renderer
On 12/07/2012 13:48, Imad Bougataya wrote: Hi everyone, Hi Imad, i just started experimenting with fop to generate afp files, and i would like to know how to go about including an overlay in the output afp file. i'd like to embed ressources as a general rule. You sent your e-mail to the wrong mailing list which is why you haven't had a reply yet. In future, please direct questions about FOP's usage to the fop-user Mailing list. Currently it is not possible to embed an Overlay into the final AFP File. You can reference an Overlay using the Page Overlay extension described at [1], but that requires that the Overlay is installed on the printer. Please feel to raise a Bugzilla entry to track this enhancement request. Thanks, Chris [1] http://xmlgraphics.apache.org/fop/1.1rc1/output.html#afp-page-overlay - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org