Re: AW: AW: AW: OutOfMemoryException while transforming large XML to PDF

2011-03-25 Thread Luis Ferro
The major problem i've see in java is the heap memory... It gets 
exausted on very big jobs.


The only alternatives are:

1. cut the job in smaller chunks...
2. move all the environment to 64bits...

The 64bit platform will allow you to allocate more ram to the process 
and surpass the 1.2gb (or something nearby) of the 32 bit platform per 
process.


Cheers,
LF


On 25/03/2011 16:13, Eric Douglas wrote:

How to feed the FO file?
Using the command line transform you just pass it to the -fo parameter.

Using embedded code I feed it as a SAXSource.
Reading in from file you have:
java.io.File
java.io.FileInputStream
org.xml.sax.InputSource
javax.xml.transform.sax.SAXSource

Creates the input.
Pass that in to:
javax.xml.transform.TransformerFactory
javax.xml.transform.Transformer
I'm not sure it's required but I copied this code from the FOP website:
Transformer.setParameter(versionParam, 2.0)

Then your transform, with the FOP output generated with these classes.
org.apache.fop.apps.FopFactory
org.apache.fop.apps.Fop
javax.xml.transform.sax.SAXResult

The SAXResult is created from the Fop.getDefaultHandler.
The Transformer can be created with an XSL file parameter to pass XML
into the transform, or with no XSL to pass the FO in.


-Original Message-
From: Dennis van Zoerlandt [mailto:dvzoerla...@vanboxtel.nl]
Sent: Friday, March 25, 2011 10:30 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: AW: AW: AW: OutOfMemoryException while transforming large
XML to PDF


Hi Georg,

I'm currently running the XML and XSLT through XMLspy with FOP 0.95 (it
seems Altova doesn't support FOP 1.0).

I'm not really sure how to feed the FO file to FOP? Can I just put the
FO file as source file for the transformer.transform()?

I'll get back to you when I have a FO file. My pc's currently performing
very badly, so it seems it's a heavy job.

Best regards,
Dennis van Zoerlandt


-
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: AW: AW: AW: OutOfMemoryException while transforming large XML to PDF

2011-03-25 Thread Luis Ferro
I also remember from long time ago threads, that the use of references 
like indexes and the like make the page sections (term?) not to be 
released as there are live connections to the object until the very end.


Think that there was some discussion regarding on how to sort this out.

Cheers, and keep us posted on your progress.

:)

p.s.- btw... the very first bug on the bug list is regarding this hehehe


On 25/03/2011 21:04, Rob Sargent wrote:
I don't see a mention of java version in play, but if it's java1.6 I 
would urge the op to try his hand at using jconsole to examine exactly 
what is holding the lion's share of the memory or too see if too many 
of something are hanging around unnecessarily.


rjs


On 03/25/2011 02:54 PM, Luis Ferro wrote:
The major problem i've see in java is the heap memory... It gets 
exausted on very big jobs.


The only alternatives are:

1. cut the job in smaller chunks...
2. move all the environment to 64bits...

The 64bit platform will allow you to allocate more ram to the process 
and surpass the 1.2gb (or something nearby) of the 32 bit platform 
per process.


Cheers,
LF


On 25/03/2011 16:13, Eric Douglas wrote:

How to feed the FO file?
Using the command line transform you just pass it to the -fo parameter.

Using embedded code I feed it as a SAXSource.
Reading in from file you have:
java.io.File
java.io.FileInputStream
org.xml.sax.InputSource
javax.xml.transform.sax.SAXSource

Creates the input.
Pass that in to:
javax.xml.transform.TransformerFactory
javax.xml.transform.Transformer
I'm not sure it's required but I copied this code from the FOP website:
Transformer.setParameter(versionParam, 2.0)

Then your transform, with the FOP output generated with these classes.
org.apache.fop.apps.FopFactory
org.apache.fop.apps.Fop
javax.xml.transform.sax.SAXResult

The SAXResult is created from the Fop.getDefaultHandler.
The Transformer can be created with an XSL file parameter to pass XML
into the transform, or with no XSL to pass the FO in.


-Original Message-
From: Dennis van Zoerlandt [mailto:dvzoerla...@vanboxtel.nl]
Sent: Friday, March 25, 2011 10:30 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: AW: AW: AW: OutOfMemoryException while transforming large
XML to PDF


Hi Georg,

I'm currently running the XML and XSLT through XMLspy with FOP 0.95 (it
seems Altova doesn't support FOP 1.0).

I'm not really sure how to feed the FO file to FOP? Can I just put the
FO file as source file for the transformer.transform()?

I'll get back to you when I have a FO file. My pc's currently 
performing

very badly, so it seems it's a heavy job.

Best regards,
Dennis van Zoerlandt


-
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



-
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: got the exception when generating PDF from FO file

2009-01-09 Thread Luis Ferro
A long time ago... i had problems with the fonts also, and my solution was
to explicitly state the FULL path for all the files and references.

And guess what... it worked...

;)




On Fri, Jan 9, 2009 at 11:24 AM, Vincent Hennebert vhenneb...@gmail.comwrote:

 Hi Matt,

 Matt Dong wrote:

 Hi,

 Actually, we sent the following issue last week, but we are still waiting
 the feedback. Is there any update for it?  Thanks in advance.


 We got the convertFo2Pdf failed exception when using FO file to generate
 the PDF file.
 The problem is that we try to use ARIALUNI.TTF font and set it In the
 fop.xconf file. When generating the PDF file, we get the exception. But if
 there is no font setting in the fop.xconf, no exception happen.


 Did you set the font-base element to the right value? See here:
 http://xmlgraphics.apache.org/fop/0.95/configuration.html#general-elements

 If that doesn't work we are going to need more informations:
 - in which directory is the font?
 - in which directory is the config file?
 - in which directory are you when you run the FOP command?


 Note that with FOP 0.95 you usually don't need to generate XML metrics
 any more. So you can remove the metrics-url attribute below.


  The following is the setting in the fop.xconf config file,


 font metrics-url=arialuni.xml kerning=yes embed-url=ARIALUNI.TTF

font-triplet name=ArialUnicodeMS style=normal
 weight=normal/
font-triplet name=ArialUnicodeMS style=normal
 weight=bold/
font-triplet name=ArialUnicodeMS style=italic
 weight=normal/

/font

 We have the ARIALUNI.TTF and arialuni.xml and save them in the correct
 directory.

 The exception only happens on fop.jar (0.95), but change back to
 fop.jar(0.93) works fine. We also tried the latest fop.jar 0.95 which
 generated from FOP trunk, but still got the exception.




 Message: convertFo2Pdf failed. org.apache.fop.apps.FOPException: Failed to
 resolve font with embed-url 'ARIALUNI.TTF'
 UserMessage: convertFo2Pdf failed org.apache.fop.apps.FOPException: Failed
 to resolve font with embed-url 'ARIALUNI.TTF'
  38 org.apache.fop.util.LogUtil handleError LogUtil.java  275
 org.apache.fop.render.PrintRendererConfigurator getFontInfoFromConfiguration
 PrintRendererConfigurator.java  207
 org.apache.fop.render.PrintRendererConfigurator
 buildFontListFromConfiguration PrintRendererConfigurator.java  95
 org.apache.fop.render.PrintRendererConfigurator configure
 PrintRendererConfigurator.java  71
 org.apache.fop.render.pdf.PDFRendererConfigurator configure
 PDFRendererConfigurator.java  187 org.apache.fop.render.RendererFactory
 createRenderer RendererFactory.java  68 org.apache.fop.area.RenderPagesModel
 init RenderPagesModel.java  127 org.apache.fop.area.AreaTreeHandler
 setupModel AreaTreeHandler.java  102 org.apache.fop.area.AreaTreeHandler
 init AreaTreeHandler.java  224 org.apache.fop.render.RendererFactory
 createFOEventHandler RendererFactory.java  100
 org.apache.fop.fo.FOTreeBuilder init FOTreeBuilder.java  100
 org.apache.fop.apps.Fop createDefaultHandler Fop.java  78
 org.apache.fop.apps.Fop init Fop.java  247 org.apache.fop.apps.FopFactory
 newFop FopFactory.java



 Thanks,

 Matt Dong



 HTH,
 Vincent

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




