voyent
Set Reader to Facing Page View Non-continuous  XML
Forum Index -> ICEpdf General
Author Message
mkuroll

Joined: 28/Nov/2017 02:39:40
Messages: 2
Offline


Hi!
I use Icepdf reader in Javafx.
How can i set the default viewmode to Facing Page View Non-continuous?

Thanks in Advance!
Mike
patrick.corless

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




Here is the code you need. However some documents specify the view type as well and will override this value.

Code:
 SwingViewBuilder factory = new SwingViewBuilder(controller, properties,
                         null, false, SwingViewBuilder.TOOL_BAR_STYLE_FIXED, null,
                         DocumentViewControllerImpl.TWO_PAGE_LEFT_VIEW,
                         DocumentViewController.PAGE_FIT_WINDOW_HEIGHT);


Any chance you can give me some feedback on your JavaFX project development? Is this a new project you are building using JavaFX or porting an existing Swing/AWT application? Does the Swing Component hinder you at all? Would you like to see a JavaFX ICEpdf Viewer RI?
[Email]
mkuroll

Joined: 28/Nov/2017 02:39:40
Messages: 2
Offline


patrick.corless wrote:


Here is the code you need. However some documents specify the view type as well and will override this value.

Code:
 SwingViewBuilder factory = new SwingViewBuilder(controller, properties,
                         null, false, SwingViewBuilder.TOOL_BAR_STYLE_FIXED, null,
                         DocumentViewControllerImpl.TWO_PAGE_LEFT_VIEW,
                         DocumentViewController.PAGE_FIT_WINDOW_HEIGHT);

 


Thank you very much, works perfectly!

patrick.corless wrote:

Any chance you can give me some feedback on your JavaFX project development? Is this a new project you are building using JavaFX or porting an existing Swing/AWT application? Does the Swing Component hinder you at all? Would you like to see a JavaFX ICEpdf Viewer RI?
 


It is a new and little project for a musician (friend of mine). The App only displays the music sheet (thats why i need icepdf) and plays the backing track to help him practice the new songs. Just a simple and small project.
The Swing Component didn`t hinder me at all. I had a few issues to get the dependencies working (couldn`t get jai_core via maven), but now everything works. Of course it would be easier to have a javafx PDF Viewer but for me in the context of such a small project this isn`t an issue at all.

Kind regards,
Mike
patrick.corless

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


Thanks for the feedback Mike.
[Email]
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team