Re: How do pixels(px) compare to points(pt) or inches in XSL-FO/FOP ?

2003-06-10 Thread Oscar Schoof

Could anyone confirm that FOP converts pixels using a 72 dpi ratio ?
 

I find information about this in http://xml.apache.org/fop/graphics.html
Oscar

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


Re: page-number

2003-05-14 Thread Oscar Schoof




Start a new page sequence like:

 

  
  can
we initialize the number of page to 0 at page break?
  
  
  
  






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



Re: Demo: XML to PDF (and HTML) by FOP

2003-01-15 Thread Oscar Schoof

Except that you've got a problem when someone enters a name
containing an umlaut 

And likewise with an ampersand...
Oscar

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


Re: Aligning a block with the bottom of the page

2003-01-10 Thread Oscar Schoof






  
Use the region-after sections of your static-content of your

  
  page-sequences.

Okay, thanks.

Er, is there any way to do this inside a  ?

In general, i would say: no. Maybe you can construct something in a page-wide
table. I still advise you to use the static-content for this. Thats it's
purpose (i believe) and easy to implement. What's your problem with static-content?
(Look around for examples with page-numbers.) 

Oscar





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



Re: Aligning a block with the bottom of the page

2003-01-10 Thread Oscar Schoof

How do I align an fo:block with the bottom of the current page?
 

Use the region-after sections of your static-content of your page-sequences.
Oscar

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


Re: blank page

2003-01-10 Thread Oscar Schoof

Look carefully: you want to have the *page count*, or alternatively,
the last page number in the page sequence (because counting starts
with "1"). Usually this can be done with a page number citation
referring to something on the last page, however, there is *no* way
to refer to something on a forced blank page. 
Ok, i understand it, i think. I cannot refer to anything that does not 
exist  as an object in the (my own) fo-source (or formatted object tree).

It's the XSLFO design, not the implementation posing the problem. 
You mean: the XSLFO design gives no pointers or handles on how to 
implement "this"?
It there somebody allready talking with the W3C people about this?

Oscar

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


Re: blank page

2003-01-09 Thread Oscar Schoof
J.Pietschmann wrote:
Ok, for Oscar:
Set it to "no-force" to not forcing a blank page. 
Thanks, this solved it.
By the way, obediant as i was to Oleg, i reported it yesterday as a bug 
in the Apache Bug Database as bug 15887.

As for "page 2 of 1", read the relevant part of the FOP FAQ
carefully
 http://xml.apache.org/fop/faq.html#faq-N10515
 " There is no reliable way to get the real total page count with
   FO mechanisms, you can only get page numbers." 
For me, it is for reference only, i don't need a page-count. Still, a 
reference like 'page 2 of 1' is weird. Looks to me that the 0.20.5 
renderer makes the use of fo:page-number-citation a problem. Anyhow, the 
issue has become irrelevant now (to me), by using "no-force".

Oscar

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


blank page

2003-01-08 Thread Oscar Schoof
Hi all,
With using version 0.20.5rc i get strange blank pages in the pdfs. This 
is not the case with the same fo-docs when i process them with the old 
0.20.4. (I tested this by reinstalling 0.20.4.)

For example, in 0.20.4 i see the following flow-processing:
[1]
[1]
[2]

(There are multiple flows in my docs.)
With 0.20.5rc on the same doc i get:
[1]
[2 (blank)]
[1]
[2]
.
In these docs i use page-number-citation id's to list pages as "page 
 of ".
With the same example mentioned here i get with 0.20.4 on the first (and 
last page) of the first flow: "page 1 of 1", which is correct. With 
0.20.5rc i get on the first page: "page 1 of 1" and on the second 
(blank) page: "page 2 of 1", which is very strange.

Anybody seen this behavior before? Is it a bug of 0.20.5rc? Can i work 
around it?

Thanks,
Oscar
p.s. When somebody wants my fo, send me your request to my privat 
email-address.


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


Re: zero width space

2003-01-02 Thread Oscar Schoof

FOP 0.20.4 incorrectly uses a full space width for basically all Unicode space
characters.
This is fixed in 0.20.5rc, please upgrade.
Ok, i did. And it solved this issue.
Thanks,
Oscar

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


zero width space

2003-01-02 Thread Oscar Schoof
Hi all,
I'm trying to use zero width spacing for word-wrapping purposes.
For some reason it doesn't work.
I tried using the code ​ and also ​ for this zero width 
space and use Fop version 0.20.4.
But in, for example, "word​break" i get "word 
break", with a 'normal' space in it.
Am i doing something wrong? Does it depend on a font-family setting?

Oscar


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


Re: Helvetica and Arial

2002-12-30 Thread Oscar Schoof

Joerg Pietschmann wrote:
Bad. Did you check that there isn't something else stretching
your printout, like a Acrobat reader or printer driver setting
"fit to page"? 

Right. It did. It also 'centered' everything.
Also account for border and padding width. Collapsed
table borders are even more tricky.
The cell-overlapping turned out to be a not-to-be-able-to-wrap issue. 
Found a solution in the Apache FOP FAQ.


