Re: Bug reports?

2001-08-29 Thread Alex McLintock

 --- Daniel Knapp [EMAIL PROTECTED] wrote:  Hi,
 
 I am new to this list and I wonder what happens to all the bugs reported
 here. Were they discussed in any way?

I guess that since this is the development mailing list for the fop developers
(and users who want to know more) this would be the main place for any
such discussions.

If you are interested in particular bugs then perhaps look at the archives for
this list.

Were you refering to the bugzilla bugs? 

Alex

=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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




Re: Bug reports?

2001-08-29 Thread Daniel Knapp

 I guess that since this is the development mailing list for the fop developers
 (and users who want to know more) this would be the main place for any
 such discussions.

 Were you refering to the bugzilla bugs?

Yes. The reason I asked was, I've reported a bug and subscribed to this
mailing list to see where I can help fixing the problem. But up to this
point no bug was discussed.

MfG, Daniel

-- 
Daniel Knapp [EMAIL PROTECTED]
int a=1,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5;for(;d=0,
g=c*2;c-=14,printf(%.4d,e+d/a),e=d%a)for(b=c;d+=f[b]*a,f[b]=d%--g,d/=
g--,--b;d*=b);} berechnet Pi auf 800 Stellen genau. :-)


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




Using fo:basic-link

2001-08-29 Thread Daniel Knapp

Hi,

I tried implementing some links in PDF-documents. For this I've used
fo:basic-link internal-destination=AText/fo:basic-link to jump to
the element with id=A.
AFAIK is above syntax correct, but when using FOP (no error is displayed),
I cannot use the links in the PDF-document, they are clickable but the
click makes no impact.

MfG, Daniel

-- 
Daniel Knapp [EMAIL PROTECTED]
int a=1,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5;for(;d=0,
g=c*2;c-=14,printf(%.4d,e+d/a),e=d%a)for(b=c;d+=f[b]*a,f[b]=d%--g,d/=
g--,--b;d*=b);} berechnet Pi auf 800 Stellen genau. :-)


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




Re: Centering fo:table elment

2001-08-29 Thread rajeev nair

hello,
thanx for ur prompt response.
whenever i tried using display-align=center in
fo:table or fo:table-body element ,the warning
'display-align' property ignored is occuring.i'm using
fop-0.18.1
.further help expected
regards
rajiv
--- Nikolai Grigoriev [EMAIL PROTECTED] wrote:
   how can i align the fo:table elment at center of
 the
   page in xsl-fo.
  
  use
  
  fo:table display-align=center
 
 This aligns the contents of each table cell within
 the cell. To align 
 the entire table on the page, you will need to
 specify display-align=center
 on the respective fo:region-body element.
 
 Regards,
 Nikolai
 
 

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


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




Re: Centering fo:table elment

2001-08-29 Thread Daniel Knapp

 thanx for ur prompt response.
 whenever i tried using display-align=center in
 fo:table or fo:table-body element ,the warning
 'display-align' property ignored is occuring.i'm using
 fop-0.18.1
 .further help expected

On the xml.apache.org web site it doesn't mention display-align on the
features-list of FOP, so maybe it isn't implemented, yet. But try the
newer Fop-0.20.1, maybe it works.

Unfortunately the trick putting the whole table in a fo:block
text-align=center-element doesn't work.

MfG, Daniel

-- 
Daniel Knapp [EMAIL PROTECTED]
int a=1,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5;for(;d=0,
g=c*2;c-=14,printf(%.4d,e+d/a),e=d%a)for(b=c;d+=f[b]*a,f[b]=d%--g,d/=
g--,--b;d*=b);} berechnet Pi auf 800 Stellen genau. :-)


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




Re: svg probs with 0.19.0 and 0.20.1 - About viewBox

2001-08-29 Thread Jeroen de Zwart

As far as I know viewBox was implemented before Batik came in.
The implementation for the viewBox in Batik still isn't there:

This is what is in org.apache.batik.dom.svg.SVGOMSVGElement.java:

public SVGAnimatedRect getViewBox() {
throw new RuntimeException( !!! TODO:
SVGOMSVGElement.getViewBox());
}

Hope that someone can implement it soon.

Jeroen de Zwart


