Re: page-position=last doesn't work for 1 page document

2008-01-02 Thread Chris Bowditch

irene23 wrote:


Hello,


Hi,

I see you have posted this question on fop-dev@ and [EMAIL PROTECTED] Please 
don't cross post in future. The developers look on all lists, and 
fop-users@ is the correct mailing list for questions.


 
I have two page-masters defined, with one having a different footer than the

other.

When this renders to a 2+ page document, the last page gets the last footer
and the other pages get the other footer.

When it renders to a 1 page document, I get the any page footer, even
though the the page is the last page

I've posted on nabble.com, and gotten replies that it is possibly a bug.


This is a bug and has already been raised in bugzilla, see :

http://issues.apache.org/bugzilla/show_bug.cgi?id=40798

The bug even has references to the part of the code which is at fault. 
This is open source so patches are welcome :)


Chris



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



Keep-with-next and keep-with-previous properties do not work.

2008-01-02 Thread Harshini Madurapperuma
Hi All;

Keep-with-next and keep-with-previous properties does not give the desired
outputs all the time. Is this a limitation in FOP? If so is there any other
way to implement this functionality?

Regards
Harshini

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



Re: Keep-with-next and keep-with-previous properties do not work.

2008-01-02 Thread Chris Bowditch

Harshini Madurapperuma wrote:


Hi All;

Keep-with-next and keep-with-previous properties does not give the desired
outputs all the time. Is this a limitation in FOP? If so is there any other
way to implement this functionality?


What version of FOP are you using?

AFAIK keep-with-next and keep-with-previous work fine in v0.94. I think 
there might be some bugs relating to tables and keep-with-previous. Can 
you explain what you mean by desired outputs? A small example XSL-FO 
would be most helpful in understanding the problem.


Thanks,

Chris



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



RE: Keep-with-next and keep-with-previous properties do not work.

2008-01-02 Thread Harshini Madurapperuma
Hi;

I'm using fop 0.20.5 version. Even though we set the attribute to keep with
next it doesn't always keep with the next element. 

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 02, 2008 3:15 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Keep-with-next and keep-with-previous properties do not work.

Harshini Madurapperuma wrote:

 Hi All;
 
 Keep-with-next and keep-with-previous properties does not give the 
 desired outputs all the time. Is this a limitation in FOP? If so is 
 there any other way to implement this functionality?

What version of FOP are you using?

AFAIK keep-with-next and keep-with-previous work fine in v0.94. I think
there might be some bugs relating to tables and keep-with-previous. Can you
explain what you mean by desired outputs? A small example XSL-FO would be
most helpful in understanding the problem.

Thanks,

Chris



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

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



STIX fonts

2008-01-02 Thread Justus-bulk
Hi,

I'm trying to use the STIX fonts with FOP and am running into issues.

Ideally, the OpenType format used by the STIX fonts were supported
directly by FOP, but I understand this is work in progress. (To any
FOP developers out there: When might we have this?)

So I tried converting the fonts to TrueType using fontforge. This
appeared to work, with no significant (I think) error messages in the
process. Fontforge successfully reads and displays converted fonts.

FOP runs without any complaints, and according to pdffonts the STIX
fonts are properly embedded in the PDF. However, the PDF appears to be
invalid: Ghostscript stops rendering the page at the first STIX
character; xpdf continues to render but shows nothing (white space) in
place of the STIX characters. The metrics and encoding seem ok though;
I can copy and paste the invisible characters successfully from xpdf
into emacs.

What might be the problem?

Then I tried converting the fonts to Type1. This works all the way,
except that a Type1 font can apparently only encode 256 characters at
a time, and indeed, some special characters (Euro symbol) are missing
in the otherwise impeccable PDF.

I could split up the STIX fonts and implement XSLT wizardry to help
FOP find all the glyphs, but this would involve some bending over
backwards and jumping through hoops, so I thought I'd ask here if
anybody might have some further insights concerning the TrueType
weirdness.

Thanks,
Justus

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



Re: Blank half-cell on page1; text showing on page 2

2008-01-02 Thread Vincent Hennebert
Hi Akagi,

