Re: HTML to FO

2003-02-28 Thread Enrico Schnepel
Hi,

the url is
http://html2fo.sf.net

Enrico

Am Donnerstag, 27. Februar 2003 22:44 schrieb Ken Masters:
> Hi,
>
> Could you give some more information on where I can get hold of this tool.
> I did a search for "htmlfo" on Google and found a stylesheet that is in
> some other langauage to do with DSSSL.
>
> Ken
>
> >there is a tool called htmlfo which does that..
> >
> >
> >
> >-Original Message-
>
> From: Swapan Golla [mailto:[EMAIL PROTECTED]
>
> >Sent: Thursday, February 27, 2003 1:04 PM
> >To: [EMAIL PROTECTED]
> >Subject: HTML to FO
> >
> >
> >I am having a need to convert html ( or xhtml ) to fo
> >documents and then to pdf. Any suggestions on the best
> >ways to achieve this ? I should be able to use/call
> >this from my java program.
> >
> >Thanks in advance,
> >Swapan.
>
> _
> Express yourself with cool emoticons http://messenger.msn.co.uk
>
>
> -
> 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: Converting HTML Table to PDF

2002-07-02 Thread enrico . schnepel

hi,

I have developed the prog html2fo which is available at

http://sourceforge.net/projects/html2fo

it supports spannings as well as borders
I am currently preparing a new release.
if you are interrested in new sources / binarys i will send a pre release
version.

Enrico

> Hye, 
>  
> I need to convert a complex HTML table 
> (with spannings, borders) to PDF.
> Does someone have a xsl-fo script to do this ?
> 
> Thanks for help.
>  
> Gilles Beaugeais.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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


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




Re: Getting an error when using an XHTML file??

2002-05-07 Thread enrico . schnepel

Hello Chad,

I am programming html2fo. It is a converter which converts from HTML or
XHTML to XSL:FO. Primary goal is to generate a VALID XSL:FO file from almost any
HTML file, but you will get better result with than without tidy.

It is avilable from
http://sourceforge.net/projects/html2fo

Regards
Enrico

> Hello -
> 
> I have an application that produces HTML as output. I used tidy to make
> the
> HTML well-formed and added the XML header and renamed the file to
> filename.xml from filename.html. I then use FOP to try and create a
> filename.pdf file. I get a "/ by zero" exception. The problem is the
> pageCount variable in the StreamRender class isn't get incremented. Since
> it's initialized to zero, an Arithmetic exception is thrown when the log
> tries to write out the average time it took to render each page. Since
> XHTML is  XML, I would have expected this to work. Has anyone else come
> across this issue/exception??
> 
> Thanks,
> Chad
> 
> Chadford Hilton
> Web Integration
> PNC Financial Services
> v - 412-768-2395
> e - [EMAIL PROTECTED]
> 

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


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




Re: background-image patch v0.03 in CVS

2002-05-06 Thread Enrico Schnepel

Hello Michael,

I've just updated my cvs tree and the error still appears to me.
:-(
I am using java 1.3.0_02 on a PII / linux (SuSE 7.2)

thanks
Enrico

Am Dienstag, 30. April 2002 08:02 schrieben Sie:
> Enrico Schnepel wrote:
> > I've attached the minimal test case. It can't be a smaller .fo file -
> > only a table with nothing in it and a block - that's all.
>
> Hmm, I'm not seeing that error.. with or without the table and
> paragraph. Have you tried updating from CVS and recompiling recently?


Content-Type: application/x-pkcs7-signature; charset="us-ascii"; 
name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Description: S/MIME Cryptographic Signature


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




Re: background-image patch v0.03 in CVS

2002-04-25 Thread Enrico Schnepel

Sorry - forgot to attach

Enrico

Am Donnerstag, 25. April 2002 21:41 schrieben Sie:
> Hello Mike,
>
> > image problem ...
>
> I am generating fo files from html. In html (as in fop web site the blue
> headings) images are often very small. Exist there a fo property which
> might not be implemented yet but is responsible for handling this behavior.
>
> > Good question. I've encountered this before, but given I can't remember
> > what caused it or what I did to make it go away, so it can't be too
> > important.. 8)
> >
> > If you can send me a minimal test case, or (preferably) open a bug on
> > this issue, assugn it to me and attach the test case to that, I'll take a
> > look at it.
>
> I've attached the minimal test case. It can't be a smaller .fo file - only
> a table with nothing in it and a block - that's all.
>
> Thanks
>
> Enrico
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


http://www.w3.org/1999/XSL/Format";>
  

  

  

  

  



  


  

  

  If the table or this paragraph is leaved out fop works ok.

  




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


Re: background-image patch v0.03 in CVS

2002-04-25 Thread Enrico Schnepel

Hello Mike,

> image problem ...

I am generating fo files from html. In html (as in fop web site the blue 
headings) images are often very small. Exist there a fo property which might 
not be implemented yet but is responsible for handling this behavior.

> Good question. I've encountered this before, but given I can't remember
> what caused it or what I did to make it go away, so it can't be too
> important.. 8)
>
> If you can send me a minimal test case, or (preferably) open a bug on this
> issue, assugn it to me and attach the test case to that, I'll take a look
> at it.

I've attached the minimal test case. It can't be a smaller .fo file - only a 
table with nothing in it and a block - that's all.

Thanks

Enrico

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




Re: background-image patch v0.03 in CVS

2002-04-24 Thread Enrico Schnepel

Would it be possible to implement background-image as one image containing 
the small image X times stacked side by side and top to bottom. The problem 
is if the image is very small it took a very long time to display it in 
acrobat reader.

On a second file I am getting the message:
[ERROR] BodyAreaContainer::getNextArea(): Span attribute messed up

What does this mean?

Thanks Enrico

Am Mittwoch, 24. April 2002 00:34 schrieben Sie:
> What it says. It builds, and I ran a few simple tests.
>
> I'll be standing by to do any further fixup work or to add more related
> features.
>
> Regards,
> AHS
> __
> Arved Sandstrom
> Sr Software Developer
> Platform Products Group
> Halifax R&D Office
> Hummingbird Ltd
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




