external-graphic and ratio

2002-06-28 Thread Rodolphe VAGNER
Hello,

Is it possible to apply a ratio on an image trhought
an external-graphic fo element ?
I mean I want to display a graphic at 1/3 its size for example.
Can anyone help ?
Thanks


- Original Message - 
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 25, 2002 10:36 PM
Subject: Re: What kind of TIFF does FOP support


 Oleg Tkachenko wrote:
  btw, isn't jimi some kind of obsolete library intended to be used by 
  those tied to jdk1.1?
 
 Well, obsolete or not, it works, is available, platform neutral,
 easy to install and provides support for a wide range of graphics
 formats, some of them rather obscure. Do you know of a JAI
 implementation, preferably OSS and/or freely available, which
 supports all common subformats of TIFF, PNG, BMP and perhaps a
 few more?
 
 A quick sweep through sourceforge revealed only a TIFF
 implementation.
 
 The Sun JAI implementation offers all the formats, but
 installation requires more than just dropping a jar into
 the classpath, and it contains platform specific binaries
 (good for speed but screws Mac users and others).
 
 J.Pietschmann
 



Re: What kind of TIFF does FOP support

2002-06-25 Thread Rodolphe VAGNER
It's fantastic :  
Many responses to my problems.
Thank you very much.


- Original Message - 
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 9:59 PM
Subject: Re: What kind of TIFF does FOP support


 Rodolphe VAGNER wrote:
  In fact the first tests I've done seem to indicate the contrary :
  my uncompressed file is a black area and my CCITT Gr4 or 3, and LWZ
  compressed files
  are well rendered.
  It's bizarre, isn'it ?
  What about jimy ? where can I find doc on it ?
 
 Ok, here it goes.
 The Jimi home page is
   http://java.sun.com/products/jimi/
 You can download the whole package there, including
 Source, JavaDoc and, most valuable, additional docs
 describing supported file and image formats.
 
 For TIFF, the following compression schemes are supported
- Uncompressed images
- CCITT compressed Bi-level images with CCITT RLE, CCITT
  Group 3 1D Fax, CCITT Group 3 2D Fax, CCITT Group 4 Fax
- CCITT Class F Fax
- Packbits compressed images (a simple RLE type compression)
- LZW Compressed images
 JPEG compression is not supported.
 
 The TIFF spec is available from
   http://partners.adobe.com/asn/developer/PDFS/TN/TIFF6.pdf
 Compression schemes are
Packbits: run length encoding (Sec. 9)
CCITT G3 Fax (Sec. 10)
CCITT Bilevel (Sec. 11)
LZW (Sec. 13)
JPEG (Sec. 22)
 CCITT Class F compression is apparently defined in a RFC,
 for example available here:
   http://www.zvon.org/tmRFC/RFC2306/Output/chapter3.html
 
 It is also mentioned that Jimi does only understand
 black and white (bilevel), grayscale (palette) and RGB
 (palette and direct color). CMYK, Cie L*a*b* and YCbCr
 color models are not implemented.
 
 It is not mentioned whether compression predictors are
 supported, I supposed not (does anybody use them?). It is
 also not explicitely noted how Jimi deals with alpha
 channels.
 
 If uncompressed TIFF comes out black, probably the color
 model or palette size is inconvenient for Jimi.
 
 J.Pietschmann
 



What kind of TIFF does FOP support

2002-06-24 Thread Rodolphe VAGNER
Hello, 
I have to create document with TIFF illustrations.
It seems that some TIFF formats are supported and thers 
are not ( a black area replace the illustration).
Can some one tells me what kind of TIFF FOP supports ?

thanks



Re: What kind of TIFF does FOP support

2002-06-24 Thread Rodolphe VAGNER
In fact the first tests I've done seem to indicate the contrary :
my uncompressed file is a black area and my CCITT Gr4 or 3, and LWZ
compressed files
are well rendered.
It's bizarre, isn'it ?
What about jimy ? where can I find doc on it ?