In addition to Chris’ answer:

Akagi Kobayashi wrote:
 Hi Vincent
 
 Further to the e-mail below (by the way, a typo had crept into the sample
 file name), my system does not recognize the fop command nor the argument. I
 tried running the fop command at the level where I normally build pdfs.
 
 I have discovered that our fop is in a completely different area, and the
 project dependency is declared in a project-deps file which the build file
 imports.
 
 How can I run the fop command in a way that will be recognized by the build
 file?

To produce the XSL-FO output you won’t use the build.xml file. However, 
you can have a look into it to retrieve the path to FOP and the XSLT 
stylesheet. From the ~/svn/2.0/target/ directory you will have to type 
something like this:
/directory/where/fop/is/installed/fop -xml sample.xml -xsl 
docboook-xsl-1.72.0/fo/docbook.xsl -foout sample.fo

And yes the XSL-FO file will be created in the same ~/svn/2.0/target/ 
directory.

If you’re really lost you may post your build.xml file (or rather send 
it directly to me) so that I can have a look.

HTH,
Vincent


-- 
Vincent HennebertAnyware Technologies
http://people.apache.org/~vhennebert http://www.anyware-tech.com
Apache FOP Committer FOP Development/Consulting

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



Re: IndexOutOfBoundsException when creating pdf

2008-01-02 Thread Vincent Hennebert
Hi Bjoern,

Can you please open a bug report [1], attaching your sample FO file? 
That will allow us to keep track of the issue.

Thanks,
Vincent

[1] http://issues.apache.org/bugzilla/enter_bug.cgi?product=Fop