[ANNOUNCE] html2fo 0.4.2 released

2002-04-21 Thread Enrico Schnepel

Hello all,

I've released the new version 0.4.2 of html2fo this week. It is more stable 
and the resulting PDF looks more like the original HTML file.

The main site at SourceForge is:

http://sourceforge.net/projects/html2fo/

The source code as well as binarys for several platforms could be downloaded 
from:

http://sourceforge.net/project/showfiles.php?group_id=27031

Enjoy

Enrico

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




Re: Nested Tables & column-widths

2002-04-15 Thread enrico . schnepel

Hi,

Which converter prog did you used?

I am programming html2fo and it converts colspanned cells into the
corresponing widths within fo:table-column.

You could get it from:
http://sourceforge.net/projects/html2fo

the currently available version is 0.4.1 but I will try to release a new
version this week. Via CVS is a more recent version available.

Regards

Enrico

> Hi,
> 
> I have been trying to convert html code to xsl:fo with a converter
> program.
> In html there are statements like -
> 
>   Customer
>   :
> [~Customer~]
>   xyz
>   : [~abc~] 
> 
> I know I need to explicitely specify column widths in fo , like-
> 
> 
>  
>   before the fo:table-body.
> I have some thoughts like..
>   
>  
>  first- to see how many '   statements exist between its '
>  
>  ' in the html source code and then in fo code to create as many
> lines 
>  of  ''  before  the  
>  
>  ''. ( Here- 20% in html code is being 
>  
>  converted to inches in fo.)  
>  
>  next- to change 'colspan=2' etc. in the html source code to '
>  
>  number-columns-spanned="2" ' with in a  fo:table-cell
>  
>   
>  
>  Is this a good approach? or   if anybody has better sugestions please let
>  
>  me know..
>  
>   
>  
>  Further I don't have any idea to handle  attributes like class in the   
>  .. > of source code for conversion into fo code. 
>  
>  If you dealt this issue already pl. let me know  
>  
>  thanks   
>  
>  Durga
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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


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




Re: Triggering WH2FO from inside Word(R)

2002-03-19 Thread Enrico Schnepel

Hello Matthias,

I think it is a good idea to extend word with macros like this. The macro 
should be developed at least with word 97 for compatiblity and should be 
configureable that an other version or an other converter like html2fo runs 
to do the job. There should be an option for use htmltidy for preformating / 
correcting word 97 output.

Regards

Enrico

Am Montag, 18. März 2002 17:06 schrieben Sie:
> Would you think it a good idea to write a VB for Word(R) which:
> 1) Finds out the path/name of the active file
> 2) Automatically triggers WH2FO to transform the Word file
>
> As an extension of this idea, would you consider it useful to insert into
> the Word(R) menu a series of commands such as:
> - Generate XHTML file
> - Generate XML file
> - Extract XSL file
> - Generate XML and XSL files
>
> Matthias
>
>
> -
> 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: Any real-life business use ?

2002-01-14 Thread Enrico Schnepel

Hello Patrick,

We are using a patched FOP (0.20.2) for a credit system in a bank. The speed 
is fine since we have a server where speed does not matter (Solaris 8 with 
SUN Jdk).
we are printing about 1000 documents per day. Most of them have 1-2 pages. 
Some up to 20.
Currently we are developing a report generator with FOP. The Reports will 
have up to 1000 pages.

Input format: .fo with special tags for pre processing and data insertion
Output format : PDF
Clients for printing (Acrobat Reader): WinNT, Win2000, Win95, OS/2; AR: 3.0 
(OS/2), 4.0, 4.5, 5.0 in almost any combination.

Our Customers are satisfied with our printing solution because the old one we 
have replaced was using ms word with embedded macros... (OK - it's not realy 
a printing 'solution'..., but it had done its job exept with OS/2 (Word Pro) 
or Word 2000)

Some comments to FOP:

1. Fop does sometimes hang in an endless loop with entities like & < 
and > (these are the only entities we are using; Lang: de, encoding ansi) 
if the first word of the line is too long for the whole line in a small table 
cell. - thats why we have patched FOP - but it's more a workaround than a 
patch and does not resolve the problem. If someone want to get the patch I 
will send it.

2. Fop sometimes switches the lines up and down with entities or inline 
sequences.

Regards,

Enrico Schnepel

Am Sonntag, 13. Januar 2002 23:31 schrieben Sie:
> Hello everyone,
>
> I have busy evaluated the FO technology and I would like to hear from
> people that are using it for real-life business needs.
>
> What kind of documents are they using it with ? What volume ? Embedding
> it in servlets ? How do they cope with the "speed" ? How do they justify
> using FO to their bosses ?
>
> Anybody with both 3B2 and FO  or Compuset and FO experience ? I would
> love to hear your story.
>
>
> Patrick Andries
>
>
> - ° - ° - ° - °
> Tout sur Unicode 3.1 en français : http://hapax.iquebec.com
> Traduction complète, mise à jour, texte en ligne
>
>
>
>
>
> -
> 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: Pre Formatted Text

2001-11-30 Thread Enrico Schnepel

Hello Jim,

try:
>

YOUR 
TEXT 
INCLUDING 
LF's
AND
SPACES

<
Regards

Enrico

Am Freitag, 30. November 2001 14:55 schrieben Sie:
> I am using FOP to generate PDFs on the fly from XML.  One of my XML
> elements contains a large (1K - 1M) preformatted (contains LFs) block of
> text.  When I display this field in HTML I use a  tag.  Is there a FO
> tag that FOP supports that functions similarly?
>
> Thanks,
>
> Jim Urban
> Product Manager
> Netsteps Inc.
> Suite 505E
> 1 Pierce Pl.
> Itasca, IL  60143
> Voice:  (630) 250-3045 x2164
> Fax:  (630) 250-3046


Content-Type: application/ms-tnef; charset="iso-8859-1"; name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Description: 