- Original Message -
From: Maring, Steve [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 14, 2001 3:04 PM
Subject: RE: svg probs with 0.19.0 and 0.20.1


 I just tried FOP 0.20.1 using the fill-rule:evenodd example from
 http://www.w3.org/TR/2001/PR-SVG-20010719/painting.html#FillProperties
with
 a modified DTD reference since the one mentioned didn't exist.  The
 fill-rule:evenodd worked(I must not have been doing it right) but viewBox
 still did not.  The size of the svg in the pdf makes it look like it chose
 to convert this 1200 unit wide graphic into a 1200px graphic at 72dpi(
i.e.
 BIG; not 12cm ).  What version of Batik is in the lib dir?  When I open
this
 svg in the Batik 1.0 svg browser the viewBox works.  The Batik 1.0 distro
 now comes with some umteen jars.  Anybody now which ones I need short of
 sticking every single one in a classpath?


 ?xml version=1.0?
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
 fo:simple-page-master master-name=mymaster
 page-height=11in page-width=8.5in
 fo:region-body/
 /fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence master-name=mymaster
 fo:flow flow-name=xsl-region-body
 fo:block
 fo:external-graphic
 src=file:evenodd.svg/
 /fo:block
 /fo:flow
 /fo:page-sequence
 /fo:root

 ?xml version=1.0 standalone=no?
 !DOCTYPE svg PUBLIC -//W3C//DTD SVG 20010719//EN
 http://www.w3.org/TR/2000/CR-SVG-2802/DTD/svg-2802.dtd;
 svg width=12cm height=4cm viewBox=0 0 1200 400
   descExample fillrule-evenodd - demonstrates fill-rule:evenodd/desc
   rect x=1 y=1 width=1198 height=398
 fill=none stroke=blue /
   defs
 path id=Triangle d=M 16,0 L -8,9 v-18 z fill=black
stroke=none
 /
   /defs
   g fill-rule=evenodd fill=red stroke=black stroke-width=3 
 path d=M 250,75 L 323,301 131,161 369,161 177,301 z /
 use xlink:href=#Triangle transform=translate(306.21 249)
rotate(72)
 overflow=visible  /
 use xlink:href=#Triangle transform=translate(175.16,193.2)
 rotate(216) overflow=visible  /
 use xlink:href=#Triangle transform=translate(314.26,161)
rotate(0)
 overflow=visible  /
 use xlink:href=#Triangle transform=translate(221.16,268.8)
 rotate(144) overflow=visible  /
 use xlink:href=#Triangle transform=translate(233.21,126.98)
 rotate(288) overflow=visible  /
 path d=M 600,81 A 107,107 0 0,1 600,295 A 107,107 0 0,1 600,81 z
  M 600,139 A 49,49 0 0,1 600,237 A 49,49 0 0,1 600,139 z /
 use xlink:href=#Triangle transform=translate(600,188) rotate(0)
 translate(107,0) rotate(90) overflow=visible  /
 use xlink:href=#Triangle transform=translate(600,188) rotate(120)
 translate(107,0) rotate(90) overflow=visible  /
 use xlink:href=#Triangle transform=translate(600,188) rotate(240)
 translate(107,0) rotate(90) overflow=visible  /
 use xlink:href=#Triangle transform=translate(600,188) rotate(60)
 translate(49,0) rotate(90) overflow=visible  /
 use xlink:href=#Triangle transform=translate(600,188) rotate(180)
 translate(49,0) rotate(90) overflow=visible  /
 use xlink:href=#Triangle transform=translate(600,188) rotate(300)
 translate(49,0) rotate(90) overflow=visible  /
 path d=M 950,81 A 107,107 0 0,1 950,295 A 107,107 0 0,1 950,81 z
  M 950,139 A 49,49 0 0,0 950,237 A 49,49 0 0,0 950,139 z /
 use xlink:href=#Triangle transform=translate(950,188) rotate(0)
 translate(107,0) rotate(90) overflow=visible  /
 use xlink:href=#Triangle transform=translate(950,188) rotate(120)
 translate(107,0) rotate(90) overflow=visible  /
 use xlink:href=#Triangle transform=translate(950,188) rotate(240)
 translate(107,0) rotate(90) overflow=visible  /
 use xlink:href=#Triangle transform=translate(950,188) rotate(60)
 translate(49,0) rotate(-90) overflow=visible  /
 use xlink:href=#Triangle transform=translate(950,188) rotate(180)
 translate(49,0) rotate(-90) overflow=visible  /
 use xlink:href=#Triangle transform=translate(950,188) rotate(300)
 translate(49,0) rotate(-90) overflow=visible  /
   /g
 /svg

 -Original Message-
 From: Michel Lehon [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 14, 2001 4:30 AM
 To: [EMAIL PROTECTED]
 Subject: RE: svg probs with 0.19.0


 I thought FOP 0.19.0 + used Batik for SVG.

 Am I Wrong ?

 Michel.

  -Original Message-
  From: Alex McLintock [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, 14 August, 2001 10:22
  To: [EMAIL PROTECTED]
  Subject: Re: svg probs with 0.19.0
 
 
   --- Maring, Steve [EMAIL PROTECTED] wrote:
   I'm not sure why this is happening.  Maybe somebody can help me?  My
svg
   gets 

again: horizontal alignment

2001-08-29 Thread Matthias Born

hi!

is there somebody who has a working solution for centering a table
horizontal within a page,

that is not:

fo:simple-page-master page-width=210mm master-name=myPage
page-height=297mm
fo:region-body display-align=center/
/fo:simple-page-master

(thx fabio)

or

... margin-left=auto margin-right=auto

(thx adrian)

thx to all, who tried to help.

and alex, please delete fabios solution from faq. it doesn't work!

regards!

matze


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




Chinese characters line-breaking

2001-08-29 Thread Frank Chen

Hi:

I found the line-breaking in FOP is based upon spaces between English words.
But this is not major way for Chinese characters'
line-breaking. Please see elcosed files:big5test.fo and big5test.pdf
to see what happens.

Is there any implementation-specific way in FOP to modify this?
Or can you add support to Chinese rendering?

--Frank Chen


 big5test.fo
 big5test.pdf

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


Image problem

2001-08-29 Thread Pablo Iaria



Hi all,
 I'm triying to insert an image 
into a document. 

I have the following code:

fo:block 
fo:external-graphic height="48px" width="131px" 
src="file:theImage.gif"//fo:block

and I get the following error:

"Error while creating area : Invalid Image URL - 
error on relative URL : no protocol: theImage.gif"

What am I doing wrong ?

Thanks in advance,
 Pablo.-

PS: the image file is placed in the same fop file 
directory.


Re: Image problem

2001-08-29 Thread Daniel Knapp


 fo:block
 fo:external-graphic height=48px width=131px src=file:theImage.gif/
 /fo:block

 and I get the following error:

 Error while creating area : Invalid Image URL - error on relative URL
 : no protocol: theImage.gif

 What am I doing wrong ?


Have you tried other possibilities or is this your first try? Try
including the image without the leading 'file:'. If this doesn't work you
should try the absolute path and adding './' before the image.

Hope that helps.

MfG, Daniel

-- 
Daniel Knapp [EMAIL PROTECTED]
int a=1,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5;for(;d=0,
g=c*2;c-=14,printf(%.4d,e+d/a),e=d%a)for(b=c;d+=f[b]*a,f[b]=d%--g,d/=
g--,--b;d*=b);} berechnet Pi auf 800 Stellen genau. :-)


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




FopServlet error help!

2001-08-29 Thread Kilmer, Erich

I am trying to run a FopServlet and I get this exception in my browser when
I try to render the .FO file:
org.xml.sax.SAXParseException: The root element is required in a well-formed
document
I know you think its the .FO file but I even get it when I run the readme.fo
that comes with FOP through it.
Here is what the code looks like:
FileInputStream foFile = new
FileInputStream(request.getParameter(FO_REQUEST_PARAM));
ByteArrayOutputStream out = new ByteArrayOutputStream();
response.setContentType(application/pdf);
Driver driver = new Driver(foFile, out);
driver.run();
byte[] content = out.toByteArray();
response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();

Is there some Driver setting I should be doing?
TIA,

Erich Kilmer
Bell+Howell

PS: My .fo file starts out like this:

?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 margin-right=.5in
margin-left=.5in margin-bottom=0in margin-top=.25in
master-name=right
fo:region-body margin-bottom=0in/
fo:region-after extent=0in/
I can send the entire file if someone wants to look at it.



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




RE: Image problem

2001-08-29 Thread Gustavo Wolf



I 
think that you have to provide the absolute path of the 
file.
gustavo

  -Original Message-From: Pablo Iaria 
  [mailto:[EMAIL PROTECTED]]Sent: mercredi, 29. août 2001 
  15:17To: [EMAIL PROTECTED]Subject: Image 
  problem
  Hi all,
   I'm triying to insert an 
  image into a document. 
  
  I have the following code:
  
  fo:block 
  fo:external-graphic height="48px" width="131px" 
  src="file:theImage.gif"//fo:block
  
  and I get the following error:
  
  "Error while creating area : Invalid Image URL - 
  error on relative URL : no protocol: theImage.gif"
  
  What am I doing wrong ?
  
  Thanks in advance,
   Pablo.-
  
  PS: the image file is placed in the same fop 
  file directory.


Re: Chinese characters line-breaking

2001-08-29 Thread Carlos Villegas



Frank Chen wrote:

Hi:

I found the line-breaking in FOP is based upon spaces between English words.
But this is not major way for Chinese characters'
line-breaking. Please see elcosed files:big5test.fo and big5test.pdf
to see what happens.

Is there any implementation-specific way in FOP to modify this?
Or can you add support to Chinese rendering?



You need to set the language property to chinese (i.e. language=zh),
you can add it as an attribute to fo:root or to each fo you want to
format. Currently FOP checks if the language is ja, zh, ko or vi. If so
it will break in the middle of words (western concept of words).

Notice that this is not a complete solution to CJK line-breaking but
it's better not breaking at all, like in your sample. A more
sophisticated algorithm will try to keep together open punctuation marks
with the next character or closing marks with the previous character, so
you won't get a period or comma at the beginning of a line. This is
usually done with kinsoku tables (I think that's the japanese term),
that basically lists punctuation marks, whether they're open or close
type and some priority or penalty. I think that's the way TeX does it.

Carlos




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




Re: Image problem

2001-08-29 Thread Louis . Masters


Try this (it works for me):

String theFileURL=file:/// + theFile;

-Lou





Pablo Iaria [EMAIL PROTECTED] on 08/29/2001 09:47:21 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Image problem

Hi all,
I'm triying to insert an image into a document.

I have the following code:

fo:block
fo:external-graphic height=48px width=131px src=file:theImage.gif
/
/fo:block

and I get the following error:

Error while creating area : Invalid Image URL - error on relative URL : no
protocol: theImage.gif

What am I doing wrong ?

Thanks in advance,
Pablo.-

PS: the image file is placed in the same fop file directory.







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




RE: Image problem

2001-08-29 Thread Jim Wright



This 
is absolutely true! The absolute path is necessary to get the image to work (at 
least that's how I work with it).

jw

  -Original Message-From: Gustavo Wolf 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 29, 2001 8:31 
  AMTo: '[EMAIL PROTECTED]'Subject: RE: Image 
  problem
  I 
  think that you have to provide the absolute path of the 
  file.
  gustavo
  
-Original Message-From: Pablo Iaria 
[mailto:[EMAIL PROTECTED]]Sent: mercredi, 29. août 2001 
15:17To: [EMAIL PROTECTED]Subject: Image 
problem
Hi all,
 I'm triying to insert an 
image into a document. 

I have the following code:

fo:block 
fo:external-graphic height="48px" width="131px" 
src="file:theImage.gif"//fo:block

and I get the following error:

"Error while creating area : Invalid Image URL 
- error on relative URL : no protocol: theImage.gif"

What am I doing wrong ?

Thanks in advance,
 Pablo.-

PS: the image file is placed in the same fop 
file directory.


Re: keep-with-next problem on multi column text

2001-08-29 Thread Don Wellington

Hi Arved-

I submitted patches against 20.1 to do an effective
keep-with-next on list-item-label and list-item-body,
except I assumed an implied keep-with-next on
list-item-label.  I would be glad to work with bodo on
this time permitting.  It would probably be best, so
that there are not two different pieces of code
floating around doing nearly the same thing.

Don

--- Arved Sandstrom [EMAIL PROTECTED] wrote:
 Hi, Bodo
 
 I'd be very happy to help. I'm badly sidelined due
 to work pressure, but 
 there is always some time I can pry loose...I'd
 rather spend that time 
 getting new developers up to speed.
 
 I'll review the source this evening and give you a
 synopsis of what we are 
 facing here.
 
 Regards,
 Arved Sandstrom
 
 At 12:18 PM 8/27/01 +0200, [EMAIL PROTECTED] wrote:
 hi,
 i tried to use the keep-with-next property on a
 multi column page with 
 some  text blocks that  normally fits on one page
 with 4 columns.
 my text consists of this sequence of text blocks:
 every 2nd block is 
 meant to be a headline and  the the following block
 is the paragraph 
 belonging to that headline.
 therefore i set the keep-with-next attribute on the
 headline blocks but 
 still the column break occurred between the
 headline and the paragraph.
 
 looking in to the code i found that  in 
 org.apache.fop.fo.flow.Block.layout(Area) the line:
 this.keepWithNext =

 this.properties.get(keep-with-next).getEnum();
 
 does not have any effect , since the getEnum()
 method always returns (0) 
 because the
 org.apache.fop.fo.KeepProperty(Keep) does not
 overwrite the getEnum() 
 method.
 
 so i patched this so that this.keepWithNext got the
 value=5 (just to 
 see what will happen then ) but immediately  i run
 in to another error:
 the headline appeared on the bottom of the old
 column, a wrong page 
 break occurred (instead of a column break)
 and the same headline appeared on the top of the
 new page.
 
 if nobody else is currently working on this
 problems i would be willing 
 to do this, if i (as a someone who just started to
 try to understand the 
 fop source code) get some assistance from the fop
 gurus.
 
 would you appreciate this?
 
 bodo teichmann
 
  
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
 [EMAIL PROTECTED]
 
 
 Fairly Senior Software Type
 e-plicity (http://www.e-plicity.com)
 Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia
 
 

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


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




Embedding fonts

2001-08-29 Thread Drew Hodge

I have successfully created new XML font metrics files using the PFMReader utility in 
FOP 0.20.1.  I run FOP specifying the new fonts in my userconfig file as follows

!-- Syntax-Roman --
font metrics-file=..\jar\Fop-0.20.1\fonts\syntax_roman.xml kerning=yes 
embed-file=C:\WINNT\Fonts\Sxr_.pfm
  font-triplet name=Syntax-Roman style=normal weight=normal/
/font

The resulting PDF correctly displays the new fonts on my computer, but the PDF 
displays garbled fonts on a colleague's computer.  I assume this is because I have the 
fonts installed and my colleague doesn't.  

Is there some other way to embed the new fonts into the PDF so that it is properly 
displayed regardless of whether or not the font is installed locally?

Thanks,

Drew Hodge


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

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




RE: Embedding fonts

2001-08-29 Thread Brigette Muller

You could first check that the font really did get embedded in the PDF.
Open the PDF (I use acrobat reader) and do File/Document
Properties/Fonts
Is the font you expect really embedded (look in the ActualFont column).

If it did not, check that fop has access to the font file - you may??
need to use forward-slash file naming.
(My embedding experience is on Solaris). There may be an error recorded
in the fop log that it could not embedd the font...

good luck
Brigette

-Original Message-
From: Drew Hodge [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 1:30 PM
To: FOP-dev mail list
Subject: Embedding fonts


I have successfully created new XML font metrics files using the
PFMReader utility in FOP 0.20.1.  I run FOP specifying the new fonts in
my userconfig file as follows

!-- Syntax-Roman --
font metrics-file=..\jar\Fop-0.20.1\fonts\syntax_roman.xml
kerning=yes embed-file=C:\WINNT\Fonts\Sxr_.pfm
  font-triplet name=Syntax-Roman style=normal weight=normal/
/font

The resulting PDF correctly displays the new fonts on my computer, but
the PDF displays garbled fonts on a colleague's computer.  I assume this
is because I have the fonts installed and my colleague doesn't.  

Is there some other way to embed the new fonts into the PDF so that it
is properly displayed regardless of whether or not the font is installed
locally?

Thanks,

Drew Hodge


Join 18 million Eudora users by signing up for a free Eudora Web-Mail
account at http://www.eudoramail.com

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


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




PDF question

2001-08-29 Thread Brigette Muller

Hi all,

I have been developing a PDF output for our system using the PDF
classes of fop, including the PDFGraphics2D. I need to include existing
pdfs in my generated PDF (eg logo). It seems from the PDF spec I do this
using Form XObjects, and I have made a class for PDFFormXObject. What I
can't seem to get is how to use my nicely built XObject to draw it - I
need a Do sequence like that in PDFGraphics2D.drawImage, but am stumped
as to the exact sytax.

Does anyone have an example or inspiration they could share?

thanks
Brigette

btw if anyone could use a drawImage method that takes a CMYK JPEG and
makes a FopImage out of it (for use in a PDF, uncompressed
unfortunately), I have finally completed one that works.
B.

 

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




RE: PDF question

2001-08-29 Thread COFFMAN Steven

Hey Brigette,
Have you tried converting your company's logo PDF file into SVG and
including that in a FO? Then you can log all the PDF calls and parameters to
help you build a makeLogo method that will re-create your logo in every
document. I did this myself. It's why all the wacky PDF gradient code
support is in there even for stuff SVG doesn't do.

Of course, if you used FO and the full FOP (now that SVG support rocks), you
wouldn't have to go to all that trouble, but I gather there's other reasons
for not doing that.
-Steve

-Original Message-
From: Brigette Muller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 2:23 PM
To: [EMAIL PROTECTED]
Subject: PDF question


Hi all,

I have been developing a PDF output for our system using the PDF
classes of fop, including the PDFGraphics2D. I need to include existing
pdfs in my generated PDF (eg logo). It seems from the PDF spec I do this
using Form XObjects, and I have made a class for PDFFormXObject. What I
can't seem to get is how to use my nicely built XObject to draw it - I
need a Do sequence like that in PDFGraphics2D.drawImage, but am stumped
as to the exact sytax.

Does anyone have an example or inspiration they could share?

thanks
Brigette

btw if anyone could use a drawImage method that takes a CMYK JPEG and
makes a FopImage out of it (for use in a PDF, uncompressed
unfortunately), I have finally completed one that works.
B.

 

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

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




Trying to transform XML to XSL:FO so I can convert it?

2001-08-29 Thread Kilmer, Erich

OK, finally got the FopServlet to work, thanks for the help!!!

My next problem is that my XML is not in a file. I will be reading it in
from my database (where its stored as a blob) into a large String. Next I
need to do something like an XSLTransform.transform to apply my XSL to the
XML. What results should be my .FO file. Now I have tried this where the XML
and XSL are files and programatically build the .FO file and this works but
I need help with the following things:

1) Is XSLTransform.transform the best class method to use?

2) XSLTransform.transform accepts for the XML input either a xmlSource
String or a org.w3c.dom.Document  what I have is the entire XML in a
String. Whats the best way to turn it into a Document?
TIA
Erich Kilmer


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




Re: Embedding fonts

2001-08-29 Thread Tore Engvig



On Wed, 29 Aug 2001, Drew Hodge wrote:

 I have successfully created new XML font metrics files using the PFMReader utility 
in FOP 0.20.1.  I run FOP specifying the new fonts in my userconfig file as follows

 !-- Syntax-Roman --
 font metrics-file=..\jar\Fop-0.20.1\fonts\syntax_roman.xml kerning=yes 
embed-file=C:\WINNT\Fonts\Sxr_.pfm
   font-triplet name=Syntax-Roman style=normal weight=normal/
 /font

 The resulting PDF correctly displays the new fonts on my computer, but the PDF 
displays garbled fonts on a colleague's computer.  I assume this is because I have 
the fonts installed and my colleague doesn't.

 Is there some other way to embed the new fonts into the PDF so that it is properly 
displayed regardless of whether or not the font is installed locally?

I think it's pure luck that it displays correctly on your display, you've
embedded the .pfm file (Sxr_.pfm), but you should embed the
corresponding .pfb file.


Tore



 Thanks,

 Drew Hodge


 Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

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




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




BasicLink extends Inline

2001-08-29 Thread Enrico Schnepel

Hello Foppers,

I have the problem that I want to specify other inline related properties 
than color ( like text-decoration=underline ) to basic-link. These are 
currently not supported by BasicLink. BasicLink currently extends FObjMixed.

I have changed BasicLink to extends Inline and removed double code. This 
results in visual properties handled by Inline and the LinkSet is set up by 
BasicLink.

I have attached the complete file.

Enrico

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


/*
 * $Id: BasicLink.java,v 1.7 2001/08/06 09:12:59 keiron Exp $
 * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
 * For details on use and redistribution please refer to the
 * LICENSE file included with these sources.
 */

package org.apache.fop.fo.flow;

// FOP
import org.apache.fop.fo.*;
import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.properties.*;
import org.apache.fop.layout.*;
import org.apache.fop.datatypes.ColorType;

// Java
import java.util.Enumeration;
import java.awt.Rectangle;

public class BasicLink extends Inline {

public static class Maker extends Inline.Maker {
public FObj make(FObj parent,
 PropertyList propertyList) throws FOPException {
return new BasicLink(parent, propertyList);
}

}

public static FObj.Maker maker() {
return new BasicLink.Maker();
}

public BasicLink(FObj parent,
 PropertyList propertyList) throws FOPException {
super(parent, propertyList);
this.name = fo:basic-link;
}

public Status layout(Area area) throws FOPException {
String destination;
int linkType;

if (!(destination =
this.properties.get(internal-destination).getString()).equals()) {
linkType = LinkSet.INTERNAL;
} else if (!(destination =
this.properties.get(external-destination).getString()).equals()) {
linkType = LinkSet.EXTERNAL;
} else {
throw new FOPException(internal-destination or external-destination must 
be specified in basic-link);
}

if (this.marker == START) {
// initialize id
String id = this.properties.get(id).getString();
area.getIDReferences().initializeID(id, area);
this.marker = 0;
}

// new LinkedArea to gather up inlines
LinkSet ls = new LinkSet(destination, area, linkType);

Page p = area.getPage();

AreaContainer ac = p.getBody().getCurrentColumnArea();
if (ac == null) {
throw new FOPException(Couldn't get ancestor AreaContainer when 
processing basic-link);
}

int numChildren = this.children.size();
for (int i = this.marker; i  numChildren; i++) {
FONode fo = (FONode)children.elementAt(i);
fo.setLinkSet(ls);

Status status;
if ((status = fo.layout(area)).isIncomplete()) {
this.marker = i;
return status;
}
}

ls.applyAreaContainerOffsets(ac, area);

// pass on command line
String mergeLinks = System.getProperty(links.merge);
if ((null != mergeLinks) !mergeLinks.equalsIgnoreCase(no)) {
ls.mergeLinks();
}

p.addLinkSet(ls);

return new Status(Status.OK);
}

}


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


RE: Dynamic leader lengths

2001-08-29 Thread Darren Munt

I've raised this myself about three times but so far but to no avail. It's
also been raised in at least two Bugzilla reports and been posted on this
mailing list by at least three other people (not including yourself). I
guess nobody is accepting responsibility for breaking it.

-Original Message-
From: Drew Hodge [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 August 2001 3:16 
To: [EMAIL PROTECTED]
Subject: Dynamic leader lengths


In FOP 0.19.0 I used the following to produce leaders of varying lengths in
a TOC.

fo:block font-family=sans-serif
  font-size=12pt
  font-weight=700
  color=darkred
  space-after=12pt
  text-align=start
  fo:basic-link internal-destination={generate-id(.)}
xsl:value-of select=sectionTitle/
  /fo:basic-link
  fo:leader leader-pattern=dots/
  xsl:text /xsl:text
  fo:basic-link internal-destination={generate-id(.)}
fo:page-number-citation ref-id={generate-id(.)}/
  /fo:basic-link
/fo:block

In FOP 0.20.1 this code doesn't seem to work -- the leader dots don't appear
unless I explicitly specify a length.

Does anyone know how I can get back to the behaviour of leaders in FOP
0.19.0 using FOP 0.20.1?

Thanks,

Drew Hodge


Join 18 million Eudora users by signing up for a free Eudora Web-Mail
account at http://www.eudoramail.com

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

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




Re: keep-with-next problem on multi column text

2001-08-29 Thread Arved Sandstrom

Sure, absolutely, I'll help out as a resource.

Did your patch get committed? If not I'll take care of it. Sorry I'm a bit 
scattered...work is intense right now.

Regards,
Arved

At 09:03 AM 8/29/01 -0700, you wrote:
Hi Arved-

I submitted patches against 20.1 to do an effective
keep-with-next on list-item-label and list-item-body,
except I assumed an implied keep-with-next on
list-item-label.  I would be glad to work with bodo on
this time permitting.  It would probably be best, so
that there are not two different pieces of code
floating around doing nearly the same thing.

Don

--- Arved Sandstrom [EMAIL PROTECTED] wrote:
 Hi, Bodo
 
 I'd be very happy to help. I'm badly sidelined due
 to work pressure, but 
 there is always some time I can pry loose...I'd
 rather spend that time 
 getting new developers up to speed.
 
 I'll review the source this evening and give you a
 synopsis of what we are 
 facing here.
 
 Regards,
 Arved Sandstrom
 
 At 12:18 PM 8/27/01 +0200, [EMAIL PROTECTED] wrote:
 hi,
 i tried to use the keep-with-next property on a
 multi column page with 
 some  text blocks that  normally fits on one page
 with 4 columns.
 my text consists of this sequence of text blocks:
 every 2nd block is 
 meant to be a headline and  the the following block
 is the paragraph 
 belonging to that headline.
 therefore i set the keep-with-next attribute on the
 headline blocks but 
 still the column break occurred between the
 headline and the paragraph.
 
 looking in to the code i found that  in 
 org.apache.fop.fo.flow.Block.layout(Area) the line:
 this.keepWithNext =

 this.properties.get(keep-with-next).getEnum();
 
 does not have any effect , since the getEnum()
 method always returns (0) 
 because the
 org.apache.fop.fo.KeepProperty(Keep) does not
 overwrite the getEnum() 
 method.
 
 so i patched this so that this.keepWithNext got the
 value=5 (just to 
 see what will happen then ) but immediately  i run
 in to another error:
 the headline appeared on the bottom of the old
 column, a wrong page 
 break occurred (instead of a column break)
 and the same headline appeared on the top of the
 new page.
 
 if nobody else is currently working on this
 problems i would be willing 
 to do this, if i (as a someone who just started to
 try to understand the 
 fop source code) get some assistance from the fop
 gurus.
 
 would you appreciate this?
 
 bodo teichmann
 
  
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
 [EMAIL PROTECTED]
 
 
 Fairly Senior Software Type
 e-plicity (http://www.e-plicity.com)
 Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia
 
 

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


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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


Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


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




(jfor) how to define XSL-FO extensions a la fox:outline

2001-08-29 Thread Bertrand Delacretaz

In the jfor project (XSL-FO to RTF converter) we'd like to define extensions 
to XSL-FO for RTF-specific constructs (RTF styles in this case).

Could someone from the FOP team check that the proposal below is ok with FOP?
Ideally, our jfor: extensions should be completely ignored by FOP, while our 
output stays as much FOP-like as possible when jfor: extensions are not used.

jfor stylesheets extension proposal (example/excerpts):
fo:root
  xmlns:fo=http://www.w3.org/1999/XSL/Format;
  xmlns:jfor=http://www.jfor.org/xmlns/2001/stylesheet;


!-- this generates an RTF stylesheet --
jfor:stylesheet
  jfor:style name=sourceCode font-size=10pt font-family=Courier/
  !-- more RTF styles here --   
/jfor:stylesheet

fo:flow
  fo:block jfor-class=sourceCode
in RTF, this block will have the sourceCode style.
  /fo:block
/fo:flow

Shouldn't the jfor-class attribute also be made part of the jfor namespace?
like fo:block jfor:jfor-class=sourceCode

Thanks for having a look at this!

-- 
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++




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