Re: AW: FO writing

2008-11-27 Thread Luis Ferro
Notepad++

;)

On Thu, Nov 27, 2008 at 1:45 PM, Erwan de FERRIERES 
[EMAIL PROTECTED] wrote:

 It's the same for me. And moreover, i'm on debian... and don't think use it
 this way

 paul womack a écrit :

  Georg Datterl wrote:

 Hi Erwan,

  Since several months, i'm creating FOP documents, always with gedit or
 some text editor. The only feature they give me is a syntax coloration.
 So what are you using : which program or plugin ?


 XmlSpy works fine, but basically any program which displays XML nicely
 can also display Fo-files nicely.



 Don't like the price of XMLSpy, and I won't steal.

 Any other suggestions?

  BugBear

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



 --
 - Erwan -


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




Re: AW: FO writing

2008-11-27 Thread Luis Ferro
http://librenix.com/?inode=6410

http://sourceforge.net/projects/xmleditor/

http://www.netbeans.org/

http://www.eclipse.org/

;)

On Thu, Nov 27, 2008 at 2:38 PM, Erwan de FERRIERES 
[EMAIL PROTECTED] wrote:

 Thanks, but once again, not under linux !

 Luis Ferro a écrit :

 Notepad++

 ;)

 On Thu, Nov 27, 2008 at 1:45 PM, Erwan de FERRIERES 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:

It's the same for me. And moreover, i'm on debian... and don't think
use it this way

paul womack a écrit :

Georg Datterl wrote:

Hi Erwan,

Since several months, i'm creating FOP documents, always
with gedit or some text editor. The only feature they
give me is a syntax coloration.
So what are you using : which program or plugin ?


XmlSpy works fine, but basically any program which displays
XML nicely can also display Fo-files nicely.



Don't like the price of XMLSpy, and I won't steal.

Any other suggestions?

 BugBear


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



--- Erwan -


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



 --
 - Erwan -

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




Re: FOP to PDF using PHP

2008-11-25 Thread Luis Ferro
There was a sample somewhere (can't find it at the moment) with an example
on how to create a pdf with fop in java.

Using the bridge you will be able to transpose the sample to php and
retain the ability to debug everything in php. That was what i did.

Doing a line by line transposing you will start to get some factory
creation errors, but you will get over it with the correct object creation
and initialization.

Also, remember to create ALL the objects, don't do any instant creation
line:

$xpto = $java-factory_bla( $java-newObject() );

Because the reference to the $java-newObject() will stay to nail you
down...

Do:

$new = $java-newObject();
$xpto = $java-factory_bla( $new );

Not sure if this is of help... but alas...

;)


Re: Memory issues

2008-10-16 Thread Luis Ferro
Interesting...

And does those sequences share page-citations between them from and to?
(like a global index)

Thanx for the tip... My workaround the memory limitations was to split the
work in several individual documents, completely separated from each others,
and managing a starting page reference to keep things continuous.

It also worked... but at the cost of an harder build process. You solution
would improve the build ten-fold!

;)



On Thu, Oct 16, 2008 at 2:24 PM, Richard Forrester [EMAIL PROTECTED] wrote:

 Jean-François,

 Thanks.. I'll give that a shot!!!


 Thank You!

 Richard C. Forrester IV
 IBM Global Sales Manual
 Technical Lead/Analyst/Developer
 Email : [EMAIL PROTECTED]
 Phone : (303) 596-5572 or (303) 924-6066
 T/L : 8-263-6066
 Fax: (303) 924-7616
 Fax T/L : 8-263-7616

 [image: Inactive hide details for Jean-François El Fouly ---10/16/2008
 06:24:04 AM---Richard Forrester a écrit :]
 Jean-François El Fouly ---10/16/2008 06:24:04 AM---Richard Forrester a
 écrit :


 From:

 Jean-François El Fouly [EMAIL PROTECTED]
 To:

 fop-users@xmlgraphics.apache.org
 Date:
 10/16/2008 06:24 AM
 Subject:
 Re: Memory issues
 --



 Richard Forrester a écrit :
 
  Hello,
 
  I have FOP 0.94 and I am running into some issues with Memory. I have
  a rather large XML file.. 2.5 MB. when I try to create a PDF from this
  file my memory usage spikes up to 700 MB when it starts converting.
  However it seems to stay there between 600 and 700 MB almost like it's
  frozen. I've waited 5 to10 minutes to see if it would finish, but
  never seems to. Is there something I can do to fix this memory usage
  issue and make it more manageable?
 
  Thank You!
 
 Not willing to play Mine is bigger than yours ;-)
 but the document I'm working on is 3.5 Mb source, 7.5 Mb FO and has 1200
 rather large PNG screenshots inside. The whole thing fits easily with a
 full AS and a rather large management web app in 1 Gb. And all the
 memory we need is released at the end.
 So my best guess is: you should try to make your document more
 manageable for FOP by breaking it in severa fo:page-sequence (chapters,
 sections, whatever makes sense in your business). Between
 page-sequences, many resources are released.
 Anyhow, it helped us make it (we had such problems in the beginning).

 Jean-François El Fouly


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




ecblank.gifgraycol.gif

Re: Java heap overflow error - unknown reason

2008-08-13 Thread Luis Ferro
Nevertheless, if you can post the fo with gibberish it would be useful for
profiling purposes... (if sensitive, send it directly to the dev team and
not to the list).

There is always a lack of real world examples! And real world is always
giving us surprises.

;)


On Wed, Aug 13, 2008 at 1:40 PM, DavidJKelly [EMAIL PROTECTED] wrote:


 Hmm - I see now that although the environment variable I mentioned earlier
 had been set, that variable was not placed on the fop command line.  I have
 corrected the problem and it now runs fine.  My apologies for the
 misdirection, and thank you for the hint.

 Regards,
 David Kelly



 Are you actually giving FOP a little memory to play with? I mean a
 little more than the 64MB allocated by default? FOP is still a bit
 memory-intensive, but 100 pages (per page-sequence) should easily be
 handled with less than 512MB. If you can, post a link to an FO file.
 That would allow us to do some profiling to see why this happens (if my
 very obvious tip above doesn't apply).


 --
 View this message in context:
 http://www.nabble.com/Java-heap-overflow-error---unknown-reason-tp18929472p18962257.html
 Sent from the FOP - Users mailing list archive at Nabble.com.


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




Re: How to prevent the copying of PDF text

2008-07-30 Thread Luis Ferro
Not to bug about it but is it really worthy to make simple things harder?

If someone is able to see it in the screen, it can always copy/past it, even
if the pdf is rights-damaged.

All that is needed is a photo/image and an OCR... which are pretty common
techniques to remake content where you lost the originals. Not to mention
for other not so lawful objectives...

This makes me remember those publishers that refuse to supply a PDF of their
books because of the piracy fear... And soon after, you can get them in
pristine quality form the next torrent source.

If the PDF was available, prolly people could opt to buy it.

;)



