hello, i use itext and is excelent. i can generate a pdf with image, and table, ut i can use the fonts, i dont kwon why? because i copy the folder "com" and all librery funtion good. And the folder pdf/fonts exist with all font *.afm.
 
the error is this:
 
Times-Italic not found as resource. (The *.afm files must exist as resources in the package com.lowagie.text.pdf.fonts)
Times-Italic not found as resource. (The *.afm files must exist as resources in the package com.lowagie.text.pdf.fonts)
ExceptionConverter: com.lowagie.text.DocumentException: Times-Italic not found as resource. (The *.afm files must exist as resources in the package com.lowagie.text.pdf.fonts)
 at com.lowagie.text.pdf.Type1Font.<init>(Type1Font.java:187)
 at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:372)
 at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:325)
 at com.lowagie.text.FontFactory.getFont(FontFactory.java:228)
 at com.lowagie.text.FontFactory.getFont(FontFactory.java:448)
 at simbiosis.SFormatoAlmacenPDF.<init>(SFormatoAlmacenPDF.java:148)
 at simbiosis.SFormatoAlmacenConstructor.GetFormato(SFormatoAlmacenConstructor.java:32)
 at simbiosis.SAplicacion.NuevoFormatoAlmacen(SAplicacion.java:119)
 at simbiosis.SAplicacion.CreaAgregaFormatoAlmacen(SAplicacion.java:109)
 at simbiosis.SAplicacion.HandleGuardar(SAplicacion.java:93)
 at simbiosis.SFormatoAlmacenSeleccionar.<init>(SFormatoAlmacenSeleccionar.java:36)
 at simbiosis.SAplicacion.HandleGuardarComo(SAplicacion.java:101)
 at simbiosis.SMainFrame.subMenusubMenuArchivoGuardarComo_actionPerformed(SMainFrame.java:921)
 at simbiosis.SMainFrame$7.actionPerformed(SMainFrame.java:349)
 at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
 at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
 at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
 at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
 at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
 at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
 at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
 at java.awt.Component.processMouseEvent(Component.java:5093)
 at java.awt.Component.processEvent(Component.java:4890)
 at java.awt.Container.processEvent(Container.java:1566)
 at java.awt.Component.dispatchEventImpl(Component.java:3598)
 at java.awt.Container.dispatchEventImpl(Container.java:1623)
 at java.awt.Component.dispatchEvent(Component.java:3439)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
 at java.awt.Container.dispatchEventImpl(Container.java:1609)
 at java.awt.Window.dispatchEventImpl(Window.java:1585)
 at java.awt.Component.dispatchEvent(Component.java:3439)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
 at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
 
please if you can resolve my problem thanks

Reply via email to