Java Mailing List Archive

http://www.java2.5341.com/

Home » fop-users-digest.xmlgraphics »

fop-users Digest 3 Feb 2013 19:37:41 -0000 Issue 2647

fop-users-digest-help

2013-02-03


Author LoginPost Reply

fop-users Digest 3 Feb 2013 19:37:41 -0000 Issue 2647

Topics (messages 36231 through 36235)

Re: FOP 1.1 Processor Not Responding
 36231 by: Simon Steiner

Re: How get fixed width for inline FO ?
 36232 by: Steve Fogel
 36233 by: Manuel Mall
 36234 by: Rob Sargent
 36235 by: Rob Sargent

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: fop-users@(protected)
To unsubscribe, e-mail: fop-users-digest-unsubscribe@(protected)
For additional commands, e-mail: fop-users-digest-help@(protected)

----------------------------------------------------------------------


Attachment: fop-users_36231.eml (zipped)

Hi,

 

Does it hang if you use file paths rather than urls:

 

<fo:external-graphic src=”file.jpg”/>

 

Thanks

 

From: Neeraj [mailto:neerajiiita@gmail.com]
Sent: 01 February 2013 04:14
To: fop-users@xmlgraphics.apache.org
Subject: FOP 1.1 Processor Not Responding

 



Hi,

 

I am using FOP 1.1 RC1 through command line tool. 

 

I am using three images (Two BMP and one JPG), generated through MS-Paintbrush. When i am trying to render these images in PDF using fo:external-graphic in a block. FOP hangs and does not respond back.

 

Please find attached file for the same.

 

Images - logo.jpg, MapG.bmp, LegendG.bmp

FO file - image.fo

Config file - using a default config

 

Command line: fop -fo image.fo -c fop.xconf -pdf out.pdf

 

Please let me know that why FOP is not working for this particular combination.

 

Let me know if you need anymore input.

 

Thanks

Neeraj

 

  

 


Attachment: fop-users_36232.eml (zipped)
Hi...

Thanks for the reply.

Would the list approach you suggest work if I want to have a title, then a leader (....) then a page # in the list body?

Wondering if there isn't a simpler way to just specify a minimum width for an inline area. Below is an example of what I want to output as a list of tables.

2-7  createTable Parameters ........................... 2-61
2-8  createView Parameters ............................ 2-62
2-9  createSynonym Parameters ......................... 2-63
2-10 createProc Parameters ............................ 2-64
2-11 createPackage Parameters.......................... 2-65

You can see that the table number at the left can have a varying width, but the area needs to be fixed width so the table names are all left-aligned. FOP 1.1 seems to ignore the width property for the <fo:inline> element.

Thx

Steve




Steve Fogel | Information Architect, Oracle Database | 650.506.4914
Oracle Server Technologies Information Development
500 Oracle Parkway | M/S 4op1126 | Redwood Shores, CA 94065


-----Original Message-----
From: Terence M. Bandoian [mailto:terence@(protected)]
Sent: Friday, February 01, 2013 3:41 AM
To: fop-users@(protected)
Subject: Re: How get fixed width for inline FO ?

On 2/1/2013 2:37 AM, Steve Fogel wrote:
> Hi, all..
>
> I'd like to specify a fixed width for an inline FO with FOP 1.1. It's in a List of Tables in the front matter of a book. For each table in the list, table number area should be fixed width followed by table title.
>
> I tried this (simplified):
>
> <fo:block start-indent="3.5em">
>  <fo:basic-link internal-destination="unique_id_24">
>    <fo:inline inline-progression-dimension="6em">4-5</fo:inline>Summary of Commands
>     </fo:basic-link>
> </fo:block>
>
> I also tried using just the width property instead of inline-progression-dimension.
>
> Neither worked. Can someone help?
>
> Thx
>
> Steve


Hi, Steve-

I don't remember all the details but I did something like this when I needed fixed horizontal widths in the footer of a document:

<fo:list-block
  provisional-distance-between-starts="2.6in"
  provisional-label-separation="0">
<fo:list-item>

<fo:list-item-label end-indent="label-end()"> <fo:block></fo:block> </fo:list-item-label>

<fo:list-item-body start-indent="body-start()"> <fo:block></fo:block> </fo:list-item-body>

</fo:list-item>
</fo:list-block>