On Wed, Jul 30, 2008 at 12:25 PM, Jeremias Maerki [EMAIL PROTECTED]wrote:

 Please see here:
 http://xmlgraphics.apache.org/fop/0.95/pdfencryption.html

 On 30.07.2008 13:14:16 Lea Thurman wrote:
 
  Hi all,
 
  I am running fop 0.95 beta and would like to know whether or not its
  possible to specify the PDF property which would prevent a user copying
 the
  text from the generated PDF.
 
  I am assuming I can specify a FOP property but I have searched in vain.
 
  Any help would be much appreciated.
 
  Regards.
  --
  View this message in context:
 http://www.nabble.com/How-to-prevent-the-copying-of-PDF-text-tp18730984p18730984.html
  Sent from the FOP - Users mailing list archive at Nabble.com.


 Jeremias Maerki


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




Re: FOP with CMYK colors

2008-06-19 Thread Luis Ferro
I used FOP 0.94 and at the time, it couldn't use CMYK.

A few updates later, some patchs introduced CMYK into FOP (but haven't
tested it yet).

I resorted to color tricks (selecting special RGB colors that when
converted to CMYK, would produce the special values i needed into the color
channels).

I found a tool to make the convertion (
http://store.apago.us/pdfenhancer.html) that worked very well, if i didn't
forget to turn off all optimizations.

cheers,
Kindaian

On Thu, Jun 19, 2008 at 1:51 PM, Robert Eberhardt [EMAIL PROTECTED]
wrote:

  Hello,



 Is it possible to use a cmyk color value for example a background color.





Kind regards
 Robert Eberhardt







Re: [SPAM] Printing specified pages with Appache FOP

2007-02-21 Thread Luis Ferro


Ram-21 wrote:
 
 
 FOP.bat  -xml Data.xml -xsl FO_Template.xsl -print 
 
 FOP.bat  -xml Data.xml -xsl FO_Template.xsl -print -Dstart=2 -Dend=4 
 
 

The print command seams to only accept a .fo as argument (from the fop.bat
help):

  Fop foo.fo -print or 
  Fop -print foo.fo
  
USAGE: -print [-Dstart=i] [-Dend=i] [-Dcopies=i] [-Deven=true|false] 
org.apache.fop.apps.Fop (..) -print
Example:
java -Dstart=1 -Dend=2 org.apache.Fop.apps.Fop infile.fo -print

So, if you produce first the fo file, and call it infile.fo, you can then
print with the following command:

FOP -Dstart=2 -Dend=4 infile.fo -print

(i'm following the fop usage hints mind, not tested it myself)

Cheers,
Luis Ferro


-- 
View this message in context: 
http://www.nabble.com/Printing-specified-pages-with-Appache-FOP-tf3256052.html#a9079091
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: display-align=justify

2007-02-05 Thread Luis Ferro

I will try both solutions...

I've to give you all Hats off... you devs are the best i've seen everywhere
;)

And indeed... i was fortunate to have found FOP... it's a charm to work with
it, specially because it's user base and dev base are extremelly helpfull as
i've seen in the past and i see everyday with other problems.

Keep the good work,
LF

-- 
View this message in context: 
http://www.nabble.com/display-align%3D%22justify%22-tf3162421.html#a8807939
Sent from the FOP - Users mailing list archive at Nabble.com.


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



display-align=justify

2007-02-02 Thread Luis Ferro

When doing the pagination of a large block of text, with columns, the text is
if the keepers/orfan/widows are defined acordingly, passed to the next
column leaving some space behind in the previous page.

The visual effect of the full pages isn't great, specially if you have for
instance 3 columns per page. What happens is that the text seams to ondulate
in the bottom (diferent kinds of white space in the 6 columns that will be
in side by side).

To solve this, the only thing that i see that is fast and easy would be
to exist a justify property value for the display-align. But unfortunatly
i dind't found it.

The hard way would be to setup a container with diferent orientation (if
that is possible) so that a simple text-align=justify would just justify
other blocks vertically, will they contain text in other orientation (i'm
not sure if i'm clear here).

Any sugestions on how to archieve vertical justification of columns?

Thanx in advance,
Luis Ferro
Teladigital.pt
-- 
View this message in context: 
http://www.nabble.com/display-align%3D%22justify%22-tf3162421.html#a8772141
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Fop from PHP/Java...

2006-10-09 Thread Luis Ferro

I managed to make a piece of source that seams to work... but something is
amiss because tomcat is freeing the thread too soon and the file is still in
processing:

java_require(C:\\Program 
Files\\fop-0.92beta\\build\\fop.jar;C:\\Program
Files\\fop-0.92beta\\lib\\xml-apis-1.3.02.jar; . 
 C:\\Program
Files\\fop-0.92beta\\lib\\xercesImpl-2.7.1.jar;C:\\Program
Files\\fop-0.92beta\\lib\\xalan-2.7.0.jar; .
 C:\\Program
Files\\fop-0.92beta\\lib\\serializer-2.7.0.jar;C:\\Program
Files\\fop-0.92beta\\lib\\batik-all-1.6.jar; .
 C:\\Program
Files\\fop-0.92beta\\lib\\xmlgraphics-commons-1.1-snapshot.jar;C:\\Program
Files\\fop-0.92beta\\lib\\avalon-framework-4.2.0.jar; .
 C:\\Program 
Files\\fop-0.92beta\\lib\\commons-io-1.1.jar;C:\\Program
Files\\fop-0.92beta\\lib\\commons-logging-1.0.4.jar; .
 C:\\Program 
Files\\fop-0.92beta\\lib\\servlet-2.2.jar);

$pdffile = new Java(java.io.FileOutputStream, $output . \\ .
$destfile);
$mimes = new Java(org.apache.fop.apps.MimeConstants);
$fopfactory = new Java(org.apache.fop.apps.FopFactory);

$fopf = $fopfactory-newInstance();
$fopf-setUserConfig( new Java(java.io.File,
D:/sites/mapaterapeutico/config/fop.xconf) ); 
$fopf-setFontBaseURL(file:///D:/sites/mapaterapeutico/fonts);
$userf = $fopf-newFOUserAgent();

$fop = $fopf-newFop( $mimes-MIME_PDF, $userf, $pdffile );


$transformerclass = new 
Java(javax.xml.transform.TransformerFactory);
$transformerfactory = $transformerclass-newInstance();
$transformerf = $transformerfactory-newTransformer();

$src = new Java(javax.xml.transform.stream.StreamSource, new
Java(java.io.File, $input . \\ . $sourcefile ));

$res = new Java(javax.xml.transform.sax.SAXResult,
$fop-getDefaultHandler());

$transformerf-transform($src, $res);

This starts to build the PDF on the directory, but somewhere in the way,
Tomcat releases the task and quits working... (and the file only has a few
kb, when it should have 2mb more or less).

The log from tomcat doesn't give a clue... it process everything but... it
crashes in the transform method:

2006-10-09 18:17:36 StandardContext[/JavaBridge] JavaBridge DEBUG: @4bfe6b 
-- O v=13 i=14989272/
2006-10-09 18:17:36 StandardContext[/JavaBridge] JavaBridge DEBUG: @4bfe6b
-- C v=javax.xml.transform.sax.SAXResult p=I i=16325664 /
2006-10-09 18:17:36 StandardContext[/JavaBridge] JavaBridge DEBUG: @4bfe6b
-- O v=13 /
2006-10-09 18:17:36 StandardContext[/JavaBridge] JavaBridge DEBUG: @4bfe6b
-- /C
2006-10-09 18:17:36 StandardContext[/JavaBridge] JavaBridge DEBUG: @4bfe6b 
-- O v=14 i=16325664/
2006-10-09 18:17:36 StandardContext[/JavaBridge] JavaBridge DEBUG: @4bfe6b
-- U v=13 /
2006-10-09 18:17:36 StandardContext[/JavaBridge] JavaBridge DEBUG: @4bfe6b
-- 
2006-10-09 18:17:36 StandardContext[/JavaBridge] JavaBridge DEBUG: @4bfe6b
-- O v=12 /
2006-10-09 18:17:36 StandardContext[/JavaBridge] JavaBridge DEBUG: @4bfe6b
-- O v=14 /
2006-10-09 18:17:36 StandardContext[/JavaBridge] JavaBridge DEBUG: @4bfe6b
-- 
2006-10-09 18:18:17 StandardContext[/JavaBridge] JavaBridge DEBUG: @4bfe6b
context finished: 1
2006-10-09 18:18:17 StandardContext[/JavaBridge]JavaBridge Exception: 
java.lang.NullPointerException
at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1142)
at php.java.bridge.Request.handleRequest(Request.java:204)
at php.java.bridge.Request.handleRequests(Request.java:221)
at php.java.servlet.ContextRunner.run(ContextRunner.java:71)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20)

The file with a custom fop.bat (custom to use a config file and add some
more memory to the process) runs ok... Unfortunatly, when i try to run the
bat file from php, the process hang right on the start (loads java and
exits).

Any help would be appresciated...

Thanx
Luis Ferro




-- 
View this message in context: 
http://www.nabble.com/Fop-from-PHP-Java...-tf2411567.html#a6722053
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Fop from PHP/Java...

2006-10-09 Thread Luis Ferro

Ok...

This was a very simple problem... Tomcat runned out of memory... after
adding more memory in the pools... it runned to completion.

Thanx for beign aware ;)