Bjoern wrote:
 
 Jeremias Maerki-2 wrote:
 We're still waiting for a (preferably short) FO file that demonstrates
 the problem. Otherwise, there's nothing we can do.

 
 Hi Jeremias,
 
 I was able to track the error down to the attached file (
 http://www.nabble.com/file/p14488145/tmp_sip.xml.fo tmp_sip.xml.fo ).
 I tried to delete as much as possible. If I delete any further paragraph of
 the text, the error doesn't occurs any more. Also if I set hyphenation to
 true in my stylesheet, the error goes away.
 
 I tried it with fop 0.94 and trunk with the same result. For some reason fop
 0.92 doesn't show the error with that file, although it did before with
 other files.
 I hope that helps somehow to find the error.
 
 thank you for your help
 
 Bjoern

-- 
Vincent HennebertAnyware Technologies
http://people.apache.org/~vhennebert http://www.anyware-tech.com
Apache FOP Committer FOP Development/Consulting

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



Re: Keep-with-next and keep-with-previous properties do not work.

2008-01-02 Thread Chris Bowditch

Harshini Madurapperuma wrote:


Hi;

I'm using fop 0.20.5 version. Even though we set the attribute to keep with
next it doesn't always keep with the next element. 


One of the main reasons for the redesign effort was the design of 0.20.x 
prevented implementation of keep-* properties. Keep-* properties are 
only supported on table-rows in 0.20.5. If you want better support for 
keep-* properties then you will need to upgrade to 0.94. I strongly 
recommend the upgrade anyway as 0.20.5 is now very old and many other 
bugs and limitations have been addressed in 0.94.


Chris

snip/



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



Re: IndexOutOfBoundsException when creating pdf

2008-01-02 Thread Bjoern


Vincent Hennebert-3 wrote:
 
 Hi Bjoern,
 
 Can you please open a bug report [1], attaching your sample FO file? 
 That will allow us to keep track of the issue.
 

done:

http://issues.apache.org/bugzilla/show_bug.cgi?id=44160

Bjoern
-- 
View this message in context: 
http://www.nabble.com/IndexOutOfBoundsException-when-creating-pdf-tp14315456p14577215.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



attributes of block

2008-01-02 Thread irene23

Hello,

Is there some attribute to put a block at the end of the body?

For exampe:

Text of the body.
Text of the body...
Text of the body



signature of sellersignature of buyer

I want to put the block of signature at the end of the body and the body can
change of size.
How can place a block at the end of the body?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/attributes-of-%3Cblock%3E-tp14579395p14579395.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: 'conditional-page-master-reference' default required?

2008-01-02 Thread irene23

Hello,

I have made this, but when fop renders to a 1 page document, I get the any
page footer (instead of the last page footer), even though the  page is
the last page (when the fop renders to a 2+ page document, the last page
gets the last footer and the other pages get the other footer).

Could you give me any idea to get the same in other way? Is there some
attibute to place a block at the end of the body?


Thanks.



Jerzy Jalocha wrote:
 
 I have a two-page document with two 'simple-page-master's, one for the
 first page, and one for the last one. When I use a conditional
 sequence with 'repeatable-page-master-alternatives', and I don't
 provide a default 'conditional-page-master-reference', FOP complains
 about subsequences exhausted in page-sequence-master, and crashes.
 
 As seen in the example below, it is easy to circumvent the problem by
 providing a default, but I'm not sure if this behavior is expected, or
 a bug. The specification doesn't seem to require a default
 (http://www.w3.org/TR/xsl/#fo_conditional-page-master-reference).
 
 More in general, I have the following question. Since I'm new to both
 FOP and XSL-FO, I am quite prone to breaking things. Is it OK to
 report them here when I think I might have found a bug? Or shall I
 wait until I have more expertise?
 
 Thanks in advance,
 -Jerzy
 
 
 ?xml version=1.0 encoding=utf-8?
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 
fo:layout-master-set
 
   fo:simple-page-master master-name=first-page
 page-height=11in page-width=8.5in
 margin-top=0mm margin-left=0mm margin-right=0mm
 margin-bottom=0mm
  fo:region-body
border-style=none
margin-top=80mm margin-bottom=20mm
 margin-left=20mm margin-right=20mm/
  fo:region-before region-name=first-region-before
border-style=none/
  fo:region-after region-name=first-region-after
border-style=none/
   /fo:simple-page-master
 
   fo:simple-page-master master-name=last-page
 page-height=11in page-width=8.5in
 margin-top=0mm margin-left=0mm margin-right=0mm
 margin-bottom=0mm
  fo:region-body
border-style=none
margin-top=40mm margin-bottom=20mm
 margin-left=20mm margin-right=20mm/
  fo:region-before region-name=last-region-before
border-style=none/
  fo:region-after region-name=last-region-after
border-style=none/
   /fo:simple-page-master
 
   fo:page-sequence-master master-name=document-sequence
  fo:repeatable-page-master-alternatives
 fo:conditional-page-master-reference
 master-reference=first-page
   page-position=first/
 !-- Enable this default in order to make it work with FOP.
 fo:conditional-page-master-reference
 master-reference=last-page
   page-position=rest/
 --
 fo:conditional-page-master-reference
 master-reference=last-page
   page-position=last/
  /fo:repeatable-page-master-alternatives
   /fo:page-sequence-master
 
/fo:layout-master-set
 
 
fo:page-sequence master-reference=document-sequence
 
   fo:flow flow-name=xsl-region-body
 font-size=11pt
 
 !-- Please, fill two pages with 15 copies of this block: --
 
  fo:blockLorem ipsum dolor sit amet, consectetur adipisicing
 elit, sed do eiusmod tempor incididunt ut labore et dolore magna
 aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
 laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
 in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
 pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
 culpa qui officia deserunt mollit anim id est laborum./fo:block
 
   /fo:flow
 
/fo:page-sequence
 /fo:root
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%27conditional-page-master-reference%27-default-required--tp14274827p14579654.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



RE: attributes of block

2008-01-02 Thread Pascal Sancho
Hi,

You can try 2 options:
- either put the fo:block in a static region (xsl-region-after) -- using 
fo:marker/fo:retrieve-marker, if the content depends on flow)
- or use footnotes

Perhaps somebody have another solution.

HTH, 
Pascal

 -Message d'origine-
 De : irene23 [mailto:[EMAIL PROTECTED] 
 Envoyé : mercredi 2 janvier 2008 15:46
 À : fop-users@xmlgraphics.apache.org
 Objet : attributes of block
 
 
 Hello,
 
 Is there some attribute to put a block at the end of the body?
 
 For exampe:
 
 Text of the body.
 Text of the body...
 Text of the body
 
 
 
 signature of sellersignature of buyer
 
 I want to put the block of signature at the end of the body 
 and the body can
 change of size.
 How can place a block at the end of the body?
 
 Thanks.
 -- 
 View this message in context: 
 http://www.nabble.com/attributes-of-%3Cblock%3E-tp14579395p145
 79395.html
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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



RE: attributes of block

2008-01-02 Thread irene23

Hello,

The first of all thank you very much.

I´m using xsl-region-after in this way:

I have two page-masters defined, with one having a different footer than the 
other.

When this renders to a 2+ page document, the last page gets the last footer 
and the other pages get the other footer.

When it renders to a 1 page document, I get the any page footer, even
though 
the the page is the last page

I've posted on nabble.com, and gotten replies that it is possibly a bug.

So, I think I can´t use a xsl-region-after in this way. But you are telling
me that I can use xsl-region-after using
 fo:marker/fo:retrieve-marker, (if the content depends on flow), Could you
 tell me what is fo:marker?

(I need put a signature, at the end of the body, in the last page - not in
any other- and if the document has only 1 page must have the signature)



Thanks


Snippet of the code:

fo:layout-master-set 
  fo:simple-page-master master-name=default-page 
 page-height=11in 
 page-width=8.50in 
 margin-top=0.25in 
 margin-left=0.25in 
 margin-right=0.25in 
 margin-bottom=0.25in 
!-- space needed for header  footer tables -- 
  fo:region-body   
   region-name=body 
   margin-top=0in 
 margin-bottom=1.50in/ 
  fo:region-before region-name=header extent=10.0in/ !-- space needed 
for header table -- 
  fo:region-after region-name=footer extent=1.50in/ !-- space needed 
for footer table -- 
  fo:region-start  extent=0.00in/ 
  fo:region-endextent=0.00in/ 
  /fo:simple-page-master 
  
  
  fo:simple-page-master master-name=last-page 
   page-height=11in 
   page-width=8.50in 
   margin-top=0.25in 
   margin-left=0.25in 
   margin-right=0.25in 
   margin-bottom=0.25in 
   !-- space needed for header  footer tables -- 
   fo:region-body   
region-name=body 
margin-top=0in 
margin-bottom=1.50in/ 
   fo:region-before region-name=header extent=10.0in/ !-- space
needed 
for header table -- 
   fo:region-after  region-name=last-footer extent=1.50in/ !-- space 
needed for footer table -- 
   fo:region-start  extent=0.00in/ 
   fo:region-endextent=0.00in/ 
  /fo:simple-page-master 
  
  
  fo:page-sequence-master master-name=all 
   fo:repeatable-page-master-alternatives 

fo:conditional-page-master-reference 
 page-position=last master-reference=last-page/ 

fo:conditional-page-master-reference 
 page-position=any master-reference=default-page / 

   /fo:repeatable-page-master-alternatives 
  /fo:page-sequence-master 
 /fo:layout-master-set
-- 
View this message in context: 
http://www.nabble.com/attributes-of-%3Cblock%3E-tp14579395p14582395.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: attributes of block

2008-01-02 Thread Andreas L Delmelle


On Jan 2, 2008, at 18:36, irene23 wrote:





Hi,

Since this is my first post of the year:
Best Wishes for 2008 to the whole FOP community!

Now as to your question, and Pascal's reply:



I´m using xsl-region-after in this way:

I have two page-masters defined, with one having a different footer  
than the

other.

When this renders to a 2+ page document, the last page gets the  
last footer

and the other pages get the other footer.

When it renders to a 1 page document, I get the any page footer,  
even

though
the the page is the last page

I've posted on nabble.com, and gotten replies that it is possibly a  
bug.


So, I think I can´t use a xsl-region-after in this way. But you are  
telling

me that I can use xsl-region-after using
fo:marker/fo:retrieve-marker, (if the content depends on flow),  
Could you

tell me what is fo:marker?


(I need put a signature, at the end of the body, in the last page -  
not in
any other- and if the document has only 1 page must have the  
signature)


The idea is roughly:
You can put the signature in a single fo:marker that is attached to  
(= appears as initial descendant of) ONLY the last fo:block in the  
document.
Use a dummy block as a wrapper for the fo:marker if the body text is  
not split up in multiple blocks.
The corresponding fo:retrieve-marker will only find something to  
retrieve on the page where that last fo:block ends up. No matter  
which page-master is currently in use (you could use the same one for  
all pages).


Analogously, as Pascal suggested, the signature can be put in an  
fo:footnote that is attached to the last block.
Take care here: as opposed to an fo:marker, which has to appear as an  
initial descendant, the fo:footnote should preferably be placed  
completely at the end of the last block.
If not, then if that last block gets broken over the last two pages,  
it is possible that the footnote/signature gets rendered on the next- 
to-last page.



HTH!

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



Re: attributes of block

2008-01-02 Thread irene23

Thank you very much and best wishes for 2008!!

fo:static-content flow-name=xsl-region-after
fo:block
 fo:retrieve-marker retrieve-class-name=pieSignature  
   
retrieve-position=last-starting-within-page  ¿?
retrieve-boundary=page / 
 
¿?
/fo:block
   /fo:static-content

   fo:flow flow-name=xsl-region-body font=10pt Verdana
fo:block Text of the body../fo:block
fo:block Text of the body../fo:block


 fo:block
fo:marker marker-class-name=pieSignature  
Signature of seller of buyer...
/fo:marker
 /fo:block
   /fo:flow

- Is this what you want to tell me? The attributes retrieve-position, 
retrieve-boundary are correct?

- But in the fo:simple-page-master  fo:region-after region-name=footer
extent=1.50in/ . /fo:simple-page-master I must put a space (extent)
for the footer and all pages would have this space and I want that only the
last page have the footer signature (the rest of the pages have other
footer, not the footer signature), so the fo:retrieve-marker go in
fo:static-content flow-name=xsl-region-after???

Thank you very much.


-- 
View this message in context: 
http://www.nabble.com/attributes-of-%3Cblock%3E-tp14579395p14583590.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: attributes of block

2008-01-02 Thread Andreas L Delmelle

On Jan 2, 2008, at 19:35, irene23 wrote:

Hi


snip /
- Is this what you want to tell me? The attributes retrieve-position,
retrieve-boundary are correct?


Yes, exactly.



- But in the fo:simple-page-master  fo:region-after region- 
name=footer
extent=1.50in/ . /fo:simple-page-master I must put a space  
(extent)
for the footer and all pages would have this space and I want that  
only the

last page have the footer signature (the rest of the pages have other
footer, not the footer signature), so the fo:retrieve-marker go in
fo:static-content flow-name=xsl-region-after???


Indeed, that is one of the drawbacks of the approach using fo:marker/ 
fo:retrieve-marker


In your case, it's probably a better choice to go for the approach  
using a fo:footnote, as this will always be rendered in a separate  
'static-content' between the region-body and the region-after (if any).



HTH!

Cheers

Andreas

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



Re: Image rendering at position problem

2008-01-02 Thread Andreas L Delmelle

On Jan 2, 2008, at 18:58, Glenn Brand wrote:


Hi,

I am trying to place a graphic (customer logo) to the right of a  
table at the top of a patient walk out statement of account.
When I put the graphic on the style sheet editor (stylus  
studio2008) it looks correct but when it gets published as XSL-FO  
and then rendered it is placed underneath the table.

How can I get it to go to the right of the table?

fo:table width=225pt border-style=none border-width=0pt  
background-repeat=repeat

snip /
/fo:table
fo:external-graphic background=transparent width=200pt  
height=200ptsrc=url(file:///c:/CacheSys/CSP/qacahaba/ 
ODprofessional_logo.gif)/


Correct: a fo:table is a block-level formatting object, and as such  
triggers implicit line-breaks before and after.


To do what you have in mind --keep a table on the same line as a  
following sibling inline-level FO, like external-graphic-- I think  
you would need support for either fo:float or fo:inline-container.  
Neither of these are implemented in FOP at the moment.


As a workaround, you could try nesting tables (or put the external- 
graphic in its own last column in a cell that spans all rows).



HTH!

Cheers

Andreas


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



attributes of fo:table

2008-01-02 Thread irene23

Hello,

I have a problem:

if a fo:table doesn,t  fit in a page, I don´t want the table is cut in two
pages, I always want the table entire is placed together.

¿How can I get this? (keep all the rows of the table together).


Thanks,
-- 
View this message in context: 
http://www.nabble.com/attributes-of-%3Cfo%3Atable%3E-tp14584481p14584481.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: attributes of block

2008-01-02 Thread irene23

Thanks, 

Hello, 

I have a problem: 

if a fo:table doesn,t  fit in a page, I don´t want the table is cut in two
pages, I always want the table entire is placed together. 

¿How can I get this? (keep all the rows of the table together). 


Thanks,
-- 
View this message in context: 
http://www.nabble.com/attributes-of-%3Cblock%3E-tp14579395p14584699.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: STIX fonts

2008-01-02 Thread Justus-bulk
[EMAIL PROTECTED] wrote on Wed, 02 Jan 2008 11:54:26 +0100:

 xpdf continues to render but shows nothing (white space) in
 place of the STIX characters. The metrics and encoding seem ok though;
 I can copy and paste the invisible characters successfully from xpdf
 into emacs.

FWIW, I have the exact same problem with the Debian-supplied
latex-xft-fonts.

Justus

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



Filling a table cell entirely with an external graphic

2008-01-02 Thread Tim Gates
Hi,

I have a series of problems which can be broken down into one problem in that I 
don't understand how to eliminate the implicit padding associated with an 
external graphic inside a table. If I try and create 4 images side by side then 
there is a gap between the top two images and the bottom two images using a 
variation of the basic FO below...

fo:table table-layout=fixed 
 fo:table-column column-width=50mm /
 fo:table-column column-width=50mm /
 fo:table-body 
   fo:table-row
   fo:table-cellfo:blockfo:external-graphic content-width=50mm 
content-height=50mm src=test.png//fo:block/fo:table-cell
   fo:table-cellfo:blockfo:external-graphic content-width=50mm 
content-height=50mm src=test.png//fo:block/fo:table-cell
   /fo:table-row
   fo:table-row
   fo:table-cellfo:blockfo:external-graphic content-width=50mm 
content-height=50mm src=test.png//fo:block/fo:table-cell
   fo:table-cellfo:blockfo:external-graphic content-width=50mm 
content-height=50mm src=test.png//fo:block/fo:table-cell
   /fo:table-row
 /fo:table-body
/fo:table
I've tried adjusting margins, space and padding and setting them to zero on 
pretty much every XML element (which I've removed from the above for clarity). 
Does anyone know how to eliminate the padding to produce the 4 images side by 
side without resorting to setting the images as background images?

Thanks,
Tim.
**
Important Note
This email (including any attachments) contains information which is 
confidential and may be subject to legal privilege.  If you are not the 
intended recipient you must not use, distribute or copy this email.  If you 
have received this email in error please notify the
sender immediately and delete this email. Any views expressed in this email are 
not necessarily the views of IRESS Market Technology Limited.

It is the duty of the recipient to virus scan and otherwise test the 
information provided before loading onto any computer system.
IRESS Market Technology Limited does not warrant that the information is free 
of a virus or any other defect or error.
**


RE: Image rendering at higher DPI

2008-01-02 Thread Glenn Brand
That worked great. 
The next problem is that the resolution is quite low both colors and
DPI.
What do you suggest?

-Original Message-
From: Andreas L Delmelle [mailto:[EMAIL PROTECTED] 
Sent: January 2, 2008 10:54 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Image rendering at position problem

On Jan 2, 2008, at 18:58, Glenn Brand wrote:

 Hi,

 I am trying to place a graphic (customer logo) to the right of a  
 table at the top of a patient walk out statement of account.
 When I put the graphic on the style sheet editor (stylus  
 studio2008) it looks correct but when it gets published as XSL-FO  
 and then rendered it is placed underneath the table.
 How can I get it to go to the right of the table?

 fo:table width=225pt border-style=none border-width=0pt  
 background-repeat=repeat
 snip /
 /fo:table
 fo:external-graphic background=transparent width=200pt  
 height=200ptsrc=url(file:///c:/CacheSys/CSP/qacahaba/ 
 ODprofessional_logo.gif)/

Correct: a fo:table is a block-level formatting object, and as such  
triggers implicit line-breaks before and after.

To do what you have in mind --keep a table on the same line as a  
following sibling inline-level FO, like external-graphic-- I think  
you would need support for either fo:float or fo:inline-container.  
Neither of these are implemented in FOP at the moment.

As a workaround, you could try nesting tables (or put the external- 
graphic in its own last column in a cell that spans all rows).


HTH!

Cheers

Andreas


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


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



Re: Filling a table cell entirely with an external graphic

2008-01-02 Thread Andreas L Delmelle

On Jan 3, 2008, at 02:07, Tim Gates wrote:

Hi,

I have a series of problems which can be broken down into one  
problem in that I don't understand how to eliminate the implicit  
padding associated with an external graphic inside a table. If I  
try and create 4 images side by side then there is a gap between  
the top two images and the bottom two images using a variation of  
the basic FO below...


fo:table table-layout=fixed 
 fo:table-column column-width=50mm /
 fo:table-column column-width=50mm /
 fo:table-body 
   fo:table-row
   fo:table-cellfo:blockfo:external-graphic content- 
width=50mm content-height=50mm src=test.png//fo:block/ 
fo:table-cell
   fo:table-cellfo:blockfo:external-graphic content- 
width=50mm content-height=50mm src=test.png//fo:block/ 
fo:table-cell

   /fo:table-row
   fo:table-row
   fo:table-cellfo:blockfo:external-graphic content- 
width=50mm content-height=50mm src=test.png//fo:block/ 
fo:table-cell
   fo:table-cellfo:blockfo:external-graphic content- 
width=50mm content-height=50mm src=test.png//fo:block/ 
fo:table-cell

   /fo:table-row
 /fo:table-body
/fo:table
I've tried adjusting margins, space and padding and setting them to  
zero on pretty much every XML element (which I've removed from the  
above for clarity). Does anyone know how to eliminate the padding  
to produce the 4 images side by side without resorting to setting  
the images as background images?


If I remember correctly, this is a result of what is called 'half- 
leading', i.e. each line in a block has a leading and trailing  
whitespace (before and after) with an extent equal to a percentage of  
the line-height for the block in question.


Something like the following should work:

fo:table line-height=0pt ...
etc.

Since line-height is inherited by all the table descendants, half- 
leading will be equal to zero for the lines generated by the cells/ 
blocks, and the spurious whitespace between the graphics should  
disappear.



HTH!

Andreas

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



Re: attributes of block

2008-01-02 Thread Andreas Siepert

Hi Irene,

have a look at http://www.w3.org/TR/xsl/#d0e26492 - there you will find 
some attributes like keep-together helping you to solve the problem.


Greetings
Andi

irene23 schrieb:
Thanks, 

Hello, 

I have a problem: 


if a fo:table doesn,t  fit in a page, I don´t want the table is cut in two
pages, I always want the table entire is placed together. 

¿How can I get this? (keep all the rows of the table together). 



Thanks,
  



--
Dipl.-Inf. Andreas Siepert
Entwickler

Bader  Jene Software-Ingenieurbüro GmbH
Schauenburgerstraße 116
24118 Kiel

Fon: + 49.431.5 60 66 41
Fax: + 49.431.5 60 66 44
Web: www.bader-jene.de

Ust-ID Nr: DE249078452
Amtsgericht Kiel, HRB 8298

Geschäftsführer:
Dipl.-Ing. (FH) Thomas Bader
Dipl.-Ing. (FH) Andreas Jene



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