RE: Batch Generation of PDF's
Title: Message You could always try calling the garbage collector after each loop. Though the JVM does not have to do anything it might help reduce some of the memory. -Original Message-From: Adrian Sobotta [mailto:[EMAIL PROTECTED] Sent: 05 February, 2004 09:15To: [EMAIL PROTECTED]Subject: Batch Generation of PDF's Hi, I've been creating PDF's with FOP for a while now, and recently I've had to create 1000+ every night in a batch process based on values in a database. So I have written a class which queries the database and passes all the necessary parameters (like which XSL file, XML file, and config file to use, and PDF file to write to) to an edited version of the Example class that comes with fop-0.20.5 (embedding\ExampleXML2PDF.java). So I instantiate that class in my new class which queries the database, and in a while(rs.next()){} loop it just calls the method in the Example class 1000+ times. My problem however is that it slowly it eats up more and more memory. So after 500 pdf's or so its used more then the 500MB that I'm allowing the JVM to use and it dies with the following error: Exception in thread "main" java.lang.OutOfMemoryError <> Has anyone else successfully generated many PDF's in a batch like this? And if so did you have to do something to keep the memory from creeping upwardly? Does anyone have any suggestions about what I can do to make sure each iteration of the loop and hence each PDF doesn’t result in things being left in memory? Thank you for any guidance you can provide. Adrian. --- - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.
RE: xlink problem
You have used the namespace xlink within the document, but have probably not declared a uri for it. You need to add an attribute like xmlns:xlink="http://something.somewhere.org"; either to the root node or at the level where you need the name space. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: 12 January, 2004 15:48 To: [EMAIL PROTECTED] Subject: xlink problem I got this strange error: "The prefix "xlink" for attribute "xlink:href" associated with an element type "use" is not bound" does anybody know what this means? This is from my xsl file: http://www.w3.org/2000/svg"; width="17cm" height="13cm" viewBox="0 0 1700 1300"> dl/L for a JND JND indice Measured Line Target Line Warning Line Error Line http://www.w3.org/2000/svg"; x="150" y="100" width="1500" height="1000" viewBox="0 0 1500 1000"> regards, Wim -- Wim Deblauwe http://listen.to/sphinx - Heavy Metal with female vocals http://listen.to/vexed - Rock Music _ De nieuwe Pirelli 2004 kalender al gezien? http://auto.msn.be/pirelli2004/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: bug in FOP release 0.20.5
I tend to get this type of error where I have specified a fixed width table, and I have more table cells in a row than I have specified in the column tags. Try looking there. -Original Message- From: Stan Pinte [mailto:[EMAIL PROTECTED] Sent: 04 December, 2003 09:14 To: [EMAIL PROTECTED] Subject: bug in FOP release 0.20.5 hello, I am using nested tables in fop, and I get that: [INFO] [1] [ERROR] null org.apache.fop.apps.FOPException at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111) at org.apache.fop.apps.Fop.main(Fop.java:62) - java.lang.ClassCastException at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:509) at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:271) at org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.java:2 36) at org.apache.fop.fo.flow.Table.layout(Table.java:302) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:400 ) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) How can I figure out what's happening? thanks a lot, Stan. -- Stan Pinte. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shrink size of images.
I've not used this before at all, but a brief search on google found the class documentation. Looks like you can specify params for the encoding of the TIFF. http://www.tkachenko.com/fop/tiffrenderer-doc/com/multiconn/fop/codec/TI FFEncodeParam.html -Original Message- From: Gergely Hajdu [mailto:[EMAIL PROTECTED] Sent: 27 November, 2003 11:05 To: [EMAIL PROTECTED] Subject: RE: Shrink size of images. Sorry for causing confusion,but you are right. I am using the com.multiconn.fop package to generate the TIFF-images, and NOT Driver.SetRenderer(Driver_RENDER_TIF) as I wrote previously... Again, sorry for causing confusion. Regards /Gergely -Original Message- From: Chris Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, November 27, 2003 11:29 AM To: [EMAIL PROTECTED] Subject: RE: Shrink size of images. I think these has been some confusion, but from what I gather you are using FOP to generate a TIFF file. How are you using FOP to generate the TIFF, as I do not see it as one of the output options on the website? In either case, you may have to do some post-processing on the image to reduce the image size. -Original Message- From: Gergely Hajdu [mailto:[EMAIL PROTECTED] Sent: 27 November, 2003 10:24 To: [EMAIL PROTECTED] Subject: RE: Shrink size of images. Sorry,I don't really understand this. I get the image after I've ran FOP, i.e I don't have the image before and can therefore not manipulate it. My input to FOP is just a XSL-FO formatted template. Thanks for taking time helping me. /Gergely -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 1:46 PM To: [EMAIL PROTECTED] Subject: Re: Shrink size of images. The only way to reduce the image size is to do it manually using image manipulation programs before running FOP. FOP embeds all images "as is". FOP might provide functions like that in the future but there are currently no plans. On 25.11.2003 09:55:26 Gergely Hajdu wrote: > I am using the org.apache.fop.apps.Driver class and a renderer to > render TIFF-images. My problem is that the images are to big (in > bytesize). I am using maximum compression when rendering the images. > > I wonder, is there any classes in org.apache.fop where I can define > color-depth, number of colours etc. etc. for the rendered image, so > the size will be smaller ? > > I am not so familiar with graphics, there are maybe other settings I > can do > to > reduce the image-size ? Jeremias Maerki - 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] --- - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shrink size of images.
I think these has been some confusion, but from what I gather you are using FOP to generate a TIFF file. How are you using FOP to generate the TIFF, as I do not see it as one of the output options on the website? In either case, you may have to do some post-processing on the image to reduce the image size. -Original Message- From: Gergely Hajdu [mailto:[EMAIL PROTECTED] Sent: 27 November, 2003 10:24 To: [EMAIL PROTECTED] Subject: RE: Shrink size of images. Sorry,I don't really understand this. I get the image after I've ran FOP, i.e I don't have the image before and can therefore not manipulate it. My input to FOP is just a XSL-FO formatted template. Thanks for taking time helping me. /Gergely -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 1:46 PM To: [EMAIL PROTECTED] Subject: Re: Shrink size of images. The only way to reduce the image size is to do it manually using image manipulation programs before running FOP. FOP embeds all images "as is". FOP might provide functions like that in the future but there are currently no plans. On 25.11.2003 09:55:26 Gergely Hajdu wrote: > I am using the org.apache.fop.apps.Driver class and a renderer to > render TIFF-images. My problem is that the images are to big (in > bytesize). I am using maximum compression when rendering the images. > > I wonder, is there any classes in org.apache.fop where I can define > color-depth, number of colours etc. etc. for the rendered image, so > the size will be smaller ? > > I am not so familiar with graphics, there are maybe other settings I > can do > to > reduce the image-size ? Jeremias Maerki - 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] --- - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: attribute-set
An xsl:attribute-set must always be a child of the xsl:stylesheet element. This is part of th xslt specification, which is different from the fo specification. You must then correctly adjust your xpaths in your xsl:value-of statemen to select the correct values. I would think the error you are getting below is that it is creating an attribute set, but with invalid values. You need to run this through an xslt processor outside of fop to separate your xslt issues from fo issues. -Original Message- From: Manuel Reyes [mailto:[EMAIL PROTECTED] Sent: 24 November, 2003 12:10 To: [EMAIL PROTECTED] Subject: RE: attribute-set I just tried moving the so that it sat directly below the first and only entry. The hierarchy with these amendments is as follows : xsl:stylesheet - xsl:output - - xsl:template - - - fo:root - - - - xsl:attribute-set - - - - fo:layout-master-set - - - - - fo:simple-page-master - - - - fo:page-sequence - - - - - fo:flow - - - - - - BLOCKS ETC ETC Unfortunately this resulted in exactly the same problem as before (where the was defined directly above the block that used it. If I take the any higher in the xsl hierarchy I get the following errors in FOP : file:///E:/xsl-fo/attribute-set-test.xsl; Line 6; Column 37; font-size has an illegal attribute: {1} file:///E:/xsl-fo/attribute-set-test.xsl; Line 7; Column 39; font-weight has anillegal attribute: {1} file:///E:/xsl-fo/attribute-set-test.xsl; Line 8; Column 38; text-align has an illegal attribute: {1} Therefore the set isn't defined and everything uses default/defined settings. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: attribute-set
It looks like you have the xsl:attribute-set as a child of the fo:flow. I believe it needs to be a child of the root document to work correctly. -Original Message- From: Manuel Reyes [mailto:[EMAIL PROTECTED] Sent: 24 November, 2003 11:37 To: [EMAIL PROTECTED] Subject: RE: attribute-set Well I did as you suggested and ran the files through xalan I have included the data files and the xalan outputs below. What seems to be happening is that when FOP/XALAN processes the files rather then but the parameters into the fo:block that calls them it insert into the fo:flow section, so if I do not define an attribute on another block it is overridden with the attribute-set parameters. TEST USING ATTRIBUTE SET LEFT ALIGN LEFT ALIGN / BOLD RIGHT ALIGN RIGHT ALIGN / BOLD / 20pt FONT 10pt bold right TEST USING ATTRIBUTE SET LEFT ALIGN LEFT ALIGN / BOLD RIGHT ALIGN / BOLD RIGHT ALIGN / BOLD / 20pt FONT TEST USING ATTRIBUTE SET LEFT ALIGN LEFT ALIGN / BOLD RIGHT ALIGN / BOLD RIGHT ALIGN / BOLD / 20pt FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Merging XML and FO files
No it should work as written. Because when the xslt processor is the template that matches on tubby, its context is its tubby node. So you just need to select the value of the name child -Original Message- From: Manuel Reyes [mailto:[EMAIL PROTECTED] Sent: 20 November, 2003 13:35 To: [EMAIL PROTECTED] Subject: RE: Merging XML and FO files That's an interesting way of doing this, and will probably come in handy for the documents I need to produce. Thanks a lot. To get the code to work I needed to change this slightly: Name : / Colour : What I did find is that this only prints the first tubby value found inside data/repeater. Is there a way to get all the values (I did notice that I could use for-each inside the xsl:template to do this) Regards Manuel -Original Message- From: Chris Adams [mailto:[EMAIL PROTECTED] Sent: 20 November 2003 12:11 To: [EMAIL PROTECTED] Subject: RE: Merging XML and FO files You could have also done it like Name : / Colour : -Original Message- From: Manuel Reyes [mailto:[EMAIL PROTECTED] Sent: 20 November, 2003 12:08 To: [EMAIL PROTECTED] Subject: RE: Merging XML and FO files For anybody who may be searching this list in trying to find the answers to the questions I am asking, this is how it is done : XML File : Dipsy Green Laalaa Red Po Purple XSL File : Name : / Colour : This will generate the following pdf : Name : Dipsy / Colour : Green Name : Laalaa / Colour : Red Name : Po / Colour : Purple Once again thanks to all those who replied -Original Message- From: Manuel Reyes Sent: 20 November 2003 11:36 To: [EMAIL PROTECTED] Subject: RE: Merging XML and FO files That's great, thanks a lot for those files they more or less cover everything I needed to know. One small thing though, due to the nature of the documents I am creating the ability to create "intelligent" tables is essential. As an example I have a table called "foos" in which all my foos are listed, the data being held in a database. Now as the total of foos I have increases (or decreases), I will need to regenerate the table (PDF) and this table needs to look professional. So I need something that will allow me to create dynamic tables that will only contain the amount of rows I need to add the details of the foos in the database. I had a look around on http://www-106.ibm.com/developerworks/xml/ I found some information about basic merging, but nothing on dynamic merges. -Original Message- From: Manjush G. Menon [mailto:[EMAIL PROTECTED] Sent: 20 November 2003 06:45 To: [EMAIL PROTECTED] Subject: Fw: Merging XML and FO files Iam sorry the about the missed attachment. -- Manjush G Menon/"\ASCII Ribbon Campaign [EMAIL PROTECTED] \ /Respect for open standards FSC Consultant X No HTML/RTF in email FSC SGB Governing body member / \No M$ Word docs in email - Original Message - From: "Manjush G. Menon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 20, 2003 9:18 AM Subject: Re: Merging XML and FO files > > Hi, > > Iam using FOP in a similar scenario. As Charles said, its XSLT that you need > > Please try out the XML/XSL:FO attached. > > -- > Thanks > Manjush > > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, November 19, 2003 11:59 PM > Subject: RE: Merging XML and FO files > > > > The instructions at this link > (http://xml.apache.org/fop/running.html#standalone-start) seem pretty clear to > me. I think the piece you are missing is an XSLT stylesheet to convert your XML > to XSL-FO. > > -- > > Charles Knell > > [EMAIL PROTECTED] - email > > > > > > > > -Original Message- > > From: Manuel Reyes <[EMAIL PROTECTED]> > > Sent: Wed, 19 Nov 2003 17:51:51 - > > To: <[EMAIL PROTECTED]> > > Subject: Merging XML and FO files > > > > Hello all, > > > > I am currently working on an application that will pull data values from a > database and place these into an XML file. The resulting XML file is then to be > merged with an FO template file and the result would be used to generate a PDF > > > > The reason for the mail, is that I wanted to get opinions on the best way to > go about doing this. In my minds eye I have the following idea : > > > > XML File (containing data values) : > > > > > > abc > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional command
RE: Merging XML and FO files
You could have also done it like Name : / Colour : -Original Message- From: Manuel Reyes [mailto:[EMAIL PROTECTED] Sent: 20 November, 2003 12:08 To: [EMAIL PROTECTED] Subject: RE: Merging XML and FO files For anybody who may be searching this list in trying to find the answers to the questions I am asking, this is how it is done : XML File : Dipsy Green Laalaa Red Po Purple XSL File : Name : / Colour : This will generate the following pdf : Name : Dipsy / Colour : Green Name : Laalaa / Colour : Red Name : Po / Colour : Purple Once again thanks to all those who replied -Original Message- From: Manuel Reyes Sent: 20 November 2003 11:36 To: [EMAIL PROTECTED] Subject: RE: Merging XML and FO files That's great, thanks a lot for those files they more or less cover everything I needed to know. One small thing though, due to the nature of the documents I am creating the ability to create "intelligent" tables is essential. As an example I have a table called "foos" in which all my foos are listed, the data being held in a database. Now as the total of foos I have increases (or decreases), I will need to regenerate the table (PDF) and this table needs to look professional. So I need something that will allow me to create dynamic tables that will only contain the amount of rows I need to add the details of the foos in the database. I had a look around on http://www-106.ibm.com/developerworks/xml/ I found some information about basic merging, but nothing on dynamic merges. -Original Message- From: Manjush G. Menon [mailto:[EMAIL PROTECTED] Sent: 20 November 2003 06:45 To: [EMAIL PROTECTED] Subject: Fw: Merging XML and FO files Iam sorry the about the missed attachment. -- Manjush G Menon/"\ASCII Ribbon Campaign [EMAIL PROTECTED] \ /Respect for open standards FSC Consultant X No HTML/RTF in email FSC SGB Governing body member / \No M$ Word docs in email - Original Message - From: "Manjush G. Menon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 20, 2003 9:18 AM Subject: Re: Merging XML and FO files > > Hi, > > Iam using FOP in a similar scenario. As Charles said, its XSLT that you need > > Please try out the XML/XSL:FO attached. > > -- > Thanks > Manjush > > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, November 19, 2003 11:59 PM > Subject: RE: Merging XML and FO files > > > > The instructions at this link > (http://xml.apache.org/fop/running.html#standalone-start) seem pretty clear to > me. I think the piece you are missing is an XSLT stylesheet to convert your XML > to XSL-FO. > > -- > > Charles Knell > > [EMAIL PROTECTED] - email > > > > > > > > -Original Message- > > From: Manuel Reyes <[EMAIL PROTECTED]> > > Sent: Wed, 19 Nov 2003 17:51:51 - > > To: <[EMAIL PROTECTED]> > > Subject: Merging XML and FO files > > > > Hello all, > > > > I am currently working on an application that will pull data values from a > database and place these into an XML file. The resulting XML file is then to be > merged with an FO template file and the result would be used to generate a PDF > > > > The reason for the mail, is that I wanted to get opinions on the best way to > go about doing this. In my minds eye I have the following idea : > > > > XML File (containing data values) : > > > > > > abc > > - > 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] --- - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Scaling images
Richard, How are you setting the size. Can you post the external-image tag you are using. Only Width and Height attributes are supported in FOP. Chris -Original Message- From: Richard Sweeney [mailto:[EMAIL PROTECTED] Sent: 19 November, 2003 17:05 To: '[EMAIL PROTECTED]' Subject: Scaling images Sorry if this question is asked alot but I'm having difficulty with images. I was given an example layout by someone to turn into a PDF using FOP. I took the image out of the Word Document they sent me and added it as an external graphic to my fo file. However when it is generated it is slightly bigger (about 20% or so) than the original and it looks jagged. Is there anything I can do about this? I've tried specifying its size based upon the its dimensions but this makes no difference. Any comments would be appreciated. Thanks Richard Sweeney - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rendering of GIF Images.
Title: Rendering of GIF Images. I'm not sure if this is a bug or just my misunderstanding of how the rendering of GIF images work. However when I have a GIF that has a colour table where there are two items in the table with the same RGB colour. However one of the items is marked as the transparent colour. E.g. I have two black colours in my table, and the first black index is set as the transparent colour. When this is rendered into a PDF, all black items are rendered as transparent even though they use the black index that is not the transparent colour. Is this the expected behaviour, is the gif file incorrectly created ie can you not have two indexes with the same colour, or is it a bug with FOP. Thanks for your help. Chris Adams Web Developer Reuters Research Ltd - Solutions Developments 85 Fleet Street London EC4P 4AJ Direct Line: +44 20 7542 0543 Direct Fax: +44 20 7542 0560 Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. --- - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.
RE: Problem with inserting images
Patrick, It is my understanding the FOP does not support the content-height and content-width attributes, only width and height. Not sure if this will solve you problem though. Chris -Original Message- From: Patrick JUSSEAU [mailto:[EMAIL PROTECTED] Sent: 13 November, 2003 09:23 To: [EMAIL PROTECTED] Subject: Problem with inserting images Hi everyone, I just started using XSL-FO and fop. I am trying to generate a pdf file which contains jpg files. Those images are always inserted in a parent component (I guess something like a viewport). I need to set a height for this viewport (view_height). I need to be able to display them in the following 2 cases: case 1: the image's height is greater than view_height. In that case the image has to scale in order to fit in its view_height. I succeeded in doing that. I did something like (where 100px is the height of my viewport): case 2: if view_height is greater than the image's height, then I want to display the image at its actual size and display it at the center of its viewport. Doing something like this does not work: | __ | | | | | | | image | | | ___ | |___| What I am missing? Thanks for any help. Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Black Text Missing in GIF's rendered in PDF's
Thanks for your reply. I think it is related to the issue that transparent GIF's appear with a black background when printed from the PDF. I'm looking into whether the GIF file itself is corrupt, and is causing the problem, but would appreciate anyone else's experience on this issue. Chris. -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: 11 November, 2003 19:06 To: [EMAIL PROTECTED] Subject: Re: Black Text Missing in GIF's rendered in PDF's Chris Adams wrote: > An issue was raised on here before regarding the rendering of GIF > images into a PDF, in that anything that was black did not appear in > the PDF. > > I could not find a resolution to the problem in the archieves, so does > anyone know if it was resolved or had a similar experience. It's hard to say what happens here without actually getting such a GIF. One possiblity is that the black color actually isn't black, perhaps transparent. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Black Text Missing in GIF's rendered in PDF's
Hi, An issue was raised on here before regarding the rendering of GIF images into a PDF, in that anything that was black did not appear in the PDF. I could not find a resolution to the problem in the archieves, so does anyone know if it was resolved or had a similar experience. Any help would be appreciated. Chris --- - Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]