LF
-- 
View this message in context: 
http://www.nabble.com/Fop-from-PHP-Java...-tf2411567.html#a6722546
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Font names...

2006-09-20 Thread Luis Ferro


Vincent Hennebert-3 wrote:
 
 Luis, would you mind summarizing your problems in a Bugzilla entry? So
 that we can more easily track them, and ensure they will actually be
 corrected in the new font library. Thanks!
 

Will do...

I think it's about time i create a bugzilla login in FOP as it seams that i
will be working more and more with it ;)

And gratz on all the feedback from you all...

Cheers,
LF

-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6404011
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Font names...

2006-09-18 Thread Luis Ferro



Luis Ferro wrote:
 
 The test is simple...
 

Not that simple i'm afraid... i think i'm in a goose chase here regarding
font names... The font that is in use by FOP (thru the config options)
either gets a diferent name in windows or isn't recognized by it (even thru
it's a ttf font, albeit can be in a format that windows can't use).

So, naturally all tries to edit the document in Acrobat are doomed to fail.

Cheers,
LF

-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6360276
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Font names...

2006-09-18 Thread Luis Ferro

One of the things that appeared from the properties of the document is the
actual font values.

The config i used is:
font metrics-url=D:\sites\mapaterapeutico\fonts\SWZ721l.xml
kerning=yes 
embed-url=D:\sites\mapaterapeutico\fonts\SWZ721l.TTF
  font-triplet name=Texto style=normal weight=normal/
/font

And i created the font metrics with the following class call (a short fused
version based on the fop.bat):

org.apache.fop.fonts.apps.TTFReader -enc ansi %FOP_CMD_LINE_ARGS%

With those parameters, i assume that the full font is embedded... as it is
looselly refered in the import font documentation of fop...

The actual font parameters aren't setup in the PDF. Mayhappen with the
addition of those actual font file, pointing the url file, the PDF could
be editable...

Just a tought...

Cheers,
LF





Jeremias Maerki-2 wrote:
 
 I assume the problem comes from FOP's embedding only a subset of the
 TrueType font in the PDF. In that case we cannot use the original font
 name because we don't embed the full font. If you have to be able to
 edit the PDF you'd need to embed the full font in which case we could
 use the original name. FOP currently doesn't support that, though.
 
 On 17.09.2006 22:51:41 Luis Ferro wrote:
 
 The test is simple...
 
 Prepare a font (tested with TTF fonts) for importing, one that has some
 attributes like light.
 
 Make a document which uses that font and produce a PDF.
 
 Edit the PDF with acrobat pro.
 
 What will happen is that the name the font has isn't the same name as the
 embed font.
 
 The render will work ok, but the edit will mean a warning of font to
 become unembed. That isn't a problem, except that as the font name is
 wrong (the font name listed in the pdf doesn't match the font name in the
 TTF file, what will happen is that acrobat can't find it and allow the
 reembed of it).
 
 If needed will post files that exemplify this effect (i'm not sure if
 this
 is a FOP problem yet - will do more tests next week).
 
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6361198
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Using Adobe Asian Font Pack in FOP without embedding

2006-09-18 Thread Luis Ferro



Jeremias Maerki wrote:
 
 
 I've never come across this error message. It may have something to do
 with a bug in the PDF library in 0.20.5 which is fixed in FOP Trunk.
 
 

This error appears to me with embed fonts (ansi so all glyphs are embed) and
Acrobat Pro 7.

Cheers
LF

-- 
View this message in context: 
http://www.nabble.com/Using-Adobe-Asian-Font-Pack-in-FOP-without-embedding-tf266244.html#a6362129
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Font names...

2006-09-18 Thread Luis Ferro


Jeremias Maerki-2 wrote:
 
 In that case we cannot use the original font
 name because we don't embed the full font.

2 questions then...

a) What happens if with a partial embed font it's used the same name as the
original font name?

b) What happens if with a full embed font (with use of -ansi when building
the metrics) it's used the same name as the original font name?

The questions have some significance, because the PDF file that resulted
from fop was edited with Acrobat pro 6 (which unembeds the font and allows
the edit to continue, showing a warning regarding this) and when it was
tryed to export to ps, acrobat just refused to work because the font's didnt
match (there was a diference between the names like Arial,light in the
PDF, when the true font name is Arial-light).

This little diference had no side-effects on the PDF, but forfeited the use
of the PDF for anything. The PDF restarted to work well after we grabed a
font editor and changed in the internal properties of the font the - for a
,.

Mayhappen the reasons for changing the font names when working with
full/partial embed fonts aren't relevant anymore...

Would like to take the oportunity to suggest that a switch like -fullembed
(or something like that) be used instead of the -ansi, as a
clarification of what the switch do.

Cheers,
LF

P.S.- get rid of the font metrics would just be perfect. Also perfect would
be to note in the config file how one wants the font to be placed on the pdf
(partial embed, full embed or reference only).

-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6365457
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Unicode Fonts!!!!

2006-09-18 Thread Luis Ferro


Paul Loy wrote:
 
 Do I have to translate all the foreign characters into a character 
 reference?
 

Prolly not...

But i had to use ?xml version=1.0 encoding=ISO-8859-1? as the xml
definition in the master page... or it would present everything wrong... (a
bit like it happened to you)...

Cheers,
Luis Ferro


-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6366861
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Font names...

2006-09-17 Thread Luis Ferro

The test is simple...

Prepare a font (tested with TTF fonts) for importing, one that has some
attributes like light.

Make a document which uses that font and produce a PDF.

Edit the PDF with acrobat pro.