Hope it helps.

-Terence Bandoian



--colhebjaoknjogcnmaip


Attachment: fop-users_36233.eml (zipped)
> FOP 1.1 seems to ignore the width property for the <fo:inline>
element.

The width property doesn't apply to fo:inline elements it only applies
to block level elements that is formatting elements that essentially
generate a rectangular area. An <fo:inline> can begin in the middle of a
line and end a few lines further down in a completely different position
within that line. It is not rectangular in shape and from the
specification point of view it is not a block level element.

I know this doesn't help you solve your problem just trying to explain
why your current approach doesn't work.

Cheers

Manuel




Attachment: fop-users_36234.eml (zipped)

No sure why the width isn't set on the containing block, with a two
column table for the data presented

Or a column definition for the entire page master if that's more
appropriate.

You might be able to do this with just a list if you can set the label
to be your first datum but the width will definitely have to come from
the containing block.

     <fo:list-item margin-left="{$bullet-offset}"
keep-with-next="{$keeper}">
      <fo:list-item-label end-indent="label-end()">
        <fo:block font-family="ITCStoneSerifCom-Medium"
font-weight="normal" font-style="normal">
         <xsl:value-of select="$bullet-char"/><!-- YOUR
first-column-data HERE -->
        </fo:block>
      </fo:list-item-label>
      <xsl:call-template name="bullet-text"/> <!-- YOUR IN_LINE
HERE -->
     </fo:list-item>

On 02/01/2013 08:06 PM, Manuel Mall wrote:
>> FOP 1.1 seems to ignore the width property for the <fo:inline>
> element.
>
> The width property doesn't apply to fo:inline elements it only applies
> to block level elements that is formatting elements that essentially
> generate a rectangular area. An <fo:inline> can begin in the middle of a
> line and end a few lines further down in a completely different position
> within that line. It is not rectangular in shape and from the
> specification point of view it is not a block level element.
>
> I know this doesn't help you solve your problem just trying to explain
> why your current approach doesn't work.
>
> Cheers
>
> Manuel
>  
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@(protected)
> For additional commands, e-mail: fop-users-help@(protected)
>



Attachment: fop-users_36235.eml (zipped)
On 02/01/2013 08:56 PM, Rob Sargent wrote:
>
> No sure why the width isn't set on the containing block, with a two
> column table for the data presented
>
> Or a column definition for the entire page master if that's more
> appropriate.
>
> You might be able to do this with just a list if you can set the label
> to be your first datum but the width will definitely have to come from
> the containing block.
>
>      <fo:list-item margin-left="{$bullet-offset}"
> keep-with-next="{$keeper}">
>       <fo:list-item-label end-indent="label-end()">
>         <fo:block font-family="ITCStoneSerifCom-Medium"
> font-weight="normal" font-style="normal">
>          <xsl:value-of select="$bullet-char"/><!-- YOUR
> first-column-data HERE -->
>         </fo:block>
>       </fo:list-item-label>
>       <xsl:call-template name="bullet-text"/> <!-- YOUR IN_LINE
> HERE -->
>      </fo:list-item>
>
  <xsl:template name="bullet-text">
     <fo:list-item-body start-indent="body-start()">
        <fo:block line-stacking-strategy="font-height" > <!--
keep-together.within-column="always" -->
          <xsl:value-of select="text()"/>
        </fo:block>
     </fo:list-item-body>
  </xsl:template>

> On 02/01/2013 08:06 PM, Manuel Mall wrote:
>>> FOP 1.1 seems to ignore the width property for the <fo:inline>
>> element.
>>
>> The width property doesn't apply to fo:inline elements it only applies
>> to block level elements that is formatting elements that essentially
>> generate a rectangular area. An <fo:inline> can begin in the middle of a
>> line and end a few lines further down in a completely different position
>> within that line. It is not rectangular in shape and from the
>> specification point of view it is not a block level element.
>>
>> I know this doesn't help you solve your problem just trying to explain
>> why your current approach doesn't work.
>>
>> Cheers
>>
>> Manuel
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@(protected)
>> For additional commands, e-mail: fop-users-help@(protected)
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@(protected)
> For additional commands, e-mail: fop-users-help@(protected)
>


©2008 java2.5341.com - Jax Systems, LLC, U.S.A.