Questions on the new Intermediate Format

2009-06-03 Thread Tobias Anstett [k15t.com]
Hi,

I have some question regarding the new intermediate format:

1) Is it used automatically in FOP 0.95 or do I have to activate it somehow?

2) Does it change the way page-sequences are handled? In other words
does the rendering process still hold the whole tree (of the processed
page-sequence) in memory. Because this is a big problem when using
FO-PDF - splitting the FO in more page-sequences was the only
solution available for 0.92-0.94. Although this solution is a simple
tweak to get big documents rendered, it is not always a 'nice'
solution e.g. page-sequences always introduce page breaks.

-- 
Cheers,
Tobias



K15t Software UG (haftungsbeschränkt), http://www.k15t.com
Rosenbergstr. 58, 70176 Stuttgart, GERMANY
Registration: Stuttgart HRB 729752, VAT ID: DE264753756
Geschäftsführer (CEO): Klaus-Dieter Krüger

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Questions on the new Intermediate Format

2009-06-03 Thread Andreas Delmelle

On 03 Jun 2009, at 08:23, Tobias Anstett [k15t.com] wrote:

Hi Tobias


I have some question regarding the new intermediate format:

1) Is it used automatically in FOP 0.95 or do I have to activate it  
somehow?


No, it is only available in FOP's Trunk version. IIRC, it is used  
automatically.



2) Does it change the way page-sequences are handled?


No. This remains the same for the moment. Note that FOP Trunk  
currently does have an option made available to store the rendered  
pages to disk to avoid keeping the whole area tree in memory, but it  
still does not resolve the issue that the entire page-sequence has to  
be parsed before layout even begins...



HTH!

Andreas

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: How to apply diff patch to FOP

2009-06-03 Thread Pascal SANCHO

Hi,
MaheshR a écrit :

Hi

I am newbie to FOP. we are trying to implement multi column region body in
single page. As FOP doesn't yet support these features,

This is not totally exact:
FOP implements multi-column in region-body, regarding FO-REC 1.0; see 
[1], [2], and [3].
What FOP doesn't implement is multiple fo:flow, regarding FO-REC 1.1; 
see [4].


Practically, the FO-REC 1.0 only allows equi-width columns, while FO-REC 
1.1 allows any size of rectangles as columns.


You'll need the patch only if you wish to have different width columns.

[1] http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#fo_region-body
[2] http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#column-count
[3] http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#column-gap
[4] http://localhost/doc/xslfo/rec11/xslspec.html#IDAJJ0X


flow-map.diff patch file that can be applied to FOP .92 version. But we do
not know how to apply this patch. Can anybody provide step by step
instructions to apply patch to FOP.
  

Applying the patch needs you to dive into Subversion knowledge.
You can initially read this page [5] and follow the links in it.
Then you have to apply the patch onto the source code, downloaded from 
FOP SVN repository [6].

Note in your case you have to checkout from the branch or the tag 0.92

[5] http://xmlgraphics.apache.org/fop/dev/tools.html#patches
[6] http://svn.apache.org/repos/asf/xmlgraphics/fop/

Thanks in advance.

Thanks
Mahesh Rayudu.
  

Pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: bench marking for xml to pdf conversion

2009-06-03 Thread ismail . khan
Hi,

I had my xml file as below it has a single page-sequence with a  table
spanning +100 pages. What needs to be done to achive multiple
page-sequence.

---
HTMLstyle type=text/csstd { font-family:Courier New;font-size:10pt;
}tr{  font-family:Courier New;  font-size:10pt; height:11.25pt} * {
font-family:Courier New;font-size:10pt; } @page {margin:0in 0in 0in
;mso-Header-margin:0in;mso-Footer-margin:0in;}/styleHEADmeta
http-equiv=Content-Type content=text/html;
charset=utf-8/meta/HEADBODYFORMPREptable cols=7.22 7.22
7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22
7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22
7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22
7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22
7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22
7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22
7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22
7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22
7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22 7.22
7.22 7.22 7.22  border=0 cellspacing=0 cellpadding=0 
tr valign=center height=12.000pttd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /tdtd colspan=1 /tdtd colspan=1 /tdtd
colspan=1 /td/tr
tr valign=center height=12.000pttd colspan=5 /tdtd
valign=top colspan=20 align=left NLS font-family=ARIAL
font-size=11Report Id 280/NLS/tdtd colspan=22 /tdtd
valign=top colspan=45 align=center NLS font-family=ARIAL
font-size=11Audit Report For Reference Data Maintenance/NLS/tdtd
colspan=3 /tdtd valign=top colspan=40 align=right NLS
font-family=ARIAL font-size=11Page 1 / 73  /NLS/td/tr
tr valign=center height=12.000pttd colspan=5 /tdtd
valign=top colspan=41 align=left NLS font-family=ARIAL
font-size=11Generated On 01-Jun-2009 17:51:58/NLS/tdtd colspan=1
/tdtd valign=top colspan=45 align=center NLS font-family=ARIAL
font-size=11For Business Date Range From 01-May-2009 to
01-May-2009/NLS/td/tr
tr valign=center height=12.000pttd colspan=140 /td/tr
tr valign=center height=12.000pttd colspan=140 /td/tr
tr valign=center height=12.000pttd colspan=140 /td/tr
tr valign=center height=12.000pttd colspan=5 /tdtd
valign=top colspan=130 align=center NLS font-family=arialbd
font-size=11Reference Data Maintenance Report/NLS/td/tr
tr valign=center height=12.000pttd colspan=140 /td/tr
tr valign=center height=12.000pttd colspan=5 /tdtd
colspan=47 /tdtd valign=top colspan=25 align=left NLS
font-family=ARIAL font-size=10Report Generation Date /NLS/tdtd
colspan=4 /tdtd valign=top colspan=15 align=left NLS
font-family=ARIAL 

Re: Questions on the new Intermediate Format

2009-06-03 Thread Tobias Anstett [k15t.com]
Hi Andreas,


 No, it is only available in FOP's Trunk version. IIRC, it is used
 automatically.

How stable is it? Are there any known issues that some content can't
be rendered?

 No. This remains the same for the moment. Note that FOP Trunk currently does
 have an option made available to store the rendered pages to disk to avoid
 keeping the whole area tree in memory, but it still does not resolve the
 issue that the entire page-sequence has to be parsed before layout even
 begins...

Do you think the memory issues is because of parsing the entire
page-sequence or because of not storing the rendered pages to disk. If
the latter one, can you tell me how to activate this behavior?

Cheers,
Tobaias

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP 0.95 fails to compile large PDF files - java heap space

2009-06-03 Thread nancy_b

Hi,

Thanks a lot for suggestions. It seems that I have increased JAVA heap
space, by specifying -Xmx1000m (I have 2Gb) , although I am not sure how
much I should really allocate for running compilation of large docs. 