What will happen is that the name the font has isn't the same name as the
embed font.

The render will work ok, but the edit will mean a warning of font to
become unembed. That isn't a problem, except that as the font name is
wrong (the font name listed in the pdf doesn't match the font name in the
TTF file, what will happen is that acrobat can't find it and allow the
reembed of it).

If needed will post files that exemplify this effect (i'm not sure if this
is a FOP problem yet - will do more tests next week).

Cheers,
LF
-- 
View this message in context: 
http://www.nabble.com/Font-names...-tf2287650.html#a6354261
Sent from the FOP - Users forum at Nabble.com.


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



RE: Png output and transparent background

2006-09-06 Thread Luis Ferro

I've added in my project images as GIF with transparency.

It all goes well in the PDF, but the transparency in the image of the
final object is only apparent, as it will only render in the PDF. If i get
it to any RIP software to produce offset plates, the transparency goes on
hollidays and the background is in white.

(my guess is that in the process, the transparent color is placed somewhere
where the pdf gets it and interprets it, but the RIP software doesn't look
at it (ie. it is for instance marked on the document but discarded in the
image by itself)

LF
-- 
View this message in context: 
http://www.nabble.com/Png-output-and-transparent-background-tf2219879.html#a6167340
Sent from the FOP - Users forum at Nabble.com.


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



Drop cap first letter...

2006-09-05 Thread Luis Ferro

I would like to know if anyone has gone around this kind of thing (the first
letter of a chapter apearing as a huge size aligned to the top of the
current line with all the text of the rest of the paragraph working around
it)...

Any suggestions on how to do it?

My first idea was to use a list, with a huge character and a very strong
sub percentage attached to it so it would drop down... Is there a better
approach?

Cheers...
LF
-- 
View this message in context: 
http://www.nabble.com/Drop-cap-first-letter...-tf2220007.html#a6149419
Sent from the FOP - Users forum at Nabble.com.


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



RE: Drop cap first letter...

2006-09-05 Thread Luis Ferro

My test case would be this one:

?xml version=1.0 encoding=ISO-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

!-- layout information --
fo:layout-master-set

fo:simple-page-master master-name=capa05
page-height=297mm 
page-width=210mm
margin-top=18mm 
margin-bottom=18mm
margin-left=17mm 
margin-right=17mm
fo:region-body region-name=corpo margin-top=22mm
margin-bottom=20mm margin-left=3mm margin-right=3mm
display-align=center background-color=#F2F2FF/
fo:region-before precedence=true 
region-name=cabecalho extent=22mm
background-color=#F2F2FF display-align=after/
fo:region-after precedence=true region-name=rodape 
extent=20mm
background-color=#F2F2FF/
fo:region-start region-name=esquerda extent=3mm
background-color=#F2F2FF/
fo:region-end region-name=direita extent=3mm
background-color=#F2F2FF/
/fo:simple-page-master

/fo:layout-master-set
!-- end: defines page layout --

fo:page-sequence master-reference=capa05

fo:static-content flow-name=cabecalho
fo:block/fo:block
/fo:static-content

fo:static-content flow-name=rodape
fo:block/fo:block
/fo:static-content

fo:flow flow-name=corpo

fo:block

fo:list-block start-indent=5mm
provisional-distance-between-starts=10mm

fo:list-item
fo:list-item-label 
end-indent=label-end()
fo:block 
font-size=30 baseline-shift=-150%A/fo:block
/fo:list-item-label
fo:list-item-body 
start-indent=body-start()
fo:blockgora isto vai 
fundionarsd sdf dasfas fdas fadf ads f ads f
ds f asdf das fdasfdasf dasfasdf ddasfasdf dasfdasf sdafdasfdas fasdfdas
fdasfdas fdasfdfad fdsafads asdfdasf dasfdasfdasfas dasfasf dasfdasf dasfas
fasdfadsfads dasfadsfdas fdasfdasf asdfasdfa dsfadasf dasfadsf
asd./fo:block
/fo:list-item-body
/fo:list-item

/fo:list-block

/fo:block


fo:block
fo:inline font-size=30A/fo:inlinegora 
isto vai fundionarsd sdf
dasfas fdas fadf ads f ads f ds f asdf das fdasfdasf dasfasdf ddasfasdf
dasfdasf sdafdasfdas fasdfdas fdasfdas fdasfdfad fdsafads asdfdasf
dasfdasfdasfas dasfasf dasfdasf dasfas fasdfadsfads dasfadsfdas fdasfdasf
asdfasdfa dsfadasf dasfadsf asd.
/fo:block


/fo:flow

/fo:page-sequence

/fo:root

For now, if i dont specify in the list-item-body an indent, the content is
overlaped as if the bullet A didn't existed. I'm not sure if this is
the expected behavior from the spec... 

What i was supposing to happen would be that in the lines that where
horizontally overlaped by the bullet, the content would be indented to
the immediate character position. In the next lines, it would be not
indented.

Would the floats that Vincent talked about would do this?

http://www.nabble.com/-Poll--Expectations-regarding-side-floats-tf2091037.html#a5763549

Cheers
LF



Pascal Sancho wrote:
 
 -Original Message-
 From: Thomas Schraitle [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 05, 2006 1:14 PM
 
  I would like to know if anyone has gone around this kind of 
 thing (the 
  first letter of a chapter apearing as a huge size aligned 
 to the top 
  of the current line with all the text of the rest of the paragraph 
  working around it)...
  
  Any suggestions on how to do it?
 
 XEP uses fo:floats for this task, maybe it works for FOP too. See [1].
 
 Hi,
 
 No, FOP doesn't support fo:float yet.
 I don't think there is any efficient workaround;
  good luck
 
 Pascal
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Drop-cap-first-letter...-tf2220007.html#a6154651
Sent from the FOP - Users forum at Nabble.com.



number-page-citation math...

2006-09-01 Thread Luis Ferro

I've an id on a block in the document.

I've a page-number-citation... and it works. Now, i just need to adjust the
page that the reference gives to one page less...

something like fo:page-number-citation id-ref='sum(reference,-1)' /

Or something like that... is there a way to do this?

Thanx in advance,
Luis Ferro
-- 
View this message in context: 
http://www.nabble.com/number-page-citation-math...-tf2202096.html#a6097149
Sent from the FOP - Users forum at Nabble.com.


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



RE: number-page-citation math...

2006-09-01 Thread Luis Ferro

sum() is not a xsl-fo function, but a xpath function.

I was thinking of something in the line of the rgb-icc function but that
would allow some simple math be applied to all items that return values...
be it a page number, a border thickness, a font size or anything like that.

 IMHO, you should have a 2 pass approach to do that.

Possibly the best... but alas... no time for it now... for time is up and
later on i will be delivering whatever i can reference directly...

LF
-- 
View this message in context: 
http://www.nabble.com/number-page-citation-math...-tf2202096.html#a6108384
Sent from the FOP - Users forum at Nabble.com.


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



Re: Font Symbol

2006-08-29 Thread Luis Ferro

For me is perfect, because this way we know what was used in each time a font
isn't found.

Gratz,
Luis Ferro



Andreas L Delmelle wrote:
 
 On Aug 25, 2006, at 01:04, Andreas L Delmelle wrote:
 
 snip /
 Anyway, I'll give other devs a chance to chime in before I start  
 fiddling with it. If no objections arise, I'll probably commit this  
 small change during the weekend.
 
 A little later than promised, but here goes:
 http://svn.apache.org/viewvc?rev=438251view=rev
 
 As Chris suggested, the notifyFontReplacement() method has been  
 altered to show which triplet will be used instead.
 Note: I'm not sure if this suffices. If the default is used, the  
 message will now read
 ... replacing with 'any,normal,400'. Is that enough?
 
 
 Later,
 
 Andreas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Font-Symbol-tf2161582.html#a6048927
Sent from the FOP - Users forum at Nabble.com.


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



Font Symbol

2006-08-24 Thread Luis Ferro

I've found a weird bug...

When i use the font Symbol (which is built it), all works well... except
if i try to use the font-style='italic' with it... it gives an error:

missing font (or something like that): 'Symbol, italic, 400' replacing with
default (or something like that).

Can others replicate the problem? (i sorted it out by forcing all symbols to
be normal but i think this should be sorted out)

Cheers
LF

P.S.- The more i know of FOP, the greater my admiration and respect for all
the hard work put into it... you guys certainly did (and are doing) a great
work!
-- 
View this message in context: 
http://www.nabble.com/Font-Symbol-tf2161582.html#a5973915
Sent from the FOP - Users forum at Nabble.com.


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



Re: Font Symbol

2006-08-24 Thread Luis Ferro

It seams so... some symbols which doesn't exist in normal fonts (weird
unicodes to start with) just disapear from the text and are replaced with a
#... After i switched the italic to normal, the characters reapeared.

(this is in the somewhat new thrunk-svn of the start of August)

This didn't happened in the older version...

Cheers,
LF


Andreas L Delmelle wrote:
 
 On Aug 25, 2006, at 00:11, Luis Ferro wrote:
 
 Hi Luis,
 
 When i use the font Symbol (which is built it), all works well...  
 except
 if i try to use the font-style='italic' with it... it gives an  
 error:

 missing font (or something like that): 'Symbol, italic, 400'  
 replacing with
 default (or something like that).
 
 Seems correct more or less, but now that you mention it: it does  
 switch the whole font, right? While it is actually only the font- 
 style component that makes it impossible to locate the font.
 
 It doesn't seem too difficult to alter FontInfo.java to make it first  
 look for a font with the same name/weight, but with default font-style.
 
 Anyway, I'll give other devs a chance to chime in before I start  
 fiddling with it. If no objections arise, I'll probably commit this  
 small change during the weekend.
 
 
 Cheers,
 
 Andreas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Font-Symbol-tf2161582.html#a5974770
Sent from the FOP - Users forum at Nabble.com.


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



Re: Out of HEAP memory...

2006-08-22 Thread Luis Ferro

Ok...

Configured a win2003 server with jdk5se with the -XX:+AggressiveHeap
-XX:+UseLargePages and the problem was that the system keeps with the same
error. More, it addresses only 1.1Gb ram TOTAL when in WXP it would address
a bit more.

So the good news is that it manages to run the JVM with more memory... but
doesn't use it and gives out of heap memory nevertheless.

Only now it takes a huge time before it crashs...

(will try when i've time with the JDK5EE version...
Cheers,
LF



Luis Ferro wrote:
 
 Interisting reading ;) thanx for the pointers...
 
 So far, i can setup java to handle 1.4gb ram for heap... (using the -Xms
 and -Xmx parameters)... more gives an error when creating the JVM...
 
 Will try the -XX:+AggressiveHeap -XX:+UseLargePages tomorow... or so...
 
 Anyway, i can assure everyone that i won't let this matter go by until it
 works on a normal machine... ;) Only now i don't have exactly the time to
 perform too much tests... (deliverables have priority for now).
 
 ;)
 
 LF
 
 
 
 Jeremias Maerki-2 wrote:
 
 Yeah, you can either buy hardware, get a different JVM or use different
 settings (see below), or you try to figure out a way to split those
 large page-sequences you have. I'd go for the latter. The ultimate
 option would be to help us make FOP better to actually be able to
 process such big page-sequences. But that's obviously a middle- to
 long-term solution which may not be what you need. :-)
 
 This might help you, too, if you have enough RAM.
 http://java.sun.com/docs/hotspot/ism.html
 http://java.sun.com/docs/hotspot/VMOptions.html
 (Seems to suggest that the normal Sun JVM supports more than just 2GB of
 heap.)
 
 On 16.08.2006 14:42:36 Luis Ferro wrote:
 
 I've read somewhere in another Java thread that the max memory one can
 address as heap is 1.8GB in a 32bit processor...
 
 That means that the max parameter for -Xms and the like is about 1.4GB
 or
 1.5GB...
 
 So, if anyone still gets the message after changing the memory available
 in
 java to run fop then the only solution is to either get a JVM that
 doesn't
 have this limitation (i'm not sure that there is one, but this limit
 sure is
 crappy) or get a machine with 64bit processor!
 
 LF
 
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Out-of-HEAP-memory...-tf2115067.html#a5928763
Sent from the FOP - Users forum at Nabble.com.


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



