Package Details: pdfsam 6.0.4-1

Git Clone URL: https://aur.archlinux.org/pdfsam.git (read-only, click to copy)
Package Base: pdfsam
Description: A free open source tool to split and merge pdf documents
Upstream URL: https://www.pdfsam.org/
Licenses: AGPL3
Submitter: ainola
Maintainer: ChaosKid42 (ChaosKid42)
Last Packager: ChaosKid42
Votes: 22
Popularity: 0.136056
First Submitted: 2021-02-25 08:17 (UTC)
Last Updated: 2026-07-12 08:29 (UTC)

Dependencies (7)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

marco.righi commented on 2023-12-28 08:55 (UTC)

pdfsam does not start. Any ideas?

The packages:

pacman -Qs |grep pdfsam

local/pdfsam 5.2.0-1
pacman -Qs |grep java

local/archlinux-java-run 10-1
    Eclipse java bytecode compiler
local/java-avalon-framework 4.2.0-9
local/java-batik 1.17-1
local/java-commons-io 2.14.0-1
local/java-commons-lang 3.13.0-1
    A host of helper utilities for the java.lang API
local/java-commons-logging 1.2-3
local/java-environment-common 3-5
local/java-openjdk-bin 21.0.1.u12-1
local/java-openjfx 21.0.1.u6-1
local/java-qdox 2.0.3-1
local/java-runtime-common 3-5
local/java-skinlf 6.7-5
local/java-xmlgraphics-commons 2.9-1
local/java11-openjfx 11.0.20.u1-1

The environment

echo $DISPLAY
:0.0

The OS:

OS: Manjaro Linux x86_64 
Kernel: 6.1.69-1-MANJARO
DE: Xfce 4.18
WM: Xfwm4

The error:

INFO 09:47:54.062 org.pdfsam.gui.PdfsamApp.init [JavaFX-Launcher] Starting...
INFO 09:47:54.372 org.sejda.core.context.DefaultSejdaConfiguration.<init> [JavaFX Application Thread] Configuring Sejda 5.0.11
Exception in Application start method
INFO 09:47:55.825 org.pdfsam.gui.PdfsamApp.stop [JavaFX Application Thread] Chiusura PDFsam...
ERROR 09:47:56.205 org.pdfsam.gui.UncaughtExceptionLogger.uncaughtException [main] Unexpected error: java.lang.RuntimeException: Exception in Application start method
    at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:893)
    at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
    at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.awt.HeadlessException: 
No X11 DISPLAY variable was set,
or no headful library support was found,
but this program performed an operation which requires it,

    at java.desktop/java.awt.SplashScreen.getSplashScreen(Unknown Source)
    at org.pdfsam.gui@5.2.0/org.pdfsam.gui.PdfsamApp.closeSplash(PdfsamApp.java:159)
    at org.pdfsam.gui@5.2.0/org.pdfsam.gui.PdfsamApp.start(PdfsamApp.java:132)
    at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:839)
    at javafx.graphics@21.0.1/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:483)
    at javafx.graphics@21.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
    at java.base/java.security.AccessController.doPrivileged(Unknown Source)
    at javafx.graphics@21.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
    at javafx.graphics@21.0.1/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at javafx.graphics@21.0.1/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    at javafx.graphics@21.0.1/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$10(GtkApplication.java:263)
    ... 1 morejava.lang.RuntimeException: Exception in Application start method
    at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:893)
    at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
    at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.awt.HeadlessException: 
No X11 DISPLAY variable was set,
or no headful library support was found,
but this program performed an operation which requires it,

    at java.desktop/java.awt.SplashScreen.getSplashScreen(Unknown Source)
    at org.pdfsam.gui@5.2.0/org.pdfsam.gui.PdfsamApp.closeSplash(PdfsamApp.java:159)
    at org.pdfsam.gui@5.2.0/org.pdfsam.gui.PdfsamApp.start(PdfsamApp.java:132)
    at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:839)
    at javafx.graphics@21.0.1/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:483)
    at javafx.graphics@21.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
    at java.base/java.security.AccessController.doPrivileged(Unknown Source)
    at javafx.graphics@21.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
    at javafx.graphics@21.0.1/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at javafx.graphics@21.0.1/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    at javafx.graphics@21.0.1/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$10(GtkApplication.java:263)
    ... 1 more

Thanks in advance

GarthPS commented on 2023-10-31 13:38 (UTC)

nope

luuuciano commented on 2023-10-31 13:32 (UTC)

@GarthPS have you edited the pdfsam file too?

GarthPS commented on 2023-10-31 10:55 (UTC) (edited on 2023-10-31 10:56 (UTC) by GarthPS)

edited the PKGBUILD to put only >20 but now

:~$ pdfsam

No suitable JVM found.

Available: java-21-openjdk

Default: java-21-openjdk

Min. required: 20

Max. required: 20

Package required:

Candidates:

Features required:

luuuciano commented on 2023-10-16 03:12 (UTC)

I am using java-21-openjdk and it worked... I was able to extract pages from a pdf for example

(I had to edit the PKGBUILD and pdfsam to put only >20)

ChaosKid42 commented on 2023-09-25 13:30 (UTC)

I had to reintroduce the hard dependency on java 20 because otherwise it won't do its job (try for example to extract pages from a pdf-file). You can e.g. use jdk-temurin or amazon-corretto-20-bin from the AUR in order to use a recent jdk-20.

ChaosKid42 commented on 2023-09-25 12:01 (UTC)

@ronjouch @xiota

Glad to hear the new version works. Regarding building it from source: I won't change that nor will I rename the package to pdfsam-bin. The AUR submission guidelines (https://wiki.archlinux.org/title/AUR_submission_guidelines) clearly state that there is no obligation of using the -bin suffix for java packages even if prebuilt deliverables are used and the sources are available:

Packages that use prebuilt deliverables, when the sources are available, must use the -bin suffix. An exception to this is with Java.

ronjouch commented on 2023-09-25 11:41 (UTC)

@maintainer thanks for the PKGBUILD update! Works for me on java21.

Regarding @xiota's suggestion "Because pdfsam source is available, this package should be revised to build from source" ... @maintainer if you do so, please keep the binary version as pdfsam-bin: some users (including me) prefer "from binary" packages for build convenience / speed.