Re: pdf x3

2006-05-19 Thread Jeremias Maerki
PDF/X-3 is not supported by FOP, yet. I have it on my task list, but it
is not definitely determined which substandards I will actually
implement. There are a number of substandards in PDF/X already and it
depends on the exact requirement which substandard needs to be supported. I
assume I'll be implementing PDF/X-3:2003 for my client but without CMYK
conversion/support, only sRGB. If you need more, you're welcome to help.

On 19.05.2006 07:52:17 duschhaube wrote:
 It is possible to create x3 pdf with fop? Or are there any plan to implemente 
 this feature?


Jeremias Maerki


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



Problem with Big Documents

2006-05-19 Thread sumanta . g

Hi,
We are having an online insurance
applications where documents are getting rendered on-the-fly (by applying
xsl-fo over xml). In one of our xsls we had to use recursive template calls
(e.g. printing employee details). But whenever user tries to render (therby
invoking transformation) on large document, the Heap size is reaching to
its maximum - the whole system is slowing down (we are running the system
on websphere in I-Series box). Our doubt is - fop is going in some kind
of wild loop, in case of such big documents, and therby consuming huge
memory, affecting the whole system.

How can we get rid of these - at least
doesnot go into an infinite loop, even if it cannot render the document.

Sumanta Ghosh
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Re: resolution on PS files

2006-05-19 Thread Camilakill

Thank you!!!
Its going to be a much better solution for my app.

I am trying to use it in my code, but the scanner is not being able to read
the barcode.
How do I change the position that I want to print the barcode? 
I believe the begining of the barcode is being cut.
 
my code is as bellow:

OutputStream out = new java.io.FileOutputStream(new File(targetDir,
ps-barcode.ps));
out = new java.io.BufferedOutputStream(out);

PSDocumentGraphics2D g2d = new PSDocumentGraphics2D(false);
g2d.setGraphicContext(new org.apache.xmlgraphics.java2d.GraphicContext());

g2d.setupDocument(out, 615, 315); 

Code39Bean bean = new Code39Bean();

final int dpi = 20;
bean.setModuleWidth(UnitConv.in2mm(1.0f / dpi)); 
bean.setWideFactor(3);
bean.doQuietZone(false);
bean.setHeight(50.0);

Java2DCanvasProvider canvasJava2d = new Java2DCanvasProvider(g2d);

bean.generateBarcode(canvasJava2d, FL999078);


--
View this message in context: 
http://www.nabble.com/resolution+on+PS+files-t1644209.html#a4467914
Sent from the FOP - Users forum at Nabble.com.


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



span=all in last page sequence is dropping second last page from PDF

2006-05-19 Thread Adam Davies
Hi everybody, Need some help or may have found a bug
I have a complex page sequence below. I'm using the current FOP Trunk release BTW. Some background setup info:fo:page-sequence-master master-name="contents" fo:repeatable-page-master-alternativesfo:conditional-page-master-referencemaster-reference="leftPage"odd-or-even="even"page-position="first"/fo:conditional-page-master-reference 
master-reference="rightPage"odd-or-even="odd"page-position="first" /fo:conditional-page-master-referencemaster-reference="leftPage" odd-or-even="even"page-position="rest"/fo:conditional-page-master-reference master-reference="rightPage" odd-or-even="odd"page-position="rest" 
/fo:conditional-page-master-reference master-reference="lastLeftPage"page-position="last"odd-or-even="even"/fo:conditional-page-master-reference master-reference="lastRightPage" page-position="last"odd-or-even="odd"//fo:repeatable-page-master-alternatives/fo:page-sequence-master

with a sample of the page: most a like this onefo:simple-page-master master-name="rightPage"page-height="297mm"page-width="210mm"margin-top="20mm"margin-bottom="59mm"margin-left="25mm"margin-right="59mm"fo:region-bodycolumn-count="2" column-gap="5mm"margin-top="9mm"margin-bottom="10mm" /fo:region-before region-name="rightHeader" extent="10mm" /fo:region-after 
display-align="after" region-name="rightFooter" extent="5mm" //fo:simple-page-master
last page has a bigger footer due to extra info, seefo:simple-page-master master-name="lastRightPage"page-height="297mm"page-width="210mm"margin-top="20mm"margin-bottom="59mm"margin-left="25mm"margin-right="59mm"fo:region-body column-count="2" column-gap="5mm"margin-top="9mm"margin-bottom="95mm"/fo:region-before region-name="rightHeader" extent="10mm" 
/fo:region-after display-align="after" region-name="lastRightFooter" extent="95mm" //fo:simple-page-master

