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/fonts/PhysicalFonts.java

    r991 r1167  
    2020import org.docx4j.openpackaging.parts.WordprocessingML.ObfuscatedFontPart; 
    2121 
    22 import com.lowagie.text.pdf.BaseFont; 
     22//import com.lowagie.text.pdf.BaseFont; 
    2323 
    2424/** 
     
    272272                                         
    273273                                        log.debug(".. found"); 
    274                                          
    275                                         // We're only interested if this font supports UTF-8 encoding 
    276                                         // since otherwise iText can't use it (at least on a 
    277                                         // UTF8 encoded XHTML document)  
    278                                         try { 
    279                                             BaseFont bf = BaseFont.createFont(afm, 
    280                                                         BaseFont.IDENTITY_H,  
    281                                                                         BaseFont.NOT_EMBEDDED); 
    282                                                 } catch (java.io.UnsupportedEncodingException uee) { 
    283                                                         log.error(afm + " does not support UTF encoding, so ignoring"); 
    284                                                         continue; 
    285                                                 } catch (Exception e) { 
    286                                                         log.error(e); 
    287                                                         continue; 
    288                                                 } 
     274 
     275// Uncomment if you want to use the iText stuff in docx4j-extras                                         
     276//                                      // We're only interested if this font supports UTF-8 encoding 
     277//                                      // since otherwise iText can't use it (at least on a 
     278//                                      // UTF8 encoded XHTML document)  
     279//                                      try { 
     280//                                          BaseFont bf = BaseFont.createFont(afm, 
     281//                                                      BaseFont.IDENTITY_H,  
     282//                                                                      BaseFont.NOT_EMBEDDED); 
     283//                                              } catch (java.io.UnsupportedEncodingException uee) { 
     284//                                                      log.error(afm + " does not support UTF encoding, so ignoring"); 
     285//                                                      continue; 
     286//                                              } catch (Exception e) { 
     287//                                                      log.error(e); 
     288//                                                      continue; 
     289//                                              } 
    289290                                        pf = new PhysicalFont(triplet.getName(),fontInfo); 
    290291                                         
     
    298299                                        if (f.exists()) {                                
    299300                                                log.debug(".. found"); 
    300                                                 // We're only interested if this font supports UTF-8 encoding 
    301                                                 try { 
    302                                                     BaseFont bf = BaseFont.createFont(pfm, 
    303                                                                 BaseFont.IDENTITY_H,  
    304                                                                                 BaseFont.NOT_EMBEDDED); 
    305                                                         } catch (java.io.UnsupportedEncodingException uee) { 
    306                                                                 log.error(pfm + " does not support UTF encoding, so ignoring"); 
    307                                                                 continue; 
    308                                                         } catch (Exception e) { 
    309                                                                 log.error(e); 
    310                                                                 continue; 
    311                                                         } 
     301 
     302                                                // Uncomment if you want to use the iText stuff in docx4j-extras                                                                                         
     303//                                              // We're only interested if this font supports UTF-8 encoding 
     304//                                              try { 
     305//                                                  BaseFont bf = BaseFont.createFont(pfm, 
     306//                                                              BaseFont.IDENTITY_H,  
     307//                                                                              BaseFont.NOT_EMBEDDED); 
     308//                                                      } catch (java.io.UnsupportedEncodingException uee) { 
     309//                                                              log.error(pfm + " does not support UTF encoding, so ignoring"); 
     310//                                                              continue; 
     311//                                                      } catch (Exception e) { 
     312//                                                              log.error(e); 
     313//                                                              continue; 
     314//                                                      } 
    312315                                                pf = new PhysicalFont(triplet.getName(), fontInfo); 
    313316                                        } else { 
Note: See TracChangeset for help on using the changeset viewer.