voyent
Low quality on scanned documents  XML
Forum Index -> ICEpdf General Go to Page: Previous  1, 2
Author Message
blueblackbox

Joined: 27/Oct/2016 05:43:17
Messages: 18
Offline


Here are the preferences I set:

prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_ANNOTATION, Boolean.FALSE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_FIT, Boolean.TRUE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_ROTATE, Boolean.TRUE)
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_ZOOM, Boolean.TRUE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_PAGENAV, Boolean.TRUE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_TOOL, Boolean.TRUE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_UTILITY, Boolean.TRUE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_KEYBOARD_SHORTCUTS, Boolean.FALSE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_STATUSBAR, Boolean.TRUE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_STATUSBAR_STATUSLABEL, Boolean.FALSE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_STATUSBAR_VIEWMODE, Boolean.TRUE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_UTILITYPANE_ANNOTATION, Boolean.FALSE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_UTILITYPANE_BOOKMARKS, Boolean.FALSE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_UTILITYPANE_LAYERS, Boolean.FALSE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_UTILITYPANE_SEARCH, Boolean.TRUE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_UTILITYPANE_THUMBNAILS, Boolean.TRUE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_OPEN, Boolean.FALSE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_SAVE, Boolean.FALSE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_PRINT, Boolean.TRUE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_SEARCH, Boolean.TRUE);
prop.getPreferences().putBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_UPANE, Boolean.FALSE);
prop.getPreferences().putInt(PropertiesManager.PROPERTY_DEFAULT_PAGEFIT, DocumentViewController.PAGE_FIT_WINDOW_HEIGHT);
prop.getPreferences().put(PropertiesManager.PROPERTY_IMAGING_REFERENCE_TYPE, ImageReferenceFactory.ImageReference.BLURRED.toString());

System.getProperties().put("org.icepdf.core.views.background.color", colorString);
System.getProperties().put("org.icepdf.core.views.page.annotation.highlight.alpha", "0.0"); // remove visited links highlight box
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1974
Offline


I've made a very small change to org.icepdf.ri.common.views.AbstractPageViewComponent which I believe will fix the pixelated buffer you are seeing.

Any chance I can get you to update the file via SVN and try out the fix? I still can't reproduce it with my viewer component example.
[Email]
blueblackbox

Joined: 27/Oct/2016 05:43:17
Messages: 18
Offline


Hi Patrick,
Thank you for looking into it. I will try out with the current revision and test it. Although I think this is a minor issue.

On a side note, is there a tentative release date/month for 6.3.1? as it may slightly help us in planning.

Thanks.
blueblackbox

Joined: 27/Oct/2016 05:43:17
Messages: 18
Offline


Patrick - I had a chance to test the latest 6.3.1-SNAPSHOT revision (52378). But "PropertiesManager.PROPERTY_DEFAULT_PAGEFIT" doesn't seem to have any effect now. All documents now open in 100% zoom irrespective of the value. I am still using the same configuration mentioned above.

I am not sure if some property cache is overriding the value in my local machine. Could you help me identify is this is the case or are you also facing this? Here is also a dump of the preferences when I open the pdf.

Thanks.

 Filename Preferences_debug.xml [Disk] Download
 Description
 Filesize 9 Kbytes
 Downloaded:  368 time(s)

patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1974
Offline


I've been working with a supported client to try and fix the sticky properties introduced in 6.3. As part of PDF-1249 I've made some changes how the property manager should be used with respect to the SwingViewBuilder.

I'm sure I'll get some more flack on this issue but basically you'll need to revert you code to what it looked like pre 6.3:

Code:
prop.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_ANNOTATION, Boolean.FALSE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_FIT, Boolean.TRUE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_ROTATE, Boolean.TRUE)
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_ZOOM, Boolean.TRUE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_PAGENAV, Boolean.TRUE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_TOOL, Boolean.TRUE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_UTILITY, Boolean.TRUE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_KEYBOARD_SHORTCUTS, Boolean.FALSE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_STATUSBAR, Boolean.TRUE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_STATUSBAR_STATUSLABEL, Boolean.FALSE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_STATUSBAR_VIEWMODE, Boolean.TRUE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITYPANE_ANNOTATION, Boolean.FALSE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITYPANE_BOOKMARKS, Boolean.FALSE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITYPANE_LAYERS, Boolean.FALSE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITYPANE_SEARCH, Boolean.TRUE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITYPANE_THUMBNAILS, Boolean.TRUE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_OPEN, Boolean.FALSE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_SAVE, Boolean.FALSE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_PRINT, Boolean.TRUE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_SEARCH, Boolean.TRUE);
 prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_UPANE, Boolean.FALSE);
 prop.setInt(PropertiesManager.PROPERTY_DEFAULT_PAGEFIT, DocumentViewController.PAGE_FIT_WINDOW_HEIGHT);
 prop.set(PropertiesManager.PROPERTY_IMAGING_REFERENCE_TYPE, ImageReferenceFactory.ImageReference.BLURRED.toString());
 

[Email]
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1974
Offline


As for 6.3.1 shooting for the end of the month, hopefully sooner.
[Email]
 
Forum Index -> ICEpdf General Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.7ice © JForum Team