text width

2006-08-22 Thread Luis Ferro

I've a table with two cells... a code and a description.

I want that the first cell has a fixed size, and the second to have the size
of the text within.

Is there some way to get the width of a text so one can supply it to the
fo:table-column definition?

Thanx in advance...
-- 
View this message in context: 
http://www.nabble.com/text-width-tf2148320.html#a5932314
Sent from the FOP - Users forum at Nabble.com.


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



Out of HEAP memory...

2006-08-16 Thread Luis Ferro

I've read somewhere in another Java thread that the max memory one can
address as heap is 1.8GB in a 32bit processor...

That means that the max parameter for -Xms and the like is about 1.4GB or
1.5GB...

So, if anyone still gets the message after changing the memory available in
java to run fop then the only solution is to either get a JVM that doesn't
have this limitation (i'm not sure that there is one, but this limit sure is
crappy) or get a machine with 64bit processor!

LF
-- 
View this message in context: 
http://www.nabble.com/Out-of-HEAP-memory...-tf2115067.html#a5831644
Sent from the FOP - Users forum at Nabble.com.


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



Re: region-before with columns

2006-08-13 Thread Luis Ferro

The image is at:

http://www.nabble.com/user-files/270/page_2_columns.JPG

LF

-- 
View this message in context: 
http://www.nabble.com/region-before-with-columns-tf2089684.html#a5782531
Sent from the FOP - Users forum at Nabble.com.


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



Re: region-before with columns

2006-08-13 Thread Luis Ferro

The image is at:

http://www.nabble.com/user-files/270/page_2_columns.JPG

LF

-- 
View this message in context: 
http://www.nabble.com/region-before-with-columns-tf2089684.html#a5782539
Sent from the FOP - Users forum at Nabble.com.


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



region-before with columns

2006-08-11 Thread Luis Ferro

I've a template which it's giving me headaches as i can't seam to find a way
to implement it with fop...

I've a region-before in a page with 2 columns defined. My only problem is
that i need that the region-before to ocupy only the area of the 1st column
and allow text to flow into it's position to the second column... as it
shows in the image below...

http://www.nabble.com/user-files/270/page_2_columns.JPG page_2_columns.JPG 

All help much appresciated...
LF
-- 
View this message in context: 
http://www.nabble.com/region-before-with-columns-tf2089684.html#a5759509
Sent from the FOP - Users forum at Nabble.com.


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



Re: simple-page-maseter

2006-08-10 Thread Luis Ferro

You can add a:

border = thin black solid

In your regions like:

fo:region-before
border = thin black solid
region-name=xsl-region-before
extent=0.5in /

;)

