Ignore:
Timestamp:
11/16/11 11:48:24 (6 months ago)
Author:
jharrop
Message:

Where section type is null, insert a new page sequence. It is not clear exactly how Word 2007 chooses whether to treat a section as continuous.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/convert/out/pdf/viaXSLFO/Conversion.java

    r1637 r1712  
    296296                                        Context.jcSectionModel); 
    297297 
     298                        log.debug(XmlUtils.marshaltoString(sections, false, Context.jcSectionModel)); 
     299                         
    298300                        if (settings == null) { 
    299301                                settings = new PdfSettings(); 
     
    401403                                        org.docx4j.wml.PPr ppr = ((org.docx4j.wml.P)o).getPPr(); 
    402404                                        if (ppr.getSectPr()!=null) { 
     405 
     406                                                // According to the ECMA-376 2ed, if type is not specified, read it as next page 
     407                                                // However Word 2007 sometimes treats it as continuous, and sometimes doesn't??                                          
    403408                                                 
    404                                                 if (ppr.getSectPr().getType()==null 
    405                                                                 || ( ppr.getSectPr().getType()!=null 
    406                                                                      && ppr.getSectPr().getType().getVal().equals("continuous"))) { 
     409                                                if ( ppr.getSectPr().getType()!=null 
     410                                                                     && ppr.getSectPr().getType().getVal().equals("continuous")) { 
    407411                                                        // If its continuous, don't add a section 
    408                                                         // According to the ECMA-376 2ed, if type is not specified, read it as next page 
    409                                                         // However Word 2007 treats it as continuous, so we do the same here. 
    410412                                                } else { 
    411413                                                        section = factory.createSectionsSection(); 
Note: See TracChangeset for help on using the changeset viewer.