[
https://issues.apache.org/jira/browse/PDFBOX-5169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17332698#comment-17332698
]
Jakov Vežić commented on PDFBOX-5169:
-------------------------------------
How would I go about doing this in 3.0 CLI? I can't find documentation for the
new CLI and just running
java -jar pdfbox-app-3.0.0-RC1.jar
gives
{code:java}
Exception in thread "main" java.lang.ExceptionInInitializerError
at
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.lang.Class.newInstance(Class.java:584)
at picocli.CommandLine$DefaultFactory.create(CommandLine.java:5486)
at picocli.CommandLine$DefaultFactory.create(CommandLine.java:5512)
at
picocli.CommandLine$Model$CommandUserObject.getInstance(CommandLine.java:11813)
at
picocli.CommandLine$Model$CommandUserObject.get(CommandLine.java:11838)
at picocli.CommandLine$Model$FieldBinding.set(CommandLine.java:11661)
at
picocli.CommandLine$Model$CommandReflection.initFromAnnotatedTypedMembers(CommandLine.java:11532)
at
picocli.CommandLine$Model$CommandReflection.initFromAnnotatedFields(CommandLine.java:11466)
at
picocli.CommandLine$Model$CommandReflection.extractCommandSpec(CommandLine.java:11399)
at
picocli.CommandLine$Model$CommandSpec.forAnnotatedObject(CommandLine.java:6202)
at picocli.CommandLine.<init>(CommandLine.java:227)
at picocli.CommandLine.toCommandLine(CommandLine.java:3517)
at picocli.CommandLine.addSubcommand(CommandLine.java:373)
at picocli.CommandLine.addSubcommand(CommandLine.java:354)
at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:51)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which
requires it.
at
java.desktop/sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(HeadlessToolkit.java:135)
at org.apache.pdfbox.debugger.PDFDebugger.<clinit>(PDFDebugger.java:154)
... 19 more
{code}
with Java 11.
> PDFMerger produces overly large output PDF
> ------------------------------------------
>
> Key: PDFBOX-5169
> URL: https://issues.apache.org/jira/browse/PDFBOX-5169
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.22, 2.0.23
> Environment: Debian 10
> Reporter: Jakov Vežić
> Priority: Minor
>
> Using PDFMerger to combine
> [https://www.dropbox.com/s/kprk7aeggni420c/1.pdf?dl=1]
> with
> [https://www.dropbox.com/s/0h8bced4tm3gppz/2.pdf?dl=1]
> results in an overly large file. The two input files are 1,25 MB and 16,3 MB
> large, while the output file is just over 400 MB large. The action also
> consumes about 1 GB of memory. No errors are produced during the merge that I
> can tell.
> The command is:
> {code:java}
> java -Xmx2500M -jar pdfbox-app-2.0.23.jar PDFMerger 1.pdf 2.pdf output.pdf
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]