Author: lehmi Date: Sun Dec 15 15:42:09 2019 New Revision: 1871597 URL: http://svn.apache.org/viewvc?rev=1871597&view=rev Log: PDFBOX-3709: remove deprecated methods
Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java?rev=1871597&r1=1871596&r2=1871597&view=diff ============================================================================== --- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java (original) +++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java Sun Dec 15 15:42:09 2019 @@ -517,33 +517,6 @@ public class TrueTypeFont implements Fon /** * Returns the best Unicode from the font (the most general). The PDF spec says that "The means * by which this is accomplished are implementation-dependent." - * - * @throws IOException if the font could not be read - * @deprecated Use {@link #getUnicodeCmapLookup()} instead - */ - @Deprecated - public CmapSubtable getUnicodeCmap() throws IOException - { - return getUnicodeCmap(true); - } - - /** - * Returns the best Unicode from the font (the most general). The PDF spec says that "The means - * by which this is accomplished are implementation-dependent." - * - * @param isStrict False if we allow falling back to any cmap, even if it's not Unicode. - * @throws IOException if the font could not be read, or there is no Unicode cmap - * @deprecated Use {@link #getUnicodeCmapLookup(boolean)} instead - */ - @Deprecated - public CmapSubtable getUnicodeCmap(boolean isStrict) throws IOException - { - return getUnicodeCmapImpl(isStrict); - } - - /** - * Returns the best Unicode from the font (the most general). The PDF spec says that "The means - * by which this is accomplished are implementation-dependent." * * The returned cmap will perform glyph substitution. * Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java?rev=1871597&r1=1871596&r2=1871597&view=diff ============================================================================== --- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java (original) +++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java Sun Dec 15 15:42:09 2019 @@ -103,33 +103,6 @@ public final class ImageIOUtil } /** - * Writes a buffered image to a file using the given image format. See - * {@link #writeImage(BufferedImage image, String formatName, - * OutputStream output, int dpi, float compressionQuality)} for more details. - * - * @param image the image to be written - * @param formatName the target format (ex. "png") which is also the suffix - * for the filename - * @param filename used to construct the filename for the individual image. - * The formatName parameter will be used as the suffix. - * @param dpi the resolution in dpi (dots per inch) to be used in metadata - * @return true if the image file was produced, false if there was an error. - * @throws IOException if an I/O error occurs - * @deprecated use - * {@link #writeImage(BufferedImage image, String filename, int dpi)}, which - * uses the full filename instead of just the prefix. - */ - @Deprecated - public static boolean writeImage(BufferedImage image, String formatName, String filename, - int dpi) throws IOException - { - try (OutputStream output = new BufferedOutputStream(new FileOutputStream(filename + "." + formatName))) - { - return writeImage(image, formatName, output, dpi); - } - } - - /** * Writes a buffered image to a file using the given image format. The compression is set for * maximum compression for PNG and maximum quality for all other file formats. See * {@link #writeImage(BufferedImage image, String formatName, OutputStream output, int dpi, float compressionQuality)}