RE: Forcing use of ASCII85Decode

2004-09-21 Thread Simon Kitching
On Tue, 2004-09-21 at 08:22, Victor Mote wrote:

 Now, the second part of the question is how to set the configuration through
 your program. The beginnings of the answer are here:
 http://xml.apache.org/fop/embedding.html#config-internal
 
 However, that only documents setting the standard configuration. The method
 you will need is this one:
 public static void put(String key, Object value, int role)
 
 The valid role values above are Configuration.STANDARD, Configuration.PDF,
 and Configuration.AWT. You want Configuration.PDF.
 
 If you only have one filter to apply, skip the list concept and just drop
 the name of the filter in to the value:
 
 Configuration.put(stream-filter-list, ascii-85, Configuration.PDF);
 
 If you need the list, build a java.util.ArrayList with the multiple entries
 and use it in the method. Something like this:
 
 java.util.ArrayList list = new java.util.ArrayList;
 list.add(ascii-85);
 list.add(flate);
 Configuration.put(stream-filter-list, list, Configuration.PDF);
 
 There is a strong possibility that I have some of the details wrong here,
 but this is the gist of it. Let me know if this doesn't work or if you have
 to make changes to get it to work.

Thanks *very* much for your response - it was exactly what I needed.

I had to reverse the order of filters in the list (flate first, then
ascii-85) but otherwise the code you suggested worked perfectly, and my
problem is solved.

Regards,

Simon



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FW: Problem with font

2004-09-21 Thread Eldho George


I have a problem with font.The following is my font template
fo:inline font-size={$size} font-family={$face}
  color={$color} line-height=12pt
  xsl:apply-templates select=*|text()/
 /fo:inline

I have problem with large font size .Suppose I am using the size as 12pt,if
the content is more than that one line
,the top of the second line will appear overwritten on the first line.I
tried with line-height.But there is no affect.
I increased the line-heght to 50 or more ,there is no line space between the
first and second line.How can I solve this problem.Please help me...

Thanks in advance
George



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Placing text on bottom of region-body...

2004-09-21 Thread Johann Mattsson
Hello all

I am producing a document which may consists of 1 or more pages of same type, 
followed by 0 or more pages of another type, every page have a header and a 
footer. The last page of the first set of pages should have a certain text 
down on the bottom of that page, regardless of how much text it consists of 
otherwise.
Im not certain how to produce such a FOP code to achieve this, i guess i 
somehow have to make a table or something that fills up the empty space in 
the page to get to the bottom on the page. But maybe someone have another idea 
or some input to give to me.

Any input is welcome!

Regards
Johann M

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FW: Problem with font

2004-09-21 Thread Chris Bowditch
Eldho George wrote:
I have a problem with font.The following is my font template
fo:inline font-size={$size} font-family={$face}
  color={$color} line-height=12pt
  xsl:apply-templates select=*|text()/
 /fo:inline
The problem is FOP doesnt handle fo:inlines properly. It should generate its 
own area whose height depends on font size but it isnt implemented yet. 
Currently the line height can only be different for block level constructs.

Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Placing text on bottom of region-body...

2004-09-21 Thread Clay Leeds
On Sep 21, 2004, at 2:33 AM, Johann Mattsson wrote:
Hello all
I am producing a document which may consists of 1 or more pages of 
same type, followed by 0 or more pages of another type, every page 
have a header and a footer. The last page of the first set of pages 
should have a certain text down on the bottom of that page, regardless 
of how much text it consists of otherwise.
Im not certain how to produce such a FOP code to achieve this, i guess 
i somehow have to make a table or something that fills up the empty 
space in the page to get to the bottom on the page. But maybe someone 
have another idea or some input to give to me.

Any input is welcome!
Regards
Johann M
Sorry. I don't know the answer to this one, but perhaps it has 
something to do with Markers[1] and/or Footnotes[2]? Unfortunately, I'm 
not pointing to links on the internet of where to look, although a 
google search might be useful. Instead I'm pointing to example files 
included with FOP:

[1]
examples/fo/markers/
[2]
examples/fo/footnotes/
Hope this helps!
Web Maestro Clay
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: sticking words

2004-09-21 Thread Clay Leeds
On Sep 21, 2004, at 6:34 AM, Micha Postupalski wrote:
I have problem with FOP. Some time it sticks words in the generated 
PDF i.e.

XSL-FO file
fo:block
   start first second third stop
/fo:block
and in PDF I get:
start firstsecond third stop
or
start first secondthirdstop
Can any one tell me why ???
regards,
plastic
In my experience with PDF, this occurs only as an artifact of the 
'zoom' value. If you print or zoom to 100%, you will not notice this 
problem. Can you confirm whether or not the problem is related to the 
Zoom value?

However, when working with AWT/Print, I have noticed this problem 
occurring when using Java versions earlier than 1.4.1 (Sun) and 1.3 
(IBM).

Hope this helps!
Web Maestro Clay
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Multi-columns Layout problems

2004-09-21 Thread Pascal Sancho



Hi 
there,
While trying 
multi-columns with fop, I've found some strange behaviours:
1. When I specifie 
block/span="all", a block/@break-before 
is not taken into account for the same block.
2. If there is not 
enough place for a block image in 1 column, sometimes FOP crashes, invoking an 
infinite loop -- I resolved this problem by inserting some empty blocks 
before
3. When I declare an 
ID (using generate-id() function xpath), I get an error if the element is not 
spanned over the 2 columns (error says that ID cannot be used 
twice).
I suppose that 
intermediate xml file include a copy of the 1st column (I have not checked it 
yet), because fo file is *perfect*!
I need to span the 
element over all columns in order to bypass this problem.


Cordialement,Pascal 
SANCHOTakoma, Information 
Mapping
t : +334 90 59 82 
90
m : +336 74 94 66 
04e : [EMAIL PROTECTED]