P.S- And thanx for your post... i'd to read the book and found something
that was missing... which solved my problem ;)
-- 
View this message in context: 
http://www.nabble.com/Display-align-in-region-before-static-content-tf2082693.html#a5739193
Sent from the FOP - Users forum at Nabble.com.


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



Re: Page definitions (thrunk-svn 20060808)

2006-08-10 Thread Luis Ferro

Ok... just found out that this behavior is controled by a attribute in the
before/after regions called precedence... ;)

Now my page definition works like a charm... and i manage to build bleed
areas on the headers and footers... (that's why the 3mm margins are for) and
paint all the printing area with a color (hmmm... the PDF is exported to
cmyk and that color maps to the cyan channel which will be converted at the
printing process to a pantone color... or something like that... what it
matters is that i can assign it to 10% of that pantone this way)...

Cheers...
LF

P.S.- the other issues still stand thru... (either need more enligntment
like this one... or are features as some would say hehehe)

?xml version=1.0 encoding=ISO-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

!-- layout information --
fo:layout-master-set

fo:simple-page-master master-name=base05
page-height=297mm 
page-width=210mm
margin-top=18mm 
margin-bottom=18mm
margin-left=17mm 
margin-right=17mm
fo:region-body region-name=corpo margin-top=22mm
margin-bottom=20mm margin-left=3mm margin-right=3mm
background-color=#F2F2FF/
fo:region-before precedence=true 
region-name=cabecalho extent=22mm
background-color=#F2F2FF/
fo:region-after precedence=true region-name=rodape 
extent=20mm
background-color=#F2F2FF/
fo:region-start region-name=esquerda extent=3mm
background-color=#F2F2FF/
fo:region-end region-name=direita extent=3mm
background-color=#F2F2FF/
/fo:simple-page-master

/fo:layout-master-set
!-- end: defines page layout --

fo:page-sequence master-reference=base05
fo:static-content flow-name=cabecalho

fo:block
1
/fo:block

/fo:static-content
fo:static-content flow-name=rodape

fo:block
2
/fo:block

/fo:static-content

fo:static-content flow-name=esquerda

fo:block
3
/fo:block

/fo:static-content
fo:static-content flow-name=direita

fo:block
4
/fo:block

/fo:static-content



fo:flow flow-name=corpo

fo:block
5
/fo:block



/fo:flow

/fo:page-sequence


/fo:root


-- 
View this message in context: 
http://www.nabble.com/Page-definitions-%28thrunk-svn-20060808%29-tf2082653.html#a5739239
Sent from the FOP - Users forum at Nabble.com.


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



Color bug?

2006-08-10 Thread Luis Ferro

Fop if i recall correctly doesn't support yet full output in CMYK... so, and
as the work i'm doing only requires black and another color... it's fairly
easy to use colors that map into those channels with the right percentages.

To check what i wanted i built a small .fo file with one color (blue) as
fixed and the other two variant from 0 to 255...

The result is in the attachment and was rendered by fop 0.20.5 and the
thrunk of 20060808...

There is a bug in 0.20.5 in the higher numbered colors and the map doesn't
match exactly from both versions...

LF http://www.nabble.com/user-files/251/color_bug.zip color_bug.zip 
-- 
View this message in context: 
http://www.nabble.com/Color-bug--tf2083079.html#a5739408
Sent from the FOP - Users forum at Nabble.com.


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



Re: Display-align in region-before static content

2006-08-10 Thread Luis Ferro

Thanx ;) that hitted the spot!

:)
-- 
View this message in context: 
http://www.nabble.com/Display-align-in-region-before-static-content-tf2082693.html#a5739906
Sent from the FOP - Users forum at Nabble.com.


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



Re: background-color not painted...

2006-08-10 Thread Luis Ferro

Ok...

Anyway... i found out a way of handling the page requirements thru the
precedence=true in the regions... which means that one can specify the
full defined page... and thrus adding a bleeding space between the content
and the tinting margin...

Thanx for the enlightment...
LF
-- 
View this message in context: 
http://www.nabble.com/background-color-not-painted...-tf2082850.html#a5740655
Sent from the FOP - Users forum at Nabble.com.


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



Re: Indentation not propagated...

2006-08-10 Thread Luis Ferro

The operational solution was the precedence...

My objective was just to paint the whole usefull surface with one color. I
do it now with the regions and the precedence that you specified...
(posted the whole example in another thread nearby)...

Thanx for the help...
LF
-- 
View this message in context: 
http://www.nabble.com/Indentation-not-propagated...-tf2082874.html#a5740675
Sent from the FOP - Users forum at Nabble.com.


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



Re: Color bug?

2006-08-10 Thread Luis Ferro

http://www.nabble.com/user-files/251/color_bug.zip color_bug.zip 

Here it is...
;)

-- 
View this message in context: 
http://www.nabble.com/Color-bug--tf2083079.html#a5740693
Sent from the FOP - Users forum at Nabble.com.


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



Re: Does FOP not care about section.autolabel.max.depth?

2006-08-10 Thread Luis Ferro

Can you attach the .fo file pls?

(it is cutted in half right now)
-- 
View this message in context: 
http://www.nabble.com/Does-FOP-not-care-about-section.autolabel.max.depth--tf2085824.html#a5752511
Sent from the FOP - Users forum at Nabble.com.


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



Re: out of memory error

2006-08-09 Thread Luis Ferro

I'm using the latest fop version from svn as of yesterday...

In the attachment i send the files i use to create a PDF with the index and
one chapter of the book. The index references are all turned off but it
still gets out of heap...

When trying to assemble the PDF in command line (environment in the
attachment also)... it always gives the same error of lack of heap memory...

I've tryed with -XX Aggressive (spelling) as someone suggested and with
several options to increase the heap... but after processing the full .fo
file (when it stops to echo errors and i suppose it starts crunshing)...

(btw the problem also happens to fop 0.20.5)

The machine has 2gb of ram and is a pentium 4 HT...

I'm completly lost on how to make this work... :(

Thanx in advance,
Luis Ferro
Portugal
http://www.nabble.com/user-files/232/memory_problem_thrunk_svn_20060807.zip
memory_problem_thrunk_svn_20060807.zip 
-- 
View this message in context: 
http://www.nabble.com/out-of-memory-error-tf2044079.html#a5724811
Sent from the FOP - Users forum at Nabble.com.


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



Re: out of memory error

2006-08-09 Thread Luis Ferro

A report as such shouldn't pose a problem... 

Edit the fop.bat and add the -Xmx1024m argument before the -cp as i
did... it worked like a charm with 0.92b/thrunk...

To build the report try using the fop.bat at a command prompt... (it worked
for me will thru tomcat it was giving problems, but that is another issue)

Cheers...
LF
-- 
View this message in context: 
http://www.nabble.com/out-of-memory-error-tf2044079.html#a5728922
Sent from the FOP - Users forum at Nabble.com.


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



Re: Re: Centering content in Block

2006-08-09 Thread Luis Ferro

and if you want it centered vertically add:

display-align='center' (if i recall correctly)...

LF
-- 
View this message in context: 
http://www.nabble.com/Centering-content-in-Block-tf2078992.html#a5729507
Sent from the FOP - Users forum at Nabble.com.


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



Re: out of memory error

2006-08-09 Thread Luis Ferro

It has LOADS of page sequences... it's a book with 2500 pages where from 3 or
4 pages, the template changes from one column page to 2 column page...

Is there a better way of doing this swap of columns?

Right now... with 477 pages, to render it ocupies 1.1Gb memory... (my
machine has a top of 1.5Gb adressable to java...)...

Will try now to simplefy everything as best as i can...

