Ignore:
Timestamp:
07/15/10 02:29:34 (23 months ago)
Author:
jharrop
Message:

Remove iText dependency, which was used in PDF conversion via HTML or iText. These are now in docx4j-extras. If you are planning to use these, you'll also want to uncomment the BaseFont? stuff in PhysicalFonts?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/samples/CreatePdf.java

    r1144 r1167  
    5151                boolean save = true; 
    5252                 
    53 //              String inputfilepath = System.getProperty("user.dir") + "/sample-docs/sample-docx.xml"; 
    54 //              String inputfilepath = System.getProperty("user.dir")  
    55 //                      + "/sample-docs/test-docs/header-footer/header_first.xml";               
     53                String inputfilepath = System.getProperty("user.dir") + "/sample-docs/sample-docx.xml"; 
    5654                //String inputfilepath = System.getProperty("user.dir") + "/docs/Docx4j_GettingStarted.xml";             
    57 //              String inputfilepath = System.getProperty("user.dir")  
    58 //              + "/sample-docs/test-docs/endnotes.xml";                 
    59                 String inputfilepath = "C:\\Users\\jharrop\\workspace\\docx4j\\tmp\\TestDocmToPDFConversion.docm"; 
    6055                 
    6156                        WordprocessingMLPackage wordMLPackage; 
     
    9792                        fontMapper.getFontMappings().put("Algerian", font); 
    9893                         
    99                          
    100                         /* Choose which of the three methods you want to use... 
    101                          *  
    102                          * .. viaHTML uses the old docX2HTML.xslt and xhtmlrenderer,  
    103                          *    and supports numbering, images, 
    104                          *    and tables, but is pretty hard to understand 
    105                          *     
    106                          *    It is a trivial change to instead use  
    107                          *    HTMLExporterNG, but that should produce 
    108                          *    the same output as viaXSLFO, so we don't 
    109                          *    do that.  
    110                          *     
    111                          * .. viaXSLFO uses docx2fo.xslt and FOP.  It is 
    112                          *    coming along, with support for 
    113                          *    headers/footers, images and tables 
    114                          *     
    115                          * .. viaItext - for developers who don't like xslt 
    116                          *    at all! Or want to use iText's features.. 
    117                          *    Displays images, but as at 2009 03 19. 
    118                          *    doesn't try to scale them. 
    119                          *     
    120                          * Fonts should work pretty well via any of these 
    121                          * methods! 
    122                          */ 
     94                        // As of docx4j 2.5.0, only viaXSLFO is supported. 
     95                        // The viaIText and viaHTML source code can be found in src/docx4j-extras directory 
     96                         
    12397                        org.docx4j.convert.out.pdf.PdfConversion c  
    12498//                              = new org.docx4j.convert.out.pdf.viaHTML.Conversion(wordMLPackage); 
Note: See TracChangeset for help on using the changeset viewer.