Class IText

java.lang.Object
org.summerboot.jexpress.util.pdf.IText

public class IText extends Object
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Field Details

    • FONTS

      protected static final Map<String,com.itextpdf.kernel.font.PdfFont> FONTS
    • fontSet

      protected static com.itextpdf.layout.font.FontSet fontSet
  • Constructor Details

    • IText

      public IText()
  • Method Details

    • getFont

      public static com.itextpdf.kernel.font.PdfFont getFont(String name)
    • loadFonts

      public static com.itextpdf.layout.font.FontSet loadFonts(File fontDir) throws IOException
      Throws:
      IOException
    • buildDefaultAccessPermission

      public static com.itextpdf.kernel.pdf.WriterProperties buildDefaultAccessPermission(String userPwd, String ownerPwd)
    • buildDefaultAccessPermission

      public static com.itextpdf.kernel.pdf.WriterProperties buildDefaultAccessPermission(String userPwd, String ownerPwd, boolean isFullCompressionMode, com.itextpdf.kernel.pdf.PdfVersion version)
    • html2PDF

      public static byte[] html2PDF(String html, File baseDir, com.itextpdf.kernel.pdf.WriterProperties writerProperties) throws IOException
      Throws:
      IOException
    • writePDF

      public static byte[] writePDF(IText.Writer writer, Object dto) throws IOException
      Throws:
      IOException
    • buildPDF

      public static byte[] buildPDF(IText.Writer writer, Object dto, com.itextpdf.kernel.pdf.WriterProperties writerProperties) throws IOException
      Throws:
      IOException