How can i test if there is memory leaks somewhere (i'm a programmer but i'm
very very green in java)?

Cheers...
LF
-- 
View this message in context: 
http://www.nabble.com/out-of-memory-error-tf2044079.html#a5730306
Sent from the FOP - Users forum at Nabble.com.


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



Re: out of memory error

2006-08-09 Thread Luis Ferro

That sequence should be the chapter A ;)

Chapter C has about the double of A's size...

LF

(i will update the file with a new one with less... warnings/errors as soon
as i can - it started as a 0.20.5 system, and still needs some twiching)
-- 
View this message in context: 
http://www.nabble.com/out-of-memory-error-tf2044079.html#a5738048
Sent from the FOP - Users forum at Nabble.com.


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



Page definitions (thrunk-svn 20060808)

2006-08-09 Thread Luis Ferro

I've the following page master:

fo:simple-page-master master-name=base05
page-height=297mm 
page-width=210mm
margin-top=18mm 
margin-bottom=18mm
margin-left=17mm 
margin-right=17mm
fo:region-body region-name=body margin-top=22mm 
margin-bottom=20mm
margin-left=3mm margin-right=3mm background-color=#F2F2FF/
fo:region-before region-name=top extent=22mm
background-color=#FF/
fo:region-after region-name=bottom extent=20mm
background-color=#FF/
fo:region-start region-name=left extent=3mm 
background-color=#FF00FF/
fo:region-end region-name=right extent=3mm 
background-color=#FF00FF/
/fo:simple-page-master

The region start and end are cutting over the top and bottom ones...

However, i think that they should be trimmed by the height of both the top
and bottom ones (at least is what i understand from the standard after
reading in Dave's book XSL-FO page40)...

In this layout i intend to use a 3mm bleed margin on both sides for elements
on header and footer... and can't use the start/end to limit the body size,
because they overlap the header/footer sections...

LF

PS- I'm not sure if this is a problem or not... (i can use padding also so
not an unsurmounteable problem here)
-- 
View this message in context: 
http://www.nabble.com/Page-definitions-%28thrunk-svn-20060808%29-tf2082653.html#a5738132
Sent from the FOP - Users forum at Nabble.com.


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



Display-align in region-before static content

2006-08-09 Thread Luis Ferro

If you have a region-before and add the display-align=after as in:

fo:static-content flow-name=cabecalho display-align=after

fo:block
1
/fo:block

/fo:static-content

The content keeps aligned (with the top of the content on the top of the
region) to the top instead of to the bottom (with the bottom of the content
on the bottom of the region) as i would expect (if i'm reading correctly)...

;)

LF
-- 
View this message in context: 
http://www.nabble.com/Display-align-in-region-before-static-content-tf2082693.html#a5738253
Sent from the FOP - Users forum at Nabble.com.


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



background-color not painted...

2006-08-09 Thread Luis Ferro

If one uses a background-color=#FF in the fo:simple-page-master i was
expecting it to either giving an error (which it didn't) or that it painted
the whole area inside the page definition with the stated color (which i
think would be the default behavior).

But it just ignored the attribute...

:(




-- 
View this message in context: 
http://www.nabble.com/background-color-not-painted...-tf2082850.html#a5738650
Sent from the FOP - Users forum at Nabble.com.


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



Indentation not propagated...

2006-08-09 Thread Luis Ferro

If one uses start-indent=3mm end-indent=3mm in the fo:region-body, those
attributes are ignored by all the content placed in the section, when i
presume, they should be propagated as default indentation for all child
containers of it...

Ok... to sum up... there is no way of defining a bleed with a tinted
page...

1. placing a background color on the page definition is ignored and not
painted (so no default tinting of the whole page);
2. is not possible to add padding in the body region (so, one can't define a
body that covers the whole page BUT that its content actually only use part
of it);
3. placing indentation for the content of the body is ignored (equivalent of
point 2);
4. the region-start and region-end overlap the region-before and
region-after (and don't accept either the margin-top attribute - they ignore
it).

So... it is impossible to make a conditional definition of pages that need
to have a background color painted... (unless there is any other way of
doing it that i can't think of at the moment...).

LF

-- 
View this message in context: 
http://www.nabble.com/Indentation-not-propagated...-tf2082874.html#a5738716
Sent from the FOP - Users forum at Nabble.com.


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



Layout question - part II

2005-04-07 Thread Luis Ferro
Hi again,
My main page layout is like this:
 !-- layout information --
 fo:layout-master-set
   fo:simple-page-master master-name=odd
 page-height=29.7cm
 page-width=21cm
 margin-top=3.00cm
 margin-bottom=2.90cm
 margin-left=2.1cm
 margin-right=2.1cm
 fo:region-body background-color=white column-count=2 
column-gap=1.00cm margin-top=1.00cm margin-bottom=1.50cm 
margin-left=1.35cm margin-right=0.80cm/
 fo:region-before extent=1.00cm 
region-name=non-blank-before-odd background-color=white /
 fo:region-after extent=1.50cm region-name=non-blank-after-odd 
background-color=white /
   /fo:simple-page-master

   fo:simple-page-master master-name=even
 page-height=29.7cm
 page-width=21cm
 margin-top=3.00cm
 margin-bottom=2.90cm
 margin-left=2.1cm
 margin-right=2.1cm
  !-- Problem starts here --
 fo:region-body background-color=white column-count=2 
column-gap=1.00cm margin-top=1.00cm margin-bottom=1.50cm  
margin-left=0.90cm margin-right=1.35cm/
 fo:region-before extent=1.00cm 
region-name=non-blank-before-even background-color=white /

  !-- Problem ends here --
 fo:region-after extent=1.50cm 
region-name=non-blank-after-even background-color=white /
   /fo:simple-page-master
   fo:page-sequence-master master-name=chapter1a
   fo:repeatable-page-master-alternatives
   fo:conditional-page-master-reference
   master-reference=odd
   odd-or-even=odd /
   fo:conditional-page-master-reference
   master-reference=even
   odd-or-even=even /
   /fo:repeatable-page-master-alternatives
   /fo:page-sequence-master
 /fo:layout-master-set
 !-- end: defines page layout --

This will make a page like this:
+-+
|  1  |
+-+
|  |  |
|  |  |
|  2a  |  2b  |
|  |  |
|  |  |
|  |  |
+-+
|  3  |
+-+
1. is the even-before
2a is column 1, 2b is column 2
3. is the even-after
My goal was to assemble the page like:
+-+
|   1  |  |
+--+  |
|  |  |
|  |  |
|  2a  |  2b  |
|  |  |
|  |  |
|  |  |
+-+
|  3  |
+-+
Using the precedence='false' and a even-before height='0cm' in the 
even-before definition, i managed to make the content flow in the column 
2b as it is shown in my goal, but, the column 2a sticks behind the 
content of the even-before. If i set the height to 1cm, then, the 
column 2b will work ok also, but the even-before content disapears 
behind the content of column 2a.

Thanx again for all the help,
Luis Ferro

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


Layout question

2005-04-06 Thread Luis Ferro
Hi everyone,
I'm a recent adept of FOP and i must say that even in the version 
0.20.5, the results are impressive ;)
Gratz to everyone...

In a layout i'm assembling, i have 2 text columns, so far so good.
My problem is that i need a header for all the even pages that only 
ocupies the left side of the text, but that appears in every odd page.
I'm not sure if that is possible.
I tried to define a width for the before-area, but even if it doesn't 
choke, it doesn't affect in any way the layout.

Any insight would be appresciated ;)
Cheers,
LF
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]