[ https://issues.apache.org/jira/browse/FOP-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17551442#comment-17551442 ]
Carsten Pfeiffer edited comment on FOP-1421 at 6/8/22 7:41 AM: --------------------------------------------------------------- We've been using [~adelme...@apache.org]'s patch with fop 1.0 for a long time already, but need to update to a current fop (2.7) due to batik updates. So I tried porting the old patch to a current fop and attached it as [^FOP-1421-2022-08-06.patch]. Bear in mind that my only insight into fop is porting this patch, so I don't really know what I'm doing. It (expectedly) breaks some testcases. So this is more a call for help, to resurrect this issue, than a solution. That said, it does work for me. It successfully generates our test-PDF of > 1400 pages, containing many tables with narrow columns where hard breaks are necessary. was (Author: carsten.pfeiffer): We've been using [~adelme...@apache.org]'s patch with fop 1.0 for a long time already, but need to update to a current fop (2.7) due to batik updates. So I tried porting the old patch to a current fop and attached it as [^FOP-1421-2022-08-06.patch]. Bear in mind that my only insight into fop is porting this patch, so I don't really know what I'm doing. It (expectedly) breaks some testcases. So this is more a call for help, to resurrect this issue, than a solution. That said, it does work for me. It successfully generates our test-PDF of > 1400 pages, containing many tables with narrow rows where hard breaks are necessary. > [PATCH] wrap-option="wrap" doesn't work > --------------------------------------- > > Key: FOP-1421 > URL: https://issues.apache.org/jira/browse/FOP-1421 > Project: FOP > Issue Type: Bug > Components: renderer/pdf > Affects Versions: 2.5 > Environment: Operating System: other > Platform: Other > Reporter: Wolfgang Flohr > Attachments: FOP-1421-2022-08-06.patch, Testcase_Result.pdf, > Testcase_Table.fo, Wrap_PDF.txt, b43474.fo, b43474.fo, bugzilla43474.patch, > bugzilla43474.patch, test.out.pdf, test.out.pdf, wrap-option.fo > > > Running the following FO example with version 0.93 and 0.94 will produce a PDF > document containing a table with some text. The text will not break as > expected > and violates the table boundary. > <?xml version="1.0" encoding="ISO-8859-1"?> > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <fo:layout-master-set> > <fo:simple-page-master page-width="21cm" page-height="29.7cm" > master-name="spm0"> > <fo:region-body region-name="region-body" > margin-bottom="1cm" > margin-top="1.5cm"/> > <fo:region-before region-name="header" > precedence="false" extent="4cm"/> > <fo:region-after region-name="footer" extent="1cm"/> > </fo:simple-page-master> > </fo:layout-master-set> > <fo:page-sequence master-reference="spm0"> > <fo:flow flow-name="region-body"> > <fo:block wrap-option="wrap" > padding-end="50pt" > padding-start="2pt" > space-before="6.0pt" > margin-right="60pt" > margin-left="28.35pt" > font-size="10.0pt" > font-family="Courier New, Courier" > color="black" > border-top-width="0.75pt" > border-top-style="double" > border-top-color="#D3D3D3" > border-right-width="0.75pt" > border-right-style="double" > border-right-color="#D3D3D3" > border-left-width="0.75pt" > border-left-style="double" > border-left-color="#D3D3D3" > border-bottom-width="0.75pt" > border-bottom-style="double" > border-bottom-color="#D3D3D3" > background-color="#D5DEE3"><object > classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="1" height="1" > align="baseline" > codebase="http://java.sun.comproductsplugin13textToMakeTheLineEvenBiggerThanItWasBeforejinstall13win32cab#Version=1,3,0,0" > name="xformsApplet"> > </fo:block> > </fo:flow> > </fo:page-sequence> > </fo:root> -- This message was sent by Atlassian Jira (v8.20.7#820007)