-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert to PDF silently #15
Comments
On a related note, is it possible to convert with an X server, such as inside a Docker container? I haven't tried it yet, but just curious if others have experience. |
I was able to get this to work using the Headless mode of Monocle, but the setup is a bit messy atm. First, I downloaded the Monocle jar from here: http://search.maven.org/#artifactdetails%7Corg.jfxtras%7Copenjfx-monocle%7C1.8.0_20%7Cjar Next, I put the jar into the Next, I added the following default JVM options to the
(I suppose we need to add these to the build.gradle file somewhere). Finally, I ran Ideally, we could wrap all this up into a simple You can find more information about monocle in the GitHub repository: https://github.com/TestFX/Monocle |
There is a documented way to get Monocle to work without messing with the jre/lib/ext folder on the jfxtras.org homepage (search for Monocle). However, when I tried to implement that, it caused the JVM to crash (using oracle64-1.8.0.45). A much simpler way, and perhaps the way we can document in the README in the short term) is to invoke the command that calls deck2pdf with
|
For the record, here's a gist that contains the code I was trying to use to implement a headless mode directly in deck2pdf. https://gist.github.com/mojavelinux/593f5a56381507bca46f Here are the settings for calling deck2pdf this way (from Gradle):
As I mentioned, though, this causes a JVM crash in my latest tests. |
Hi,
I'm currently using deck2pdf on Windows 8.1 to convert Deckjs slides to PDF, and it works great!
I was just wondering if there's a way to use deck2pdf silently, i.e. without displaying a JavaFX window. Is it possible?
Thanks!
Regards,
Thibault.
The text was updated successfully, but these errors were encountered: