Re: Rendering 12,000 pages

2010-03-01 Thread Miroslav Pukhalsky

Hello all,

On 01.03.2010 22:33, Gregory Buchenberger wrote:

I have a client that is creating up to 7,000 pages in a single page
sequence. The PDF's also contain images. They are allowing about
Xmx1500m for the JVM and it is working.
   
It depends... I have a client that is creating only 750 pages with 
images. But FOP gets 8 Gigs RAM during build - too many cross-links, 
page numbers and a few TOCs. OS is Gentoo Linux.


Job splitting is a good idea. You can make standalone application which 
makes a few small document parts and glues its after.


Regards,

Miroslav.

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



Re: fo:simple-page-master is missing child elements

2008-03-04 Thread Miroslav Pukhalsky

Hi there,

When I try to prform your FO file I have got error (FOP 0.93)

04.03.2008 10:21:07 org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException: 
org.apache.fop.fo.expr.PropertyException: Border and padding for region 
xsl-region-body must be '0' (See 6.4.13 in XSL 1.0).

at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:191)

-

javax.xml.transform.TransformerException: 
org.apache.fop.fo.expr.PropertyException: Border and padding for region 
xsl-region-body must be '0' (See 6.4.13 in XSL 1.0).
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)

at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:191)
Caused by: org.apache.fop.fo.expr.PropertyException: Border and padding 
for region xsl-region-body must be '0' (See 6.4.13 in XSL 1.0).

at org.apache.fop.fo.pagination.Region.bind(Region.java:89)
at org.apache.fop.fo.pagination.RegionBody.bind(RegionBody.java:56)
at org.apache.fop.fo.FObj.processNode(FObj.java:118)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:321)

at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)

... 4 more
-
org.apache.fop.fo.expr.PropertyException: Border and padding for region 
xsl-region-body must be '0' (See 6.4.13 in XSL 1.0).

at org.apache.fop.fo.pagination.Region.bind(Region.java:89)
at org.apache.fop.fo.pagination.RegionBody.bind(RegionBody.java:56)
at org.apache.fop.fo.FObj.processNode(FObj.java:118)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:321)

at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)

at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:191)


After killing border from the second fo:region-body I have got result 
PDF. May be it will help you?


Regards,

Miroslav.

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



Re: fo:simple-page-master is missing child elements

2008-03-04 Thread Miroslav Pukhalsky

Hi there,

Fournier,Danny [NCR] wrote:

@Miroslav Pukhalsky

I am using 0.94. Not sure if this makes any difference?

Sorry, but I do not know anything about it. I have not tried 0.94 
version yet. I love odd numbers :-)


As of your problem. I had resembling error (child element of 
fo:simple-page-master) when the fo:region-body was not first in the 
children set for fo:simple-page-master. Check it, may it will help.


Regards,

Miroslav.

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



Re: Error during make Open Type Font metric

2008-01-08 Thread Miroslav Pukhalsky

Hello mokeeffe,

mokeeffe wrote:

The other thing is - you should be able to get a copy of the .TTF version of
the font, in fact we happen to be using almost the same one
(HelveticaNeueLTStd) - and thus same issue as Miroslav, but this solve our
issue.


I was found someone who convert OTF fonts to TTF fonts for me (on 
Windows XP was used TransType utility from FontLab) and it was resolved 
my problem. After it I made font metrics (as described here 
http://xmlgraphics.apache.org/fop/0.93/fonts.html#truetype-metrics) and 
embed fonts into PDF.


Regards,

Miroslav.

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



Error during make Open Type Font metric

2007-12-14 Thread Miroslav Pukhalsky

Hi,

I try to make font metric for Open Type font Helvetica LT Standard Black
When I type the next command:

java org.apache.fop.fonts.apps.TTFReader -enc ansi 
HelveticaLTStd-Blk.otf HelveticaLTStd-Blk.xml


I have got the next error:
Parsing font...
Reading HelveticaLTStd-Blk.otf...
Number of glyphs in font: 253
Dirtab loca not found.
Error while building XML font metrics file.
java.io.IOException: 'loca' table not found, happens when the font file 
doesn't contain TrueType outlines (trying to read an OpenType CFF font 
maybe?)


