- Timestamp:
- 07/15/10 02:29:34 (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/samples/CreatePdf.java
r1144 r1167 51 51 boolean save = true; 52 52 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"; 56 54 //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";60 55 61 56 WordprocessingMLPackage wordMLPackage; … … 97 92 fontMapper.getFontMappings().put("Algerian", font); 98 93 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 123 97 org.docx4j.convert.out.pdf.PdfConversion c 124 98 // = new org.docx4j.convert.out.pdf.viaHTML.Conversion(wordMLPackage);
Note: See TracChangeset
for help on using the changeset viewer.
