Re: Full page Backgroundimage plus independent header/footer
Hmmm, I've got no problems to put the header/footer into the right place, and as you already stated, FOP doesn't support zorder attributes. If I place the background image in any other region than body, it will cover the body-regions content. I think I have to decide, before it's too late, if I should use FOP at all. I just have to produce some PDF-content from within a Java-Application. Just some minutes ago, I found the iText - Java-Library from Bruno Lowagie and co. I think this is the way to go for me. Nevertheless: many thanks for the answer! Best, Tim Mike Trotman schrieb: I use absolutely positioned block-containers containing external-graphics for some images and for drawing surrounding borders etc. You can position this anywhere on the page. You could place this in one of the other regions - but you would need to check the z-order works OK and doesn't overlap your content. e.g. fo:static-content flow-name=xsl-region-before fo:block-container position='absolute' top='1cm' left='0.0cm' height='19.2cm' width='{$PAGEWID_CM}cm' border='1px solid silver' /fo:block-container fo:block-container position='absolute' top='1.5cm' left='{$PAGEWID_CM - 1.5}cm' height='2.7cm' width='1.7cm' border='none' fo:block fo:external-graphic src='url({$SERVER}/DRE/images/img_2.jpg)' height='1cm' content-height='1cm'/ /fo:block /fo:block-container /fo:static-content I think - from past experiments with FOP 0.02.5 - you may find that a background image is the only one that will be behind your content. FOP 0.20.5 doesn't support the zorder attribute (or whatever it is) and overlays regions in a different priority thatn XEP (and probably other FO engines). Also - the top LH coords for absolute postioning seem to differ for FOP 0.20.5 and XEP. I can't remember exactly how - but almost like - one uses the page and one uses the enclosing region (which can mean that your image doesn't appear unless you add a large negative X displacement). HTH Mike Tim Dylla wrote: Hi all, since I'm brand new to the List, please be patient if I say somethin stupid/don't provide necessary Informations/etc. I'll do my very best :). For this Problem I plundered the Mailing list Archives, but no clue so far: I want to put a full-page sized background image on any page of my pdf-Document. In addition I need to place a header and a footer, also with graphical content. I do this with the background-image property on the body-region, and with static content in the -before and the -after regions. The Problem is, that I have to set a top- and bottom-margin of the body-region, in order to place the body between header and footer, without getting in formatting-trouble on automatic page-breaks. But now, the background image of the body-region, which should cover the whole page (including the background of header and footer), start at the margin of the body-region, which is somehow logical, but not wanted in this case. How can I adjust the body-regions position/extend without giving up my full size background image? Unfortunately I can't split the Image into 3 parts, which I could place into all three regions, as the graphical content varies. I tried also to put the bg-image into the header-region and set the extent of it to page-height. Apparently, the body-region gets painted first, before header and footer, so both cover the body-content... grrr Has anybody a hint for a poor student? Except buying the Antennahouse-FO-Parser... :) Best, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message Scanned by ClamAV on datalucid.com Message Scanned by ClamAV on datalucid.com - 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]
Overflowing of Japanese/Chinese Chars
Hello, I create a PDF using FOP, when I create a PDF in English the text works fine. But when I create the PDF in Japanese and Chinese the text overflows. Has anyone had experience with this problem? Regards, Fabrizio. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Scaling Text
Hello Does anyone know of a way to scale the size of text to a predefined area of the page depending on the length/size of the string? Im not sure if it is possible with FOP yet but if anyone has found a solution Id love to hear about it. Cheers. Jimmy. -- Jimmy Dixon, Perfiliate Technologies email : [EMAIL PROTECTED] phone : +44 (0)191 241 6500 Registered Office: Perfiliate Technologies Limited 7-15 Pink Lane, Newcastle upon Tyne. NE1 5DW Registered No. 3783384 in the UK Telephone +44 (0)191 241 6500 Facsimile +44 (0)191 241 9302 www.perfiliate.com Please note that electronic mail may be monitored. This e-mail is confidential. If you received it by mistake, please let us know and then delete it from your system; you should not copy, disclose, or distribute its contents to anyone nor act in reliance on this e-mail, as this is prohibited and may be unlawful. We check all emails for viruses, but please note that we do not accept liability for any viruses which may be transmitted in or with this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Convert HTML to PostScript or PDF
Hi all, is it possible to use FOP to convert a HTML file to PostScript or PDF? Best regards, Leon __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convert HTML to PostScript or PDF
no - you would need to have your HTML in XHTML format so you can convert it to XSL-FO using XSLT, FOP can then be used to convert XSL-FO to PDF or (I think) Postscript. Leon Pu wrote: Hi all, is it possible to use FOP to convert a HTML file to PostScript or PDF? Best regards, Leon __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jimmy Dixon, Perfiliate Technologies email : [EMAIL PROTECTED] phone : +44 (0)191 241 6500 Registered Office: Perfiliate Technologies Limited 7-15 Pink Lane, Newcastle upon Tyne. NE1 5DW Registered No. 3783384 in the UK Telephone +44 (0)191 241 6500 Facsimile +44 (0)191 241 9302 www.perfiliate.com Please note that electronic mail may be monitored. This e-mail is confidential. If you received it by mistake, please let us know and then delete it from your system; you should not copy, disclose, or distribute its contents to anyone nor act in reliance on this e-mail, as this is prohibited and may be unlawful. We check all emails for viruses, but please note that we do not accept liability for any viruses which may be transmitted in or with this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convert HTML to PostScript or PDF
This article may be of help: http://www-128.ibm.com/developerworks/library/x-xslfo2app/ Glen Jimmy Dixon wrote: no - you would need to have your HTML in XHTML format so you can convert it to XSL-FO using XSLT, FOP can then be used to convert XSL-FO to PDF or (I think) Postscript. Leon Pu wrote: Hi all, is it possible to use FOP to convert a HTML file to PostScript or PDF? Best regards, Leon __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - 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: Convert HTML to PostScript or PDF
My HTML's source is XML, I use Xalan to transform XML to HTML. Is the result HTML ok for FOP? Or there is other shortcut to generate PostScript or PDF from XML directly? Thanks for your reply. Best regards, Leon --- Glen Mazza [EMAIL PROTECTED] wrote: This article may be of help: http://www-128.ibm.com/developerworks/library/x-xslfo2app/ Glen Jimmy Dixon wrote: no - you would need to have your HTML in XHTML format so you can convert it to XSL-FO using XSLT, FOP can then be used to convert XSL-FO to PDF or (I think) Postscript. Leon Pu wrote: Hi all, is it possible to use FOP to convert a HTML file to PostScript or PDF? Best regards, Leon __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - 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] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convert HTML to PostScript or PDF
Your best bet is to use XSLT to go from your source XML to XSL:FO and skip trying to convert HTML into XSL:FO. Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) Leon Pu [EMAIL PROTECTED] 11/01/2005 11:08 AM Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc Subject Re: Convert HTML to PostScript or PDF My HTML's source is XML, I use Xalan to transform XML to HTML. Is the result HTML ok for FOP? Or there is other shortcut to generate PostScript or PDF from XML directly? Thanks for your reply. Best regards, Leon --- Glen Mazza [EMAIL PROTECTED] wrote: This article may be of help: http://www-128.ibm.com/developerworks/library/x-xslfo2app/ Glen Jimmy Dixon wrote: no - you would need to have your HTML in XHTML format so you can convert it to XSL-FO using XSLT, FOP can then be used to convert XSL-FO to PDF or (I think) Postscript. Leon Pu wrote: Hi all, is it possible to use FOP to convert a HTML file to PostScript or PDF? Best regards, Leon __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - 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] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - 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: Convert HTML to PostScript or PDF
Yes, that is standard--Docbook does that (maintains two separate stylesheets for HTML and FO.) Glen [EMAIL PROTECTED] escribió: Your best bet is to use XSLT to go from your source XML to XSL:FO and skip trying to convert HTML into XSL:FO. Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) Leon Pu [EMAIL PROTECTED] 11/01/2005 11:08 AM Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc Subject Re: Convert HTML to PostScript or PDF My HTML's source is XML, I use Xalan to transform XML to HTML. Is the result HTML ok for FOP? Or there is other shortcut to generate PostScript or PDF from XML directly? Thanks for your reply. Best regards, Leon --- Glen Mazza [EMAIL PROTECTED] wrote: This article may be of help: http://www-128.ibm.com/developerworks/library/x-xslfo2app/ Glen Jimmy Dixon wrote: no - you would need to have your HTML in XHTML format so you can convert it to XSL-FO using XSLT, FOP can then be used to convert XSL-FO to PDF or (I think) Postscript. Leon Pu wrote: Hi all, is it possible to use FOP to convert a HTML file to PostScript or PDF? Best regards, Leon __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - 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] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - 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]
Re: Overflowing of Japanese/Chinese Chars
Fabrizio Caldas wrote: I create a PDF using FOP, when I create a PDF in English the text works fine. But when I create the PDF in Japanese and Chinese the text overflows. Has anyone had experience with this problem? It depends on what you mean by the text overflows and on the content. I guess you mean that text overruns the line end because there are no (ASCII) white spaces in the line. FOP 0.20.5 can't generate line breaks for east-asean languages written without spaces delimiting words. In this case the workaround is to insert zero width spaces (U+200B) in appropriate places, preferably while authoring the content. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Footnotes in RTF
matthias reinert wrote: using the snapshot http://cvs.apache.org/snapshots/fop/fop_20051101053804.tar.gz I ran into problems with footnotes in RTF. The given examples worked well for PDF output but in RTF footnotes were not rendered. The RTF renderer in the development snapshot is rather incomplete. You could try the stable release (0.20.5) J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convert HTML to PostScript or PDF
--- Daniel Noll [EMAIL PROTECTED] wrote: Leon Pu wrote: So, is it possible to use one stylesheet to transform XML to both HTML and PDF? Not as such. Though it might be possible to cheat by writing one stylesheet to transform to HTML, and then transforming the HTML to XSL-FO in a separate step using a stylesheet which will be constant. It means we have to do the generation of HTML and PDF in two steps? What's the method in some websites that provide the PDF download for current webpage? Are these websites using the same solution? Thanks for your reply. Leon __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convert HTML to PostScript or PDF
On Wed, 2 Nov 2005 01:32 pm, Leon Pu wrote: --- Daniel Noll [EMAIL PROTECTED] wrote: Leon Pu wrote: So, is it possible to use one stylesheet to transform XML to both HTML and PDF? Not as such. Though it might be possible to cheat by writing one stylesheet to transform to HTML, and then transforming the HTML to XSL-FO in a separate step using a stylesheet which will be constant. It means we have to do the generation of HTML and PDF in two steps? What's the method in some websites that provide the PDF download for current webpage? Are these websites using the same solution? Typically two different approaches will be used: a) The site is written in XML and two different stylesheets are used. One for conversion to HTML and one for conversion into XSL-FO. The XSL-FO output is then given to an XSL-FO processor (e.g. FOP) for conversion into PDF. Note that most XSL-FO processors can make the two steps XML - XSL-FO and XSL-FO - PDF look like one but internally both conversions are performed. b) The site is written in XHMTL and a stylesheet is used to convert XHMTL into XSL-FO. Again this is followed by the XSL-FO - PDF conversion. A possible third alternative is for a site written in HTML that an HTML to XHTML conversion tool is used (Note this would not be XSL based). So we have HTML - XHTML using a 3rd party tool, XHTML - XSL-FO using an XSL stylesheet and processor (e.g. XALAN), XSL-FO - PDF (e.g. FOP). Thanks for your reply. Leon Manuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convert HTML to PostScript or PDF
--- Manuel Mall [EMAIL PROTECTED] wrote: On Wed, 2 Nov 2005 01:32 pm, Leon Pu wrote: --- Daniel Noll [EMAIL PROTECTED] wrote: Leon Pu wrote: So, is it possible to use one stylesheet to transform XML to both HTML and PDF? Not as such. Though it might be possible to cheat by writing one stylesheet to transform to HTML, and then transforming the HTML to XSL-FO in a separate step using a stylesheet which will be constant. It means we have to do the generation of HTML and PDF in two steps? What's the method in some websites that provide the PDF download for current webpage? Are these websites using the same solution? Typically two different approaches will be used: a) The site is written in XML and two different stylesheets are used. One for conversion to HTML and one for conversion into XSL-FO. The XSL-FO output is then given to an XSL-FO processor (e.g. FOP) for conversion into PDF. Note that most XSL-FO processors can make the two steps XML - XSL-FO and XSL-FO - PDF look like one but internally both conversions are performed. b) The site is written in XHMTL and a stylesheet is used to convert XHMTL into XSL-FO. Again this is followed by the XSL-FO - PDF conversion. A possible third alternative is for a site written in HTML that an HTML to XHTML conversion tool is used (Note this would not be XSL based). So we have HTML - XHTML using a 3rd party tool, XHTML - XSL-FO using an XSL stylesheet and processor (e.g. XALAN), XSL-FO - PDF (e.g. FOP). It's much clear to me, thanks. Leon __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]