You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Afshartous, Nick" <ni...@proactcorp.com> on 2003/04/02 19:30:40 UTC

list item label not appearing when using fop-0_20_2_maintain

I checked out from CVS using the tag fop-0_20_2_maintain
to get the fix for rigth-aligning page numbers in a 
TOC (works great!).

However, one thing I noticed is that the bullets for list items
are no longer appearing (was working with 0.20.4).  

Can someone please advise ? FO snippet follows.  Thanks.

    Nick

<fo:list-block provisional-distance-between-starts="12pt"
provisional-label-separation="1em" padding-left=".5in">
<fo:list-item margin-left="0.2in" space-after="0.5em" space-before="0.5em">
<fo:list-item-label end-indent="label-end()">
<fo:block>
<fo:character character="â ¢"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:inline font-weight="bold">The Medical POS Plan (POS) Option:</fo:inline>
The managed care
point-of-service (POS) option allows you to receive care from
in-network or out-of-network providers. You select a Primary Care
Physician (PCP) from the Medical POS Plan Claims Administrator POS
network. Your PCP provides preventive and routine care and refers
you to specialists within the POS network, if necessary. If you
receive care from POS network providers, your out-of-pocket costs
are less than if you receive care from out-of-network providers.
Medical POS Plan Claims Administrator will pay the in-network
provider directly. You do not need to wait for reimbursement when
you visit a POS provider. You must pay an annual deductible. The
Medical POS Plan Option is available in many-but not all-geographic
locations.<fo:block/>
<fo:block/>
</fo:block>
</fo:list-item-body>
</fo:list-item>


-----Original Message-----
From: Afshartous, Nick [mailto:nick.afshartous@proactcorp.com]
Sent: Tuesday, April 01, 2003 4:29 PM
To: 'fop-user@xml.apache.org'
Subject: fix for page number alignment in TOC





> -----Original Message----- 
> From: Jeremias Maerki [mailto:dev.jeremias@greenmail.ch] 
  
> You're out of luck. The snapshots represent the development 
> code for the 
> upcoming FOP 1.0. You need to download the code from CVS. 
Thanks, I downloaded the latest code from CVS and got the same 
error.  Should I be referencing a tag/version ? 
   Nick 



> On 01.04.2003 21:36:52 Afshartous, Nick wrote: 
> > 
> > > Afshartous, Nick wrote: 
> > > > I know that the issue of right-justifying 
> > > > page numbers in a TOC is a documented 
> > > > limitation 
> > > > 
> > > >     http://xml.apache.org/fop/faq.html#page_number_align 
> > > > 
> > > > but I was wondering if anyone has managed to work 
> > > > around this.  In other words has anyone found 
> > > > a technique for making the page numbers 
> > > > look right-justified in a TOC ?  Thanks 
> > > > for any info. 
> > 
> > > From: J.Pietschmann [mailto:j3322ptm@yahoo.de] 
> > > This is fixed in CVS. 
> > 
> > I built a JAR using xml-fop_20030401173520.tar.gz 
> > but then got the exception below.  The only change 
> > was to add the call to Driver.initialize)). 
> > 
> > This error did not occur with fop-0.20.4.jar.   
> > 
> > Please advise, thanks. 
> > 
> >     Nick 
> > 
> > java.lang.NullPointerException 
> >     at 
> org.apache.fop.pdf.PDFDocument.outputHeader(PDFDocument.java:849) 
> >     at 
> > 
> org.apache.fop.render.pdf.PDFRenderer.startRenderer(PDFRendere 
> r.java:297) 
> >     at 
> > 
> org.apache.fop.apps.LayoutHandler.startDocument(LayoutHandler. 
> java:182) 
> >     at 
> > 
> org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:182) 
> >     at 
> > org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:459) 
> >     at org.apache.fop.apps.Driver.render(Driver.java:617) 
> >     at org.apache.fop.apps.Driver.run(Driver.java:664) 
> >     at com.proactcorp.docgen.DocGen.fo2pdf(DocGen.java:98) 
> >     at com.proactcorp.docgen.DocGen.main(DocGen.java:74) 
> > Exception in thread "main" 
> > 
> > 
> >  private static ByteArrayOutputStream fo2pdf(Document foDocument) { 
> > 
> >         DocumentInputSource fopInputSource = new 
> DocumentInputSource( 
> >                                                          
> foDocument); 
> >         ByteArrayOutputStream out = new 
> ByteArrayOutputStream();        
> >         Driver driver = new Driver(fopInputSource, out); 
> >         driver.initialize(); 
> >         driver.setRenderer(Driver.RENDER_PDF); 
> >     
> >         try { 
> >            
> >             driver.run(); 
> > 
> >         } 
> >         catch (java.io.IOException e) { 
> >             System.out.println("DocGen: IOException"); 
> >         } 
> >         catch (org.apache.fop.apps.FOPException e) { 
> >             System.out.println("DocGen: FOPException"); 
> >         } 
> > 
> >         return out; 
> >         
> >     } 
> 
> 
> 
> Jeremias Maerki 
> 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org 
> For additional commands, e-mail: fop-user-help@xml.apache.org 
> 

Re: list item label not appearing when using fop-0_20_2_maintain

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Afshartous, Nick wrote:
> I checked out from CVS using the tag fop-0_20_2_maintain
> to get the fix for rigth-aligning page numbers in a 
> TOC (works great!).
> 
> However, one thing I noticed is that the bullets for list items
> are no longer appearing (was working with 0.20.4).  
...
> <fo:character character="â ¢"/>

Hmm. Try without the fo:character here (you can put the Unicode
character directly into the block).

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org