Steffanina, Jeff | 7 Oct 20:52

Using CHOOSE to control image in region-body


FOP 0.95 / Redhat Linux / Java 1.5

When the tag "send-fax" does not exist print the lilly, when send-fax=Y, print the pebble.  I always get the Lilly.  Can you determine why?

<xsl:choose>
  <xsl:when test="./send-fax='Y'">
       <!--   region-before means region before the body(top 1/3 of folio   -->
       <fo:region-before extent="3.0in"
                    background-repeat="no-repeat"
                    margin-top=".5in"
                    background-image="url('java/images/Pebble.jpg')"
                    background-position-vertical="bottom"
                    display-align="after" />
  </xsl:when>
  <xsl:otherwise>
      <fo:region-before extent="3.0in"
                    background-repeat="no-repeat"
                    margin-top=".5in"
                    background-image="url('java/images/Lilly.jpg')"
                    background-position-vertical="bottom"
                    display-align="after" />
  </xsl:otherwise>
</xsl:choose>



Jeff

csanders | 7 Oct 18:32

Using ZipStream with a Tomcat Servlet OutputStream

Hi!

I'm trying to stream a zipped PDF using FOP with a ZipOutputStream.  I'm 
able to pass a GZipOutputStream to fopFactory.newFop() method and it 
works great, using a ZipStream however I'm getting

Archive:  s.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of s.zip or
        s.zip.zip, and cannot find s.zip.ZIP, period.

when trying to unzip it.  Looking at the file it looks like it is 
compressing so I'm not totally sure where the problem lies, I'm 
wondering if anyone has had this problem before ?

Thanks!
Charlie

--

-- 

Thanks,
Charlie
Ulrich Mayring | 6 Oct 19:55

Fedora 9 and fop

Hi all,

I have recently upgraded my computer to fedora 9 (was fedora core 4) and 
suddenly fop doesn't work anymore. The X server is running, but I also tried 
the -Djava.awt.headless=true trick, which didn't work either.

Whenever I try to render a page, I am getting this in the logfile:

building formatting object tree
[1]
[1]

And then fop hangs.

On other machines the output looks like this:

building formatting object tree
[1]
table-layout=auto is not supported, using fixed!
Last page-sequence produced 1 pages.
Parsing of document complete, stopping renderer
Initial heap size: 20749Kb
(): Current heap size: 19121Kb
Total memory used: -1627Kb
Memory use is indicative; no GC was performed
These figures should not be used comparatively
(): Total time used: 388ms
Pages rendered: 1
Avg render time: 388ms/page

This applies to JDK 1.6 and fop 0.20.5, but I guess newer versions as well, 
since they also require X support via Batik, no?

I am guessing that some X libraries weren't installed, is there any 
information which ones are actually needed?

Many thanks in advance,

Ulrich
Philip V | 6 Oct 13:44

Layout Question -


Hi,

I have a requirement to do the following:

Text will be on the right-hand pages (even) with supporting illustration on
the facing left-hand pages (odd).

Is this possible using xsl-fo? I am generating the FO from xslt. Text and
graphics can be just about any where in the markup, so I am having trouble
trying to figure this out.

Thanks in advance,

Phil

--

-- 
View this message in context: http://www.nabble.com/Layout-Question---tp19836323p19836323.html
Sent from the FOP - Users mailing list archive at Nabble.com.
nancy_b | 5 Oct 15:41

Background image as a footer separator


Hi guys,

I am trying to put an image as a footer separator. But the problem is that
it does not cover the whole page width (not including the margins of
course). Could you please advise me what I do wrong?

Here is the code:
<xsl:param name="footer.path" 
  select="'../scripts/images/footer.png'"/>

<xsl:template name="foot.sep.rule">
  <xsl:param name="pageclass"/>
  <xsl:param name="sequence"/>
  <xsl:param name="gentext-key"/>

  <xsl:if test="$footer.rule != 0">
      <xsl:attribute name="background-image">
      <xsl:call-template name="fo-external-image">
	<xsl:with-param name="filename" select="$footer.path"/>
      </xsl:call-template>
    </xsl:attribute>
  <!--<xsl:attribute name="background-attachment">fixed</xsl:attribute>-->
  <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
  <xsl:attribute name="background-position-horizontal">left</xsl:attribute>
  <xsl:attribute name="background-position-vertical">center</xsl:attribute>
  <xsl:attribute name="content-width">80pt</xsl:attribute>
  <xsl:attribute name="content-height">1cm</xsl:attribute>
  </xsl:if>
</xsl:template>

Thanks in advance!

--

-- 
View this message in context: http://www.nabble.com/Background-image-as-a-footer-separator-tp19824703p19824703.html
Sent from the FOP - Users mailing list archive at Nabble.com.
danyolgiax | 5 Oct 14:03

Display xml embedded image


Hi all I've this xml with an embedded image:

 <Immagini>
    <FileBean>
      <FileRawData>/9j/4AAQSkZJRgABAQEASABIAAD/2wBDA...

I'm trying to display it with something like this without results:

<fo:block>
 <fo:instream-foreign-object>

                    <xsl:value-of select="Immagini/FileBean/FileRawData"/>

        </fo:instream-foreign-object>
</fo:block>

can u help me?

Dox
--

-- 
View this message in context: http://www.nabble.com/Display-xml-embedded-image-tp19823943p19823943.html
Sent from the FOP - Users mailing list archive at Nabble.com.
nancy_b | 5 Oct 00:24

Adding an icon before a chapter/section title


Hi guys,

Using Docbook XML/XSL and FOP 0.94 on Linux Debian.

Has any of you tried to add an icon before a chapter/section title? Asked
the same question on the Docbook forum, but no answer.

Thank you all in advance!
Nancy
--

-- 
View this message in context: http://www.nabble.com/Adding-an-icon-before-a-chapter-section-title-tp19818478p19818478.html
Sent from the FOP - Users mailing list archive at Nabble.com.
Steffanina, Jeff | 3 Oct 16:24

Trying to enlarge a background image

FOP-0.95
Redhat Linux

I have a background image in the "region-body".  It looks great and prints perfectly.

However, I just noticed that I want the background image to occupy more space in the region-body (just make it bigger).
I do not see where I am able to specify the size of the image.  Do I have to manipulate the .png/.jpg  outside of FOP  or can I set the height/width inside FOP and then it will automatically resize the image?



Jeff

David Gerdt | 2 Oct 22:54

leader not rendered in pcl

Just want to confirm what I'm seeing and perhaps get some insight before logging a bug. I just now noticed that the leaders I'm using as horizontal rules in some places are rendered in PDF but not in PCL. The *space* is being consumed by the leader, but the actual line is not being rendered. Same results on 0.95 and trunk.
 
Can anyone else confirm this? Did I miss some documentation explaining the lack of leader support in pcl? Have I missed something in my fo file?
 
Thanks,
Dave
Attachment (leader.fo): application/octet-stream, 1182 bytes
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
Steffanina, Jeff | 2 Oct 17:51

Trying to add a footer


Hello All,
FOP 0.95
Linux

I am trying to add a footer to my functioning style sheet.  The footer will include a page number and some fixed text.  I have added the code below and the following error is generated:

SEVERE: javax.xml.transform.TransformerException: attribute-set named footer does not exist

What am I missing?


….
….
….
<fo:region-after region-name="footer-main" extent="1in"/>
…..
….
….
….
<fo:static-content flow-name="footer-main">
  <fo:block xsl:use-attribute-sets="footer">
  <fo:page-number/>
  </fo:block>
</fo:static-content>

Jeff

j1997 | 2 Oct 15:52

Upgrade 0.20.5 to 0.95: all texts are shifted to top!


After upgrading to FOP 0.95, all texts (in table cells) are shifted towards
the top (the table cell's top border). It looks like the old FOP 0.20.5
centered the text in a cell by the capital letters (i.e. a capital letter is
exactly vertically centered) and the new FOP 0.95 centers text vertically by
the lower letters. Resulting in all texts being shifted upwards. I found a
workaround by inlining each text:

                      <fo:inline alignment-adjust="central"> 
                          <xsl:value-of select="."/> 
                      </fo:inline> 

Then, the text looks like in the old FOP 0.20.5: it's vertically centered by
the capital letters. Of course, this is an ugly workaround and there's
probably a global setting for this. But why does FOP 0.95 do this? And how
can I change it at one (single) place - and not for each text in table cell?
--

-- 
View this message in context: http://www.nabble.com/Upgrade-0.20.5-to-0.95%3A-all-texts-are-shifted-to-top%21-tp19779752p19779752.html
Sent from the FOP - Users mailing list archive at Nabble.com.

Gmane