As you can see I'm usingtwo columns. The problem I'm getting is that the content stops flowing to the last page area when a fo:block span="all"XXX/fo:block is to appearlast in the fo:flow. Soemtimesthe last page displays with XXX at the top if its the last block. The main issue is thatthe second last page data is missing altogther. The second last page thatrenders is really the 3rd last. If I remove the span block it work fine.I can render with XSL Formatter V3.4 Trial fine. Also towards the last 4 or so pages the column balance does a poor job. Sometimes the first column is full to the bottom of the page and second is emty. At the bottom of the page is a fo:block span = all for a new title. I'm producing documents in the range of 20-40 pages long.
Is this a known problem? I'll also see if I can put together a sample file as the content is confidential.
Regards
Adam



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



Re: Large table cell crashes fop92

2006-05-19 Thread Arturo Perez
Jeremias Maerki dev at jeremias-maerki.ch writes:

 
 
 
  The marker thing I put in for 
  0.92 but I think I get the same crash under 0.20.5.
 
 Really? 0.20.5's layout engine is working completely differently. I
 can't imagine you get the same error.
 


Not exactly the same but it looks similar enough.

java.lang.ArrayIndexOutOfBoundsException: -2
at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.ja
va:134)
at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:512)
at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:275)
at org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.jav
a:236)
at org.apache.fop.fo.flow.Table.layout(Table.java:302)
at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)

So the cause is an emtpy table cell?  Or is it a cell that wraps and the
wrapping doesn't create anything?


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



RE: use java from server

2006-05-19 Thread Rick Roen
Thanks Daniel,

I know little of java, so forgive the possibly ignorant question:  Is that
just a matter of modifying the JAVA_HOME environment variable in the batch
file?

I don't have a good test setup without java installed, otherwise I would
just do this myself.

Rick

