Page 1 of 1

Setting "PP_APACHEFOP_DISABLE_PAGEBREAK_LIST_ITEM"

PostPosted: Tue Jul 21, 2015 7:42 pm
by dragonfly
Hi,

I'm pretty new to Word documents and PDF. More especially I just started experimenting with docx4j. I tried converting a docx into pdf (no manipulation in between) using the ConvertOutPDF-example.
On runtime I get the error
Code: Select all
org.docx4j.openpackaging.exceptions.Docx4JException: Exception exporting package; FOP https://issues.apache.org/bugzilla/show_bug.cgi?id=54094 .. try PP_APACHEFOP_DISABLE_PAGEBREAK_LIST_ITEM

... but where to set this property?

I tried creating a HashSet "features" and called
Code: Select all
wordMLPackage = Preprocess.process(wordMLPackage, features);

but nothing changed. I have no clue where to try next.

The only post I found mentioning this was here. Essentially this is what I'm aiming at even with the slightly different spacings etc since those are not of high priority for me now.

Can you point me in the right direction?

Re: Setting "PP_APACHEFOP_DISABLE_PAGEBREAK_LIST_ITEM"

PostPosted: Fri Jul 24, 2015 7:02 pm
by jason
Your FOSettings object has

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
public Set<String> getFeatures()
 
Parsed in 0.014 seconds, using GeSHi 1.0.8.4


Its constructor:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
        public FOSettings() {
                super();
                addFeatures(ConversionFeatures.DEFAULT_PDF_FEATURES);
        }
 
Parsed in 0.013 seconds, using GeSHi 1.0.8.4

Re: Setting "PP_APACHEFOP_DISABLE_PAGEBREAK_LIST_ITEM"

PostPosted: Fri Aug 14, 2015 7:11 pm
by dragonfly
A little late, but still: Thank you! Got it to work.