@Override public String getName() { return getBaseFont(); }
/** * This will print out a message telling how to use this example. */ private void usage() { String[] std14 = getStandard14Names(); StringBuilder message = new StringBuilder(); message.append("Usage: jar -jar pdfbox-app-x.y.z.jar TextToPDF [options] <outputfile> <textfile>\n"); message.append("\nOptions:\n"); message.append(" -standardFont <name> : ").append(DEFAULT_FONT.getBaseFont()).append(" (default)\n"); for (String std14String : std14) { message.append(" ").append(std14String).append("\n"); } message.append(" -ttf <ttf file> : The TTF font to use.\n"); message.append(" -fontSize <fontSize> : default: ").append(DEFAULT_FONT_SIZE).append("\n"); message.append(" -pageSize <pageSize> : Letter (default)\n"); message.append(" Legal\n"); message.append(" A0\n"); message.append(" A1\n"); message.append(" A2\n"); message.append(" A3\n"); message.append(" A4\n"); message.append(" A5\n"); message.append(" A6\n"); message.append(" -landscape : sets orientation to landscape" ); System.err.println(message.toString()); System.exit(1); }
.getFontBoxFont(getBaseFont(), getFontDescriptor()); genericFont = mapping.getFont(); fontName = "?"; LOG.warn("Using fallback font " + fontName + " for base font " + getBaseFont());
.getFontBoxFont(getBaseFont(), fd); genericFont = mapping.getFont(); LOG.warn("Using fallback font " + genericFont.getName() + " for " + getBaseFont());
@Override public String getName() { return getBaseFont(); }
@Override public String getName() { return getBaseFont(); }
/** * This will print out a message telling how to use this example. */ private void usage() { String[] std14 = getStandard14Names(); StringBuilder message = new StringBuilder(); message.append("Usage: jar -jar pdfbox-app-x.y.z.jar TextToPDF [options] <outputfile> <textfile>\n"); message.append("\nOptions:\n"); message.append(" -standardFont <name> : ").append(DEFAULT_FONT.getBaseFont()).append(" (default)\n"); for (String std14String : std14) { message.append(" ").append(std14String).append("\n"); } message.append(" -ttf <ttf file> : The TTF font to use.\n"); message.append(" -fontSize <fontSize> : default: ").append(DEFAULT_FONT_SIZE).append("\n"); message.append(" -pageSize <pageSize> : Letter (default)\n"); message.append(" Legal\n"); message.append(" A0\n"); message.append(" A1\n"); message.append(" A2\n"); message.append(" A3\n"); message.append(" A4\n"); message.append(" A5\n"); message.append(" A6\n"); message.append(" -landscape : sets orientation to landscape" ); System.err.println(message.toString()); System.exit(1); }
.getFontBoxFont(getBaseFont(), getFontDescriptor()); genericFont = mapping.getFont(); LOG.warn("Using fallback font " + fontName + " for base font " + getBaseFont());
.getFontBoxFont(getBaseFont(), getFontDescriptor()); genericFont = mapping.getFont(); LOG.warn("Using fallback font " + fontName + " for base font " + getBaseFont());
.getFontBoxFont(getBaseFont(), fd); genericFont = mapping.getFont(); LOG.warn("Using fallback font " + genericFont.getName() + " for " + getBaseFont());
.getFontBoxFont(getBaseFont(), fd); genericFont = mapping.getFont(); LOG.warn("Using fallback font " + genericFont.getName() + " for " + getBaseFont());