Thanks,
Oscar

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


Helvetica and Arial

2002-12-23 Thread Oscar Schoof
Hi all,
i bumped into a font-mapping problem, i think.
In my fo-docs i use tables. I sometimes see (in the corresponding pdfs) 
the contents of a cell overlapping the contents of a cell next to it.
I also notice that the widths of everything are not exact. For example, 
a given width of 170 mm results in a length of 164 mm on paper.
Also the expected heigth of margins and body doesn't add up exactly.

I use in my fo's as font-family "Helvetica".
Now, when i look at the fonts section of the document-properties of 
generated pdf-document (with an adobe acrobat reader) it says:
Original Font: Helvetica (type 1)
Encoding: Windows
Actual Font: ArialMT

And i see on the apache-fop site at the Output-section as limitation of 
PCL that Helvetica is mapped to Arial.

So Arial seems to be pretty well-known.
So, what should i do when i want to use the Arial font myself?
A definition like font-family="Arial" does not seem to exist. (And for 
some strange reason i can't seem to find anything about the families 
that are supported by either FO (by specification) or FOP (by default 
implementation).

Anybody knows how to use Arial?
T.i.a.,
Oscar



Oscar




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


Re: PCL problem

2002-12-23 Thread Oscar Schoof

convert the docs/examples/fo/fonts.fo example to PCL and send it to your
printer. If you can see the mu character in the output look into
fonts.fo how to make it appear. You will probably have to use
font-family="Symbol".
Jeremias,
Thanks. Adding inline the font-family and using the right code out of 
the symbol table did the trick!! The fonts.fo example was very helpful.

Oscar

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


Re: PCL problem

2002-12-23 Thread Oscar Schoof
this all comes down to which font you are using. The PCL renderer 
doesnt support custom fonts. From the standard 14 fonts, the mu 
character x03BC has a glyph in the Symbol font. Maybe your PCL printer 
doesnt support the Symbol Font?
Hi Chris,
i'm using only font-family "Helvetica". No extra fonts declared in the 
config.
The pcl-file is spooled to the same printer the pdf is printed (by an 
adobe acrobat reader) to.
Both outputs of FOP are generated on the same PC (with Windows 2000 pro) 
and printed/spooled also.
My printer-driver tells me it supports the symbol-font (natively, 
without download a softfont).
(I'm setting up a automated fax process. In feeding the pcl to our 
fax-server, which is pcl-oriented, i get exactly the same results.)
I do not think the problem is the printer.
What i also notice in the printed output, is that the width of this 
wrong symbol (the 1/4-symbol) is wrong, i.e. it has exactly the width of 
the character i wanted there: the mu.
Do you have any more suggestions?

Oscar

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


PCL problem

2002-12-23 Thread Oscar Schoof
Hi all,
i've got a problem with a special character (and maybe with more, but 
did not notice yet). In this case it is about the "mu", the greek 
character often used for a shorthand for "micro". In my fo i convert 
this character to "μ".
Now, when i process my fo to pdf with FOP it shows ok in the pdf.
But when i process the same fo to pcl with FOP it shows a strange and 
wrong symbol. (It looks like the symbol for 1/4.)

Does anybody know why this happens and/or what to do about it?
Oscar



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


Re: fixed-width fonts are not fixed-width in FOP print

2002-12-19 Thread Oscar Schoof

contains very precise spacing.  For example, I might have a column of 
numbers such as:
  9.5
 17.23
1492.1
that I need to line up on the decimal point.
Does anyone have any advice how I can get my fixed-width fonts to truly be 
rendered as fixed-width, without an intermediate PDF file?
 

Jim,
you could try another approach (as i do myself in our chemical analysis 
reporting).
Devide the numbers in two parts: one containing the part before the 
decimal point and one containing the rest. Use two columns in your table 
for these devided results, the left one with the text aligned to the 
right and the right one with the text aligned to the left.

Oscar

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


Re: Tools for Fo

2002-12-09 Thread Oscar Schoof





  Are there any tools that convert, for
example, a  simple excel, word or other formats to a Fo format or to a xsl/fo
format?


You can save an Excel file as an XML-file. (At least, i can, with my 2002
version.) Can you work from there?

Oscar





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



Document security of PDFs

2002-12-09 Thread Oscar Schoof
Hi everybody,
in inspecting the "document security" of a PDF, which was generated by 
FOP, i noticed that -amongst others- the "changing the document" 
property was set to "allowed", "security method " to "none" and 
"document assembly" set to "allowed".

Naive as i was, i expected Acrobat reader documents to be "secure" (a 
vague qualifier of course). Adobe PDF files are "secure and reliable", 
according their own website.
With Acrobat (Writer) i simply was able to change the contents of the 
fop-generated pdf .

My question is: can i get pfd documents with fop in which the 
security-properties are more tight, say at least "changing the document" 
set to "not allowed"?

Thanks,
Oscar



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