@Test public void testGetPrintScaling() { assertEquals(PDViewerPreferences.PRINT_SCALING.None, ViewerPreferencesUtils.getPrintScaling(PdfPrintScaling.NONE)); assertEquals(PDViewerPreferences.PRINT_SCALING.AppDefault, ViewerPreferencesUtils.getPrintScaling(PdfPrintScaling.APP_DEFAULT)); }
public static PRINT_SCALING getPrintScaling(PdfPrintScaling scaling) { if (PdfPrintScaling.NONE.equals(scaling)) { return PDViewerPreferences.PRINT_SCALING.None; } return PDViewerPreferences.PRINT_SCALING.AppDefault; }
ViewerPreferencesUtils { public static PRINT_SCALING getPrintScaling(PdfPrintScaling scaling) { if (PdfPrintScaling.NONE.equals(scaling)) { return PDViewerPreferences.PRINT_SCALING.None; } return PDViewerPreferences.PRINT_SCALING.AppDefault; } }
ViewerPreferencesUtils { public static PRINT_SCALING getPrintScaling(PdfPrintScaling scaling) { if (PdfPrintScaling.NONE.equals(scaling)) { return PDViewerPreferences.PRINT_SCALING.None; } return PDViewerPreferences.PRINT_SCALING.AppDefault; } private  ViewerPreferencesUtils(); }
ViewerPreferencesUtils { public static PRINT_SCALING getPrintScaling(PdfPrintScaling scaling) { if (PdfPrintScaling.NONE.equals(scaling)) { return PDViewerPreferences.PRINT_SCALING.None; } return PDViewerPreferences.PRINT_SCALING.AppDefault; } private  ViewerPreferencesUtils(); static NON_FULL_SCREEN_PAGE_MODE getNFSMode(PdfNonFullScreenPageMode nfsMode); static PageMode getPageMode(PdfPageMode mode); static PageLayout getPageLayout(PdfPageLayout layout); static READING_DIRECTION getDirection(PdfDirection direction); static DUPLEX getDuplex(PdfDuplex duplex); static PRINT_SCALING getPrintScaling(PdfPrintScaling scaling); static void setBooleanPreferences(PDViewerPreferences preferences, Set<PdfBooleanPreference> enabled); }
ViewerPreferencesUtils { public static PRINT_SCALING getPrintScaling(PdfPrintScaling scaling) { if (PdfPrintScaling.NONE.equals(scaling)) { return PDViewerPreferences.PRINT_SCALING.None; } return PDViewerPreferences.PRINT_SCALING.AppDefault; } private  ViewerPreferencesUtils(); static NON_FULL_SCREEN_PAGE_MODE getNFSMode(PdfNonFullScreenPageMode nfsMode); static PageMode getPageMode(PdfPageMode mode); static PageLayout getPageLayout(PdfPageLayout layout); static READING_DIRECTION getDirection(PdfDirection direction); static DUPLEX getDuplex(PdfDuplex duplex); static PRINT_SCALING getPrintScaling(PdfPrintScaling scaling); static void setBooleanPreferences(PDViewerPreferences preferences, Set<PdfBooleanPreference> enabled);  }