The question that remained unclear is that while FOP 0.94 doesn't complain
on the fonts, FOP 0.95 generates the following error message:

WARNING: Font 'Symbol,normal,700' not found. Substituting with
'Symbol,normal,400'.
Jun 2, 2009 2:14:25 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with
'ZapfDingbats,normal,400'.
Jun 2, 2009 2:14:31 PM org.apache.fop.hyphenation.Hyphenator
getHyphenationTree 

I don't understand why FOP 0.94 did not have such a problem, while FOP 0.95
does. I checked on my Linux Debian system - it does have the Symbol font in
/usr/share/cups/fonts/. For Zapfdinbats I found the following file:
/usr/lib/openoffice/share/psprint/fontmetric/ZapfDingbats.afm. I think
that's just a metric file for the font. So, I put the following in FOP's
conf file:

   
  font-triplet name=Symbol style=normal weight=700/



  font-triplet name=ZapfDingbats style=normal weight=700/



  font-triplet name=ZapfDingbats style=italic weight=700/



  font-triplet name=ZapfDingbats style=italic weight=400/


And guess what, the warning disappeared. The question is whether it really
solved the problem - whether FOP really identified these fonts. For example,
I don't have ZapfDingbats font - just its metric?!

Thanks for your in put in advance!!!

Regards,
Nancy


Pascal Sancho wrote:
 
 nancy_b a écrit :
 Hi folks,

 I decided to move to FOP 0.95 (previously used FOP 0.94). When compiling
 a
 large PDF doc (more than 200 pages) the following error occurs:

 FOP Exception in thread main java.lang.OutOfMemoryError: Java heap
 space

 What is really frustrating and annoying is that FOP 0.94 did not have
 such a
 problem. Could you please explain why the new FOP version has this
 problem.
 We usually expect improvements in the newer versions... ;-(

 Thanks in advance!
 Nancy
   
 Hi,
 There is a lot of improvment in FOP 0.95 that can explain a /light/ 
 increase of memory consumption (new image support, better font hanfling, 
 etc.)
 Perhaps the memory allocated to FOP was /just/ enough with 0.94 version, 
 but not with 0.95 version.
 You should 1st increase the max memory allocation to the JVM.
 Also check this link: 
 http://xmlgraphics.apache.org/fop/0.95/running.html#memory.
 
 Pascal
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/FOP-0.95-fails-to-compile-large-PDF-files---java-heap-space-tp23816647p23847701.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP 0.95 fails to compile large PDF files - java heap space

2009-06-03 Thread Pascal SANCHO

nancy_b a écrit :

Hi,

Thanks a lot for suggestions. It seems that I have increased JAVA heap
space, by specifying -Xmx1000m (I have 2Gb) , although I am not sure how
much I should really allocate for running compilation of large docs. 


The question that remained unclear is that while FOP 0.94 doesn't complain
on the fonts, FOP 0.95 generates the following error message:

WARNING: Font 'Symbol,normal,700' not found. Substituting with
'Symbol,normal,400'.
Jun 2, 2009 2:14:25 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with
'ZapfDingbats,normal,400'.
  

These 2 fonts only exist in normal form. Neither bold nor italic.
You should check that in your FO fileand *force* font-weight property to 
normal (or 400, witch is equivalent).

Jun 2, 2009 2:14:31 PM org.apache.fop.hyphenation.Hyphenator
getHyphenationTree 


I don't understand why FOP 0.94 did not have such a problem, while FOP 0.95
does. I checked on my Linux Debian system - it does have the Symbol font in
/usr/share/cups/fonts/. For Zapfdinbats I found the following file:
/usr/lib/openoffice/share/psprint/fontmetric/ZapfDingbats.afm. I think
that's just a metric file for the font. So, I put the following in FOP's
conf file:

   
  font-triplet name=Symbol style=normal weight=700/




  font-triplet name=ZapfDingbats style=normal weight=700/




  font-triplet name=ZapfDingbats style=italic weight=700/




  font-triplet name=ZapfDingbats style=italic weight=400/



And guess what, the warning disappeared. The question is whether it really
solved the problem - whether FOP really identified these fonts. For example,
I don't have ZapfDingbats font - just its metric?!

Thanks for your in put in advance!!!

Regards,
Nancy


Pascal Sancho wrote:
  

nancy_b a écrit :


Hi folks,

I decided to move to FOP 0.95 (previously used FOP 0.94). When compiling
a
large PDF doc (more than 200 pages) the following error occurs:

FOP Exception in thread main java.lang.OutOfMemoryError: Java heap
space

What is really frustrating and annoying is that FOP 0.94 did not have
such a
problem. Could you please explain why the new FOP version has this
problem.
We usually expect improvements in the newer versions... ;-(

Thanks in advance!
Nancy  
  

Hi,
There is a lot of improvment in FOP 0.95 that can explain a /light/ 
increase of memory consumption (new image support, better font hanfling, 
etc.)
Perhaps the memory allocated to FOP was /just/ enough with 0.94 version, 
but not with 0.95 version.

You should 1st increase the max memory allocation to the JVM.
Also check this link: 
http://xmlgraphics.apache.org/fop/0.95/running.html#memory.


Pascal

Pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP 0.95 fails to compile large PDF files - java heap space

2009-06-03 Thread nancy_b

Thanks for suggestions!


Kindaian wrote:
 
 In my case, i had to change it to the max that the machine would 
 accept... somewhere around 1024m...
 
 [but it was on windows and on a 32bit environment... on 64 bits - both 
 os and java - this issues are largelly overcome by the ability to 
 address much more]
 
 ;)
 
 On 02-06-2009 16:23, Remko Tronçon wrote:
 thanks for your suggestions. I am using Debian Linux, so I don't have
 FOP.BAT on my system. Do you have any ideas where I should enter it on
 Linux?
  
 Did you install fop through apt-get install?
 If so: without having tried this myself, but by looking at the Debian
 package, perhaps the following could work:

  export JAVA_ARGS=-Xmx256m

 If you invoke 'fop' from the shell where you did the 'export' command,
 I think java will pick up the parameters.

 If you don't use Debian's fop, I think

  export FOP_OPTS=-Xmx256m

 should do the trick.

 cheers,
 Remko

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/FOP-0.95-fails-to-compile-large-PDF-files---java-heap-space-tp23816647p23848443.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP 0.95 fails to compile large PDF files - java heap space

2009-06-03 Thread Vincent Hennebert
Hi Nancy,

nancy_b wrote:
 Hi,
 
 Thanks a lot for suggestions. It seems that I have increased JAVA heap
 space, by specifying -Xmx1000m (I have 2Gb) , although I am not sure how
 much I should really allocate for running compilation of large docs. 

If that works with -Xmx1000m, then go for it. If for some reason you
want to use as few memory as possible, then gradually increase the value
of -Xmx until the OutOfMemoryError disappears. But you probably don’t
want/need to bother so much.


 The question that remained unclear is that while FOP 0.94 doesn't 
 complain
 on the fonts, FOP 0.95 generates the following error message:

A change was made in FOP 0.95 about the default value of the font-family
property. Until 0.94 that was sans-serif, in 0.95 it was changed to
sans-serif,Symbol,ZapfDingats. IIRC the reason was to make the Jeuclid
plug-in work more out of the box, but it has the unfortunate side effect
of issuing the warnings below as soon as you use bold text. There is an
open bug about that:
https://issues.apache.org/bugzilla/show_bug.cgi?id=47279

The workaround is to explicitly define the font-family property, and not
rely on the default value provided by FOP (this is usually done by
setting it on the fo:root or fo:page-sequence elements).


 WARNING: Font 'Symbol,normal,700' not found. Substituting with
 'Symbol,normal,400'.
 Jun 2, 2009 2:14:25 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
 WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with
 'ZapfDingbats,normal,400'.
 Jun 2, 2009 2:14:31 PM org.apache.fop.hyphenation.Hyphenator
 getHyphenationTree 
 
 I don't understand why FOP 0.94 did not have such a problem, while FOP 0.95
 does. I checked on my Linux Debian system - it does have the Symbol font in
 /usr/share/cups/fonts/. For Zapfdinbats I found the following file:
 /usr/lib/openoffice/share/psprint/fontmetric/ZapfDingbats.afm. I think
 that's just a metric file for the font. So, I put the following in FOP's
 conf file:
 

   font-triplet name=Symbol style=normal weight=700/
 
 
   
   font-triplet name=ZapfDingbats style=normal weight=700/
 
 
   
   font-triplet name=ZapfDingbats style=italic weight=700/
 
 
   
   font-triplet name=ZapfDingbats style=italic weight=400/
 
 
 And guess what, the warning disappeared. The question is whether it really
 solved the problem - whether FOP really identified these fonts. For example,
 I don't have ZapfDingbats font - just its metric?!

You must have put those font-triplet elements inside a font element,
haven’t you? A font-triplet element is not allowed elsewhere.

FWIW, the gsfonts package contains clones of the Symbol and ZapfDingbats
fonts, they can be found in the /usr/share/fonts/type1/gsfonts/
directory, under the names s05l.* and d05l.* (obvious names,
isn’t it ;-) ). But bold/italic versions aren’t available. If you do
something like the following, which I suspect is what you meant with
your font triplets above:
  font embed-url=s05l.pfb