-Original Message-
From: Daniel Noll [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 18, 2006 5:20 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: use java from server

Rick Roen wrote:
 Can I tell fop to use the server version of java, or does it have to be 
 installed on each client?

Assuming you're running it from a batch file, you could trivially modify 
the batch file to point at another location.

Daniel


-- 



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



Re: resolution on PS files

2006-05-19 Thread Jeremias Maerki
This is quickly becoming very off-topic for this list!

On 19.05.2006 13:43:49 Camilakill wrote:
 
 Thank you!!!
 Its going to be a much better solution for my app.
 
 I am trying to use it in my code, but the scanner is not being able to read
 the barcode.

Again, I can't help you much with that. It's certainly not a bug in
either Barcode4J or the PSDocumentGraphics2D. It's about the way you set
up the output format, the barcode parameter, font sizes etc. and it
depends on the printer resolution.

 How do I change the position that I want to print the barcode? 

You should read http://barcode4j.krysalis.org/embedding.html#Java2D+%28AWT%29.
It tells you that you have to set up a transformation matrix so 1 unit
is equivalent to 1mm. Then you can translate the coordinate system
origin to whereever you want. Java2DCanvasProvider will start painting
at (0,0).

If the Java2D approach is ok for you, fine. My suggestion tended towards
using the EPSCanvasProvider but it's your call.

 I believe the begining of the barcode is being cut.
  
 my code is as bellow:
 
 OutputStream out = new java.io.FileOutputStream(new File(targetDir,
 ps-barcode.ps));
 out = new java.io.BufferedOutputStream(out);
 
 PSDocumentGraphics2D g2d = new PSDocumentGraphics2D(false);
 g2d.setGraphicContext(new org.apache.xmlgraphics.java2d.GraphicContext());
 
 g2d.setupDocument(out, 615, 315); 
 
 Code39Bean bean = new Code39Bean();
 
 final int dpi = 20;
 bean.setModuleWidth(UnitConv.in2mm(1.0f / dpi)); 
 bean.setWideFactor(3);
 bean.doQuietZone(false);
 bean.setHeight(50.0);
 
 Java2DCanvasProvider canvasJava2d = new Java2DCanvasProvider(g2d);
 
 bean.generateBarcode(canvasJava2d, FL999078);


Jeremias Maerki


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



Re: Problem with Big Documents

2006-05-19 Thread Jeremias Maerki
First, you have to find out if XSLT or FOP is the reason for the problem.
You're talking about recursive template calls which could easily explain
it. I'd run the document outside of the application server and split the
XSLT stage from the FOP stage. Like this you can easily find out where
to start looking. Good hunting!

On 19.05.2006 10:52:27 sumanta.g wrote:
 Hi,
  We are having an online insurance applications where documents are 
 getting rendered on-the-fly (by applying xsl-fo over xml). In one of our 
 xsls we had to use recursive template calls (e.g. printing employee 
 details). But whenever user tries to render (therby invoking 
 transformation) on large document, the Heap size is reaching to its 
 maximum - the whole system is slowing down (we are running the system on 
 websphere in I-Series box). Our doubt is - fop is going in some kind of 
 wild loop, in case of such big documents, and therby consuming huge 
 memory, affecting the whole system.
 
 How can we get rid of these - at least doesnot go into an infinite loop, 
 even if it cannot render the document.



Jeremias Maerki


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



Re: span=all in last page sequence is dropping second last page from PDF

2006-05-19 Thread Jeremias Maerki
Column balancing is known to have some oddities. page-position=last is
pretty new so it may well be that there are some problems left. An FO
file demonstrating the problem would be welcome.

On 19.05.2006 14:18:50 Adam Davies wrote:
 Hi everybody, Need some help or may have found a bug
 I have a complex page sequence below. I'm using the current FOP Trunk release 
 BTW.  Some background setup info:
  fo:page-sequence-master master-name=contents 
  fo:repeatable-page-master-alternatives
   
   fo:conditional-page-master-reference
master-reference=leftPage
odd-or-even=even
page-position=first/
   
   fo:conditional-page-master-reference 
 
master-reference=rightPage
odd-or-even=odd
page-position=first /
   
   fo:conditional-page-master-reference
master-reference=leftPage 
odd-or-even=even
page-position=rest/
   
   fo:conditional-page-master-reference 
master-reference=rightPage 
odd-or-even=odd
page-position=rest 
 /
   
   fo:conditional-page-master-reference 
master-reference=lastLeftPage
page-position=last
odd-or-even=even/
   
   fo:conditional-page-master-reference 
master-reference=lastRightPage 
page-position=last
odd-or-even=odd/
   
  /fo:repeatable-page-master-alternatives
 /fo:page-sequence-master
 
 with a sample of the page: most a like this one
  fo:simple-page-master master-name=rightPage
  page-height=297mm
  page-width=210mm
  margin-top=20mm
  margin-bottom=59mm
  margin-left=25mm
  margin-right=59mm
  fo:region-body
   column-count=2 
   column-gap=5mm
   margin-top=9mm
   margin-bottom=10mm /
  fo:region-before region-name=rightHeader extent=10mm /
  fo:region-after 
 display-align=after region-name=rightFooter extent=5mm /
 /fo:simple-page-master
 last page has a bigger footer due to extra info, see
 fo:simple-page-master master-name=lastRightPage
  page-height=297mm
  page-width=210mm
  margin-top=20mm
  margin-bottom=59mm
  margin-left=25mm
  margin-right=59mm
  
  fo:region-body 
   column-count=2 
   column-gap=5mm
   margin-top=9mm
   margin-bottom=95mm/
  fo:region-before region-name=rightHeader extent=10mm 
 /
  fo:region-after display-align=after region-name=lastRightFooter 
 extent=95mm /
 /fo:simple-page-master
 
 As you can see I'm using two columns. The problem I'm getting is that
 the content stops flowing to the last page area when a fo:block
 span=allXXX/fo:block is to appear last in the fo:flow. Soemtimes
 the last page displays with XXX at the top if its the last block. The
 main issue is that the second last page data is missing altogther.  The
 second last page that renders is really the 3rd last. If I remove the
 span block it work fine. I can render with XSL Formatter V3.4 Trial fine. 
 Also towards the last 4 or so pages the column balance does a poor job.
 Sometimes the first column is full to the bottom of the page and second
 is emty. At the bottom of the page is a fo:block span = all for a new
 title. I'm producing documents in the range of 20-40 pages long.
 Is this a known problem? I'll also see if I can put together a sample
 file as the content is confidential.
 Regards
 Adam


Jeremias Maerki


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