Do I something wrong? I use FOP 0.93.

Regards,

Miroslav.

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



Re: Trouble with page header

2007-09-07 Thread Miroslav Pukhalsky

Hello Andreas,

Andreas L Delmelle wrote:

On Sep 4, 2007, at 12:07, Miroslav Pukhalsky wrote:

Hi


I have a trouble with page header.


Not sure if I follow, but I see a remote possibility for a solution, but 
it depends on whether the table /always/ starts its own page or not. :/


Maybe you can implement the caption as an fo:marker/fo:retrieve-marker 
pair. Include the marker only somewhere in the first row, so that for 
all but the first page, the reserved space in the page-header will be 
left empty, but still occupied by the header (?)



It's a long shot, but hope it helps.

It is not what I want. The table can start in ANY place on page. The 
page can contains more than one table or only table part or previous 
table tail and next table begin. And only when table starts from page 
begin I need to get my desired view.


fo:block top=-1.25pc relative-position=relative for construction 
block is not working. May be do I something wrong?


You're not doing anything wrong. IIC, relative-position is not 
implemented, yet.



It's a pity.

Regards,

Miroslav.

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



Trouble with page header

2007-09-04 Thread Miroslav Pukhalsky

Hi there!

I have a trouble with page header. I nee the next page header:
-- ---
!Some header text! ! !
-- ! picture !
   ! !
   ---
In the page body I have some set of that constructions:

LONG TABLE CAPTION
--
!  A large table which are generated durung  !
!  some pages (more than one)!
--

In the end PDF document I want to get next view for construction when 
this one starts from page top:

-- ---
!Some header text! ! !
-- ! picture !
LONG TABLE CAPTION ! !
   ---
--
!  A large table which are generated durung  !
!  some pages (more than one)!
--

and that view for continue table on the next page(s).
-- ---
!Some header text! ! !
-- ! picture !
   ! !
   ---
--
!  A large table which are generated durung  !
!  some pages (more than one)!
--

That costruction can start in the any place of page.

Is it possible with FOP 0.93?

I try to do page header height like Some header text block height. In 
this case picture overflows page header, but on the next page table 
header cover the picture.


fo:block top=-1.25pc relative-position=relative for construction 
block is not working. May be do I something wrong?


Regards

Miroslav.

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



Re: Problem with table margin-left property

2007-03-13 Thread Miroslav Pukhalsky

Hi Jeremias,
Jeremias Maerki wrote:

No bug. Miroslav, please set start-indent=0pt and end-indent=0pt on
the table-body. That should get it right. Note, this is a weirdness of
the FO spec, not in FOP (all described in the Wiki).


It's working! Thanks a lot!

Regards,

Miroslav.

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



Problem with table margin-left property

2007-03-12 Thread Miroslav Pukhalsky

Hi there,

I have next code:
fo:table table-layout=fixed width=100% margin-left=10mm

But in PDF I got 20mm left margin instead 10mm! May be it something 
wrong? I use FOP 0.93.


Regards,

Miroslav.

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



Re: Problem with table margin-left property

2007-03-12 Thread Miroslav Pukhalsky

Hi Andreas,

Andreas L Delmelle wrote:


Check the margin or indent on the parent (or ancestor) block.



Parent (or ancestor) block has no any indents.

But I tried resolve my in the another way:
xsl:template match=/
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
font-family=sans-serif font-size=6pt
fo:layout-master-set
fo:simple-page-master master-name=main
page-width=210mm
page-height=297mm
margin-top=5mm
margin-bottom=5mm
margin-left=5mm
margin-right=5mm
fo:region-body /
/fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-reference=main
fo:flow flow-name=xsl-region-body
fo:block margin-left=10mm
fo:block font-size=120% font-weight=bold
TEXT
/fo:block