font-triplet name=Symbol style=normal weight=bold/
  /font
then you effectively use the normal Symbol as a replacement for the bold
one (the text won’t appear in bold!).

All that said, stick to the advice above and explicitly define the
font-family property instead, and you should get rid of those warnings.

 Thanks for your in put in advance!!!
 
 Regards,
 Nancy

snip/

HTH,
Vincent

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Event model doesn't contain the definition for org.apache.fop.afp.AFPEventProducer

2009-06-03 Thread Vincent Hennebert
Hi,

attaluri1210 wrote:
 Hi,
 
 I have downloaded the latest source from the trunk and I have build it. 
 When I tried to run FO - AFP I got the below exception. 
 Can anyone guide me to get rid of this error. Your help is greatly
 appreciated.
 
 I have downloaded the file by file from the trunk. I believe I did not miss
 any file.
 Is there a way that we can download the complete code from trunk by single
 click.

You need a Subversion client to download the Trunk code. Have a look
there:
http://xmlgraphics.apache.org/fop/download.html#source


 The exception I got is below.

Did you build FOP using the provided ant file? It does more than just
compiling the source code, it also generates all sorts of files that are
needed to properly run FOP. See there:
http://xmlgraphics.apache.org/fop/trunk/compiling.html


 C:\FOP\fop-0.95C:\FOP_RANDD\fop-0.95-src\fop-0.95\fop.bat
 C:\FOP\fop-0.95\1.fo
 -afp 1.afp -c C:\FOP_RANDD\fop-0.95-src\fop-0.95\conf\fop.xconf
 Jun 2, 2009 7:34:27 PM org.apache.fop.apps.FopFactoryConfigurator configure
 INFO: Default page-height set to: 11in
 Jun 2, 2009 7:34:28 PM org.apache.fop.apps.FopFactoryConfigurator configure
 INFO: Default page-width set to: 8.26in
 Jun 2, 2009 7:34:28 PM org.apache.fop.cli.Main startFOP
 SEVERE: Exception
 java.lang.IllegalStateException: Event model doesn't contain the definition
 for
 org.apache.fop.afp.AFPEventProducer
snip/
 
 
 Thanks!
 
 Regards,
 Bharat

HTH,
Vincent

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



FopFactory.newInstance() error

2009-06-03 Thread Vladimir Dejanovic

Hello, 

I created app which is run on tomcat and I am using fop to create some PDF.
Strange thing is happening , after several month of working it just stopped
working, funny thing is that as far as I know nothing is changed. Error is
occurring in this call 

FopFactory.newInstance()

this is error from log

SVGElementMapping.initialize(87) | Error while initializing the Batik SVG
extensions
java.lang.NoClassDefFoundError: org/apache/batik/util/XMLResourceDescriptor
at
org.apache.fop.fo.extensions.svg.SVGElementMapping.initialize(SVGElementMapping.java:80)
at org.apache.fop.fo.ElementMapping.getTable(ElementMapping.java:52)
at
org.apache.fop.fo.ElementMappingRegistry.addElementMapping(ElementMappingRegistry.java:117)
at
org.apache.fop.fo.ElementMappingRegistry.addElementMapping(ElementMappingRegistry.java:96)
at
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMappingRegistry.java:77)
at
org.apache.fop.fo.ElementMappingRegistry.init(ElementMappingRegistry.java:64)
at org.apache.fop.apps.FopFactory.init(FopFactory.java:151)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:166)

thing which I can't figure out is the fact that try catch block isn't
working for some reason

I have this in code 

try
{
System.out.println(D 2);
this.tFactory = TransformerFactory.newInstance();
System.out.println(D 3);
this.fopFactory = FopFactory.newInstance();
System.out.println(D 4);
} catch (Exception e)
{
System.out.println(D 5);
System.out.println(D exception fop 
+ 
GregorianCalendar.getInstance().getTime());
throw new ServletException();
} catch (Error er)
{
System.out.println(D 6);
System.out.println(D error fop 
+ 
GregorianCalendar.getInstance().getTime());
System.out.println(D  + er.getMessage());
throw new ServletException();
}

and in log I get 1 , 2, 3 and 4 , between 3 and 4 the error occurs ???

Does any one have any idea about what might be problem here ?

Thanks
-- 
View this message in context: 
http://www.nabble.com/FopFactory.newInstance%28%29-error-tp23849856p23849856.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FopFactory.newInstance() error