Content-Type: text/plain; charset="us-ascii"; name="Anhang: 2"
Content-Transfer-Encoding: 7bit
Content-Description: 


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




Re: no visual tool for FOP?

2001-11-30 Thread Enrico Schnepel

Like FOP html2fo is still under development. It is stable but not complete. 
You are welcome to send me a list of html tags you want to be supported - or 
even better a sample file where they are used.

Enrico

Am Donnerstag, 22. November 2001 19:43 schrieben Sie:
> I am interested in  most html2pdf, html2fo,  but after I tried
> any of them, i am frustrated. some very lame ones support only
> 3 tags even.  so i am wondering this tool support all html
> tags specified in HTML 4.0 DTD?
>
> On Sat, 17 Nov 2001, Enrico Schnepel wrote:
> > Hello
> >
> > I've developed a tool html2fo for conversion of .html files to .fo.
> > http://html2fo.sourceforge.net
> > A similar tool is
> > WH2FO at
> > http://www-uk.hpl.hp.com/people/fabgia/wh2fo/wh2fo.html
> >
> > WH2FO is optimized for Word 2000 html files - html2fo is more general.
> >
> > Enrico
> >
> > Am Freitag, 16. November 2001 21:45 schrieben Sie:
> > > XMLSpy 4.1 has FO transformation built in as an option under the XSL
> > > menu. All you have to do is point it to FOP.bat. I guess you could call
> > > this a "visual tool". But I'm going to guess that what the original
> > > poster is looking for is some kind of a WYSIWIG PDF editor that
> > > manipulates the underlying FO? That would be a pretty intense project.
> > >
> > > Do you think Adobe will ever implement a built-in fop processor? The
> > > Acrobat plug-in could come to life any time the browser comes across a
> > > .fo file, just like it does now when it sees a .pdf. Any pages that
> > > require precise coloring, layout, pagination, etc. would be candidates
> > > for conversion from html to fo. Definitely some interesting
> > > possibilities here. I suppose people could be doing the same thing now
> > > if they have Exchange, but when you can make little changes through a
> > > text editor it's a lot more convenient.
> > >
> > >
> > > You'd think they'd be all for it since it could drastically increase
> > > PDF viewing on the web. Although I guess it could cut into sales of
> > > their full-version Acrobat (what used to be called Exchange). So what
> > > part of it would they sell? Hmmm. Can even they do this within the
> > > licensing rules of this project?
> > >
> > >
> > > -Matt
> > >
> > > > -Original Message-
> > > > From: Charles Palmer [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, November 13, 2001 1:56 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: no visual tool for FOP?
> > > >
> > > >
> > > > Hi team
> > > >
> > > > This is also something I am curious about. Here are two
> > > > embryonic ideas -
> > > > can anyone see any merit in them?
> > > >
> > > > 1   XMLSpy seems to have the ability to convert a Word
> > > > document to XML. Could
> > > > XSLT be used to transform this XML to FO, and thence to PDF?
> > > > Then Word could
> > > > be used as the "visual tool".
> > > >
> > > > 2   Sun's new Star Office apparently saves files as XML (see
> > > > http://xml.coverpages.org/starOfficeXML.html ). Could the
> > > > word processor
> > > > from StarOffice be used as the "visual tool"?
> > > >
> > > > By the way, XMLSpy mentions support or fop - does anyone have
> > > > experience
> > > > with this?
> > > >
> > > > Regards -
> > > > Charles Palmer
> > > >
> > > > Technical Director, DSP Design Ltd
> > > > email: [EMAIL PROTECTED]
> > > > 7 Tapton Park Innovation Centre, Brimington Rd, Chesterfield
> > > > S41 0TZ, UK
> > > > ph: +44 (0) 1246 545 918
> > > >
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, email: [EMAIL PROTECTED]
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> -
> 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: no visual tool for FOP?

2001-11-18 Thread Enrico Schnepel

Hello

I've developed a tool html2fo for conversion of .html files to .fo.
http://html2fo.sourceforge.net
A similar tool is
WH2FO at
http://www-uk.hpl.hp.com/people/fabgia/wh2fo/wh2fo.html

WH2FO is optimized for Word 2000 html files - html2fo is more general.

Enrico

Am Freitag, 16. November 2001 21:45 schrieben Sie:
> XMLSpy 4.1 has FO transformation built in as an option under the XSL menu.
> All you have to do is point it to FOP.bat. I guess you could call this a
> "visual tool". But I'm going to guess that what the original poster is
> looking for is some kind of a WYSIWIG PDF editor that manipulates the
> underlying FO? That would be a pretty intense project.
>
> Do you think Adobe will ever implement a built-in fop processor? The
> Acrobat plug-in could come to life any time the browser comes across a .fo
> file, just like it does now when it sees a .pdf. Any pages that require
> precise coloring, layout, pagination, etc. would be candidates for
> conversion from html to fo. Definitely some interesting possibilities here.
> I suppose people could be doing the same thing now if they have Exchange,
> but when you can make little changes through a text editor it's a lot more
> convenient.
>
>
> You'd think they'd be all for it since it could drastically increase PDF
> viewing on the web. Although I guess it could cut into sales of their
> full-version Acrobat (what used to be called Exchange). So what part of it
> would they sell? Hmmm. Can even they do this within the licensing rules of
> this project?
>
>
> -Matt
>
> > -Original Message-
> > From: Charles Palmer [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 13, 2001 1:56 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: no visual tool for FOP?
> >
> >
> > Hi team
> >
> > This is also something I am curious about. Here are two
> > embryonic ideas -
> > can anyone see any merit in them?
> >
> > 1   XMLSpy seems to have the ability to convert a Word
> > document to XML. Could
> > XSLT be used to transform this XML to FO, and thence to PDF?
> > Then Word could
> > be used as the "visual tool".
> >
> > 2   Sun's new Star Office apparently saves files as XML (see
> > http://xml.coverpages.org/starOfficeXML.html ). Could the
> > word processor
> > from StarOffice be used as the "visual tool"?
> >
> > By the way, XMLSpy mentions support or fop - does anyone have
> > experience
> > with this?
> >
> > Regards -
> > Charles Palmer
> >
> > Technical Director, DSP Design Ltd
> > email: [EMAIL PROTECTED]
> > 7 Tapton Park Innovation Centre, Brimington Rd, Chesterfield
> > S41 0TZ, UK
> > ph: +44 (0) 1246 545 918
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> -
> 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: html2pdf, for god's sake

2001-11-12 Thread Enrico Schnepel

Hello Huaxin,

I've developed html2fo to convert from html to xsl:fo. Using FOP you will get 
a mostly well formated output. It is available from
http://sourceforge.net/projects/html2fo

it is not possible to create forms in pdf because there is no extention to 
fop which generate this.

if your html code is not well formed you will get a better output if you use 
HTML Tidy before html2fo.

Acrobat offers a free "printing to pdf" driver for windows. It is installed 
on my pc at work so I don't know where to get it.

regards

Enrico

Am Montag, 12. November 2001 18:56 schrieben Sie:
> I am new to this list. After searching for tools that
> is able to convert HTML to PDF (using a comand line,
> or some API), I got so frustrated. There are a whole
> bunch of lamed tools that doesn't recgonize 
>   even 
>
>
> Is there any
> tool that is able to transform HTML to PDF the
> same way as Acrobat Distiller does? (but Acrobat
> doesn't have a command line shell or an API for doing
> that).
>
>
> thanks
>
>
>
> -
> 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: [vote] Merging JFor with FOP

2001-10-18 Thread Enrico Schnepel

I am not a committer but here is my unofficial vote:
+1
It's a great advantage for everyone.

Am Donnerstag, 18. Oktober 2001 14:58 schrieben Sie:
> Hi people,
>
> recently, some code was donated to the Apache Cocoon project in order to
> connect it with JFor (www.jfor.org) which is a FO->RTF processor.
>
> It appeared evident to me (and to others, as I discovered later) that
> jfor and FOP are doing different things but could be an advantage for
> both jfor developers, jfor users, FOP users and FO visibility in general
> to join forces.
>
> Bertrand, here attached, is the main developer behind the project and he
> already agreed on donating the code to the ASF.
>
> IMO, rather than creating another project, it would be best to merge
> jfor code with FOP to allow yet another (and widely used) binary format
> to render FO in.
> Technical details are not that important at the moment, but Bertrand
> already stated his flexibility in reshaping jfor code in order to make
> it easier/cleaner/more-manageable the merging.
>
> This said, in order for the donation to take place, I'm officially
> requesting a vote from the FOP developers community. The Apache XML PMC
> is already informed and will accept any position taken by the community.
>
> So, here it is, please vote on the following question:
>
> would you like to accept jfor code and give Bertand Delacretaz committer
> status in order to perform the merging on the FOP code following the
> technical directions that the FOP dev community will find more
> appropriate?
>
> I remind that only people with committer status are entitled to place a
> binding vote, but I suggest everybody on this list to express their vote
> and, in case of negative vote, explain their reasons so that we can
> properly deal with them.
>
> Thanks to all.
>
> Stefano.
>
> P.S. Sorry for the formality, people but this is legal stuff so I'm
> required to wear my ASF member hat :)
>
>
> -
> 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: Performance

2001-10-12 Thread Enrico Schnepel

Hello Joerg

> FOP appears to be unable to split table cells, probably because it
> requires the content of a table cell wrapped in a single fo:block
> (some comments from the developers?)

FOP does split table cells. My experience is that this happens more than I 
want it to be happen. For example when putting 2 blocks in a cell and 
specifying the first one as keep-with-next. The blocks are splitted.

fo:table-cell requires at least one block-level child (block or image etc) or 
nothing.

regards,

Enrico

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




[PATCH] BasicLink extends Inline the 2nd

2001-09-27 Thread Enrico Schnepel

Hello,

About one month ago I've send a patch to extend Basiclink from Inline and not 
from FObjMixed. There wasn't any reaction. The original email body was:

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 patch

Enrico

The patch follows now

SNIP

Index: src/org/apache/fop/fo/flow/BasicLink.java
===
RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/fo/flow/BasicLink.java,v
retrieving revision 1.8
diff -r1.8 BasicLink.java
23c23
< public static class Maker extends FObj.Maker {
---
> public static class Maker extends Inline.Maker {
44,78d43
<
< // Common Accessibility Properties
< AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
<
< // Common Aural Properties
< AuralProps mAurProps = propMgr.getAuralProps();
<
< // Common Border, Padding, and Background Properties
< BorderAndPadding bap = propMgr.getBorderAndPadding();
< BackgroundProps bProps = propMgr.getBackgroundProps();
<
< // Common Margin Properties-Inline
< MarginInlineProps mProps = propMgr.getMarginInlineProps();
<
< // Common Relative Position Properties
< RelativePositionProps mRelProps = 
propMgr.getRelativePositionProps();
<
< // this.properties.get("alignment-adjust");
< // this.properties.get("alignment-baseline");
< // this.properties.get("baseline-shift");
< // this.properties.get("destination-place-offset");
< // this.properties.get("dominant-baseline");
< // this.properties.get("external-destination");
< // this.properties.get("id");
< // this.properties.get("indicate-destination");
< // this.properties.get("internal-destination");
< // this.properties.get("keep-together");
< // this.properties.get("keep-with-next");
< // this.properties.get("keep-with-previous");
< // this.properties.get("line-height");
< // this.properties.get("line-height-shift-adjustment");
< // this.properties.get("show-destination");
< // this.properties.get("target-processing-context");
< // this.properties.get("target-presentation-context");
< // this.properties.get("target-stylesheet");

SNIP



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




[Patch] bugs with hyphenation

2001-09-27 Thread Enrico Schnepel

There is still a problem with hypenation.

When a non letter character is derectly before a word with hyphens in the 
word, fop runs into a infinite loop
I've attached a Patch and the testfile. The testfile also includes a 
demonstration for some other bugs with hyphenation but I don't know how to 
resolve them.

Enrico





http://www.w3.org/1999/XSL/Format";>
	
		
			
		
	
	
		

	1. The first cell causes an infinite loop if there is a incorrect hyphenation function. With patch the result is still not correct but it runs through.


2. The second cell is to show how special chars handleld with hypenation.


3. The third cell is to demonstrate the inlinespace before the first hyphenated word in line.


4. cell 1 and 3 should contain completly underlined blue text.


4.1. within the first cell both properies are specified for .
The addWord function should set the underlined property.


4.2. within the third cell both properies are specified for .
The underlined property is not handled.







	beginning "test-text-for-filling-three-lines"






	  -  -  - 






 	   LongTextLongText LongTextLongText LongTextLongText LongTextLongText






	The following table has the same content but full page width.







	beginning "test-text-for-filling-three-lines"






	  -  -  - 






 	   LongTextLongText LongTextLongText LongTextLongText LongTextLongText





		
	




? diff
? LineArea.java.diff
Index: LineArea.java
===
RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/layout/LineArea.java,v
retrieving revision 1.50
diff -u -r1.50 LineArea.java
--- LineArea.java	2001/08/31 12:55:05	1.50
+++ LineArea.java	2001/08/31 22:09:18
@@ -941,14 +941,15 @@
 // we will only handle hard hyphens and slashes
 if (getWordWidth(wordToHyphenate) < remainingWidth) {
 inwordPunctuation =
-characters[wordStart + wordToHyphenate.length()];
+characters[wordStart + remainingString.length()
++ wordToHyphenate.length()];
 if (inwordPunctuation == '-' || inwordPunctuation == '/') {
 preString = new StringBuffer(wordToHyphenate);
 preString = preString.append(inwordPunctuation);
 wordToHyphenate =
 getHyphenationWord(characters,
-   wordStart + wordToHyphenate.length()
-   + 1);
+   wordStart + remainingString.length()
+   + wordToHyphenate.length() + 1);
 remainingWidth -=
 (getWordWidth(wordToHyphenate)
  + this.currentFontState.width(currentFontState.mapChar(inwordPunctuation)));


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


Re: colspan-type feature

2001-09-25 Thread Enrico Schnepel

number-rows-spanned is supported. I am already using it.

Enrico

Am Mittwoch, 26. September 2001 01:46 schrieben Sie:
> is this what you're after, Amit?
>
> 
>
> i don't think number-rows-spanned is supported though, but i could be
> wrong.
>
>
> mic.
>
> -Original Message-
> From: Amit [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 26 September 2001 7:37
> To: [EMAIL PROTECTED]
> Subject: colspan-type feature
>
>
> hi all
> In my xsl file I want to basically have a feature like html's
> colspan.
> Anybody know the syntax ..I have tried looking a few places and haven't
> been able to find it.
> Any help would be appreciated.
>
> Thanks
> Amit
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> 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: [DO NOT REPLY: Bug 3007] broken basic-link when referencing a following page

2001-09-07 Thread Enrico Schnepel

It is commited into the current CVS-tree but not in the recent release 0.20.1.

Enrico

> 01:50 --- + Am also experiencing similar difficulties.
> + I see there is a work around supplied but not added to the product. When
> is it + likely that the fix will be applied to the core product?
> Unfortunately I am not + competent enough in OpenSource development
> projects to achieve this myself yet, + otherwise obviously I would do so.

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




[Patch the 2nd] bugs with hyphenation

2001-08-31 Thread Enrico Schnepel

As I have said I created a testfile for a realy seldom situation: a non 
letter character before a word with hyphens in the word... the patch is also 
included.

The testfile also includes a demonstration for some other bugs with 
hyphenation but I don't know how to resolve them.

> There is a problem with small table-columns and hypenation if the word
> starts with a '"' or a '/'. I hope I have time to create a testfile and
> send it and the patch this evening because I will be on holiday next week.
> this bug caused an infinite loop and kept me from from rendering a 3,5 MB
> document. The html version of the candidate recommendation of the fo
> specification converted to fo using html2fo. the 279 page pdf is available
> at http://html2fo.sourceforge.net/xslspec.pdf. rendering it was something
> like a stress test ;-)

Enrico



http://www.w3.org/1999/XSL/Format";>
	
		
			
		
	
	
		

	1. The first cell causes an infinite loop if there is a incorrect hyphenation function. With patch the result is still not correct but it runs through.


2. The second cell is to show how special chars handleld with hypenation.


3. The third cell is to demonstrate the inlinespace before the first hyphenated word in line.


4. cell 1 and 3 should contain completly underlined blue text.


4.1. within the first cell both properies are specified for .
The addWord function should set the underlined property.


4.2. within the third cell both properies are specified for .
The underlined property is not handled.







	beginning "test-text-for-filling-three-lines"






	  -  -  - 






 	   LongTextLongText LongTextLongText LongTextLongText LongTextLongText






	The following table has the same content but full page width.







	beginning "test-text-for-filling-three-lines"






	  -  -  - 






 	   LongTextLongText LongTextLongText LongTextLongText LongTextLongText





		
	




? diff
? LineArea.java.diff
Index: LineArea.java
===
RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/layout/LineArea.java,v
retrieving revision 1.50
diff -u -r1.50 LineArea.java
--- LineArea.java	2001/08/31 12:55:05	1.50
+++ LineArea.java	2001/08/31 22:09:18
@@ -941,14 +941,15 @@
 // we will only handle hard hyphens and slashes
 if (getWordWidth(wordToHyphenate) < remainingWidth) {
 inwordPunctuation =
-characters[wordStart + wordToHyphenate.length()];
+characters[wordStart + remainingString.length()
++ wordToHyphenate.length()];
 if (inwordPunctuation == '-' || inwordPunctuation == '/') {
 preString = new StringBuffer(wordToHyphenate);
 preString = preString.append(inwordPunctuation);
 wordToHyphenate =
 getHyphenationWord(characters,
-   wordStart + wordToHyphenate.length()
-   + 1);
+   wordStart + remainingString.length()
+   + wordToHyphenate.length() + 1);
 remainingWidth -=
 (getWordWidth(wordToHyphenate)
  + this.currentFontState.width(currentFontState.mapChar(inwordPunctuation)

Re: [Patch] Re: Fw: hyphenation with table problem

2001-08-31 Thread Enrico Schnepel

I don't know if there was a problem. I have tested the patch with my
testfile (send to fop-dev on 2001-08-21).

There is a problem with small table-columns and hypenation if the word
starts with a '"' or a '/'. I hope I have time to create a testfile and send it
and the patch this evening because I will be on holiday next week.
this bug caused an infinite loop and kept me from from rendering a 3,5 MB
document. The html version of the candidate recommendation of the fo
specification converted to fo using html2fo. the 279 page pdf is available at
http://html2fo.sourceforge.net/xslspec.pdf. rendering it was something like a stress
test ;-)
 
Enrico

> On Mon, 27 Aug 2001 21:34:41 Enrico Schnepel wrote:
> > Hello Steve,
> > 
> > The problem you are running into is known, resolved but not merged into 
> > the cvs tree yet. I've already send a diff script which resolves
> > hypenation 
> > problems within LineArea to fop-dev one week ago. I've attached the diff
> 
> > script.
> 
> This patch is committed.
> It seems to have fixed a problem with text with wrap-option of no-wrap?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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



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




RE: Basic Link

2001-08-31 Thread Enrico Schnepel

L. has send the complete files as attached files to a comment to the bug on
08-08-2001. He/She also wrote that the variable and function names are
subject to think about.

Enrico

> I applied the patch, which seemed to solve the problem, but I would like
> someone to examine it and change a bit.
> 
> 1. the idValidation vs. idUnvalidated names are very confusing
> without comments that explain what's what.
> 
> 2. the createID method needs better commenting. I'm not entirely sure
> I correctly understand it, so I didn't do so.
> 
> Thanks for the patch L. McKenzie (?), but please send patches to the list
> so we won't miss them. We don't mind the full files if you don't have
> access
> to CVS, either, but we'll include them faster if you do:
> diff -u MyJava.java.orig MyJava.java >> patchfile.diff
> 
> Enrico, thanks for pointing this patch as it was languishing.
> -Steve
> 
> -Original Message-
> From: Enrico Schnepel [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 30, 2001 4:34 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Basic Link
> 
> 
> Hello Keiron,
> 
> I had the same problem a few weeks ago and the bug is in the buglist as
> bug 
> 3007.
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3007
> 
> The bug was resolved by [EMAIL PROTECTED] but is not merged yet
> I've attached the corresponding files which resolves the problem. 
> 
> Enrico
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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



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




Re: Merging Cells In Tables

2001-08-30 Thread Enrico Schnepel

Hello,

number-columns-spanned and number-rows-spanned
it should be the same behavior as in html

enrico

ps: if you have html documents you can convert them using the convertor 
html2fo available at http://sourceforge.net/projects/html2fo. the fo files 
are not perfect but you will get a basis where you could work with.

Am Donnerstag 30 August 2001 21:21 schrieben Sie:
> Hello,
>
> Has anyone been able to merge cells in an fo:table, much like how table
> cells in HTML are merged via COLSPAN and ROWSPAN?
>
> Thanks for any info you can share.
>
> Ken
>
>
> -
> 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]


[Patch] Re: Fw: hyphenation with table problem

2001-08-27 Thread Enrico Schnepel

Hello Steve,

The problem you are running into is known, resolved but not merged into 
the cvs tree yet. I've already send a diff script which resolves hypenation 
problems within LineArea to fop-dev one week ago. I've attached the diff 
script.

Enrico

Am Montag, 27. August 2001 14:14 schrieben Sie:
> - Original Message -
> From: Steve Favez
> To: [EMAIL PROTECTED]
> Sent: Friday, August 24, 2001 9:33 AM
> Subject: hyphenation with table problem
>
>
> Hello,
>
> I'm new on fop, and I've a big problem.
>
> I create a table and ask hyphenate on every columns... with small world, no
> problem, but with big words, no hyphenation is done,,, Why ?? is it a known
> bug ??
>
> in attachement an xml file and the xslt file
>
> Thanks in advance



? LineArea.java.diff
Index: LineArea.java
===
RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/layout/LineArea.java,v
retrieving revision 1.49
diff -u -r1.49 LineArea.java
--- LineArea.java   2001/08/02 19:38:08 1.49
+++ LineArea.java   2001/08/21 19:58:33
@@ -429,27 +429,42 @@
 wordWidth = 0;
 return i;
 }
-if (wordStart == start) {// if couldn't even fit
-// first word
-overrun = true;
-// if not at start of line, return word start
-// to try again on a new line
-if (finalWidth > 0) {
-return wordStart;
-}
-} else if (this.wrapOption == WrapOption.WRAP) {
+
+if (this.wrapOption == WrapOption.WRAP) {
+
+int ret=wordStart;
+
 if (hyphProps.hyphenate == Hyphenate.TRUE) {
-return this.doHyphenation(dataCopy, i, wordStart,
-  this.getContentWidth()
-  - (finalWidth
- + spaceWidth
- + pendingWidth));
-} else {
-return wordStart;
+ret = this.doHyphenation(dataCopy, i, wordStart,
+ this.getContentWidth()
+ - (finalWidth
++ spaceWidth
++ pendingWidth));
+
+}
+
+
+if ((ret == wordStart) &&  // current word couldn't be 
+hypenated
+(wordStart == start) &&// couldn't fit first word
+(finalWidth == 0)) {   // I am at the beginning of my 
+line
+
+MessageHandler.error(">");
+
+addSpacedWord(new String(data, wordStart, wordLength - 1),
+  ls,
+  finalWidth + spaceWidth
+  + embeddedLinkStart,
+  spaceWidth, textState, false);
+
+finalWidth += wordWidth;
+wordWidth = 0;
+
+ret = i;
 }
+
+return ret;
 }
 }
-
 }
 }// end of iteration over text
 


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


incorrect page scaling (was: Blocks aligned incorrectly in PDF)

2001-08-22 Thread Enrico Schnepel

Hello Joshua

> >regarding the first problem: are you printing under windows
> > with acrobat
> > >reader 4.0 and up? Try printing on a different printer. I
> > have similar
> > >problems with WinNT and Acrobat Reader 4 an 5 when I am
> > printing to a HP
> > >LaserJet 4M+.
>
> When using Acrobat reader, check that the 'Fit to page' option is not
> selected. I think this shrinks the page to fit within the printable area.

The activated option is the default and at work we have to use this option 
because we have landscape documents. With deactivated option these are not 
printed correctly. Acrobat Reader rotates the pages only with this option.

On a differnt printer the resulting page has its original and correct size.

Enrico

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




Re: [Bug 3208] New: Blocks aligned incorrectly in PDF

2001-08-21 Thread Enrico Schnepel

Hello Steve, Hello Foppers

I had the the same problem too and I have developed some test cases where I 
could test the problem mentioned here under 2). I have attached the diff (and 
the test cases) which should resolves the problem. I not a commiter so it 
would be grateful if someone merges the code.

regarding the first problem: are you printing under windows with acrobat 
reader 4.0 and up? Try printing on a different printer. I have similar 
problems with WinNT and Acrobat Reader 4 an 5 when I am printing to a HP 
LaserJet 4M+.

As a "special effect": If the same file is printed via a DDE connection the 
resulting page is scaled in height to about 80 to 90 percent - it depents on 
the printer I am using ;-) This might be a problem within PDFDocument

Am Dienstag, 21. August 2001 18:58 schrieben Sie:
> PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
> ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
> AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
> DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
> BE LOST SOMEWHERE.
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3208
>
> *** shadow/3208   Tue Aug 21 09:58:18 2001
> --- shadow/3208.tmp.4288  Tue Aug 21 09:58:18 2001
> ***
> *** 0 
> --- 1,30 
> +
> +==
>==+ + | Blocks aligned incorrectly in PDF   
>   | +
> +--
>--+ + |Bug #: 3208Product: Fop  
>   | + |   Status: NEW Version: all 
>| + |   Resolution:Platform: PC 
> | + | Severity: Normal   OS/Version:
> Windows 9x  | + | Priority: Other
> Component: pdf renderer| +
> +--
>--+ + |  Assigned To: [EMAIL PROTECTED]
>   | + |  Reported By: [EMAIL PROTECTED]
>| + |  CC list: Cc: 
> | +
> +--
>--+ + |  URL:   
>   | +
> +==
>==+ + |  DESCRIPTION
>   | + 1) The measurement of blocks both horizontally and vertically do
> not seem to + add up correctly (e.g. I have a block defined as 19cm wide,
> but it prints as + being  about 17.8 cms;  and a block 17cms in height only
> printed as around 16 + cms).
> +
> + Somebody else did a similar test (after raising the issue in fop-dev) and
> they + found that a 6inch column results in 5.625inches.
> +
> + 2) in a table definition (again using -pdf renderer) the contents of one
> column + are "creeping" to the left even though the "end" position is
> defined.  It seems + to occur when the contents of a previous column has
> little or no text.  (In my + test I had one column with lots of W's
> starting with 10-W's on row-1, reducing + to 1W on row-10; at row-8 with
> only 3-W's - the contents of the second column + start to get dragged over
> to the left.)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


