Linking SVG-test to Nameddest in PDF
Hi, I just trying to link form an embedded svg to the title of the next chapter within the same pdf. Is that possible with FOP and batik? This is what I tried these days: Without success. Kind regards Markus
monospaced block behavior while wrapping lines
Hi, Iwant to have a PDF with a (Code)Block-Element. I done it with these lines: ... Christian brothers jameson long island iced tea caju amigo glen elgin caipiroska dark and stormy. Lemon drop, lime rickey batida seagrams tinto de verano. Glenburgie bijou the blenheim bijou kilchoman polish martini moscow mule ... on the beach dark and stormy heart of fire early times mickey slim harper's dark and stormy.# ... What I expected was some thing like this: Christian brothers jameson long island iced tea caju amigo glen elgin caipiroska dark and stormy. Lemon drop, lime rickey batida seagrams tinto de verano. Glenburgie bijou the blenheim bijou kilchoman polish martini moscow mule ... on the beach dark and stormy heart of fire early times mickey slim harper's dark and stormy.# But I've got this: Christian brothers jameson long island iced tea caju amigo glen elgin caipiroska dark and stormy. Lemon drop, lime rickey batida seagrams tinto de verano. Glenburgie bijou the blenheim bijou kilchoman polish martini moscow mule ... on the beach dark and stormy heart of fire early times mickey slim harper's dark and stormy.# As you can see the wrapped line starts with a space. So, what did I wrong? Kind regards Markus
WG: Question about Font selection
Hi Matthias, Maybe I can build a xsl template for that. But I just ask for configuration solution before I will modify the SVG. The SVGs I get are from several (unknown) sources, so I do not sure know what is inside. Thanks and best regards Markus Von: Matthias Reischenbacher [mailto:matthias8...@gmx.at] Gesendet: Donnerstag, 21. Mai 2015 13:27 An: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Betreff: Re: Question about Font selection Hi Markus, I'm not sure if this can be done with the fop config file. For fallbacks to other fonts inside SVGs, I normally add a second font to the SVG text element directly. So instead of just having font-family:'Lucida sans unicode'; I automatically add another font: font-family:'Lucida sans unicode','Arial Unicode MS'. HTH, Matthias On 19.05.2015 06:58, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Hi, my major issue is about math symbols and symbols in general. Just I had an issue about the symbol font on windows, now I use the GNU FreeFonts instead of the windows fonts, because they delivered the wrong character presentation. Now I want to set the fallback to the ArialUnicode. You can see I set the Arial to any. In my SVG I use the Glyph bracerightvertical, one time as lucida sans unicode (this does the thrid party math exporter) and one time I use Arial If Arial is set as font-family the glyph is drawn. The log mentioned that lucida is replaced by any. Any is configured to Arial Unicode. But FOP is look on Helvetica for the vertical braces. So my question is how to configure the fop right that the major fallback will map to this Arial Unicode? (so that also other fonts, I don't know today, will have a lookup on the Arial Unicode) Attached you will find my current configuration, fo File, pdf and the SVG. Thanks for your help. Best Regards Markus - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.orgmailto:fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.orgmailto:fop-users-h...@xmlgraphics.apache.org
AW: AW: Question about Font selection
Hi Matthias, thanks for this xslt. I will add so template to rebuild the style section if the style tag is used. Best regards Markus Von: Matthias Reischenbacher [mailto:matthias8...@gmx.at] Gesendet: Donnerstag, 21. Mai 2015 14:19 An: fop-users@xmlgraphics.apache.org Betreff: Re: AW: Question about Font selection Hi Markus, just found the attached file as a starting point... Matthias On 21.05.2015 09:14, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Hi Matthias, Maybe I can build a xsl template for that. B Von: Matthias Reischenbacher [mailto:matthias8...@gmx.at] Gesendet: Donnerstag, 21. Mai 2015 13:27 An: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Betreff: Re: Question about Font selection Hi Markus, I'm not sure if this can be done with the fop config file. For fallbacks to other fonts inside SVGs, I normally add a second font to the SVG text element directly. So instead of just having font-family:'Lucida sans unicode'; I automatically add another font: font-family:'Lucida sans unicode','Arial Unicode MS'. HTH, Matthias On 19.05.2015 06:58, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Hi, my major issue is about math symbols and symbols in general. Just I had an issue about the symbol font on windows, now I use the GNU FreeFonts instead of the windows fonts, because they delivered the wrong character presentation. Now I want to set the fallback to the ArialUnicode. You can see I set the Arial to any. In my SVG I use the Glyph bracerightvertical, one time as lucida sans unicode (this does the thrid party math exporter) and one time I use Arial If Arial is set as font-family the glyph is drawn. The log mentioned that lucida is replaced by any. Any is configured to Arial Unicode. But FOP is look on Helvetica for the vertical braces. So my question is how to configure the fop right that the major fallback will map to this Arial Unicode? (so that also other fonts, I don't know today, will have a lookup on the Arial Unicode) Attached you will find my current configuration, fo File, pdf and the SVG. Thanks for your help. Best Regards Markus - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.orgmailto:fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.orgmailto:fop-users-h...@xmlgraphics.apache.org
Question about Font selection
Hi, my major issue is about math symbols and symbols in general. Just I had an issue about the symbol font on windows, now I use the GNU FreeFonts instead of the windows fonts, because they delivered the wrong character presentation. Now I want to set the fallback to the ArialUnicode. You can see I set the Arial to any. In my SVG I use the Glyph bracerightvertical, one time as lucida sans unicode (this does the thrid party math exporter) and one time I use Arial If Arial is set as font-family the glyph is drawn. The log mentioned that lucida is replaced by any. Any is configured to Arial Unicode. But FOP is look on Helvetica for the vertical braces. So my question is how to configure the fop right that the major fallback will map to this Arial Unicode? (so that also other fonts, I don't know today, will have a lookup on the Arial Unicode) Attached you will find my current configuration, fo File, pdf and the SVG. Thanks for your help. Best Regards Markus external.pdf Description: external.pdf external.fo Description: external.fo ?xml version=1.0? fop version=1.0 base./base font-base../fonts//font-base hyphenation-base./hyph//hyphenation-base source-resolution72/source-resolution target-resolution300/target-resolution strict-validationfalse/strict-validation default-page-settings height=11in width=8.26in/ renderers renderer mime=application/pdf filterList valueflate/value /filterList fonts font kerning=yes embed-url=ARIALUNI.ttf font-triplet name=any style=normal weight=normal / font-triplet name=any style=normal weight=bold / font-triplet name=any style=italic weight=normal / font-triplet name=any style=italic weight=bold / font-triplet name=Helvetica style=normal weight=normal / font-triplet name=Helvetica style=normal weight=bold / font-triplet name=Helvetica style=italic weight=normal / font-triplet name=Helvetica style=italic weight=bold / font-triplet name=* style=normal weight=normal / font-triplet name=* style=normal weight=bold / font-triplet name=* style=italic weight=normal / font-triplet name=* style=italic weight=bold / font-triplet name=Arial style=normal weight=normal / font-triplet name=Arial style=normal weight=bold / font-triplet name=Arial style=italic weight=normal / font-triplet name=Arial style=italic weight=bold / /font !-- FONT: ZapfDingbats -- font kerning=yes embed-url=ZapfDingbats.ttf font-triplet name=ZapfDingbats style=normal weight=normal / font-triplet name=ZapfDingbats style=normal weight=bold / font-triplet name=ZapfDingbats style=italic weight=normal / font-triplet name=ZapfDingbats style=italic weight=bold / /font !-- FONT: Serif [substitutions for Times and Symbol]-- font kerning=yes embed-url=FreeSerif.ttf font-triplet name=Times New Roman style=normal weight=normal / font-triplet name=serif style=normal weight=normal / font-triplet name=Serif style=normal weight=normal / font-triplet name=Symbol style=normal weight=normal / /font font kerning=yes embed-url=FreeSerifItalic.ttf font-triplet name=Times New Roman style=italic weight=normal / font-triplet name=serif style=italic weight=normal / font-triplet name=Serif style=italic weight=normal / font-triplet name=Symbol style=italic weight=normal / /font font kerning=yes embed-url=FreeSerifBold.ttf font-triplet name=Times New Roman style=normal weight=bold / font-triplet name=serif style=normal weight=bold / font-triplet name=Serif style=normal weight=bold / font-triplet name=Symbol style=normal weight=bold / /font font kerning=yes embed-url=FreeSerifBoldItalic.ttf font-triplet name=Times New Roman style=italic weight=bold / font-triplet name=serif style=italic weight=bold / font-triplet name=Serif style=italic weight=bold / font-triplet name=Symbol style=italic weight=bold / /font /fonts /renderer renderer mime=image/svg+xml format type=paginated/ link value=true/ strokeText value=false/ /renderer /renderers /fop - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
AW: How to draw these arrow characters?
Ok ... This is the result on Windows without auto-detect /. Maybe now the fo is much shorter. ;-) Von: Luis Bernardo [mailto:lmpmberna...@gmail.com] Gesendet: Mittwoch, 13. Mai 2015 15:37 An: fop-users@xmlgraphics.apache.org Betreff: Re: How to draw these arrow characters? Works for me (using Mac OS X) without using a configuration file since the any font is equivalent to the New Times Roman (may even be the same) font specified in the SVG. Do not use auto-detect if you want to have better control of the fonts used. Also, supplying a bare minimum FO file that shows the problem makes it easier for us to help you... On 5/13/15 3:08 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Hello FOP, I just have a very simple question: How to setup FOP right that this arrows do not disappear? Please have a look at the attached pdf. There are two images. The first is a SVG and the second is a JPG. The JPG is just that what I expected to get. Also attached is the fo source and the svg. In my config fonts are auto-detected. When I open the svg with Chrome there are only small differences comparing to the JPG. Thanks for your help. Best regards Markus - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.orgmailto:fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.orgmailto:fop-users-h...@xmlgraphics.apache.org svg_symbol2.fo Description: svg_symbol2.fo out_symbol.pdf Description: out_symbol.pdf - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
custom extension
Hello, I just tried to build a custom extension for the fop. So I did the element mapping: 8-- package com.zf.swdoku.fop.fo.extensions.js; import java.util.HashMap; import java.util.Set; import org.apache.fop.fo.ElementMapping; import org.apache.fop.fo.FONode; import org.apache.xmlgraphics.util.QName; /** * Element mapping for FOP's proprietary extension to XSL-FO. */ public class JSElementMapping extends ElementMapping { /** The FOP extension namespace URI */ public static final String URI = http://ns.zf.com/SWDoku/fop/ext/js;; /** The standard XML prefix for elements and attributes in this namespace. */ public static final String STANDARD_PREFIX = js; private static final SetString PROPERTY_ATTRIBUTES = new java.util.HashSetString(); static { // These are FOP's standard extension properties (js:*) PROPERTY_ATTRIBUTES.add(lang); } /** * Constructor. */ public JSElementMapping() { namespaceURI = URI; } /** * Initialize the data structures. */ @Override protected void initialize() { System.out.println(init JS); if (foObjs == null) { foObjs = new HashMapString, Maker(); // foObjs.put(script, new UnknownXMLObj.Maker(URI)); foObjs.put(script, new JSMaker()); } } static class JSMaker extends ElementMapping.Maker { @Override public FONode make(FONode parent) { return new Script(parent); } } /** {@inheritDoc} */ @Override public String getStandardPrefix() { return STANDARD_PREFIX; } /** {@inheritDoc} */ @Override public boolean isAttributeProperty(QName attributeName) { if (!URI.equals(attributeName.getNamespaceURI())) { throw new IllegalArgumentException(The namespace URIs don't match); } return PROPERTY_ATTRIBUTES.contains(attributeName.getLocalName()); } } 8-- But I didn't get it initialized, but why? I used the FOP 1.1. Thanks for your help. Best regards Markus
Embedding JavaScript in PDF
Hi, I'm looking for a sample for embedding JavaScript driven dialogs. Is it possible with FOP 1.1? Because I have seen that there are plans to do this. https://xmlgraphics.apache.org/fop/dev/design/extending.html Best Regards Markus
AW: AW: Searching hyphenated variablenames in PDF (with Acrobat)
You tried the sample I send yesterday? Von: A Gian [mailto:a.yan...@hotmail.com] Gesendet: Donnerstag, 15. Januar 2015 10:35 An: fop-users@xmlgraphics.apache.org Betreff: RE: AW: Searching hyphenated variablenames in PDF (with Acrobat) Hello, I do not know if this is helpful, but i could only reproduce the issue with acrobat reader 11.0.10 on windows. When tried different reader (foxit) the word Jesus_latschenhersteller_dachverbandsvorsitzender was found. Thanasis . From: markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Subject: AW: Searching hyphenated variablenames in PDF (with Acrobat) Date: Thu, 15 Jan 2015 09:16:29 + Hi, sorry, but the second files was demaged. For a better understanding what I want to do I did a screen capture: https://www.youtube.com/watch?v=3kjofqFxx7o Maybe that will help. Best regards Markus -Ursprüngliche Nachricht- Von: Pascal Sancho [mailto:psancho@gmail.com] Gesendet: Donnerstag, 15. Januar 2015 09:21 An: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Betreff: Re: Searching hyphenated variablenames in PDF (with Acrobat) Hi, tried on same version but win, with same result as Luis. Same result with Firefox buitin reader: I get 1 occurrence for both search words 2015-01-14 23:11 GMT+01:00 Luis Bernardo lmpmberna...@gmail.commailto:lmpmberna...@gmail.com: There was only one file attached Also, I was not able to reproduce the issue (maybe because I don't understand what you describe) -- I used the Mac version of Adobe Reader 11.0.10. Can you clarify? What is the word you are searching for? On 1/14/15 6:26 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Hi, I wonder about the different behavior with these two files in the attachment. The part I’m dealing with looks nearly the same, but as I try to search or copy the text parts I get different results. At first I tried to seach the some words: Kraftfahrzeugsteuer à 1 hit Kraft_fahrzeugsteuer à 1 hit Jesuslatschenherstellerdachverbandsvorsitzender à 1 hit Jesus_latschenhersteller_dachverbandsvorsitzender à 0 hits So why does the last one do not work? Kind regards Markus Sticker -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.orgmailto:fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.orgmailto:fop-users-h...@xmlgraphics.apache.org B�CB��[��X��ܚX�KK[XZ[ ��� ]\�\��][��X��ܚX�P‑[ܘ\X�˘\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[ ��� ]\�\��Z[‑[ܘ\X�˘\X�K�ܙ�B�
AW: Searching hyphenated variablenames in PDF (with Acrobat)
Hi, sorry, but the second files was demaged. For a better understanding what I want to do I did a screen capture: https://www.youtube.com/watch?v=3kjofqFxx7o Maybe that will help. Best regards Markus -Ursprüngliche Nachricht- Von: Pascal Sancho [mailto:psancho@gmail.com] Gesendet: Donnerstag, 15. Januar 2015 09:21 An: fop-users@xmlgraphics.apache.org Betreff: Re: Searching hyphenated variablenames in PDF (with Acrobat) Hi, tried on same version but win, with same result as Luis. Same result with Firefox buitin reader: I get 1 occurrence for both search words 2015-01-14 23:11 GMT+01:00 Luis Bernardo lmpmberna...@gmail.com: There was only one file attached Also, I was not able to reproduce the issue (maybe because I don't understand what you describe) -- I used the Mac version of Adobe Reader 11.0.10. Can you clarify? What is the word you are searching for? On 1/14/15 6:26 PM, markus.sticker.e...@zf.com wrote: Hi, I wonder about the different behavior with these two files in the attachment. The part I’m dealing with looks nearly the same, but as I try to search or copy the text parts I get different results. At first I tried to seach the some words: Kraftfahrzeugsteuer à 1 hit Kraft_fahrzeugsteuer à 1 hit Jesuslatschenherstellerdachverbandsvorsitzender à 1 hit Jesus_latschenhersteller_dachverbandsvorsitzender à 0 hits So why does the last one do not work? Kind regards Markus Sticker -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
PDFPainter
Hi, I want to modify the FOP a little bit for my own use, because I recognized that the scaling of an images will not be used if I have it rotated. So what I did: In my FO-Tree: ... fo:block-container reference-orientation=90 fo:block id=id1078021 space-before.minimum=1em space-before.optimum=1em space-before.maximum=1em space-after.minimum=1em space-after.optimum=1em space-after.maximum=1em fo:block id=id1078016 fo:external-graphic src=url(file:///c:/images/homer.png) width=100% height=auto content-width=scale-to-fit content-height=100%/ /fo:block /fo:block /fo:block-container ... (Homer is a very very large image.) Now in the PDFPainter.class I get the viewport and modify the rect.height and .width in the drawImage method (ok ... this not nicest way ) So what I now need is the information is that image rotated or not. Is there a easy way to get this information? Kind regards Markus Sticker Forschung und Entwicklung ZF Konzern/Research and Development ZF Group Infrastruktur/Infrastructure (DTEP4) ZF Friedrichshafen AG 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 7541 77-7644, Telefax/Fax +49 7541 77-907644 markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz Sitz/Headquarters: Friedrichshafen Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206
AW: AW: Scaling images
Ok... but I didn't see how it should work. My target is to have a implementation which is able to down scale the images if it is necessary. In serveral cases I get smaller images, so it is wrong to scale them to the max. space. (Of course I need the scale-down-to-fit) Currently I have no idea how it can be fixed, because I will get in my template different images and I don't know the meassurements of them. Von: Luis Bernardo [mailto:lmpmberna...@gmail.com] Gesendet: Mittwoch, 26. Februar 2014 00:56 An: fop-users@xmlgraphics.apache.org Betreff: Re: AW: Scaling images For you specifying an absolute height in the block-container or in the external-graphic should be the same (in terms of complexity). So I don't see the need for a workaround. But I will confirm whether the fact that content-height does not seem to take the height from the block-container is a bug, and then I will create a Jira ticket if needed. On 2/25/14, 2:18 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Ok. But scaling has in our case to be dynamic. So I even can calulate the maximum availiable space. Will there be a bug created in the Jira? What I mean is, will it be fixed by the apache team or should I build a workaround? Von: Luis Bernardo [mailto:lmpmberna...@gmail.com] Gesendet: Dienstag, 25. Februar 2014 14:05 An: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Betreff: Re: Scaling images Add the height attribute to the external-graphic element. Now, I was expecting that height=100% would work in this case but it doesn't seem to be the case so either there is a bug in the code or in my understanding. But if you specify an absolute value, say height=150mm, then it works. On Mon, Feb 24, 2014 at 2:54 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: But it fails also. Is there really a support of content-height=scale-to-fit? Von: Luis Bernardo [mailto:lmpmberna...@gmail.commailto:lmpmberna...@gmail.com] Gesendet: Montag, 24. Februar 2014 15:46 An: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Betreff: Re: Scaling images Yes, that is the best approach. You can even check now that a percentage for the height attribute in the external-graphic element works since the height of the containing block is being explicitly set. On Mon, Feb 24, 2014 at 2:25 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Ok should I use something like this? fo:block-container width=100mm height=150mm border=solid solid solid solid border-color=pink background-color=violet fo:block id=id1049528 border=solid solid solid solid border-color=red background-color=blue fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.jpgfile:///c:%5Ctemp%5CSernaPlugin%5CSource%5Cdraft%5Cdraft%5Choch.jpg) content-height=scale-to-fit scaling=uniform/ /fo:block /fo:block-container Von: Luis Bernardo [mailto:lmpmberna...@gmail.commailto:lmpmberna...@gmail.com] Gesendet: Montag, 24. Februar 2014 14:33 An: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Betreff: Re: Scaling images I think the issue is height=100%, which doesn't work the way you probably expect... When you specify 100%, you want 100% of what? Width does not suffer from the same problem because the width is constrained by the page width. Since the height is not constrained by the page height, as you maybe expected, then you get the behavior you noticed. From the spec for height: percentage Specifies a percentage height. The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), the value is interpreted like auto. So that's what you get, i.e., you get auto. On Mon, Feb 24, 2014 at 1:09 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Hello FOP, I've got an issue about scalling images. The target is to scale images so they fit to the space on the page. Scaling the width works fine. I set this (breit.png is a picture with extreme width): fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/breit.pngfile:///c:%5Ctemp%5CSernaPlugin%5CSource%5Cdraft%5Cdraft%5Cbreit.png) content-width=scale-to-fit width=100% height=100% inline-progression-dimension.maximum=100% inline-progression-dimension.minimum=1% scaling=uniform / So I tried this (hoch.png is a picture with extreme height) : fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.pngfile:///c:%5Ctemp%5CSernaPlugin%5CSource%5Cdraft%5Cdraft%5Choch.png) content-height=scale-to-fit width=100% height=100% inline-progression-dimension.maximum=100% inline-progression-dimension.minimum=1% scaling=uniform/ -- That failed -- The image was not scaled. So what's wrong ? Thanks and Kind regards Markus Sticker
AW: Scaling images
Ok. But scaling has in our case to be dynamic. So I even can calulate the maximum availiable space. Will there be a bug created in the Jira? What I mean is, will it be fixed by the apache team or should I build a workaround? Von: Luis Bernardo [mailto:lmpmberna...@gmail.com] Gesendet: Dienstag, 25. Februar 2014 14:05 An: fop-users@xmlgraphics.apache.org Betreff: Re: Scaling images Add the height attribute to the external-graphic element. Now, I was expecting that height=100% would work in this case but it doesn't seem to be the case so either there is a bug in the code or in my understanding. But if you specify an absolute value, say height=150mm, then it works. On Mon, Feb 24, 2014 at 2:54 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: But it fails also. Is there really a support of content-height=scale-to-fit? Von: Luis Bernardo [mailto:lmpmberna...@gmail.commailto:lmpmberna...@gmail.com] Gesendet: Montag, 24. Februar 2014 15:46 An: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Betreff: Re: Scaling images Yes, that is the best approach. You can even check now that a percentage for the height attribute in the external-graphic element works since the height of the containing block is being explicitly set. On Mon, Feb 24, 2014 at 2:25 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Ok should I use something like this? fo:block-container width=100mm height=150mm border=solid solid solid solid border-color=pink background-color=violet fo:block id=id1049528 border=solid solid solid solid border-color=red background-color=blue fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.jpgfile:///c:\temp\SernaPlugin\Source\draft\draft\hoch.jpg) content-height=scale-to-fit scaling=uniform/ /fo:block /fo:block-container Von: Luis Bernardo [mailto:lmpmberna...@gmail.commailto:lmpmberna...@gmail.com] Gesendet: Montag, 24. Februar 2014 14:33 An: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Betreff: Re: Scaling images I think the issue is height=100%, which doesn't work the way you probably expect... When you specify 100%, you want 100% of what? Width does not suffer from the same problem because the width is constrained by the page width. Since the height is not constrained by the page height, as you maybe expected, then you get the behavior you noticed. From the spec for height: percentage Specifies a percentage height. The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), the value is interpreted like auto. So that's what you get, i.e., you get auto. On Mon, Feb 24, 2014 at 1:09 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Hello FOP, I've got an issue about scalling images. The target is to scale images so they fit to the space on the page. Scaling the width works fine. I set this (breit.png is a picture with extreme width): fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/breit.pngfile:///c:\temp\SernaPlugin\Source\draft\draft\breit.png) content-width=scale-to-fit width=100% height=100% inline-progression-dimension.maximum=100% inline-progression-dimension.minimum=1% scaling=uniform / So I tried this (hoch.png is a picture with extreme height) : fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.pngfile:///c:\temp\SernaPlugin\Source\draft\draft\hoch.png) content-height=scale-to-fit width=100% height=100% inline-progression-dimension.maximum=100% inline-progression-dimension.minimum=1% scaling=uniform/ -- That failed -- The image was not scaled. So what's wrong ? Thanks and Kind regards Markus Sticker Forschung und Entwicklung ZF Konzern/Research and Development ZF Group Infrastruktur/Infrastructure (DTEP4) ZF Friedrichshafen AG 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 7541 77-7644tel:%2B49%207541%2077-7644, Telefax/Fax +49 7541 77-907644tel:%2B49%207541%2077-907644 markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz Sitz/Headquarters: Friedrichshafen Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206
Scaling images
Hello FOP, I've got an issue about scalling images. The target is to scale images so they fit to the space on the page. Scaling the width works fine. I set this (breit.png is a picture with extreme width): fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/breit.png) content-width=scale-to-fit width=100% height=100% inline-progression-dimension.maximum=100% inline-progression-dimension.minimum=1% scaling=uniform / So I tried this (hoch.png is a picture with extreme height) : fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.png) content-height=scale-to-fit width=100% height=100% inline-progression-dimension.maximum=100% inline-progression-dimension.minimum=1% scaling=uniform/ -- That failed -- The image was not scaled. So what's wrong ? Thanks and Kind regards Markus Sticker Forschung und Entwicklung ZF Konzern/Research and Development ZF Group Infrastruktur/Infrastructure (DTEP4) ZF Friedrichshafen AG 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 7541 77-7644, Telefax/Fax +49 7541 77-907644 markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz Sitz/Headquarters: Friedrichshafen Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206
AW: Scaling images
Ok should I use something like this? fo:block-container width=100mm height=150mm border=solid solid solid solid border-color=pink background-color=violet fo:block id=id1049528 border=solid solid solid solid border-color=red background-color=blue fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.jpg) content-height=scale-to-fit scaling=uniform/ /fo:block /fo:block-container Von: Luis Bernardo [mailto:lmpmberna...@gmail.com] Gesendet: Montag, 24. Februar 2014 14:33 An: fop-users@xmlgraphics.apache.org Betreff: Re: Scaling images I think the issue is height=100%, which doesn't work the way you probably expect... When you specify 100%, you want 100% of what? Width does not suffer from the same problem because the width is constrained by the page width. Since the height is not constrained by the page height, as you maybe expected, then you get the behavior you noticed. From the spec for height: percentage Specifies a percentage height. The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), the value is interpreted like auto. So that's what you get, i.e., you get auto. On Mon, Feb 24, 2014 at 1:09 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Hello FOP, I've got an issue about scalling images. The target is to scale images so they fit to the space on the page. Scaling the width works fine. I set this (breit.png is a picture with extreme width): fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/breit.pngfile:///c:\temp\SernaPlugin\Source\draft\draft\breit.png) content-width=scale-to-fit width=100% height=100% inline-progression-dimension.maximum=100% inline-progression-dimension.minimum=1% scaling=uniform / So I tried this (hoch.png is a picture with extreme height) : fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.pngfile:///c:\temp\SernaPlugin\Source\draft\draft\hoch.png) content-height=scale-to-fit width=100% height=100% inline-progression-dimension.maximum=100% inline-progression-dimension.minimum=1% scaling=uniform/ -- That failed -- The image was not scaled. So what's wrong ? Thanks and Kind regards Markus Sticker Forschung und Entwicklung ZF Konzern/Research and Development ZF Group Infrastruktur/Infrastructure (DTEP4) ZF Friedrichshafen AG 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 7541 77-7644tel:%2B49%207541%2077-7644, Telefax/Fax +49 7541 77-907644tel:%2B49%207541%2077-907644 markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz Sitz/Headquarters: Friedrichshafen Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206
AW: Scaling images
But it fails also. Is there really a support of content-height=scale-to-fit? Von: Luis Bernardo [mailto:lmpmberna...@gmail.com] Gesendet: Montag, 24. Februar 2014 15:46 An: fop-users@xmlgraphics.apache.org Betreff: Re: Scaling images Yes, that is the best approach. You can even check now that a percentage for the height attribute in the external-graphic element works since the height of the containing block is being explicitly set. On Mon, Feb 24, 2014 at 2:25 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Ok should I use something like this? fo:block-container width=100mm height=150mm border=solid solid solid solid border-color=pink background-color=violet fo:block id=id1049528 border=solid solid solid solid border-color=red background-color=blue fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.jpgfile:///c:\temp\SernaPlugin\Source\draft\draft\hoch.jpg) content-height=scale-to-fit scaling=uniform/ /fo:block /fo:block-container Von: Luis Bernardo [mailto:lmpmberna...@gmail.commailto:lmpmberna...@gmail.com] Gesendet: Montag, 24. Februar 2014 14:33 An: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Betreff: Re: Scaling images I think the issue is height=100%, which doesn't work the way you probably expect... When you specify 100%, you want 100% of what? Width does not suffer from the same problem because the width is constrained by the page width. Since the height is not constrained by the page height, as you maybe expected, then you get the behavior you noticed. From the spec for height: percentage Specifies a percentage height. The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), the value is interpreted like auto. So that's what you get, i.e., you get auto. On Mon, Feb 24, 2014 at 1:09 PM, markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com wrote: Hello FOP, I've got an issue about scalling images. The target is to scale images so they fit to the space on the page. Scaling the width works fine. I set this (breit.png is a picture with extreme width): fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/breit.pngfile:///c:\temp\SernaPlugin\Source\draft\draft\breit.png) content-width=scale-to-fit width=100% height=100% inline-progression-dimension.maximum=100% inline-progression-dimension.minimum=1% scaling=uniform / So I tried this (hoch.png is a picture with extreme height) : fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.pngfile:///c:\temp\SernaPlugin\Source\draft\draft\hoch.png) content-height=scale-to-fit width=100% height=100% inline-progression-dimension.maximum=100% inline-progression-dimension.minimum=1% scaling=uniform/ -- That failed -- The image was not scaled. So what's wrong ? Thanks and Kind regards Markus Sticker Forschung und Entwicklung ZF Konzern/Research and Development ZF Group Infrastruktur/Infrastructure (DTEP4) ZF Friedrichshafen AG 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 7541 77-7644tel:%2B49%207541%2077-7644, Telefax/Fax +49 7541 77-907644tel:%2B49%207541%2077-907644 markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz Sitz/Headquarters: Friedrichshafen Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206
Font Symbol doesn't work
Hello, I tried to use (for PDF) a SVG which is using the font “symbol”. (I know the font is a BASE14 font and is embedded in the Adobe Reader. So I tried with symbol.ttf in the config and also without. I also cleaned the Font Cache) I also have take a look in to the sources and the desired glyph are described. So this is confusing me, because they got width but are not in the font ? Expected: formula.png I got: formula_fail.png -- FOP message -- [WARN] DefaultEventListener - glyphNotAvailable - Glyph ( (0x28, parenleft) not available in font SymbolMT. [WARN] DefaultEventListener - glyphNotAvailable - Glyph ) (0x29, parenright) not available in font SymbolMT. [WARN] DefaultEventListener - glyphNotAvailable - Glyph ò (0xf2, ograve) not available in font SymbolMT. [WARN] DefaultEventListener - glyphNotAvailable - Glyph + (0x2b, plus) not available in font SymbolMT. [WARN] DefaultEventListener - glyphNotAvailable - Glyph = (0x3d, equal) not available in font SymbolMT. -- FOP message -- Symbol.java è width[0x2b] = 549; è width[0xf2] = 274; è …. So want’s wrong? Thanks for your help in advance Best regards Markus attachment: formula.pngattachment: formula_fail.png - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
AW: Font Symbol doesn't work
Hi Martin, thanks for your answer. But that's wrong. In the SVG is already written Symbol. And sorry I forgot to attach the svg. Best regards Markus Von: Martin Norbäck Olivers [mailto:martin.norback.oliv...@soleilit.se] Gesendet: Donnerstag, 5. Dezember 2013 16:53 An: fop-users@xmlgraphics.apache.org Betreff: Re: Font Symbol doesn't work It looks like the SVG uses the font SymbolMT which is not the same as Symbol. SVG is a text format so you should be able to open the SVG in a text editor and change the font there. Or use your favorite SVG editor to do it. Med vänliga hälsningar, Martin Norbäck Olivers -- Konsult, Soleil http://www.soleilit.se/ tel: +46 (0)703 - 22 70 12 Lagergrens Gata 2 652 26 KARLSTAD From: markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com markus.sticker.e...@zf.commailto:markus.sticker.e...@zf.com Reply-To: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Date: torsdag 5 december 2013 16:45 To: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Subject: Font Symbol doesn't work Hello, I tried to use (for PDF) a SVG which is using the font symbol. (I know the font is a BASE14 font and is embedded in the Adobe Reader. So I tried with symbol.ttf in the config and also without. I also cleaned the Font Cache) I also have take a look in to the sources and the desired glyph are described. So this is confusing me, because they got width but are not in the font ? Expected: formula.png I got: formula_fail.png -- FOP message -- [WARN] DefaultEventListener - glyphNotAvailable - Glyph ( (0x28, parenleft) not available in font SymbolMT. [WARN] DefaultEventListener - glyphNotAvailable - Glyph ) (0x29, parenright) not available in font SymbolMT. [WARN] DefaultEventListener - glyphNotAvailable - Glyph ò (0xf2, ograve) not available in font SymbolMT. [WARN] DefaultEventListener - glyphNotAvailable - Glyph + (0x2b, plus) not available in font SymbolMT. [WARN] DefaultEventListener - glyphNotAvailable - Glyph = (0x3d, equal) not available in font SymbolMT. -- FOP message -- Symbol.java ? width[0x2b] = 549; ? width[0xf2] = 274; ? So want's wrong? Thanks for your help in advance Best regards Markus formula.svg Description: formula.svg - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
AW: AW: Hyphenation
Hi, sorry Soft Hyphenation is nto an option, because the „words“ are no longer searchable by the adobe reader. So the adhoc rules will be the right choise, so I will try to insert a kind of adhoc breaking before the exception will be thrown. Do you know a possiblity to find the best position in the words to break? I started to modify the LineLayoutManager class but I’m not sure, there is maybe a better way to do this task. Best regards Markus Von: Glenn Adams [mailto:gl...@skynav.com] Gesendet: Montag, 4. März 2013 17:35 An: fop-users@xmlgraphics.apache.org Betreff: Re: AW: Hyphenation I think it better to require the author to insert SOFT HYPHEN (#x00AD;) rather than encode more adhoc rules into the existing code. On Thu, Feb 28, 2013 at 9:28 AM, markus.sticker.e...@zf.com wrote: Hi Robert, I‘ve got some more cases with the hyphenation issue. So, is it possible to extent the hyphenation patch with things like “0x” and identifierers with numbers used like characters (R2D2_C3PO or TAB2D_3_260) . I also get problems with things like abc_dfe_RTF_XYZ() or GET_MILEAGE_FROM_NAB() . The brackets at the end seems to produce some nonhypenated strings. So maybe it is possible to have something like a emergency hyphenating, so it beaks if the lineOverflows event will be thrown. Original: TAB_1892 Result: TAB- _1892 Best regards Markus Von: Sticker Markus EXT FRD EPOS Gesendet: Dienstag, 22. Januar 2013 17:49 An: fop-users@xmlgraphics.apache.org Betreff: AW: AW: Hyphenation Hi, I did some tests with different sources. The “_” is working very well. But I’ve got an issue for a words like this: “parameter.for.fop” or “Hyperlink#Mark”. So is it possible to extend these pattern? Maybe I can do it by my own because not everbody needs technical documentation hyphenation pattern. Best Regards Markus Von: Robert Meyer [mailto:rme...@hotmail.co.uk] Gesendet: Dienstag, 22. Januar 2013 14:52 An: fop-users@xmlgraphics.apache.org Betreff: RE: AW: Hyphenation Hi Markus, Patches remain separate from any build until they are reviewed, accepted and pushed by a committer. You can tell when this has happened as an svn commit message will be added to the bug and the jira issue will be set to resolved status. Up until that point, the only way to test what's in the patch will be to download the patch file yourself and merge it manually or use a tool e.g. in Linux / Mac OS you can use patch -p0 patch.diff. Regards, Robert Subject: AW: Hyphenation Date: Tue, 22 Jan 2013 09:07:05 +0100 From: markus.sticker.e...@zf.com mailto:markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org Hi Robert, Thanks for you very quick answer. I’ve seen you have fixed it (expermential or unreviewed). So the patch is provided in the nightly build? Because I will have a try on this bugfix. Best Regards from germany Markus Von: Robert Meyer [mailto:rme...@hotmail.co.uk] Gesendet: Montag, 21. Januar 2013 17:54 An: fop-users@xmlgraphics.apache.org Betreff: RE: Hyphenation Hi, Not sure about the first one, but there was a patch I submitted a couple of weeks ago regarding FOP not breaking words with an underline. This can be seen here: https://issues.apache.org/jira/browse/FOP-2044 The patch is still waiting to be reviewed, so it might be worth looking out for the fix whenever someone gets around to looking at it. Regards, Robert Meyer Subject: Hyphenation Date: Mon, 21 Jan 2013 17:25:42 +0100 From: markus.sticker.e...@zf.com mailto:markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org Hi there, I wonder about the hyphenation in fop or offo, because if I try to hyphenate computermonitor = com-puter-mon-it-or and computer_monitor = computer_monitor So I tried to extend the rules but I didn’t get a better result. I tried to add more patterns in the user pattern file like “_0 …” Maybe somebody has a idea to fix this. Best Regards Markus
AW: AW: Hyphenation
Hi Robert, I've got some more cases with the hyphenation issue. So, is it possible to extent the hyphenation patch with things like 0x and identifierers with numbers used like characters (R2D2_C3PO or TAB2D_3_260) . I also get problems with things like abc_dfe_RTF_XYZ() or GET_MILEAGE_FROM_NAB() . The brackets at the end seems to produce some nonhypenated strings. So maybe it is possible to have something like a emergency hyphenating, so it beaks if the lineOverflows event will be thrown. Original: TAB_1892 Result: TAB- _1892 Best regards Markus Von: Sticker Markus EXT FRD EPOS Gesendet: Dienstag, 22. Januar 2013 17:49 An: fop-users@xmlgraphics.apache.org Betreff: AW: AW: Hyphenation Hi, I did some tests with different sources. The _ is working very well. But I've got an issue for a words like this: parameter.for.fop or Hyperlink#Mark. So is it possible to extend these pattern? Maybe I can do it by my own because not everbody needs technical documentation hyphenation pattern. Best Regards Markus Von: Robert Meyer [mailto:rme...@hotmail.co.uk] Gesendet: Dienstag, 22. Januar 2013 14:52 An: fop-users@xmlgraphics.apache.org Betreff: RE: AW: Hyphenation Hi Markus, Patches remain separate from any build until they are reviewed, accepted and pushed by a committer. You can tell when this has happened as an svn commit message will be added to the bug and the jira issue will be set to resolved status. Up until that point, the only way to test what's in the patch will be to download the patch file yourself and merge it manually or use a tool e.g. in Linux / Mac OS you can use patch -p0 patch.diff. Regards, Robert Subject: AW: Hyphenation Date: Tue, 22 Jan 2013 09:07:05 +0100 From: markus.sticker.e...@zf.com mailto:markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org Hi Robert, Thanks for you very quick answer. I've seen you have fixed it (expermential or unreviewed). So the patch is provided in the nightly build? Because I will have a try on this bugfix. Best Regards from germany Markus Von: Robert Meyer [mailto:rme...@hotmail.co.uk] Gesendet: Montag, 21. Januar 2013 17:54 An: fop-users@xmlgraphics.apache.org Betreff: RE: Hyphenation Hi, Not sure about the first one, but there was a patch I submitted a couple of weeks ago regarding FOP not breaking words with an underline. This can be seen here: https://issues.apache.org/jira/browse/FOP-2044 The patch is still waiting to be reviewed, so it might be worth looking out for the fix whenever someone gets around to looking at it. Regards, Robert Meyer Subject: Hyphenation Date: Mon, 21 Jan 2013 17:25:42 +0100 From: markus.sticker.e...@zf.com mailto:markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org Hi there, I wonder about the hyphenation in fop or offo, because if I try to hyphenate computermonitor = com-puter-mon-it-or and computer_monitor = computer_monitor So I tried to extend the rules but I didn't get a better result. I tried to add more patterns in the user pattern file like _0 ... Maybe somebody has a idea to fix this. Best Regards Markus
AW: Table in ListItemBody Error
Hi, I tried it with OpenOffice 3.4.1. There was no problem for open it. I seached for the context the render process uses to build the document. I think the RTFHandler is doing it in the right order, depending on the foTree. Between paring the fo-document and start writing the RTF the order of the element is changed. So what is called between these steps? Thanks for your help Markus -Ursprüngliche Nachricht- Von: Pascal Sancho [mailto:psancho@gmail.com] Gesendet: Mittwoch, 20. Februar 2013 11:41 An: fop-users@xmlgraphics.apache.org Betreff: Re: Table in ListItemBody Error Hi, I get an IO error while reading your rtf with LibreOffice 4. Not tried with Word, I don't get it. 2013/2/19 markus.sticker.e...@zf.com: Hi Pascal, I tried to produce RTF with POI, OpenOffice and Microsoft Word. If got allways valid RTF-Docs with nasted tables in lists, like shown in the pdf (made by Word with handmade RTF ). I tried to trace the process: The process set the chlidren in the right order ( RtfContainer.setChildren() ). But if I trace the method RtfContainer.writeRtfContent() the order is changed (???). Maybe you can give me a hint for finding the right code part. Best regards Markus -Ursprüngliche Nachricht- Von: Pascal Sancho [mailto:psancho@gmail.com] Gesendet: Dienstag, 19. Februar 2013 16:53 Hi markus, I'm not familiar with RTF, but I'm not sure that this format allows table to be nested in list. There are some limitation with such output. 2013/2/19 markus.sticker.e...@zf.com: Sorry but it seems that the rtf is empty. Von: Sticker Markus EXT FRD EPOS Gesendet: Dienstag, 19. Februar 2013 13:54 Hi, tried to have a table in a List but like in the PDF. But I’ve got the table under the list. This is cause by the class RtfElement maybe. Because if the function getChildren is called the table is returned after the ListItems. Maybe somebody has an explanation for me why this is done in this way. Oh, by the way I fixed the List Numbering Issue. Mit freundlichen Grüßen/Kind regards -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Table in ListItemBody Error
Hi, tried to have a table in a List but like in the PDF. But I've got the table under the list. This is cause by the class RtfElement maybe. Because if the function getChildren is called the table is returned after the ListItems. Maybe somebody has an explanation for me why this is done in this way. Oh, by the way I fixed the List Numbering Issue. Mit freundlichen Grüßen/Kind regards Markus Sticker Technik ZF-Konzern/Operations and Technology ZF Group Infrastruktur/Infrastructure (OTEP4) ZF Friedrichshafen AG 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 7541 77-7644, Telefax/Fax +49 7541 77-907644 markus.sticker.e...@zf.com Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer, Dr. Peter Ottenbruch, Jürgen Holeksa, Dr. Gerhard Wagner, Reinhard Buhl, Rolf Lutz, Wilhelm Rehm Sitz/Headquarters: Friedrichshafen Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206 list.pdf Description: list.pdf list.rtf Description: list.rtf list.fo Description: list.fo - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
getbaselength called without context -- caused by end-indent=label-end()
Hi, I've got an error for end-indent=label-end() @ fo:list-item-label The message I got is: getbaselength called without context Is there a recomanded workaround ? Kind regards Markus Sticker Technik ZF-Konzern/Operations and Technology ZF Group Infrastruktur/Infrastructure (OTEP4) ZF Friedrichshafen AG 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 7541 77-7644, Telefax/Fax +49 7541 77-907644 markus.sticker.e...@zf.com Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer, Dr. Peter Ottenbruch, Jürgen Holeksa, Dr. Gerhard Wagner, Reinhard Buhl, Rolf Lutz, Wilhelm Rehm Sitz/Headquarters: Friedrichshafen Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206
RTF is failing
Hi, I just tried to generate a RTF using a very simple FO-File, but I got this java.lang.NullPointerException at org.apache.fop.render.rtf.RTFHandler.startPageSequence(RTFHandler.java:2 21) at org.apache.fop.fo.pagination.PageSequence.startOfNode(PageSequence.java: 119) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder .java:325) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:175) at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transf ormerIdentityImpl.java:1073) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transform erIdentityImpl.java:485) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) at org.apache.fop.cli.Main.startFOP(Main.java:177) at org.apache.fop.cli.Main.main(Main.java:208) Do I have to do some more then setting the MineType to RTF? Best Regards Markus
AW: AW: Hyphenation
Hi Pascal, this is a nice workaround, but if your pdf has a weight of 780 pages and you are looking for one special parameter, you can not use the adobe reader search function. So this is not really a solution. Best regards Markus -Ursprüngliche Nachricht- Von: Pascal Sancho [mailto:psancho@gmail.com] Gesendet: Mittwoch, 23. Januar 2013 08:56 An: fop-users@xmlgraphics.apache.org Betreff: Re: AW: Hyphenation Hi Markus, you can insert a ZWSP (#x200b;) everywhere you want a break opportunity. This is a best practice when there is no matching hyphenation pattern. 2013/1/22 markus.sticker.e...@zf.com: Hi, I did some tests with different sources. The “_” is working very well. But I’ve got an issue for a words like this: “parameter.for.fop” or “Hyperlink#Mark”. So is it possible to extend these pattern? Maybe I can do it by my own because not everbody needs technical documentation hyphenation pattern. Best Regards Markus Von: Robert Meyer [mailto:rme...@hotmail.co.uk] Gesendet: Dienstag, 22. Januar 2013 14:52 An: fop-users@xmlgraphics.apache.org Betreff: RE: AW: Hyphenation Hi Markus, Patches remain separate from any build until they are reviewed, accepted and pushed by a committer. You can tell when this has happened as an svn commit message will be added to the bug and the jira issue will be set to resolved status. Up until that point, the only way to test what's in the patch will be to download the patch file yourself and merge it manually or use a tool e.g. in Linux / Mac OS you can use patch -p0 patch.diff. Regards, Robert Subject: AW: Hyphenation Date: Tue, 22 Jan 2013 09:07:05 +0100 From: markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org Hi Robert, Thanks for you very quick answer. I’ve seen you have fixed it (expermential or unreviewed). So the patch is provided in the nightly build? Because I will have a try on this bugfix. Best Regards from germany Markus Von: Robert Meyer [mailto:rme...@hotmail.co.uk] Gesendet: Montag, 21. Januar 2013 17:54 An: fop-users@xmlgraphics.apache.org Betreff: RE: Hyphenation Hi, Not sure about the first one, but there was a patch I submitted a couple of weeks ago regarding FOP not breaking words with an underline. This can be seen here: https://issues.apache.org/jira/browse/FOP-2044 The patch is still waiting to be reviewed, so it might be worth looking out for the fix whenever someone gets around to looking at it. Regards, Robert Meyer Subject: Hyphenation Date: Mon, 21 Jan 2013 17:25:42 +0100 From: markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org Hi there, I wonder about the hyphenation in fop or offo, because if I try to hyphenate computermonitor = com-puter-mon-it-or and computer_monitor = computer_monitor So I tried to extend the rules but I didn’t get a better result. I tried to add more patterns in the user pattern file like “_0 …” Maybe somebody has a idea to fix this. Best Regards Markus -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
AW: Hyphenation
Hi Robert, Thanks for you very quick answer. I've seen you have fixed it (expermential or unreviewed). So the patch is provided in the nightly build? Because I will have a try on this bugfix. Best Regards from germany Markus Von: Robert Meyer [mailto:rme...@hotmail.co.uk] Gesendet: Montag, 21. Januar 2013 17:54 An: fop-users@xmlgraphics.apache.org Betreff: RE: Hyphenation Hi, Not sure about the first one, but there was a patch I submitted a couple of weeks ago regarding FOP not breaking words with an underline. This can be seen here: https://issues.apache.org/jira/browse/FOP-2044 The patch is still waiting to be reviewed, so it might be worth looking out for the fix whenever someone gets around to looking at it. Regards, Robert Meyer Subject: Hyphenation Date: Mon, 21 Jan 2013 17:25:42 +0100 From: markus.sticker.e...@zf.com mailto:markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org Hi there, I wonder about the hyphenation in fop or offo, because if I try to hyphenate computermonitor = com-puter-mon-it-or and computer_monitor = computer_monitor So I tried to extend the rules but I didn't get a better result. I tried to add more patterns in the user pattern file like _0 ... Maybe somebody has a idea to fix this. Best Regards Markus
fo:table-cells with fo:block-container reference-orientation=90 doesn't cause a higher fo:table-row
Hi there, I tried to have a table-caption with vertical text orientation. So I have to use fo:block-container with the attribute reference-orientation=90. For having a very flexible layout I would like to have a dynamic row heigth. But every attribute I tried to use regarding the dimension progression will not effect a proper result. Everytime I've got some overflow. So maybe somebody knows a solution for this issue. Thanks! Best Regards Markus This is my test case: ?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=first margin-right=1.5cm margin-left=1.5cm margin-bottom=2cm margin-top=1cm page-width=21cm page-height=17cm fo:region-body margin-top=1cm/ fo:region-before extent=1cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=first language=de fo:static-content flow-name=xsl-region-before fo:block line-height=14pt font-size=10pt text-align=endtable examples/fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:block line-height=14pt font-size=10pt text-align=endPage fo:page-number/ /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block space-before.optimum=3pt space-after.optimum=15ptTests for breaks on table rows./fo:block fo:block space-before.optimum=80pt space-after.optimum=15ptTable 1: basic break after with next/fo:block fo:table border-width=0.5pt border-color=blue border=solid table-layout=fixed width=15cm fo:table-column column-width=9cm/ fo:table-column column-width=3cm/ fo:table-column column-width=3cm/ fo:table-body fo:table-row border-width=0.5pt break-after=page inline-progression-dimension.minimum=5mm inline-progression-dimension.optimum=70mm inline-progression-dimension.maximum=70mm block-progression-dimension.minimum=5mm block-progression-dimension.optimum=20mm block-progression-dimension.maximum=70mm fo:table-cell hyphenate=true border=solid border-width=1px border-color=green fo:block-container reference-orientation=90 border=solid border-width=1px border-color=red inline-progression-dimension.minimum=5mm inline-progression-dimension.optimum=20mm inline-progression-dimension.maximum=70mm block-progression-dimension.minimum=5mm block-progression-dimension.optimum=20mm block-progression-dimension.maximum=70mm fo:block first_row_in_table_which_is_very_long/fo:block /fo:block-container /fo:table-cell fo:table-cell fo:block text-align=centernew page new page new page/fo:block /fo:table-cell fo:table-cell fo:block text-align=centerfor next new page new page new page/fo:block /fo:table-cell /fo:table-row fo:table-row border-width=0.5pt fo:table-cell fo:block text-align=centersecond row/fo:block /fo:table-cell fo:table-cell fo:block text-align=centernormal/fo:block /fo:table-cell fo:table-cell fo:block text-align=centerrow/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:flow /fo:page-sequence /fo:root
AW: AW: Hyphenation
Hi Robert, thank you for your reply. Ok, I will try it. Best Regards Markus Von: Robert Meyer [mailto:rme...@hotmail.co.uk] Gesendet: Dienstag, 22. Januar 2013 14:52 An: fop-users@xmlgraphics.apache.org Betreff: RE: AW: Hyphenation Hi Markus, Patches remain separate from any build until they are reviewed, accepted and pushed by a committer. You can tell when this has happened as an svn commit message will be added to the bug and the jira issue will be set to resolved status. Up until that point, the only way to test what's in the patch will be to download the patch file yourself and merge it manually or use a tool e.g. in Linux / Mac OS you can use patch -p0 patch.diff. Regards, Robert Subject: AW: Hyphenation Date: Tue, 22 Jan 2013 09:07:05 +0100 From: markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org Hi Robert, Thanks for you very quick answer. I've seen you have fixed it (expermential or unreviewed). So the patch is provided in the nightly build? Because I will have a try on this bugfix. Best Regards from germany Markus Von: Robert Meyer [mailto:rme...@hotmail.co.uk] Gesendet: Montag, 21. Januar 2013 17:54 An: fop-users@xmlgraphics.apache.org Betreff: RE: Hyphenation Hi, Not sure about the first one, but there was a patch I submitted a couple of weeks ago regarding FOP not breaking words with an underline. This can be seen here: https://issues.apache.org/jira/browse/FOP-2044 The patch is still waiting to be reviewed, so it might be worth looking out for the fix whenever someone gets around to looking at it. Regards, Robert Meyer Subject: Hyphenation Date: Mon, 21 Jan 2013 17:25:42 +0100 From: markus.sticker.e...@zf.com mailto:markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org Hi there, I wonder about the hyphenation in fop or offo, because if I try to hyphenate computermonitor = com-puter-mon-it-or and computer_monitor = computer_monitor So I tried to extend the rules but I didn't get a better result. I tried to add more patterns in the user pattern file like _0 ... Maybe somebody has a idea to fix this. Best Regards Markus
AW: AW: Hyphenation
Hi, I did some tests with different sources. The _ is working very well. But I've got an issue for a words like this: parameter.for.fop or Hyperlink#Mark. So is it possible to extend these pattern? Maybe I can do it by my own because not everbody needs technical documentation hyphenation pattern. Best Regards Markus Von: Robert Meyer [mailto:rme...@hotmail.co.uk] Gesendet: Dienstag, 22. Januar 2013 14:52 An: fop-users@xmlgraphics.apache.org Betreff: RE: AW: Hyphenation Hi Markus, Patches remain separate from any build until they are reviewed, accepted and pushed by a committer. You can tell when this has happened as an svn commit message will be added to the bug and the jira issue will be set to resolved status. Up until that point, the only way to test what's in the patch will be to download the patch file yourself and merge it manually or use a tool e.g. in Linux / Mac OS you can use patch -p0 patch.diff. Regards, Robert Subject: AW: Hyphenation Date: Tue, 22 Jan 2013 09:07:05 +0100 From: markus.sticker.e...@zf.com mailto:markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org Hi Robert, Thanks for you very quick answer. I've seen you have fixed it (expermential or unreviewed). So the patch is provided in the nightly build? Because I will have a try on this bugfix. Best Regards from germany Markus Von: Robert Meyer [mailto:rme...@hotmail.co.uk] Gesendet: Montag, 21. Januar 2013 17:54 An: fop-users@xmlgraphics.apache.org Betreff: RE: Hyphenation Hi, Not sure about the first one, but there was a patch I submitted a couple of weeks ago regarding FOP not breaking words with an underline. This can be seen here: https://issues.apache.org/jira/browse/FOP-2044 The patch is still waiting to be reviewed, so it might be worth looking out for the fix whenever someone gets around to looking at it. Regards, Robert Meyer Subject: Hyphenation Date: Mon, 21 Jan 2013 17:25:42 +0100 From: markus.sticker.e...@zf.com mailto:markus.sticker.e...@zf.com To: fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org Hi there, I wonder about the hyphenation in fop or offo, because if I try to hyphenate computermonitor = com-puter-mon-it-or and computer_monitor = computer_monitor So I tried to extend the rules but I didn't get a better result. I tried to add more patterns in the user pattern file like _0 ... Maybe somebody has a idea to fix this. Best Regards Markus
Hyphenation
Hi there, I wonder about the hyphenation in fop or offo, because if I try to hyphenate computermonitor = com-puter-mon-it-or and computer_monitor = computer_monitor So I tried to extend the rules but I didn't get a better result. I tried to add more patterns in the user pattern file like _0 ... Maybe somebody has a idea to fix this. Best Regards Markus