- Original Message -
From: Max Dcosta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 1:45 PM
Subject: RE: What kind of TIFF does FOP support


 I would like to recall this msg posted earlier by J. Pietschmann


 Jimi.jar doesn't understand all possible compressions allowed
 in TIFF. Use uncompressed or RLE compressed TIFFs.



 Cheers,

 Max





 -Original Message-
 From: Max Dcosta [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 24, 2002 5:10 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: What kind of TIFF does FOP support


 most renderers may support uncompressed tiffs...

 pls correct me if i am wrong.

 -Original Message-
 From: Rodolphe VAGNER [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 24, 2002 3:47 PM
 To: [EMAIL PROTECTED]
 Subject: What kind of TIFF does FOP support


 Hello,
 I have to create document with TIFF illustrations.
 It seems that some TIFF formats are supported and thers
 are not ( a black area replace the illustration).
 Can some one tells me what kind of TIFF FOP supports ?

 thanks



center a graphic in a table cell

2002-05-22 Thread Rodolphe VAGNER
Hi,

I try to center a graphic in a table cell without success.
The display-align property don't seem to work on table-cell, block, or
external-graphic.

Does anyone know a mean to center a graphic in a table cell ?

Thanks


- Original Message -
From: Oleg Tkachenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 22, 2002 1:05 PM
Subject: Re: servlet FOP multi-thread


 Pierre-Adrien Coustillas wrote:
 When the document is ok size = 63 ko, when the document is not ok size

  63 ko (always different) and it's impossible open pdf.

 Do you flush/close output stream explicitly? Could you show us output
related
 snipped of your code?

 --
 Oleg Tkachenko
 Multiconn International, Israel




Re: Rotating the generated pdf

2002-04-29 Thread Rodolphe VAGNER
The ACROBAT SDK does : your pages can be rotated, means all the page with
the text in.

- Original Message -
From: Andrius Sabanas [EMAIL PROTECTED]
To: fop-user [EMAIL PROTECTED]
Sent: Monday, April 29, 2002 10:45 AM
Subject: Rotating the generated pdf


 Hello,

 Is it possible to generate the rotated pdf using FOP? I checked the
 XSL:FO spec and found the reference-orientation property, but does not
 seem to be supported by FOP as for now.

 Is there any other way to achieve a simple 90deg rotation of the whole
 page? Maybe there is some pdf post-processing software?


 thanks in advance,

 Andrius





Re: Root element trouble

2002-04-25 Thread Rodolphe VAGNER

(B
(B
(BI think UTF-16 is not yet supported by FOP 
(B(UTF-8 since 0.20.3)
(BMaybe your problem is here.
(B
(B  - Original Message - 
(B  From: 
(B  [EMAIL PROTECTED] 
(B  To: [EMAIL PROTECTED] 
(B  Sent: Thursday, April 25, 2002 3:06 
(B  PM
(B  Subject: AW: Root element trouble
(B  
(B  Hello,
(B  I 
(B  had the same problem. It sounds a bit strange: Delete the 
(B  xml-declaration line and all runs fine. But I don$B!-(Bt know what to do, if you 
(B  don$B!-(Bt want to delete the declaration...
(B  
(B  Andr
(B  
(B-Ursprngliche Nachricht-Von: Matthew Huggett [mailto:[EMAIL PROTECTED]]Gesendet: 
(BDonnerstag, 25. April 2002 14:52An: 
(B[EMAIL PROTECTED]Betreff: Root element 
(Btrouble
(B
(B
(BFOP doesn't seem to be recognizing the 
(Broot element in my fo doc.
(BI've followed the recommendations in 
(Bother mailings, but still no results. The examples that came with Fop 
(Brun fine. I can't see how my fo doc is any different from them. 
(BSomeone enlighten me please.
(B
(BHere are the error message and 
(Bsome lines from my fo doc.
(B
(B!-- Fop output 
(B-- [INFO]: FOP 0.20.3[INFO]: building 
(Bformatting object tree[ERROR]: Unknown formatting object ^[ERROR]: 
(BRoot element must be 
(B
(Broot, not (none):
(B
(B!-- The first couple of lines in my FO document, which was 
(B
(B
(Bcreated by MSXML 4 --
(B
(B?xml version="1.0" encoding="UTF-16"?fo:root 
(B
(Bxmlns:fo="http://www.w3.org/1999/XSL/Format"
(B
(BI'd appreciate any 
(B  help.

Re: how to hide page numbers on empty pages

2002-04-11 Thread Rodolphe VAGNER
I can't really remember if it was that but I succed in doing such a thing ;
you may try this ( a beat complex) :
use a page-sequence-master with a simple-page-master for blank pages
referenced in a conditionnal-page-master-reference.(so you have to define a
simple-page-master !).
In your page sequence use force-count-page=end-on-even;
put your first static-content the stactic-countent of your blank
simple-page-master ;

fo:simple-page-master master-name=right
...
  fo:region-body  margin-top=15.4mm
margin-bottom=25mm /
  fo:region-before  extent=20mm/
  fo:region-after  extent=25mm/
/fo:simple-page-master

fo:simple-page-master  master-name=left
...
  fo:region-body  margin-top=15.4mm
margin-bottom=25mm/
  fo:region-before  extent=20mm/
  fo:region-after  extent=25mm/
/fo:simple-page-master

fo:simple-page-master  master-name=blank
...
 fo:region-body  region-name=blank-body
   margin-top=15.4mm
   margin-bottom=25mm/
 fo:region-before region-name=blank-before
   extent=170mm/
 fo:region-after region-name=blank-after
   extent=25mm/
/fo:simple-page-master

...
fo:page-sequence-master master-name=seq1
 fo:repeatable-page-master-alternatives
  fo:conditional-page-master-reference master-name=blank
blank-or-not-blank=blank/
fo:conditional-page-master-reference master-name=right
odd-or-even=odd/
  fo:conditional-page-master-reference master-name=left
odd-or-even=even/
 /fo:repeatable-page-master-alternatives
/fo:page-sequence-master
...


 fo:page-sequence master-name=seq1
   force-page-count=end-on-even
...

  !--static--
  fo:static-content flow-name=blank-before
  /fo:static-content

fo:static-content flow-name=blank-after
  /fo:static-content


- Original Message -
From: Michal Kwiatek [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 11, 2002 3:01 PM
Subject: HELP: how to hide page numbers on empty pages


 Hi there!

 I print my document on both sides of a page.  However, I want chapters to
 start on even pages. I achieved this by using break-before=odd-page
 attribute.
 Fop simply adds an empty page where necessary. Buthow can I make fop hide
 page numbers on those autatically generated empty pages?

 Thanks in advance,
 Michal Kwiatek




Re: basic-link

2002-04-10 Thread Rodolphe VAGNER
You should try http://forum.planetpdf.com

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 10, 2002 11:22 AM
Subject: RE: basic-link


Hi,

We r generating PDF files using fo. We want to provide some security
features to the PDF like non-printable, non-editable etc., when opened thru
Adobe acrobat. Can somebody help in achieving this? Can this be done thru
FOP itself or do we need to use Adobe's API? If somebody could help me out
thru Adobe API also, that would be appreciated.

Regards,
Vasantha Raju N



-Original Message-
From: MagnusSjöberg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 10 April 2002 21:21
To: [EMAIL PROTECTED]
Subject: fo:basic-link


Hi all!

When using fo:basic-link it appears that the 'hotspot'
around the text in the PDF gets misaligned.
The more links I have in a page, the more the hotspots stray
away, making me think the error is cumulative.
(My fo consists of several page sequences, if that could be
a factor...)

Are there any problems with the implementation of
fo:basic-link? I saw earlier posts talking about this but
haven't found anything conclusive.
Anyone got any ideas?

/// Magnus



Re: tabulation

2002-04-09 Thread Rodolphe VAGNER
I usually use a table, and the align property ( start/end )
if it could help...
- Original Message -
From: Michal Kwiatek [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 09, 2002 1:56 PM
Subject: RE: tabulation


 Following Alex's advice, I went through both fop and w3-xsl-fo mailing
 archives.
 Here is what I found at
 http://lists.w3.org/Archives/Public/www-xsl-fo/2001Nov/0015.html:

 fo:block text-align-last=justify end-indent=2pc
 last-line-end-indent=-2pc
   fo:inline keep-with-next.within-line=alwaysChapter 1/fo:inline
   fo:inline keep-together.within-line=always
 fo:leader leader-pattern=dots keep-with-next.within-line=always/
 1
   /fo:inline
 /fo:block

 Looks good, but fop breaks the line just before page number and spoils the
 job. Any idea why, or how it can be amended?

 Thanks in advance,
 Michal Kwiatek

 ---
 BiznesPartner.pl SA
 ul. Mlynarska 48
 01-171 Warszawa
 tel. 5355560



  -Original Message-
  From: alex [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 09, 2002 1:17 PM
  To: [EMAIL PROTECTED]
  Subject: Re: tabulation
 
 
  I really thought this was in my FAQ
  http://www.owal.co.uk/cgi-bin/fopfaq.cgi
  but apparently not. I think this has been answered  on the
  fop-dev mailing
  list some time ago.
  Please have a hunt through the archives and tell me the answer if
  you find
  it - or tell me you can't find it and I'll have a look.
 
  Alex
 
 
  At 12:10 09/04/2002, you wrote:
  Hi!
  
  I need to enter a TOC into my document. Titles should be
  left-aligned, but
  numbers of pages must be right-aligned, although they're in the
  same lines,
  as titiles. There should also be dots between titles and page numbers.
  
  I looked for tabulators in xsl specs, but there seem to be none. So
there
  has to be some other way! Any ideas?
  
  I know this isn't strictle a fop question, but you're the only
  active xsl fo
  community I've heard of.
  
  Thanks in advance,
  Michal Kwiatek
 




Re: Drawing a border around a simple word

2002-04-04 Thread Rodolphe VAGNER
You should try attribute 'border'  in a fo:block :

bla bla bla bla fo:block border=0.5pt solid black
blaWithBordersfo:blockbla bla bla

Maybe a fo:inline instead of the fo:block would be better
bla bla bla bla  fo:inline border-left-width=thin
border-top-width=thin...
border-left-style=solid.   blaWithBorders /fo:inlinebla bla bla

- Original Message -
From: MARTIN Franck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 04, 2002 11:10 AM
Subject: Drawing a border around a simple word


 Hi all

 Does anyone know how to draw a border around a word placed in a
 sentence?

 I would appreciate any suggestion very much ;)

 Franck




Re: Very bizarre

2002-03-29 Thread Rodolphe VAGNER
Persisting problem :

the file is really present in C:/fop-0.20.3/GRAPH/Fig000.TIF,
and jimi-1.0.jar is in lib too ;

moreover my fo code is :

fo:block 
fo:block 
fo:external-graphic src=file:///C:/fop-0.20.3/GRAPH/Fig001.tif/
/fo:block
fo:block
Modification Description FIGURE 1
/fo:block
/fo:block


where the 3  '/' are.

and the same fo is running well with the 0.20.2 version.

Quite difficult to accept !

Thank you anyway
- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 28, 2002 9:13 PM
Subject: Re: Very bizarre


 Rodolphe VAGNER wrote:
  I think it is ; for more information here is the error message I have :
  [ERROR]: Could not load external SVG: The markup in the document
  following the root element must be well-formed.
  [ERROR]: Error while creating area : No ImageReader for this type of
  image (file:/C:/fop-0.20.3/)
  [ERROR]: Error while creating area : Error creating FopImage object
  (Error creating FopImage object (file:/C:/fop-0.20.3/GRAPH/Fig000.TIF) :
  org.apache.fop.image.JimiImage

 This is indeed somewhat bizarre. However, my automated problem picker
 points here:
   (Error creating FopImage object (file:/C:/fop-0.20.3/GRAPH/Fig000.TIF)
:
 What did you supply as the source name?
 I suggest to check whether using a proper absolute URL fixes your
 problem:
fo:external-graphics src=file:///C:/fop-0.20.3/GRAPH/Fig000.TIF/
 Note the triple slash. Check also whether the file is indeed
 there, and look for misspellings.
 If this still fails, check whether your last error message continues
 with something like ClassDefNotFound. In this case, check whether
 there is indeed a jimi.jar in the classpath and present at the place
 where the classpath expects it to be (usually the FOP lib/ directory).

 J.Pietschmann




revision bars

2002-03-29 Thread Rodolphe VAGNER



Hy, 
I have to display revision bars on a 
document.
I can't change the DTD ( SGML one, I transform sgml 
instances in xml
before my fop treatment )that specifies that 
the revisions bars
must appear in front of the text which is between 
the tags
startOfRevision/ and endOfRevision/ 
; note that these tags
areempty, and are included elements, in SGML 
sense !

Do you think Ican display those bars 


- with XSL (if possible, and I think it's not 
)
- by inserting invisible marks in the PDF and have 
a post treatment on the PDK 
with the Adobe SDK. So, what kind of mark can I use 
??

Thanks for helping




page intentionnally left blank

2002-03-28 Thread Rodolphe VAGNER



I would like to put the mention "page 
intentionnally left Blank"
in every blank page forced bythe 
force-page-count="end-on-even" ;
I tried to use a static-content but without any 
success ;

Does someone know if it's possible with FOP, and 
how to do that ?


Very bizarre

2002-03-28 Thread Rodolphe VAGNER



Hy, 
I'm very surprised because the tiff illustrations 
were support on fop 0.20.2
but seam not to be on the fop 0.20.3 !
Is there anything that can enable fop 0.20.3 to 
support tiff ?


ohm symbol not supproted ?

2002-03-26 Thread Rodolphe VAGNER



I try a fop transformation in UTF-16 with ohm 
symbol (greek omega capital letter)
and I find a ' O ' in the pdf result, but µ is 
supported !!

Can someone help ?


force-count-page : end on even

2002-03-26 Thread Rodolphe VAGNER



Hy,

My format of footpage is :

page x on X

But it seems that the forced page is not counted 
!

( my last page is 'page 42 on 41' 
!!!)

Is there a solution ?