? LineArea.java.diff
Index: LineArea.java
===
RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/layout/LineArea.java,v
retrieving revision 1.49
diff -u -r1.49 LineArea.java
--- LineArea.java	2001/08/02 19:38:08	1.49
+++ LineArea.java	2001/08/21 19:58:33
@@ -429,27 +429,42 @@
 wordWidth = 0;
 return i;
 }
-if (wordStart == start) {// if couldn't even fit
-// first word
-overrun = true;
-// if not at start of line, return word start
-// to try again on a new line
-if (finalWidth > 0) {
-return wordStart;
-}
-} else if (this.wrapOption == WrapOption.WRAP) {
+
+if (this.wrapOption == WrapOption.WRAP) {
+
+int ret=wordStart;
+
 if (hyphProps.hyphenate == Hyphenate.TRUE) {
-return this.doHyphenation(dataCopy, i, wordStart,
-  this.getContentWidth()
-  - (finalWidth
-  

Re: [Bug 3007] - broken basic-link when referencing a following page

2001-08-10 Thread Enrico Schnepel

Hi,

thank you for resolving the problem. Your files are working fine. I am
running into another problem now but I am still trying to locate and separate it.

Regards

Enrico

-- 
Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne
Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung!
http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a


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




Re: : Getting number of rendered pages

2001-07-29 Thread Enrico Schnepel

Hi Erik,

Yes, I have a Idea...

externaly from FOP:
You redirect stdout from FOP and use the last opening bracket "[" and the 
following number as pagenumber.

within FOP:
You write your own class derived from PageSequence or 
PageNumberGenerator and write the last pagenumber (may be in the destructor) 
directly to your database or to a file.

Regards,
Enrico

Am Sonntag, 29. Juli 2001 20:45 schrieben Sie:
> Hi Enrico,
>
> this is a way to use the page number within the same transformation
> process, but I need to have the page count in my application to write it in
> a database table and to use it in a different transformation as starting
> page.
>
> Any idea?
>
> Regards,
> 
> Erik Rehrmann
> IOn AG - [EMAIL PROTECTED]
>
>
> -Ursprüngliche Nachricht-
> Von: Enrico Schnepel [mailto:[EMAIL PROTECTED]]
> Gesendet: Sonntag, 29. Juli 2001 20:37
> An: [EMAIL PROTECTED]
> Betreff: Re: Getting number of rendered pages
>
>
> Hi Erik
>
> I am writing a
>
>  font-size="1pt">
>
> before  and display the page number with
>
> Page  of 
>
> within my region-before or region-after. This should result in
>
> Page 1 of 3
>
> I don't know wether this is the recomended way of getting the last page
> number but it's working fine.
>
> Regards
> Enrico
>
> Am Sonntag, 29. Juli 2001 18:10 schrieben Sie:
> > Hi all,
> >
> > does anybody know if it's possible to get the number of rendered
> > pages? I searched the docs, but couldn't find anything about it.
> >
> > I think it should be possible, because the PDFRenderer prints the
> > current page number to the message system.
> >
> > We have to print a book divided into several chapters and every
> > chapter has to be rendered separately, but must begin with the right
> > page number (information of every chapter is in a database table to
> > keep track of chapter sequence and page numbering).
> >
> > Any help is greatly appreciated.
> >
> > 
> > Erik Rehrmann
> > IOn AG - [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
> -
> 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: Getting number of rendered pages

2001-07-29 Thread Enrico Schnepel

Hi Erik

I am writing a 



before  and display the page number with 

Page  of 

within my region-before or region-after. This should result in

Page 1 of 3

I don't know wether this is the recomended way of getting the last page 
number but it's working fine.

Regards
Enrico


Am Sonntag, 29. Juli 2001 18:10 schrieben Sie:
> Hi all,
>
> does anybody know if it's possible to get the number of rendered pages? I
> searched the docs, but couldn't find anything about it.
>
> I think it should be possible, because the PDFRenderer prints the current
> page number to the message system.
>
> We have to print a book divided into several chapters and every chapter has
> to be rendered separately, but must begin with the right page number
> (information of every chapter is in a database table to keep track of
> chapter sequence and page numbering).
>
> Any help is greatly appreciated.
>
> 
> Erik Rehrmann
> IOn AG - [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




developed html to fo converter - mirroring FOP home page as PDF

2001-07-16 Thread Enrico Schnepel

Hello Fopper!
 
I developed a html to fo converter and version 0.3 is just released. It
converts the most used html tags and valid html should be correct processed. Non
malformed html is also processed but don't expect to much. Like the xslt
transformation, which was sometimes discussed here, it supports xhtml as input
too.
 
The project home page is available at:
http://html2fo.sourceforge.net
 
I want to mirror the FOP home page ( http://xml.apache.org/fop ) as
crosslinked pdf files which are automaticly converted and generated. ( I am using the
html sources from CVS )
This is to show what html2fo and FOP are able to do together.
So I want to know whether it is allowed to mirror the site as pdf.
I've put the pdf files in a non referenced directory for testing at
http://html2fo.sourceforge.net/fop
 
Cheers
 
Enrico

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

GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a


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




Re: Is it true!! - html2fo

2001-07-04 Thread Enrico Schnepel

hi

You may try http://sourceforge.net/projects/html2fo
Usings this tool You don't need valid XHTML.

Enrico

> Hi
>
> FOP can recognise only "fo" files.  Is it true?
> My situation is, I want to convert HTML files to PDF.
> So what are the steps I have to do.
> Expecting ur advise.
>
> Thanks
> Wahab.

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

GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a


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




Re: Re: error while executing build.bat

2001-07-02 Thread Enrico Schnepel

I am Using Win NT 4.0
with JDK 1.3.0

The error occours because the second part (aft the space) is recognices as
class to be run. and this class could not be found.

Enrico

> Which versions of Windows is this correct for? Win95/98/2000/NT/ ?
>
> PS IMHO anyone with spaces in filenames is asking for trouble...
>
> Alex
>
>  --- Enrico Schnepel <[EMAIL PROTECTED]> wrote:
> > if there are spaces in the classpath I get a NoClassDefFoundError.
> >
> > The command running Java must contain a '"' arround %CLASPATH% and
should
> > look like
> > %JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath
> > %LOCALCLASSPATH%;"%CLASSPATH%" org.apache.tools.ant.Main %1 %2 %3 %4 %5
> > instead of
> > %JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath
> > %LOCALCLASSPATH%;%CLASSPATH% org.apache.tools.ant.Main %1 %2 %3 %4 %5
> >
> > Thanks for merging
> >
> > Enrico Schnepel
>

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

--
GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a


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




Re: Re: error while executing build.bat

2001-07-02 Thread Enrico Schnepel

I am Using Win NT 4.0
with JDK 1.3.0

The error occours because the second part (aft the space) is recognices as
class to be run. and this class could not be found.

Enrico

> Which versions of Windows is this correct for? Win95/98/2000/NT/ ?
>
> PS IMHO anyone with spaces in filenames is asking for trouble...
>
> Alex
>
>  --- Enrico Schnepel <[EMAIL PROTECTED]> wrote:
> > if there are spaces in the classpath I get a NoClassDefFoundError.
> >
> > The command running Java must contain a '"' arround %CLASPATH% and
should
> > look like
> > %JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath
> > %LOCALCLASSPATH%;"%CLASSPATH%" org.apache.tools.ant.Main %1 %2 %3 %4 %5
> > instead of
> > %JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath
> > %LOCALCLASSPATH%;%CLASSPATH% org.apache.tools.ant.Main %1 %2 %3 %4 %5
> >
> > Thanks for merging
> >
> > Enrico Schnepel
>

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

--
GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a


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




error while executing build.bat

2001-07-02 Thread Enrico Schnepel

if there are spaces in the classpath I get a NoClassDefFoundError.

The command running Java must contain a '"' arround %CLASPATH% and should
look like
%JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath
%LOCALCLASSPATH%;"%CLASSPATH%" org.apache.tools.ant.Main %1 %2 %3 %4 %5
instead of
%JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath
%LOCALCLASSPATH%;%CLASSPATH% org.apache.tools.ant.Main %1 %2 %3 %4 %5

Thanks for merging

Enrico Schnepel

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

--
GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a


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