2009-06-03 Thread Artur Zinatullin


VD java.lang.NoClassDefFoundError: 
org/apache/batik/util/XMLResourceDescriptor

Usually indicates, that You have some jars missing from Your classpath.
In this case it might be batik-all.jar 



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FopFactory.newInstance() error

2009-06-03 Thread Vladimir Dejanovic



Artur Zinatullin wrote:
 
 
  VD java.lang.NoClassDefFoundError: 
 org/apache/batik/util/XMLResourceDescriptor
 Usually indicates, that You have some jars missing from Your classpath.
 In this case it might be batik-all.jar 
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 
the thing which I can't figure out is how it worked for several month and
then just stopped. Also why try catch block isn't working like it should ?

I will try to find this jar and add it to app. I hope that it will fix the
problem :|

-- 
View this message in context: 
http://www.nabble.com/FopFactory.newInstance%28%29-error-tp23849856p23850018.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Issue generating barcode when using the latest code from trunk.

2009-06-03 Thread Chris Bowditch

attaluri1210 wrote:

snip/


When i run the code i am getting the below exception.

Jun 3, 2009 12:16:18 AM org.apache.fop.events.LoggingEventListener
processEvent
SEVERE: Image not available. URI: (instream-object). Reason:
org.apache.xmlgraph
ics.image.loader.ImageException: The file format is not supported. No
ImagePrelo
ader found for null (No context info available)


I have run into this error a few times myself. The latest code includes 
a new Intermediate Format (IF) XML which is used in preference to the 
Area Tree. You need the latest Barcode4J FOP plugin to be able to work 
with the IF XML. Alternatively you can configure FOP to use the Area 
Tree as in 0.95 by adding the following XML tags to the fop.xconf:


prefer-renderertrue/prefer-renderer

Regards,

Chris



Any help on this is greatly appreciated.

Thanks,
Bharat





-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FopFactory.newInstance() error

2009-06-03 Thread Chris Bowditch

Vladimir Dejanovic wrote:

snip/



the thing which I can't figure out is how it worked for several month and
then just stopped. Also why try catch block isn't working like it should ?


Your catch block is catching Exception, but the class 
NoClassDefFoundError extends Error which extends Throwable. Exception is 
a sub class of Throwable. So change your catch block to catch Throwable 
objects to ensure you can catch errors as well as exceptions.




I will try to find this jar and add it to app. I hope that it will fix the
problem :|



Regards,

Chris



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Issue generating barcode when using the latest code from trunk.

2009-06-03 Thread attaluri1210

Excellent..I got it. Thanks for a very quick reply.

Thanks,
Bharat


cbowditch wrote:
 
 attaluri1210 wrote:
 
 snip/
 
 When i run the code i am getting the below exception.
 
 Jun 3, 2009 12:16:18 AM org.apache.fop.events.LoggingEventListener
 processEvent
 SEVERE: Image not available. URI: (instream-object). Reason:
 org.apache.xmlgraph
 ics.image.loader.ImageException: The file format is not supported. No
 ImagePrelo
 ader found for null (No context info available)
 
 I have run into this error a few times myself. The latest code includes 
 a new Intermediate Format (IF) XML which is used in preference to the 
 Area Tree. You need the latest Barcode4J FOP plugin to be able to work 
 with the IF XML. Alternatively you can configure FOP to use the Area 
 Tree as in 0.95 by adding the following XML tags to the fop.xconf:
 
   prefer-renderertrue/prefer-renderer
 
 Regards,
 
 Chris
 
 
 Any help on this is greatly appreciated.
 
 Thanks,
 Bharat
 
 
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Issue-generating-barcode-when-using-the-latest-code-from-trunk.-tp23845061p23851275.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FopFactory.newInstance() error

2009-06-03 Thread Vladimir Dejanovic


Your catch block is catching Exception, but the class 
NoClassDefFoundError extends Error which extends Throwable. Exception is 
a sub class of Throwable. So change your catch block to catch Throwable 
objects to ensure you can catch errors as well as exceptions.
try
{.
}

catch (Error er)
{
System.out.println(D 6);
System.out.println(D error fop 
+
GregorianCalendar.getInstance().getTime());
System.out.println(D  + er.getMessage());
throw new ServletException();
}

this part of code should catch errors
-- 
View this message in context: 
http://www.nabble.com/FopFactory.newInstance%28%29-error-tp23849856p23851389.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: How to apply diff patch to FOP

2009-06-03 Thread MaheshR

Any help on mutliple columns in single page using xsl-fo will be greatly
appreciated. 
The final output should be looks like news paper columns.


Thanks in advance.

Thanks
Mahesh 


Pascal Sancho wrote:
 
 Hi,
 MaheshR a écrit :
 Hi

 I am newbie to FOP. we are trying to implement multi column region body
 in
 single page. As FOP doesn't yet support these features,
 This is not totally exact:
 FOP implements multi-column in region-body, regarding FO-REC 1.0; see 
 [1], [2], and [3].
 What FOP doesn't implement is multiple fo:flow, regarding FO-REC 1.1; 
 see [4].
 
 Practically, the FO-REC 1.0 only allows equi-width columns, while FO-REC 
 1.1 allows any size of rectangles as columns.
 
 You'll need the patch only if you wish to have different width columns.
 
 [1] http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#fo_region-body
 [2] http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#column-count
 [3] http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#column-gap
 [4] http://localhost/doc/xslfo/rec11/xslspec.html#IDAJJ0X
 
 flow-map.diff patch file that can be applied to FOP .92 version. But we
 do
 not know how to apply this patch. Can anybody provide step by step
 instructions to apply patch to FOP.
   
 Applying the patch needs you to dive into Subversion knowledge.
 You can initially read this page [5] and follow the links in it.
 Then you have to apply the patch onto the source code, downloaded from 
 FOP SVN repository [6].
 Note in your case you have to checkout from the branch or the tag 0.92
 
 [5] http://xmlgraphics.apache.org/fop/dev/tools.html#patches
 [6] http://svn.apache.org/repos/asf/xmlgraphics/fop/
 Thanks in advance.

 Thanks
 Mahesh Rayudu.
   
 Pascal
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-apply-diff-patch-to-FOP-tp23841622p23851423.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP 0.95 fails to compile large PDF files - java heap space

2009-06-03 Thread nancy_b

Hi dear Vincent!

First of all, thank you a lot for your explanations!!!

...the reason was to make the Jeuclid plug-in work more out of the box...

I checked on my system - I don't have the Jeuclid plug-in on my system
(should be in /lib directory, right?).
Does it come by default with FOP or its a separate utility?

...The workaround is to explicitly define the font-family property, and not
rely on the default value provided by FOP (this is usually done by
setting it on the fo:root or fo:page-sequence elements)

I tried the following in my stylesheet:

