Hello Georg, and thank you for answering, In fact, that's not exactly what I want. I explain : I have indeed an XML file, and an XSL file, that create an FO file, which I use to create a PDF, with FOP. Without any problem.
But I want to use the same XSL file, and so, the same FO file, to create a plain-text document, that will be a kind of a viewer of the PDF for the user. And using FOP is not a success, for I only have what correspond to the beginning of my PDF. To resume, I want, from the same XSL, to have a PDF and a plain-text documents, where the plain-text is not as "beautiful" as the pdf. I successly create the pdf, but, in the text-version, I only have the beginning of it. Is it clearer? Thanks Georg Datterl wrote: > > Hello fopit, > > I'm not sure I understand what you want. Let me rephrase and tell me, if > I'm correct: > > * You have an XML file and a XSL file and generate PDFs. > * You want to generate a PDF, where only the first few lines of a text are > displayed > * You want to use the same XML file and the same XSL file > > If that is correct, you can reuse your XML file, but need a slightly > different transformation in which the text is shortend. That's not correct > xsl code, but in place of <fo:block>$variable_holding_long_text</fo:block> > you would need a <fo:block>substring($variable_holding_long_text, 1, > $variable_holding_number_of_characters_to_display</fo:block> > > Regards, > > Georg Datterl > > ------ Kontakt ------ > > Georg Datterl > > Geneon media solutions gmbh > Gutenstetter Straße 8a > 90449 Nürnberg > > HRB Nürnberg: 17193 > Geschäftsführer: Yong-Harry Steiert > > Tel.: 0911/36 78 88 - 26 > Fax: 0911/36 78 88 - 20 > > www.geneon.de > > Weitere Mitglieder der Willmy MediaGroup: > > IRS Integrated Realization Services GmbH: www.irs-nbg.de > Willmy PrintMedia GmbH: www.willmy.de > Willmy Consult & Content GmbH: www.willmycc.de > -----Ursprüngliche Nachricht----- > Von: fopit [mailto:[email protected]] > Gesendet: Mittwoch, 30. September 2009 16:03 > An: [email protected] > Betreff: Text rendering with FOP > > > Hello there > > First of all, as english is not my natural tongue, i beg you to excuse > faults or nonsense that would eventually come. > > I'm using FOP to create PDF from XML. Nothing particular, and it works > great. > But I also want to use it - and the same XSL-FO - to create a text from > the XML, a simple viewer of the PDF for final users, and there, problems > begin : > it's like having a very size-limited buffer, only the beginning of my text > is render. > > I read here and there that fop wasn't the best thing to do text-rendering, > but, really, I just want a viewer, nothing complicate or fancy. > > So, I wonder, why do fop render me only the beginning of my text, and is > there anything to do to change that? > > Thanks > -- > View this message in context: > http://www.nabble.com/Text-rendering-with-FOP-tp25681687p25681687.html > Sent from the FOP - Users mailing list archive at Nabble.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] > > > -- View this message in context: http://www.nabble.com/Text-rendering-with-FOP-tp25681687p25682690.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
