using fo:external-graphic with a data:image/auto;base64 URI
Hello, I am currently trying to convert WordML-documents to XSL-FO and then PDF using the wordml2fo XSL Script by RenderX and Microsoft [1]. This embeds images into the FO file like that: fo:external-graphic src=url(#34;data:image/auto;base64,H4sIcBZxWR==#xA;#34;)/ (shortened, no valid base64-string any more) This seems to use a URI scheme described in RFC 2397 [2]. FOP 0.93 doesn't seem to support this URI scheme and this way of embedding images. Is there another way of embedding (bitmap) images in FOP or is there support planned for this URI scheme? I couldn't find anything in the XSL-FO specs which says this scheme must be supported or not, but some commercial FOP processors (at least RenderX's XEP, as they prepared that XSL-Stylesheet I'm using) seem to support it. Thanks! Philipp [1] see http://www.renderx.com/tools/freetools.html [2] http://www.ietf.org/rfc/rfc2397.txt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
merge PDF files with FOP??
hello mailing list, i´m making my first experiences with FOP and i have the folowing question: Is it possible to edit a pdf file with FOP or to merge it with an other pdf file (or a piece of it), that is not created with FOP? thnx Simo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: merge PDF files with FOP??
On Tuesday 14 August 2007 13:37, Sidi Mohamed Idrissi Yaghir wrote: hello mailing list, i´m making my first experiences with FOP and i have the folowing question: Is it possible to edit a pdf file with FOP or to merge it with an other pdf file (or a piece of it), that is not created with FOP? Have a look at pdftk or similar tools, fop is not made for that. pdftk can merge multiple pdf files into one. Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: merge PDF files with FOP??
Not sure whether FOP can do it, it is surely not designed to do stuff like that (FOP is an XSL-FO processor that transforms XSL-FO documents into a variety of other formats (if it could include PDF, or RTF or Word or whatever, it must also be capable of converting these formats to any of the other output formats). May I suggest you lookup the excellent MultiValent (http://sourceforge.net/projects/multivalent/) or the PDF Split and Merge (http://sourceforge.net/projects/pdfsam/). I've only use the first (excellent product, download the stable version though), the second seems promising. Cheers, -- Abel Braaksma // Sidi Mohamed Idrissi Yaghir wrote: hello mailing list, i´m making my first experiences with FOP and i have the folowing question: Is it possible to edit a pdf file with FOP or to merge it with an other pdf file (or a piece of it), that is not created with FOP? thnx Simo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: merge PDF files with FOP??
iText can be used for this ... http://itextdocs.lowagie.com/tutorial/ just go thru concatenate example http://itextdocs.lowagie.com/tutorial/general/copystamp/index.html#pdfwriter On 8/14/07, Sidi Mohamed Idrissi Yaghir [EMAIL PROTECTED] wrote: hello mailing list, i´m making my first experiences with FOP and i have the folowing question: Is it possible to edit a pdf file with FOP or to merge it with an other pdf file (or a piece of it), that is not created with FOP? thnx Simo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Narpat Singh Rajpurohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP 0.20.5 0.93 Wrapping Difference
Hi there, i just found something curious with text wrapping in table-cells: text with words that are not handled as 'normal' (like this THIS_IS_JUST_TEXT) is wrapped by FOP 0.20.5 when placed in a table-cell. But in FOP 0.93 it's not. Attached you can find my stylesheet. Do you have an idea why? Thanks, Matthias Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:output method=xml / xsl:template match=/ fo:root fo:layout-master-set fo:simple-page-master master-name=only fo:region-body region-name=xsl-region-body margin=0.7in / fo:region-before region-name=xsl-region-before extent=0.7in display-align=before / fo:region-after region-name=xsl-region-after display-align=after extent=0.7in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=only fo:flow flow-name=xsl-region-body xsl:variable name=mySequenceTHIS_IS_JUST_A_TEXT/xsl:variable fo:block fo:table border=0.5pt solid black fo:table-column column-width=1in/ fo:table-column column-width=1in/ fo:table-body fo:table-row fo:table-cell padding=6pt border=0.5pt solid black fo:block wrap-option=wrap hyphenate=true language=de xsl:value-of select=$mySequence/ /fo:block /fo:table-cell fo:table-cell padding=6pt border=0.5pt solid black fo:block/fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell padding=6pt border=0.5pt solid black fo:block/fo:block /fo:table-cell fo:table-cell padding=6pt border=0.5pt solid black fo:block/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template /xsl:stylesheet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: merge PDF files with FOP??
you can also do it with PDFBOX http://www.pdfbox.org/ 2007/8/14, NarpatSingh Rajpurohit [EMAIL PROTECTED]: iText can be used for this ... http://itextdocs.lowagie.com/tutorial/ just go thru concatenate example http://itextdocs.lowagie.com/tutorial/general/copystamp/index.html#pdfwriter On 8/14/07, Sidi Mohamed Idrissi Yaghir [EMAIL PROTECTED] wrote: hello mailing list, i´m making my first experiences with FOP and i have the folowing question: Is it possible to edit a pdf file with FOP or to merge it with an other pdf file (or a piece of it), that is not created with FOP? thnx Simo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Narpat Singh Rajpurohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: embedding font Bundesbahn-Pi at FOP
Thanks Adrian and everyone, I have sent it to you for you to take a look at it (font and FO). if there's something that is useful for me/others to know, please do tell me. Otherwise, does anyone has any idea where else I can look for software solution that might accommodate this ? William. Adrian Cumiskey wrote: Hi William, Yes I think that might be the problem, it does look like an encoding problem to me. I took a quick look at the code and the NullPointerException you are experiencing would indicate that the encoding is not recognised by FOP and its failing to provide a CodePointMapping instance which is used internally by SingleByteFont. If you send me the font (and fo) I will try and take a quick look at it. Adrian. william wrote: Hi All, First of all, would like to thank you all developers and commiters at FOP. i've been using it for awhile now. I haven't had problem with embedding fonts before, except on this Bundesbahn-Pi font and another symbol/pi font. The error message is posted below. I'm using fop 0.93 and I need help with embedding this font. Is there anything to do with this? /currently present a problem because FOP cannot correctly determine the encoding of these two single-byte fonts through the PFM file. FOP now correctly interprets the encoding value in the XML font metrics file, but the PFMReader application writes UnknownEncoding to the generated XML file /If someone would try to work it out for me, i can send you the font to try out + .fo file. This is my configuration for the font: font metrics-url=Bundesbahn.xml kerning=yes embed-url=Bundesba.pfb font-triplet name=Bundesbahn style=normal weight=normal/ /font / *Error message generated by FOP:* 10/08/2007 06:16:13 org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:191) - java.lang.NullPointerException at org.apache.fop.fonts.SingleByteFont.hasChar(SingleByteFont.java:103) at org.apache.fop.fonts.LazyFont.hasChar(LazyFont.java:166) at org.apache.fop.fonts.Font.hasChar(Font.java:189) at org.apache.fop.fonts.Font.getCharWidth(Font.java:231) at org.apache.fop.layoutmgr.inline.TextLayoutManager.initialize(TextLayoutManager.java:188) ... Thank you, / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- William LiemEmail: [EMAIL PROTECTED] Allette Systems Pty Ltd. Level 2, 73 Union St Pyrmont NSW 2009 Australia Tel: +61 2 9660 8866 Fax: +61 2 9660 8869 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]