xsl:attribute-set name=root.properties
  xsl:attribute name=font-family
xsl:value-of select=sans-serif/
  /xsl:attribute
/xsl:attribute-set

it did change the font-family in fo:root but warnings did not disappear. I
don't know how to customize fo:page-sequence elements. Please, advise!

I also tried customizing the fop conf file:

  font-triplet name=Symbol style=normal weight=bold/



  font-triplet name=ZapfDingbats style=normal weight=700/



  font-triplet name=ZapfDingbats style=italic weight=700/



  font-triplet name=ZapfDingbats style=italic weight=400/


The warnings completely disappear, but when I try to use a Zapfdingbat
character in my XML (for example, 
#x260E; - for a phone icon), # appears instead. Does FOP find Zapfdingbat
font at all? If not, why doesn't show the warning?

Thanks a lot in advance!
nancy



Vincent Hennebert-2 wrote:
 
 Hi Nancy,
 
 nancy_b wrote:
 Hi,
 
 Thanks a lot for suggestions. It seems that I have increased JAVA heap
 space, by specifying -Xmx1000m (I have 2Gb) , although I am not sure how
 much I should really allocate for running compilation of large docs. 
 
 If that works with -Xmx1000m, then go for it. If for some reason you
 want to use as few memory as possible, then gradually increase the value
 of -Xmx until the OutOfMemoryError disappears. But you probably don’t
 want/need to bother so much.
 
 
 The question that remained unclear is that while FOP 0.94 doesn't 
 complain
 on the fonts, FOP 0.95 generates the following error message:
 
 A change was made in FOP 0.95 about the default value of the font-family
 property. Until 0.94 that was sans-serif, in 0.95 it was changed to
 sans-serif,Symbol,ZapfDingats. IIRC the reason was to make the Jeuclid
 plug-in work more out of the box, but it has the unfortunate side effect
 of issuing the warnings below as soon as you use bold text. There is an
 open bug about that:
 https://issues.apache.org/bugzilla/show_bug.cgi?id=47279
 
 The workaround is to explicitly define the font-family property, and not
 rely on the default value provided by FOP (this is usually done by
 setting it on the fo:root or fo:page-sequence elements).
 
 
 WARNING: Font 'Symbol,normal,700' not found. Substituting with
 'Symbol,normal,400'.
 Jun 2, 2009 2:14:25 PM org.apache.fop.fonts.FontInfo
 notifyFontReplacement
 WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with
 'ZapfDingbats,normal,400'.
 Jun 2, 2009 2:14:31 PM org.apache.fop.hyphenation.Hyphenator
 getHyphenationTree 
 
 I don't understand why FOP 0.94 did not have such a problem, while FOP
 0.95
 does. I checked on my Linux Debian system - it does have the Symbol font
 in
 /usr/share/cups/fonts/. For Zapfdinbats I found the following file:
 /usr/lib/openoffice/share/psprint/fontmetric/ZapfDingbats.afm. I think
 that's just a metric file for the font. So, I put the following in FOP's
 conf file:
 

   font-triplet name=Symbol style=normal weight=700/
 
 
  
   font-triplet name=ZapfDingbats style=normal weight=700/
 
 
  
   font-triplet name=ZapfDingbats style=italic weight=700/
 
 
  
   font-triplet name=ZapfDingbats style=italic weight=400/
 
 
 And guess what, the warning disappeared. The question is whether it
 really
 solved the problem - whether FOP really identified these fonts. For
 example,
 I don't have ZapfDingbats font - just its metric?!
 
 You must have put those font-triplet elements inside a font element,
 haven’t you? A font-triplet element is not allowed elsewhere.
 
 FWIW, the gsfonts package contains clones of the Symbol and ZapfDingbats
 fonts, they can be found in the /usr/share/fonts/type1/gsfonts/
 directory, under the names s05l.* and d05l.* (obvious names,
 isn’t it ;-) ). But bold/italic versions aren’t available. If you do
 something like the following, which I suspect is what you meant with
 your font triplets above:
   
 font-triplet name=Symbol style=normal weight=bold/
   
 then you effectively use the normal Symbol as a replacement for the bold
 one (the text won’t appear in bold!).
 
 All that said, stick to the advice above and explicitly define the
 font-family property instead, and you should get rid of those warnings.
 
 Thanks for your in put in advance!!!
 
 Regards,
 Nancy
 

Re: FopFactory.newInstance() error

2009-06-03 Thread Andreas Delmelle

On 03 Jun 2009, at 15:25, Vladimir Dejanovic wrote:

Hi Vladimir


snip /
this part of code should catch errors


Indeed, but the related error is already caught inside  
SVGElementMapping.initialize().
The reason is obviously that we don't want FOP to crash on this, just  
log an error message if the SVG extension could not be properly  
initialized.


