how to use external-graphic (or sth else) to embed a pdf-image // Content is not allowed in prolog.
Hello List, As described on below URL I want to embed images like in examples/size.fo But my images are not normal images but pdf files. How could a pdf page included in a fo-file to get the estimated result ? http://inhalt.serviert.de/ -- http://inhalt.serviert.de/wissen/gpl/fop-xmlgraphics-apache-creating-pdf-files-with-embedded-images [Fatal Error] :1:1: Content is not allowed in prolog. (the full error you can find on my webpage). I'm new to fop, but maybe there is another way to include pdf files. Thanks for your reply in advance. Thomas. This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSL FO newbie question - Hide overflow page content
Hi, IMHO, if fo:page-sequence refers to fo:page-sequence-master with not enough page to render the content, then the pages are repeated (I have not found expected behaviour in REC XSL-FO 1.0 for such case). If you want to truncate content to get a single page, you shoud try to put your content i a fo:block-container in absolute position. Logs should inform you that is overlapping content. HTH, Pascal -Message d'origine- De : Peter [mailto:[EMAIL PROTECTED] Envoyé : jeudi 18 janvier 2007 08:48 Hello, I tried the following with fop 0.93 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page page-height=50pt page-width=200pt fo:region-body/fo:region-body /fo:simple-page-master fo:page-sequence-master master-name=single fo:repeatable-page-master-reference master-reference=page maximum-repeats=1/fo:repeatable-page-master-reference /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=single fo:flow flow-name=xsl-region-body fo:block font-size=28pt linefeed-treatment=preserveLine Line Line/fo:block /fo:flow /fo:page-sequence /fo:root Which results in fop -fo c:\temp\t.fo -pdf c:\temp\t.pdf Jan 18, 2007 8:34:17 AM org.apache.fop.fo.pagination.PageSequenceMaster getNextSimplePageMaster WARNING: subsequences exhausted in page-sequence-master 'single', using previous subsequence Jan 18, 2007 8:34:17 AM org.apache.fop.fo.pagination.PageSequenceMaster getNextSimplePageMaster WARNING: subsequences exhausted in page-sequence-master 'single', using previous subsequence And 3 pages in t.pdf. Anyone any thoughts on what I am doing wrong? Not sure what it tells but XEP 4.5 results in XEP 4.5 build 20060313 (document [system-id file:/C:/DOCUME~1/pc/LOCALS~1/Temp/pro3B6.xml] (validate [validation OK]) (compile (masters (sequence-master [master-name page]) (sequence-master [master-name single])) (sequence [master-reference single] (flow [flow-name xsl-region-body]))) (format (sequence [master-reference single] (flow [1] [error] com.renderx.xep.cmp.NoPageMasterException: state: rest filled even ) (static-content [1]))) (generate [output-format pdf][1])) And a single page pdf All suggestions or guidance warmly welcomed! Thanks, Peter -Original Message- From: Nicol Bolas [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 12:56 AM This is pretty easy, though it won't get you any warnings. Make a 1-length page-sequence-master. That is, make a regular page-sequence-master and then use it in a repeatable-page-master, but only with 1 repetition. That will force the output to be one page. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSL FO newbie question - Hide overflow page content
Thanks for all the help. block-container it will be then. Peter -Original Message- From: Vincent Hennebert [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 9:42 AM To: fop-users@xmlgraphics.apache.org Subject: Re: XSL FO newbie question - Hide overflow page content Pascal Sancho a écrit : Hi, IMHO, if fo:page-sequence refers to fo:page-sequence-master with not enough page to render the content, then the pages are repeated (I have not found expected behaviour in REC XSL-FO 1.0 for such case). That's in section 6.4.7 fo:page-sequence-master of the 1.0 spec: It is an error if the entire sequence of sub-sequence-specifiers children is exhausted while some areas returned by an fo:flow are not placed. Implementations may recover, if possible, by re-using the sub-sequence-specifier that was last used to generate a page. snip/ Vincent - 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: how to use external-graphic (or sth else) to embed a pdf-image // Content is not allowed in prolog.
But what about http://www.antennahouse.com/XSLsample/fo-v32/Sample-embedding-pdf.fo ( from page: http://www.antennahouse.com/XSLsample/FOsample.htm ) They're embedding PDFs. But this .fo-file is not working with fop :-( Thanks, Thomas. Zitat von Vincent Hennebert [EMAIL PROTECTED]: Hi Thomas, it is currently not possible to embed PDF files in an FO file. There is some ongoing work to implement that possibility but you shouldn't expect anything before a while. Sorry, Vincent Thomas Baumann a écrit : Hello List, As described on below URL I want to embed images like in examples/size.fo But my images are not normal images but pdf files. How could a pdf page included in a fo-file to get the estimated result ? http://inhalt.serviert.de/ -- http://inhalt.serviert.de/wissen/gpl/fop-xmlgraphics-apache-creating-pdf-files-with-embedded-images [Fatal Error] :1:1: Content is not allowed in prolog. (the full error you can find on my webpage). I'm new to fop, but maybe there is another way to include pdf files. Thanks for your reply in advance. Thomas. This message was sent using IMP, the Internet Messaging Program. This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use external-graphic (or sth else) to embed a pdf-image // Content is not allowed in prolog.
But what about http://www.antennahouse.com/XSLsample/fo-v32/Sample-embedding-pdf.fo ( from page: http://www.antennahouse.com/XSLsample/FOsample.htm ) They're embedding PDFs. But this .fo-file is not working with fop :-( Thanks, Thomas. Zitat von Vincent Hennebert [EMAIL PROTECTED]: Hi Thomas, it is currently not possible to embed PDF files in an FO file. There is some ongoing work to implement that possibility but you shouldn't expect anything before a while. Sorry, Vincent Thomas Baumann a écrit : Hello List, As described on below URL I want to embed images like in examples/size.fo But my images are not normal images but pdf files. How could a pdf page included in a fo-file to get the estimated result ? http://inhalt.serviert.de/ -- http://inhalt.serviert.de/wissen/gpl/fop-xmlgraphics-apache-creating-pdf-files-with-embedded-images [Fatal Error] :1:1: Content is not allowed in prolog. (the full error you can find on my webpage). I'm new to fop, but maybe there is another way to include pdf files. Thanks for your reply in advance. Thomas. This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use external-graphic (or sth else) to embed a pdf-image // Content is not allowed in prolog.
Thomas Baumann wrote: But what about http://www.antennahouse.com/XSLsample/fo-v32/Sample-embedding-pdf.fo ( from page: http://www.antennahouse.com/XSLsample/FOsample.htm ) They're embedding PDFs. But this .fo-file is not working with fop :-( The XSL-FO recommendation does not dictate which file formats fo:external-graphic FO should or should not allow. Some implementations such as Antenna House and RenderX do support PDF as an external graphic. FOP does not - yet! But as Vincent indicated it is on the roadmap! snip/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AWT FONTS
Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Does Fonts used in fop-awt are system/jdk fonts?? are they fop user-config's file fonts?? I've tried to set system properties to different values but it doesn't change Thanks in advance and sorry for my english - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: awt performance 0.93 vs 0.92beta
paul wrote: Hello I'm running fop on my pc (windows xp, jre 1.6) locally, and just updated from fop 0.92beta to 0.93. Using AWT-mode, I find that 0.93 processes my xml and xsl much slower than 0.92beta, and less reliable. At the first try, the pdf-preview in awt usually looks mangled, only when I run it a second time with thedebug-button in the awt window, the preview looks as expected. But rendering takes so much time that I went back to using 0.92beta, which runs quick and smooth. Is this a problem documented elsewhere already? I think you are the first person to try AWT renderer on jdk 1.6. AWT Renderer is heavily dependent on JDK version. Have you tried running 1.5? Do you still observe a massive performance slowdown between 0.92 and 0.93 using 1.5? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AWT FONTS
David Morales wrote: Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Thats right. The AWT Renderer uses a different font mechanism to PS/PDF/PCL Renderers. Does Fonts used in fop-awt are system/jdk fonts?? are they fop user-config's file fonts?? Yes AWT uses the JDK Fonts which are taken from the Operating system. I've tried to set system properties to different values but it doesn't change What are you trying to do? You won't able to make output from the AWT Renderer look the same as output from PDF/PS/PCL because they are very different. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AWT FONTS
Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Does Fonts used in fop-awt are system/jdk fonts?? are they fop user-config's file fonts?? I've tried to set system properties to different values but it doesn't change Thanks in advance and sorry for my english - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fonts AWT
Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Does Fonts used in fop-awt are system/jdk fonts?? are they fop user-config's file fonts?? I've tried to set system properties to different values but it doesn't change Thanks in advance and sorry for my english - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fonts AWT
David Morales wrote: Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Why do you keep posting the same question. I already answered you here: http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200701.mbox/[EMAIL PROTECTED] If that doesn't help you then please re-phrase the question. Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fonts AWT
Sorry... i had problems in other apache mailing lists... And then... can't i set my own fonts when using awt?? i mean, awt-fop stablishes fonts?, or awt-java? Thanks again. Chris Bowditch escribió: David Morales wrote: Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Why do you keep posting the same question. I already answered you here: http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200701.mbox/[EMAIL PROTECTED] If that doesn't help you then please re-phrase the question. Thanks, Chris - 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: Fonts AWT
Hi Adrian, And there isn't a programmatic way to achieve this??? I'va tried to set sun.java2d.fontpath system property... and also copying mt fonts to $jdk/jre/lib/fonts... What about org.apache.fop.render.java2d.FontSetup class can i extend this funcionality or anyother to add fonts?? Thanks. Adrian Cumiskey escribió: Hi David, This looks to be reasonably helpful on the subject :- http://java.sun.com/j2se/1.3/docs/guide/intl/addingfonts.html. Basically you just need to install the missing fonts on your operating system. If this doesn't work you might have to try tweaking your fonts.properties file that sits in the jre/lib folder of your java installation. Adrian. David Morales wrote: Sorry... i had problems in other apache mailing lists... And then... can't i set my own fonts when using awt?? i mean, awt-fop stablishes fonts?, or awt-java? Thanks again. Chris Bowditch escribió: David Morales wrote: Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Why do you keep posting the same question. I already answered you here: http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200701.mbox/[EMAIL PROTECTED] If that doesn't help you then please re-phrase the question. Thanks, Chris - 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] - 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]
text in nested groups
Hi it seems fop 0.93 doesn't support text in nested g and def structures while forming to pdf. The text is not searchable in pdf. It seems to be graphic. This behavior not depends on font.family. It's the same behavior on embedded and external SVG. any ideas? P.S. except to this problem fop 0.93 handles over 500 pages complex svg drawing from CAE without memory problems as they have been before. It's great. Bruno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AWT transparency
As i can see... fop-awt preview shows images and text lighter than pdf... can i turn off this feature?? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usage of setRendererOverride()
On Jan 18, 2007, at 00:20, Daniel Noll wrote: snip / The FOUserAgent passed in and the one obtained from fop.getUserAgent () are the same object, I didn't actually create a new one. Ouch! Completely missed that... I read fopFactory.getUserAgent()... I'll see what we can do about that. Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutputStream and renderers where it doesn't make sense.
On Jan 18, 2007, at 02:23, Daniel Noll wrote: snip / Is this API going to be improved at some point so that subclasses don't need to implement hacks such as these? Perhaps some kind of Destination object which could contain an OutputStream, multiple OutputStreams, or even just a marker saying that no, there is no destination stream. Immediate plans? None that I'm aware of... You're welcome to submit a patch proposal if you want to speed things up, though. Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP supports the Japanese characters?
Hello, I have a Japanese FO file (attached) generated by javax.xml.transform.Transformer. It looks like encoded correctly (UTF-8). I ran it through FOP (FOP test-japanese.fo test-japanese.pdf) and the result Japanese characters in PDF file were not displayed correctly in my Adobe Acrobat. It is possible that my Adobe Acrobat might not configure correctly. I was also wondering if you know FOP supports the Japanese characters. Thanks in advance, Hai-Fun Wu test-japanese.pdf Description: Binary data test-japanese.fo Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP supports the Japanese characters?
FOP handles Roomaji very well. For the other writing scripts, possible sources of help are: http://www.javaworld.com/javaworld/jw-03-2005/jw-0328-xmlprinting.html http://www.terra-intl.com/tetsuya/2005/11/forrest_japanese.html http://marc.theaimsgroup.com/?l=fop-userw=2r=1s=japaneseq=b Glen Hai-Fun Wu wrote: Hello, I have a Japanese FO file (attached) generated by javax.xml.transform.Transformer. It looks like encoded correctly (UTF-8). I ran it through FOP (FOP test-japanese.fo test-japanese.pdf) and the result Japanese characters in PDF file were not displayed correctly in my Adobe Acrobat. It is possible that my Adobe Acrobat might not configure correctly. I was also wondering if you know FOP supports the Japanese characters. Thanks in advance, Hai-Fun Wu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP supports the Japanese characters?
Hai-Fun Wu wrote: Hello, I have a Japanese FO file (attached) generated by javax.xml.transform.Transformer. It looks like encoded correctly (UTF-8). I ran it through FOP (FOP test-japanese.fo test-japanese.pdf) and the result Japanese characters in PDF file were not displayed correctly in my Adobe Acrobat. It is possible that my Adobe Acrobat might not configure correctly. I was also wondering if you know FOP supports the Japanese characters. It does support them, but you need to use a font (e.g. Arial Unicode) which supports those characters. Daniel -- Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699 Web: http://nuix.com/ Fax: +61 2 9212 6902 This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this message or attachment is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem using custom fonts (0.93)
Hi all... After upgrading to FOP 0.93 I'm having issues getting custom fonts working. I've properly updated my configuration to the new schema for the config file: fop version=1.0 renderers renderer mime=application/pdf fonts font metrics-url=arial-unicode.xml kerning=yes embed-url=ARIALUNI.TTF font-triplet name=Arial Unicode MS style=normal weight=normal/ font-triplet name=Arial Unicode MS style=normal weight=bold/ font-triplet name=Arial Unicode MS style=italic weight=normal/ font-triplet name=Arial Unicode MS style=italic weight=bold/ /font /fonts /renderer /renderers /fop The base font URL and all is set from the Java side (as it changes, depending on whether the app is run from the installation or the source directory.) Anyway what happens now is, the international characters don't show up. I did some digging around in the debugger though and here's what's going on. FontInfo.getMetricsFor(String) is being called... but the name it's being passed is something like any,normal,400. What I would expect it should be getting is Arial Unicode MS,normal,400. And indeed, when I update my configuration putting any in for all font names, it works as expected, i.e.: ... 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/ ... I'm at a loss as to why this is happening. The XSL-FO file certainly declares the entire document to be Arial Unicode MS, i.e.: fo:flow flow-name=xsl-region-body font-family=Arial Unicode MS hyphenate=true Anyone seen similar behaviour? Daniel -- Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699 Web: http://nuix.com/ Fax: +61 2 9212 6902 This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this message or attachment is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using custom fonts (0.93)
On Friday 19 January 2007 14:08, Daniel Noll wrote: Hi all... Daniel, could you try and use a font name not including spaces, e.g. ArialUnicodeMS. I am suspicious that the font family name property parser may take 'Arial Unicode MS' as a specification of 3 font alternatives and not as a single font name. Manuel After upgrading to FOP 0.93 I'm having issues getting custom fonts working. I've properly updated my configuration to the new schema for the config file: fop version=1.0 renderers renderer mime=application/pdf fonts font metrics-url=arial-unicode.xml kerning=yes embed-url=ARIALUNI.TTF font-triplet name=Arial Unicode MS style=normal weight=normal/ font-triplet name=Arial Unicode MS style=normal weight=bold/ font-triplet name=Arial Unicode MS style=italic weight=normal/ font-triplet name=Arial Unicode MS style=italic weight=bold/ /font /fonts /renderer /renderers /fop The base font URL and all is set from the Java side (as it changes, depending on whether the app is run from the installation or the source directory.) Anyway what happens now is, the international characters don't show up. I did some digging around in the debugger though and here's what's going on. FontInfo.getMetricsFor(String) is being called... but the name it's being passed is something like any,normal,400. What I would expect it should be getting is Arial Unicode MS,normal,400. And indeed, when I update my configuration putting any in for all font names, it works as expected, i.e.: ... 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/ ... I'm at a loss as to why this is happening. The XSL-FO file certainly declares the entire document to be Arial Unicode MS, i.e.: fo:flow flow-name=xsl-region-body font-family=Arial Unicode MS hyphenate=true Anyone seen similar behaviour? Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using custom fonts (0.93)
Manuel Mall wrote: On Friday 19 January 2007 14:08, Daniel Noll wrote: Hi all... Daniel, could you try and use a font name not including spaces, e.g. ArialUnicodeMS. I am suspicious that the font family name property parser may take 'Arial Unicode MS' as a specification of 3 font alternatives and not as a single font name. Ah... that does fix it. :-) The XSL-FO spec says that commas are required between alternative fonts, so I guess it's a bug in FOP. Might not be too hard for me to fix myself, though, if it's just a string splitting or regex issue. Daniel -- Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699 Web: http://nuix.com/ Fax: +61 2 9212 6902 This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this message or attachment is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]