
Enviado em 25/04/2019 - 16:07h
Estou desenvolvendo um tradutor de pdf em java para um trabalho da faculdade. Para abrir o pdf, estou utilizando como base o seguinte tópico: https://blog.samirhadzic.com/2017/02/09/show-pdf-in-your-application/#comment-8432public void initialize(URL location, ResourceBundle resources) {
try{
//webView = new WebView();
stage = new Stage();
stage.setTitle("Abrir");
fileChooser = new FileChooser();
FileChooser.ExtensionFilter extensionFilter = new FileChooser.ExtensionFilter("PDF files (*.pdf)", "*.pdf");
fileChooser.getExtensionFilters().add(extensionFilter);
engine = webView.getEngine();
//Change the path according to yours.
String url = getClass().getResource("resources/web/viewer.html").toExternalForm();
//We add our stylesheet.
engine.setUserStyleSheetLocation(getClass().getResource("web.css").toExternalForm());
engine.setJavaScriptEnabled(true);
//engine.loadContent("file:///home/joao/NetBeansProjects/AgrVaiArq/resources/web/viewer.html");
engine.load(url);
} catch (Exception exc){
System.out.println("Falha na inicialização de controlador FXML.");
System.out.println("Vamos ver: "+ exc.getMessage());
//exc.printStackTrace();
}
System.out.println("Inicialização de controlador concluída.");
}
Jogando Daikatana (Steam) com Patch 1.3 via Luxtorpeda no Linux
LazyDocker – Interface de Usuário em Tempo Real para o Docker
Instalando COSMIC no Linux Mint
Turbinando o Linux Mint: o poder das Nemo Actions
Inteligência Artificial no desenvolvimento de software: quando começar a usar?
O widget do Plasma 6 Área de Notificação
[Resolvido] Algo deu errado ao abrir seu perfil
Atalho no Linux Mint não aparece menu de troca de monitores (0)
Problemas com o "startx&... no Slackware (4)