Do you have another version of Batik in the classpath somewhere (apart  
from the one in FOP's lib directory)? That might explain the missing  
class definition...



HTH!

Andreas

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Questions on the new Intermediate Format

2009-06-03 Thread Andreas Delmelle

On 03 Jun 2009, at 09:18, Tobias Anstett [k15t.com] wrote:

Hi Tobias


No, it is only available in FOP's Trunk version. IIRC, it is used
automatically.


How stable is it? Are there any known issues that some content can't
be rendered?


For now, it seems to work nicely. I have not seen any issues come in  
that are specific to the introduction of the new IF. Trunk is stable  
enough, IMO, for most (if not all) scenarios.


No. This remains the same for the moment. Note that FOP Trunk  
currently does
have an option made available to store the rendered pages to disk  
to avoid
keeping the whole area tree in memory, but it still does not  
resolve the
issue that the entire page-sequence has to be parsed before layout  
even

begins...


Do you think the memory issues is because of parsing the entire
page-sequence or because of not storing the rendered pages to disk.


Both. It depends a bit on the FO. If you use a lot of nested tables  
and/or blocks, the memory occupied by the objects for the FO Tree  
could by itself be enough to cause issues. If you receive an  
OutOfMemoryError during rendering, there is a chance (no guarantee)  
that offloading the pages to disk will bypass the issue. If the error  
is thrown sometime during the FO Tree buildup, serializing the pages  
will not help.




If the latter one, can you tell me how to activate this behavior?


With FOP Trunk, one can use the '-conserve' option on the command-line  
to activate disk-caching of the rendered pages (or call  
setConserveMemoryPolicy(true) on the FOUserAgent for embedded usage).  
We have explicitly chosen to make this optional, since it increases  
disk I/O so it can be significantly slower.



HTH!

Andreas

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: How to apply diff patch to FOP

2009-06-03 Thread Pascal SANCHO

MaheshR a écrit :

Any help on mutliple columns in single page using xsl-fo will be greatly
appreciated. 
The final output should be looks like news paper columns.
  

You can find some examples given with FOP in following folder:
FOP_dir/examples/fo/region_body
That should give you some ideas


Thanks in advance.

Thanks
Mahesh 



Pascal Sancho wrote:
  

Hi,
MaheshR a écrit :


Hi

I am newbie to FOP. we are trying to implement multi column region body
in
single page. As FOP doesn't yet support these features,
  

This is not totally exact:
FOP implements multi-column in region-body, regarding FO-REC 1.0; see 
[1], [2], and [3].
What FOP doesn't implement is multiple fo:flow, regarding FO-REC 1.1; 
see [4].


Practically, the FO-REC 1.0 only allows equi-width columns, while FO-REC 
1.1 allows any size of rectangles as columns.


You'll need the patch only if you wish to have different width columns.

[1] http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#fo_region-body
[2] http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#column-count
[3] http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#column-gap
[4] http://localhost/doc/xslfo/rec11/xslspec.html#IDAJJ0X



flow-map.diff patch file that can be applied to FOP .92 version. But we
do
not know how to apply this patch. Can anybody provide step by step
instructions to apply patch to FOP.
  
  

Applying the patch needs you to dive into Subversion knowledge.
You can initially read this page [5] and follow the links in it.
Then you have to apply the patch onto the source code, downloaded from 
FOP SVN repository [6].

Note in your case you have to checkout from the branch or the tag 0.92

[5] http://xmlgraphics.apache.org/fop/dev/tools.html#patches
[6] http://svn.apache.org/repos/asf/xmlgraphics/fop/


Thanks in advance.

Thanks
Mahesh Rayudu.
  
  

Pascal

Pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FopFactory.newInstance() error

2009-06-03 Thread Tobias Anstett [k15t.com]
Hi Vladimir,

if you haven't modified your app, maybe you or your workmates modified
the classpath - maybe adding another jar to tomcat or executed a mvn
build that updated some jars inside the app.

Cheers,
Tobias

On Wed, Jun 3, 2009 at 3:58 PM, Vladimir Dejanovic
vladimir.dejano...@zemljasnova.net wrote:



 Andreas Delmelle-2 wrote:

 On 03 Jun 2009, at 15:25, Vladimir Dejanovic wrote:

 Hi Vladimir

 snip /
 this part of code should catch errors

 Indeed, but the related error is already caught inside
 SVGElementMapping.initialize().
 The reason is obviously that we don't want FOP to crash on this, just
 log an error message if the SVG extension could not be properly
 initialized.

 Do you have another version of Batik in the classpath somewhere (apart
 from the one in FOP's lib directory)? That might explain the missing
 class definition...


 HTH!

 Andreas

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




 Hi Andreas,

 I am using several jar-s inside my app , like poi , fop , struts, hibernate,
  so I can't be sure if Batik is already in some of them or not. But what
 I can't understand is the fact that everything worked just fine for several
 months and then just stopped. I haven't modified app , and my college tells
 me that he didn't modify anything either, so how it stopped working ?

 Thanks
 Vladimir Dejanovic
 --
 View this message in context: 
 http://www.nabble.com/FopFactory.newInstance%28%29-error-tp23849856p23851956.html
 Sent from the FOP - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Issue generating barcode when using the latest code from trunk.

2009-06-03 Thread attaluri1210

Can you guide me where can i get the latest Barcode4j FOP plugin. i beleive i
have downloaded the barcode4j-fop-ext-complete-2.0.jar. Is this the latest
one?

Thanks,
Bharat


cbowditch wrote:
 
 attaluri1210 wrote:
 
 snip/
 
 When i run the code i am getting the below exception.
 
 Jun 3, 2009 12:16:18 AM org.apache.fop.events.LoggingEventListener
 processEvent
 SEVERE: Image not available. URI: (instream-object). Reason:
 org.apache.xmlgraph
 ics.image.loader.ImageException: The file format is not supported. No
 ImagePrelo
 ader found for null (No context info available)
 
 I have run into this error a few times myself. The latest code includes 
 a new Intermediate Format (IF) XML which is used in preference to the 
 Area Tree. You need the latest Barcode4J FOP plugin to be able to work 
 with the IF XML. Alternatively you can configure FOP to use the Area 
 Tree as in 0.95 by adding the following XML tags to the fop.xconf:
 
   prefer-renderertrue/prefer-renderer
 
 Regards,
 
 Chris
 
 
 Any help on this is greatly appreciated.
 
 Thanks,
 Bharat
 
 
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Issue-generating-barcode-when-using-the-latest-code-from-trunk.-tp23845061p23852095.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FopFactory.newInstance() error

2009-06-03 Thread Vladimir Dejanovic



Andreas Delmelle-2 wrote:
 
 On 03 Jun 2009, at 15:25, Vladimir Dejanovic wrote:
 
 Hi Vladimir
 
 snip /
 this part of code should catch errors
 
 Indeed, but the related error is already caught inside  
 SVGElementMapping.initialize().
 The reason is obviously that we don't want FOP to crash on this, just  
 log an error message if the SVG extension could not be properly  
 initialized.
 
 Do you have another version of Batik in the classpath somewhere (apart  
 from the one in FOP's lib directory)? That might explain the missing  
 class definition...
 
 
 HTH!
 
 Andreas
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

Hi Andreas,

I am using several jar-s inside my app , like poi , fop , struts, hibernate,
 so I can't be sure if Batik is already in some of them or not. But what
I can't understand is the fact that everything worked just fine for several
months and then just stopped. I haven't modified app , and my college tells
me that he didn't modify anything either, so how it stopped working ?

Thanks
Vladimir Dejanovic
-- 
View this message in context: 
http://www.nabble.com/FopFactory.newInstance%28%29-error-tp23849856p23851956.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Issue generating barcode when using the latest code from trunk.

2009-06-03 Thread Chris Bowditch

attaluri1210 wrote:


Can you guide me where can i get the latest Barcode4j FOP plugin. i beleive i
have downloaded the barcode4j-fop-ext-complete-2.0.jar. Is this the latest
one?


There's no official Barcode4J release with the changes for the FOP IF 
XML yet. I had to download the Barcode4J source from CVS and build it 
myself. You might just want to try the config setting first just to make 
sure that is the problem before you go to all that trouble.


Regards,

Chris

snip/



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: How to apply diff patch to FOP

2009-06-03 Thread Mahesh Rayudu
Excellent.. Thanks.

On Wed, Jun 3, 2009 at 9:43 AM, Pascal SANCHO pascal.san...@takoma.frwrote:

 MaheshR a écrit :

 Any help on mutliple columns in single page using xsl-fo will be greatly
 appreciated. The final output should be looks like news paper columns.


 You can find some examples given with FOP in following folder:
 FOP_dir/examples/fo/region_body
 That should give you some ideas


 Thanks in advance.

 Thanks
 Mahesh

 Pascal Sancho wrote:


 Hi,
 MaheshR a écrit :


 Hi

 I am newbie to FOP. we are trying to implement multi column region body
 in
 single page. As FOP doesn't yet support these features,


 This is not totally exact:
 FOP implements multi-column in region-body, regarding FO-REC 1.0; see
 [1], [2], and [3].
 What FOP doesn't implement is multiple fo:flow, regarding FO-REC 1.1; see
 [4].

 Practically, the FO-REC 1.0 only allows equi-width columns, while FO-REC
 1.1 allows any size of rectangles as columns.

 You'll need the patch only if you wish to have different width columns.

 [1]
 http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#fo_region-body
 [2] http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#column-count
 [3] http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#column-gap
 [4] http://localhost/doc/xslfo/rec11/xslspec.html#IDAJJ0X



 flow-map.diff patch file that can be applied to FOP .92 version. But we
 do
 not know how to apply this patch. Can anybody provide step by step
 instructions to apply patch to FOP.


 Applying the patch needs you to dive into Subversion knowledge.
 You can initially read this page [5] and follow the links in it.
 Then you have to apply the patch onto the source code, downloaded from
 FOP SVN repository [6].
 Note in your case you have to checkout from the branch or the tag 0.92

 [5] http://xmlgraphics.apache.org/fop/dev/tools.html#patches
 [6] http://svn.apache.org/repos/asf/xmlgraphics/fop/


 Thanks in advance.

 Thanks
 Mahesh Rayudu.


 Pascal

 Pascal

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




Re: Issue generating barcode when using the latest code from trunk.

2009-06-03 Thread attaluri1210

I have used the configuration parameter you have mentioned and looks like it
worked fine.

Thanks,
bharat

cbowditch wrote:
 
 attaluri1210 wrote:
 
 Can you guide me where can i get the latest Barcode4j FOP plugin. i
 beleive i
 have downloaded the barcode4j-fop-ext-complete-2.0.jar. Is this the
 latest
 one?
 
 There's no official Barcode4J release with the changes for the FOP IF 
 XML yet. I had to download the Barcode4J source from CVS and build it 
 myself. You might just want to try the config setting first just to make 
 sure that is the problem before you go to all that trouble.
 
 Regards,
 
 Chris
 
 snip/
 
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Issue-generating-barcode-when-using-the-latest-code-from-trunk.-tp23845061p23855526.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Unable to write to default external resource group file 'resources.afp'. and Problem with images when the mode is set to color

2009-06-03 Thread attaluri1210

Hi,

I am trying get the afp output from fo using FOP.

I took the complete source from trunk today. I am getting two issues. 
1. Unable to write to default external resource group file 'resources.afp'.
2. When we set the mode as Color for Images tag in config, the image is not
displaying correctly. I mean blurry.(It is displaying fine if the image mode
is set as b+w).

Do i need to include any other config settings

Both of the above worked fine if i use 0.95. But i want some latest features
like Tag logical element and invoke medium map e.t.c. So, i am using the
latest code from trunk.

The sample fo file i am using is  http://www.nabble.com/file/p23857578/1.fo
1.fo 


The exception i am getting is below..

C:\FOP\Trunk\trunkfop 1.fo -afp 1.afp -c fop.xconf
Jun 3, 2009 3:10:23 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-height set to: 11in
Jun 3, 2009 3:10:23 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-width set to: 8.26in
Jun 3, 2009 3:10:24 PM org.apache.fop.render.afp.AFPRendererConfigurator
configu
re
WARNING: Unable to write to default external resource group file
'resources.afp'

Jun 3, 2009 3:10:24 PM org.apache.fop.events.LoggingEventListener
processEvent
WARNING: No AFP default any, italic, 400 font configured.
Jun 3, 2009 3:10:24 PM org.apache.fop.events.LoggingEventListener
processEvent
WARNING: No AFP default any, normal, 700 font configured.
Jun 3, 2009 3:10:24 PM org.apache.fop.events.LoggingEventListener
processEvent
WARNING: No AFP default any, italic, 700 font configured.

The afp file it is writing is 
http://www.nabble.com/file/p23857578/1.afp 1.afp 


Can anyone please provide me the help on these two problems i am having.

Thanks in advance.

Thanks,
Bharat
-- 
View this message in context: 
http://www.nabble.com/Unable-to-write-to-default-external-resource-group-file-%27resources.afp%27.-and-Problem-with-images-when-the-mode-is-set-to-color-tp23857578p23857578.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP 0.95 fails to compile large PDF files - java heap space

2009-06-03 Thread Andreas Delmelle

On 03 Jun 2009, at 15:29, nancy_b wrote:

Hi Nancy, Vincent,


First of all, thank you a lot for your explanations!!!

...the reason was to make the Jeuclid plug-in work more out of the  
box...


Well, actually, the change mentioned by Vincent is not yet in 0.95.  
The FOPropertyMapping in that branch still uses sans-serif as an  
initial value for font-family (see: [1], search for 'font-family')
The change in question was committed to Trunk only (over a year ago,  
see [2]), and the reason was to make font-selection-strategy work on  
fo:character without requiring any intervention from end-users. If you  
insert a fo:character with a codepoint that is only available in  
Symbol, then FOP Trunk will automatically choose that font-family,  
without requiring the author to explicitly set it. FOP 0.95 indeed  
still shows the 'missing' glyph '#' as Nancy describes further on.


[1] 
http://svn.apache.org/viewvc/xmlgraphics/fop/branches/fop-0_95/src/java/org/apache/fop/fo/FOPropertyMapping.java?revision=637791
[2] 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOPropertyMapping.java?r1=652673r2=655281diff_format=h

So, it seems this change cannot be the cause of the warnings in this  
case. For 0.95, the only possible explanation is the presence of  
explicit combinations bold/italic + Symbol/ZapfDingbats. Note that  
most (if not all) of the font-related properties are inherited, so the  
weight/style property is very likely inherited from the parent FO or  
another ancestor.



I checked on my system - I don't have the Jeuclid plug-in on my system
(should be in /lib directory, right?).
Does it come by default with FOP or its a separate utility?


It is a separate plugin, and can be downloaded at Sourceforge:
http://sourceforge.net/project/showfiles.php?group_id=44862


I also tried customizing the fop conf file:

 font-triplet name=Symbol style=normal weight=bold/


As Vincent already noted, not sure what the intended effect is. The  
font-triplet is supposed to be a child of a font-metrics element.


See: http://xmlgraphics.apache.org/fop/0.95/fonts.html#register


The warnings completely disappear, but when I try to use a Zapfdingbat
character in my XML (for example, #x260E; - for a phone icon), #  
appears instead.
Does FOP find Zapfdingbat font at all? If not, why doesn't show the  
warning?


As mentioned above, this means that FOP is using another font for that  
character, which lacks a glyph for that Unicode codepoint. Since the  
ZapfDingbats family is not used, no complaints there (yet in 0.95).


I can only suggest undoing all the changes above. Apparently, they are  
causing confusion somewhere.


I'm afraid I know very little of Docbook, but based on what you  
mentioned earlier, maybe it's possible to force the weight/style using  
xsl:params 'symbol.font.style' and 'symbol.font.weight' (? long shot)


If the warnings are really a deal-breaker, then FOP Trunk offers one  
very easy enhancement to substitute the fully resolved triplets at  
runtime, and map bold/italic to normal for the Symbol and ZapfDingbats  
fonts:

http://xmlgraphics.apache.org/fop/trunk/fonts.html#substitution


Regards

Andreas

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Missing images when many images are displayed

2009-06-03 Thread jmorra

Thanks for the help with this question, I was able to upgrade to fop 0.95 (as
you suggested).  It too didn't print the images correctly.  However, I was
able to solve my problem by using a for each loop and creating a two column
table.

However, now I'm having another image problem.  I need to formulate the URLs
for these images via the https protocol, however, the images aren't
appearing when I use any hostname other than localhost.

Here's the error message I'm getting

14:03:25,140 ERROR FOP:243 - Error with opening URL
'https://jonmorra:8443/wado?requestType=WADOstudyUID=1seriesUID=1objectUID=1.2.826.0.1.3680043.2.1074.64826.5.71.10003791.5':
HTTPS hostname wrong:  should be jonmorra

I know that the URL is valid (I can copy and paste it into a browser), but I
don't know what else I can do, short of downloading the image to a temp
directory and then having the xslt point to that temp directory (which is
really really messy, because I'm dealing with a lot of images).

Any help would be greatly appreciated.  Thanks


jmorra wrote:
 
 I have an XML document which contains information that points to many
 images, and I'm trying to display them using the fo:external-graphic
 method.  When only a few images are present it works fine.  However, when
 many images are present (enough that they span multiple pages) then images
 appear to be lost, which means they are simply not printed in the PDF. 
 When I use the following code, the images appear staggered, and there is a
 lot of white space, however, all the images are printed correctly.
 
 fo:table-cell padding=3mm
 xsl:apply-templates select=at...@tag='0040A730']/item
 mode=content
 xsl:with-param name=patternImage/xsl:with-param
 /xsl:apply-templates
 /fo:table-cell
 
 xsl:template match=item mode=content
 xsl:param name=pattern/
 xsl:if test=$pattern='Image'
 fo:external-graphic width=8cm
 xsl:attribute
 name=srcurl(https://localhost:8443/wado?requestType=WADOamp;studyUID=1amp;seriesUID=1amp;objectUID=xsl:value-of
 select=at...@tag='00081199']/item/at...@tag='00081155']/)/xsl:attribute
 /fo:external-graphic
 /xsl:if
 /xsl:template
 
 The first part of the code is wrapped inside of a fo:table.  However, if I
 replace the first part with the following
 
 fo:table-cell padding=3mm
 fo:block
 xsl:apply-templates select=at...@tag='0040A730']/item
 mode=content
 xsl:with-param name=patternImage/xsl:with-param
 /xsl:apply-templates
 'fo:block
 /fo:table-cell
 
 Then the images look much better on the page (no white space), but some
 images are just missing.
 
 I'm pretty new to XSL:FO, but I've been trying to figure this one out for
 a while, and would greatly appreciate any input.  I'm using version
 0.20.5, and am locked into that version.
 

-- 
View this message in context: 
http://www.nabble.com/Missing-images-when-many-images-are-displayed-tp23772880p23859454.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Missing images when many images are displayed

2009-06-03 Thread jmorra

OK, well I'm going to answer my own post because I figured it out, and for
everyone else out there who has this issue.

The way I solved it was by changing my keystore using the java keytool
command.  When I first created my keystore, I did it with a CN (computer
name) of localhost.  This is why the images were coming across when the
hostname was localhost.  However, if I recreated my keystore with a CN of
the computer name (jonmorra), then it worked with jonmorra (and not with
localhost).

Thanks again for your help with my other post.


jmorra wrote:
 
 Thanks for the help with this question, I was able to upgrade to fop 0.95
 (as you suggested).  It too didn't print the images correctly.  However, I
 was able to solve my problem by using a for each loop and creating a two
 column table.
 
 However, now I'm having another image problem.  I need to formulate the
 URLs for these images via the https protocol, however, the images aren't
 appearing when I use any hostname other than localhost.
 
 Here's the error message I'm getting
 
 14:03:25,140 ERROR FOP:243 - Error with opening URL
 'https://jonmorra:8443/wado?requestType=WADOstudyUID=1seriesUID=1objectUID=1.2.826.0.1.3680043.2.1074.64826.5.71.10003791.5':
 HTTPS hostname wrong:  should be jonmorra
 
 I know that the URL is valid (I can copy and paste it into a browser), but
 I don't know what else I can do, short of downloading the image to a temp
 directory and then having the xslt point to that temp directory (which is
 really really messy, because I'm dealing with a lot of images).
 
 Any help would be greatly appreciated.  Thanks
 
 
 jmorra wrote:
 
 I have an XML document which contains information that points to many
 images, and I'm trying to display them using the fo:external-graphic
 method.  When only a few images are present it works fine.  However, when
 many images are present (enough that they span multiple pages) then
 images appear to be lost, which means they are simply not printed in
 the PDF.  When I use the following code, the images appear staggered, and
 there is a lot of white space, however, all the images are printed
 correctly.
 
 fo:table-cell padding=3mm
 xsl:apply-templates select=at...@tag='0040A730']/item
 mode=content
 xsl:with-param name=patternImage/xsl:with-param
 /xsl:apply-templates
 /fo:table-cell
 
 xsl:template match=item mode=content
 xsl:param name=pattern/
 xsl:if test=$pattern='Image'
 fo:external-graphic width=8cm
 xsl:attribute
 name=srcurl(https://localhost:8443/wado?requestType=WADOamp;studyUID=1amp;seriesUID=1amp;objectUID=xsl:value-of
 select=at...@tag='00081199']/item/at...@tag='00081155']/)/xsl:attribute
 /fo:external-graphic
 /xsl:if
 /xsl:template
 
 The first part of the code is wrapped inside of a fo:table.  However, if
 I replace the first part with the following
 
 fo:table-cell padding=3mm
 fo:block
 xsl:apply-templates select=at...@tag='0040A730']/item
 mode=content
 xsl:with-param name=patternImage/xsl:with-param
 /xsl:apply-templates
 'fo:block
 /fo:table-cell
 
 Then the images look much better on the page (no white space), but some
 images are just missing.
 
 I'm pretty new to XSL:FO, but I've been trying to figure this one out for
 a while, and would greatly appreciate any input.  I'm using version
 0.20.5, and am locked into that version.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Missing-images-when-many-images-are-displayed-tp23772880p23860929.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org