fo:table table-layout=fixed width=100%
!-- skip body --
/fo:table
/fo:block
/fo:flow
/fo:page-sequence
/fo:root
/xsl:template

And text from block has margin 10 mm but table has margin 20 mm.

Regards,
Miroslav

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



Re: Problem with text flow

2007-02-25 Thread Miroslav Pukhalsky

Hi there!

Andreas L Delmelle wrote:
You would need to place the fo:external-graphic in an fo:float with 
float=start, IIC.


Unfortunately, this is not yet supported by any released FOP version. 
IIRC, there is a branch that contains a basic implementation for floats, 
but AFAIK this branch has not yet been merged back into the trunk.


No immediate workaround comes to mind.



I tried to use this feature, but got very sad result:
WARNING: fo:float is not yet implemented.


Have anyone other idea?

Miroslav

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



Re: Problem with alignment in page footer/header

2007-02-21 Thread Miroslav Pukhalsky

J.Pietschmann wrote:

Check the FAQ:
 http://xmlgraphics.apache.org/fop/faq.html#oddeven
The key is to use different region names for the headers
and footers on odd and even pages (you are almost there).

J.Pietschmann


Thanks! It's working!

Miroslav

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



Problem with alignment in page footer/header

2007-02-20 Thread Miroslav Pukhalsky

Hi there!

I have document with header and footer on every page. The header is 
expanded on page width. The footer has a little color square (10x15mm) 
with page number aligned inside this square. I need different alignment 
in footer and header for odd and even page. E.g. on odd page header text 
and page number square should be at right side of page and on even page 
- at left side of page. But I have not idea how to do this... Help please.


I done next:
fo:layout-master-set
fo:simple-page-master master-name=odd_page
  page-width=215.9mm
  page-height=276.23mm
  margin-top=0mm
  margin-bottom=0mm
  margin-left=0mm
  margin-right=0mm
fo:region-body margin-top=20mm
margin-bottom=20mm
margin-left=16mm
margin-right=81.9mm/
fo:region-before precedence=true extent=20mm/
fo:region-after precedence=true extent=10mm/
/fo:simple-page-master
fo:simple-page-master master-name=even_page
  page-width=215.9mm
  page-height=276.23mm
  margin-top=0mm
  margin-bottom=0mm
  margin-left=0mm
  margin-right=0mm
fo:region-body margin-top=20mm
margin-bottom=20mm
margin-left=81.9mm
margin-right=16mm/
fo:region-before precedence=true extent=20mm/
fo:region-after precedence=true extent=10mm/
/fo:simple-page-master

fo:page-sequence-master master-name=run
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference
master-reference=odd_page
odd-or-even=odd /
fo:conditional-page-master-reference
master-reference=even_page
odd-or-even=even /
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master
/fo:layout-master-set

fo:page-sequence master-reference=run
fo:static-content flow-name=xsl-region-before
fo:block font-size=11pt
  font-family=sans-serif
  font-weight=bold
  background-color=#781d7e
  color=#e6ddeb
  line-height=16pt
xsl:value-of select=upper-case(section/@name)/
/fo:block
/fo:static-content

fo:static-content flow-name=xsl-region-after
fo:block text-align=end
  font-size=10pt
  font-family=sans-serif
  background-color=#781d7e
  color=white
  line-height=26pt
fo:page-number/
/fo:block
/fo:static-content

fo:flow flow-name=xsl-region-body
xsl:apply-templates select=section/
/fo:flow
/fo:page-sequence

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



Re: Page footer problem

2005-05-05 Thread Miroslav Pukhalsky
Hi Eric!

Eric Chow wrote:
 
 Hello,
 
 I want to display a fo:block in the xsl-region-after, but it is not
 display in every page. It only need to display in the last page ! How
 can do this ???
 

I think, you should do something like this

fo:layout-master-set
fo:simple-page-master ... 
fo:region-after extent=1cm/
fo:region-body margin-bottom=1cm/
/fo:simple-page-master
/fo:layout-master-set

Miroslav

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