fop 1: linefeed-treatment=preserve is not working
Hi, We switched from fop 0.94 to fop 1 recently and having the following problem: linefeed-treatment=preserve does not work in the code it used to work in fop 0.94 fo:block linefeed-treatment=preserve white-space-collapse=false xsl:value-of select=@something/ /fo:block Could you please help to figure out how to fix it? Thank you. Tatiyana. -- View this message in context: http://old.nabble.com/fop-1%3A-linefeed-treatment%3D%22preserve%22-is-not-working-tp33302965p33302965.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Expiration date / time stamp on pdf.
Dear All, I am relatively new FOP user, please forgive me if my question is naive or obvious. We have one of requirements from our client that users of our application must not save pdf which we are generating according data entered in. I already understand that it is not possible to do. But is there any way to set something like expiration date / time stamp on the pdf, so after some time user wont be able to view pdf even if it saved as a file on the computer? I am using FOP to generate pdf from xml and xsl. Thank you. Tatiyana. -- View this message in context: http://old.nabble.com/Expiration-date---time-stamp-on-pdf.-tp26286358p26286358.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: How to convert HTML tags(rich text) into XML-FO?
Dear Andreas, I am working on same problem as a was described below (using FOP to create pdf with some dynamical fields entered by users included field Comment) but I need to save at least breaks in Comment entered by users just to let them have all their paragraphs not glued together. What you can recommend me to do besides to ask users enter each paragraphs as a separate comment? Thank you. Tatiyana. Andreas Delmelle wrote: On 27 Jan 2009, at 17:29, gennady wrote: Basically I am saving in the database some record from user input in Struts Web app which has some 20 values like name, addreess, phone, email, ... and 1 value coments which is saved like this: just some comment. So I don't want to save this value comments as a separate XHTML file. Strictly speaking, you wouldn't need to save it as an XHTML *file*. If you have it in a memory buffer somewhere, then this should do fine too, but... (see below) For this I used Rich Text Editor I found here: http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm All I need is to send it along with name, address, etc. to FOP in order to generate in PDF this - make word comment bolded: just some comment How then do you discern bold text from regular text in the source? I mean: if the comment is saved in the database as just some comment, how would the processor know that the word comment is to appear in bold? Are RTF commands stored in the database somehow? Just a reminder: FOP converts FO to PDF (or other output formats). That's it. For convenience, the user can also supply XML with a stylesheet that transforms the XML to FO before FOP actually processes it. If you need to render something else than XML to PDF, FOP is actually not suited for that task. So what is the best way/tool/library to use to accomplish this? I can't really judge that based upon the info provided so far. It depends greatly on the answer to my above question Andreas - 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
Editable pdf
Dear All, I need to make pdf form to which client can add information or edit after its generated. I don't need to put this new information back to the database. Could you please help me to understand can I do it using FOP? Thank you very much. -- View this message in context: http://www.nabble.com/Editable-pdf-tp20361868p20361868.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]
xml file with html code inside. How to make xml - FOP - pdf
Dear All, Two months ago fop was completely new area for me but with great help of this forum I got our web application to use FOP transformation (xml - xsl - pdf) to make pdf summary form for users. Users were filling information fields and getting standard summary form in pdf format as a one of the results. Now users are allowed to edit some of the text fields using tiny-mce editor and because of it our xml file ended up having some parts with html code inside. Could somebody please help me to figure out what changes need to be done in the xml or xsl files to recognize html elements in xml file and show them in the pdf form properly? I am using fop-0.94, jdk1.5.0. I am attaching the part of xsl file and xml file. The Title and Description elements of the Public Service node and International Service node will have html code inside. Thank you. http://www.nabble.com/file/p17214471/xsl_file.xsl.doc xsl_file.xsl.doc http://www.nabble.com/file/p17214471/xml_file.xml.doc xml_file.xml.doc -- View this message in context: http://www.nabble.com/xml-file-with-html-code-inside.-How-to-make--xml--%3E-FOP--%3E-pdf-tp17214471p17214471.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]
Re: Transforming data from two xml files.
Thank you. I am using FOP only for two weeks so everything is new to me and this forum has been a great help. J.Pietschmann wrote: Tatiyana wrote: I put two xml files in the fop command line, but I got errors in unknown location. FOP does not support this. You'll probably have to use the document() function in your transformation: http://www.w3.org/TR/xslt#document J.Pietschmann - 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]
Sequence of pages
Dear All. Could you please tell me is there any way to make document which number of pages you can not predict and have one layout for all pages and the second layout for last three pages. I was looking through tones of examples how to use different layouts for different pages but could not find that I need. Is it possible to do using fo at all? Thank you very much for your help. -- View this message in context: http://www.nabble.com/Sequence-of-pages-tp15025523p15025523.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]
Re: Sequence of pages
Thank you, Jay. Yes, I am transforming the data from one huge XML file. Did I understand you correctly? I need to put all XML-data that I use for all pages in one parent and XML-data for last three pages to the second parent and then use two different sequences for different page-masters? Something like this?: fo:layout-master-set fo:simple-page-master master-name=firstPage page-height=27.8cm page-width=21.5cm margin-bottom=0.5cm margin-top=1.5cm margin-left=2cm margin-right=2cm fo:region-body margin-bottom=0.5cm/ fo:region-after extent=1cm/ /fo:simple-page-master fo:simple-page-master master-name=summaryPage page-height=21.5cm page-width=27.8cm margin-bottom=0.5cm margin-top=1.5cm margin-left=2cm margin-right=2cm fo:region-before extent=1cm/ fo:region-after extent=1cm/ fo:region-start extent=1cm/ fo:region-end extent=1cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=firstPage fo:static-content flow-name=xsl-region-after fo:block text-align=center fo:page-number / /fo:block /fo:static-content fo:flow flow-name=xsl-region-body xsl:apply-templates select=report/ /fo:flow /fo:page-sequence fo:page-sequence master-reference=summaryPage fo:static-content flow-name=xsl-region-after fo:block text-align=center fo:page-number / /fo:block /fo:static-content fo:flow flow-name=xsl-region-body xsl:apply-templates select=report1/ /fo:flow /fo:page-sequence /fo:root /xsl:template Jay Bryant wrote: Dear All. Could you please tell me is there any way to make document which number of pages you can not predict and have one layout for all pages and the second layout for last three pages. I was looking through tones of examples how to use different layouts for different pages but could not find that I need. Is it possible to do using fo at all? Thank you very much for your help. Hi, Tatiyana, Depending on what you're doing, it may be possible. Assuming your data is being transformed from XML, you could write a transform to pour all the data from one element (and all of its children) into one page sequence and pour all the data from another element into another page sequence. I do that all the time, when I pour the contents of chapter elements into individual page sequences that all use the same page master and then pour the front matter, index, and appendixes into page sequences that all use different page masters. If you provide more detail about the data your trying to turn into a document, we can probably help you get where you're going. Jay Bryant Bryant Communication Services http://www.bryantcs.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]