Re: FOP 0.9.5 and Too many Files Open...image Files in my case...
Hi Durga, Before trying to resolve this particular issue, are you able to upgrade to 1.0? It is possible that your particular issue has been resolved after 0.95. There are threads on the mailing list that report similiar problems, e.g. http://old.nabble.com/Too-many-open-images--td25664263.html#a25664263 http://old.nabble.com/Keeping-memory-usage-low-when-FOP-is-not-running-and-avoid-open-file-handles-after-FOP-is-run-td29202650.html#a29205862 Let me know if you want further help Pete On Wed, Nov 17, 2010 at 3:49 PM, Nuvvula, Durga dnuvv...@atxg.com wrote: Hi, I am using the FOP 0.9.5 for my pdf generation. I have made sure that I have closed all the input streams that I have opened for pdf generation. I am not opening the image files(.tiff,.gif,.png etc) directly but I am using them in my XSL. I have made sure that my xsl stream is closed properly in the finally block. When I track the number of open files through lsof, I am observing the image files(.tiff,.gif,.png etc) not closed because of this it is reaching the limit of number of open files and have to restart the server. Our server has the configuration of open files to 1024. Do I need to do anything extra for closing the image files that have opened by the FOP internally? Any help or suggestions towards the resolution of the problem is appreciated. Thanks In Advance. Best Regards, Durga Prasad 46943895956 - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: How to tell line# in input file that is generating error
Hi Steve, I am not familiar with the DITA Open Toolkit, but to get line numbers you need to explicitly pass fo to FOP and not the combination of xml and the xslt that FOP initially transforms to fo. Maybe DITA provides a way to get the intermediate fo so that you can run it through fop yourself. Pete On Thu, Nov 18, 2010 at 2:19 AM, Steve Fogel steve.fo...@oracle.com wrote: Hi, all… With Apache FOP 0.95 (the one that comes with the DITA Open Toolkit), I’m getting many error messages like this: [fop] Nov 17, 2010 3:58:21 PM org.apache.fop.fo.properties.LengthRangeProperty checkConsistency [fop] SEVERE: forcing opt to min in LengthRange How can I tell which line # in the FO input file is generating the error? I’ve tried debug mode and verbose mode, but neither seems to do much. Any tricks? Thanks Steve P.S. – I know what the message means. It’s just that my FO input file is over 50K lines, so it’s hard to find the culprit. -- [image: Oracle] http://www.oracle.com/ Steve Fogel | Information Architect, Oracle Database Phone: +1 6505064914 | Mobile: +1 4153098660 500 Oracle Parkway, M/S 4op1126 | Redwood Shores, CA 94065 [image: Green Oracle] http://www.oracle.com/commitment Oracle is committed to developing practices and products that help protect the environment - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org image002.gifimage001.gif
Re: switching column-count
Hi Rob, While in theory it’s possible to use page masters with different column counts, in practice it’s not supported by FOP yet. Sorry, Vincent On 14/11/10 19:32, Rob Sargent wrote: Using fop-0.95. Can move forward if needed. On 11/14/2010 12:31 PM, Rob Sargent wrote: Is it possible to change the column count within a single flow with each new simple-page master? fo:page-sequence-master master-name=document-sequence !-- one column region-body -- fo:single-page-master-reference master-reference=chapter-open / !-- two column region-body -- fo:single-page-master-reference master-reference=all-text-page-2 / !-- one column region-body -- fo:single-page-master-reference master-reference=three-side-page-3 / !-- two column region-body -- fo:single-page-master-reference master-reference=table-page-4 / !-- two column region-body -- fo:single-page-master-reference master-reference=table-page-5 / !-- one column region-body -- fo:single-page-master-reference master-reference=three-side-page-6 / /fo:page-sequence-master master-name=document-sequence - 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
Re: Table and block-container borders 0.93 vs 0.95/1.0
Hi Alex, On 18/11/10 06:57, Alex Zepeda wrote: Hi all, I've been updating some of my templates to work with FOP 1.0. I've noticed that the following xsl does not produce the same results with FOP 0.95 or 1.0 that it does with 0.93. Now, I know that 0.93 didn't support collapsing table borders... but that aside, the outer table border on 0.93 is aligned with the block-container border, but is mysteriously set about 1/4 point below the table border in 0.95/1.0 Is this intentional behaviour? Yes. In the collapsing border model half of the border resides in the table’s margin. And since in your example its margin was left to zero, this means that half of its border sticks out of the parent block-container, and encroaches upon the other block-container’s border rectangle. If so, is there some other way than futzing with the margins manually to achieve the old-style results? Set the border-collapse property to ‘separate’, or set a top-margin of half the table border. That may not be so simple if you have fancy borders on the cells but, in most cases, this is easy to determine. ?xml version=1.0 encoding=ISO-8859-1? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master page-width=8.5in page-height=11.0in master-name=page-master fo:region-body / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=page-master fo:flow flow-name=xsl-region-body fo:block-container top=0.25in left=1in width=3.0in height=1in position=fixed padding=0pt margin=0in border=0.5pt solid lightblue fo:blockTEXT HERE/fo:block /fo:block-container fo:block-container border=0pt top=0.25in left=1.75in width=3.0in height=1in position=fixed fo:table border=0.5pt solid black position=absolute fo:table-column column-width=0.721in/ fo:table-body fo:table-row fo:table-cell border=0.5pt solid black height=0.324in fo:blockCELL/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block-container /fo:flow /fo:page-sequence /fo:root - alex HTH, Vincent - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: switching column-count
Yes, thanks for the confirmation Vincent. How much interest do you feel there would be for such support? Level of difficulty? Pointers? Interestingly, it is almost implemented. One does see two columns on the second page in my example, it's just that they're the width as defined in the opening one-column layout. Btw, I've mananged to get a mix by having the opening 1-column in a 'block span=all' trick posted elsewhere, then a one column of width = width of one-of-two-columns. Seems to be working... On 11/18/2010 05:04 AM, Vincent Hennebert wrote: Hi Rob, While in theory it’s possible to use page masters with different column counts, in practice it’s not supported by FOP yet. Sorry, Vincent On 14/11/10 19:32, Rob Sargent wrote: Using fop-0.95. Can move forward if needed. On 11/14/2010 12:31 PM, Rob Sargent wrote: Is it possible to change the column count within a single flow with each new simple-page master? fo:page-sequence-master master-name=document-sequence !-- one column region-body -- fo:single-page-master-reference master-reference=chapter-open / !-- two column region-body -- fo:single-page-master-reference master-reference=all-text-page-2 / !-- one column region-body -- fo:single-page-master-reference master-reference=three-side-page-3 / !-- two column region-body -- fo:single-page-master-reference master-reference=table-page-4 / !-- two column region-body -- fo:single-page-master-reference master-reference=table-page-5 / !-- one column region-body -- fo:single-page-master-reference master-reference=three-side-page-6 / /fo:page-sequence-master master-name=document-sequence - 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 - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: How to tell line# in input file that is generating error
Hi Restating the question: Is there an option I can set that will have FOP either print out a line # with this range error message, or print out the FO input file as it processes it along with error messages so I can see where the errors occur? Thx for your reply. I am already doing what you suggest: Getting the intermediate FO-only file and passing it through FOP. These range error messages come out, but no line numbers are associated with them so theres no way to tell which FOs in the file are causing them. There are 100s of occurrences of the following in FOP 0.95 [fop] Nov 17, 2010 3:58:21 PM org.apache.fop.fo.properties.LengthRangeProperty checkConsistency [fop] SEVERE: forcing opt to min in LengthRange Thanks!! Steve -- Steve Fogel | Information Architect, Oracle Database Phone: +1 6505064914 | Mobile: +1 4153098660 500 Oracle Parkway, M/S 4op1126 | Redwood Shores, CA 94065 Oracle is committed to developing practices and products that help protect the environment From: Peter Hancock [mailto:peter.hanc...@gmail.com] Sent: Thursday, November 18, 2010 2:49 AM To: fop-users@xmlgraphics.apache.org Subject: Re: How to tell line# in input file that is generating error Hi Steve, I am not familiar with the DITA Open Toolkit, but to get line numbers you need to explicitly pass fo to FOP and not the combination of xml and the xslt that FOP initially transforms to fo. Maybe DITA provides a way to get the intermediate fo so that you can run it through fop yourself. Pete On Thu, Nov 18, 2010 at 2:19 AM, Steve Fogel steve.fo...@oracle.com wrote: Hi, all With Apache FOP 0.95 (the one that comes with the DITA Open Toolkit), Im getting many error messages like this: [fop] Nov 17, 2010 3:58:21 PM org.apache.fop.fo.properties.LengthRangeProperty checkConsistency [fop] SEVERE: forcing opt to min in LengthRange How can I tell which line # in the FO input file is generating the error? Ive tried debug mode and verbose mode, but neither seems to do much. Any tricks? Thanks Steve P.S. I know what the message means. Its just that my FO input file is over 50K lines, so its hard to find the culprit. -- Steve Fogel | Information Architect, Oracle Database Phone: +1 6505064914 | Mobile: +1 4153098660 500 Oracle Parkway, M/S 4op1126 | Redwood Shores, CA 94065 Oracle is committed to developing practices and products that help protect the environment - 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
static content ignored
Using fop-0.95, I appear to lose a region-before for a particular page layout. The headers appear on other pages. Here are snippets from the fop.xml file generated on the way to pdf. fo:layout-master-set ... other masters ... fo:simple-page-master page-width=8.5in page-height=11in master-name=three-side-page-3 margin=0.0in 0.75in 0.375in 0.833in fo:region-body margin-right=3.6585in margin-top=0.6in column-count=1 / fo:region-before extent=0.50in name=default-left-header / fo:region-end overflow=hidden extent=3.2585in region-name=three-side-images-3 / /fo:simple-page-master ... /fo:simple-page-master fo:page-sequence-master initial-page-number=1 master-name=document-sequence fo:single-page-master-reference master-reference=chapter-open / fo:single-page-master-reference master-reference=two-up-page-2 / fo:single-page-master-reference master-reference=three-side-page-3 / fo:single-page-master-reference master-reference=all-text-page-4 / ... /fo:page-sequence-master ... begin filling statics ... fo:static-content flow-name=default-left-header fo:block background-color=silver height=0.50in line-height=0.50in text-indent=18ptrjs--/fo:block /fo:static-content But only this style of particular page master (three-side) refuses to render the content of the region before. Happens if I place an instance of this style on the right also. The headers (left and right) appear fine on other page layouts. If anyone can spot the flaw, please shout. rjs - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table and block-container borders 0.93 vs 0.95/1.0
Vincent Hennebert wrote: Set the border-collapse property to ‘separate’, or set a top-margin of half the table border. That may not be so simple if you have fancy borders on the cells but, in most cases, this is easy to determine. Ah hah. Setting border-collapse to 'separate' doesn't fix things. With 0.93, you'll get the double border that is flush with the block-container's border. With 0.95/1.0 I get the same effect as before, but with a thicker border. Setting margin-top of the blue block-container doesn't seem to change things. Adjusting the absolute position gets a bit tricky because I'm using two different units for the dimensions and borders. I've attached the PDFs from 0.93 (with no border-collapse specified / relevant) and 1.0 (with border-collapse set to separate). - alex test-0.93.pdf Description: Adobe PDF document test-1.0.pdf Description: Adobe PDF document - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
fo:list-item-label not aligned with fo:list-item-body
Hi, all With Apache FOP 0.95, for all ordered lists, Im trying to get a Helvetica list item number (fo:list-item-label) and a Palatino list item body (fo:list-item-body). Its working but the step number is not aligning with the body; the step number is about 3 pts below the first line of the body. Any idea how to get it to align? This problem is not present when the label and body fonts are both Palatino. Thx Steve -- Steve Fogel | Information Architect, Oracle Database Phone: +1 6505064914 | Mobile: +1 4153098660 500 Oracle Parkway, M/S 4op1126 | Redwood Shores, CA 94065 Oracle is committed to developing practices and products that help protect the environment - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org