DO NOT REPLY [Bug 47311] [PATCH] Support for bleed, trim and crop box and scaling

2009-07-14 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47311





--- Comment #14 from Peter Coppens pc.subscripti...@gmail.com  2009-07-14 
05:07:06 PST ---
 
 Thanks for the updated patch. I tried to run the AWT renderer and it appears 
 to
 have been broken by the changes. The main window is opened but no document is
 displayed, and I get the following exception:
 Exception in thread AWT-EventQueue-0 java.awt.image.RasterFormatException: 
 (x
 + width) is outside raster
 at

Oops...that is not so good

 
 I'll investigate (but: do you really need this feature also for the AWT
 renderer? ;-) )
 
Actually 'only' for png output but both awt and png output probably originate
from the Java2DRenderer ?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 47311] [PATCH] Support for bleed, trim and crop box and scaling

2009-07-14 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47311





--- Comment #15 from Peter Coppens pc.subscripti...@gmail.com  2009-07-14 
08:25:06 PST ---
Created an attachment (id=23978)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23978)
Updated patch avoid awt issue

Another attempt (hopefully) not breaking awt renderer

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 47530] New: Problem with fo:wrapper inside block-container

2009-07-14 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47530

   Summary: Problem with fo:wrapper inside block-container
   Product: Fop
   Version: 0.94
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: fo tree
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: pablo.r...@gmail.com


While trying to create a PDF file using the attached fo file as source, I got
the followin error:

$ fop -fo tmpfo2.xml -pdf tmp.pdf

... removed output for brevity ...

java.lang.ClassCastException: org.apache.fop.layoutmgr.InlineKnuthSequence
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:166)
at org.apache.fop.cli.Main.main(Main.java:197)

-

java.lang.ClassCastException: org.apache.fop.layoutmgr.InlineKnuthSequence
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.wrapPositionElements(BlockStackingLayoutManager.java:1454)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.wrapPositionElements(BlockStackingLayoutManager.java:1439)
at
org.apache.fop.layoutmgr.BlockContainerLayoutManager$BlockContainerBreaker.getNextKnuthElements(BlockContainerLayoutManager.java:615)
at
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:551)
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:301)
at
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElements(BlockContainerLayoutManager.java:356)
at
org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:170)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGroup(TableContentLayoutManager.java:490)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:251)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:179)
at
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:243)
at
org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:170)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGroup(TableContentLayoutManager.java:490)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:251)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:179)
at
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:243)
at
org.apache.fop.layoutmgr.StaticContentLayoutManager$StaticContentBreaker.getNextKnuthElements(StaticContentLayoutManager.java:317)
at
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:551)
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:301)
at
org.apache.fop.layoutmgr.StaticContentLayoutManager.doLayout(StaticContentLayoutManager.java:239)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.layoutSideRegion(PageSequenceLayoutManager.java:407)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:415)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:146)
at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:233)
at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:145)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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 

DO NOT REPLY [Bug 47530] Problem with fo:wrapper inside block-container

2009-07-14 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47530





--- Comment #1 from Pablo Ruiz pablo.r...@gmail.com  2009-07-14 17:19:11 PST 
---
Created an attachment (id=23983)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23983)
Sample (but a bit complex) fo file to reproduce the problem..

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 47530] Problem with fo:wrapper inside block-container

2009-07-14 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47530





--- Comment #2 from Pablo Ruiz pablo.r...@gmail.com  2009-07-14 19:19:42 PST 
---
After a bit of work, I've managed to make a patch overcoming this bug.

See attached patch, and simplified fo file to reproduce the problem.

Greets.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 47530] Problem with fo:wrapper inside block-container

2009-07-14 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47530





--- Comment #3 from Pablo Ruiz pablo.r...@gmail.com  2009-07-14 19:20:32 PST 
---
Created an attachment (id=23984)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23984)
Simplified failing fo file.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 47530] Problem with fo:wrapper inside block-container

2009-07-14 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47530





--- Comment #4 from Pablo Ruiz pablo.r...@gmail.com  2009-07-14 19:21:41 PST 
---
Created an attachment (id=23985)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23985)
Patch fixing the problem..

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.