Menu

#46 Error message on startup: pdftk can't use /tmp (again)

v1.0_(example)
closed
nobody
None
5
2021-02-19
2021-02-17
Jan
No

Upon starting gscan2pdf I get an error message about pdftk not being able to access /tmp.
The error is the same as in https://sourceforge.net/p/gscan2pdf/bugs/320/ but the fix does not work for me.
The line

<policy domain="coder" rights="none" pattern="PDF" />

is not present in /etc/ImageMagick-6/profile.xml or /etc/ImageMagick-7/profile.xml. I tried adding

<policy domain="coder" rights="read|write" pattern="PDF" />

but this did not help either.

1 Attachments

Discussion

  • Jeffrey Ratcliffe

    What does this return:

    convert rose: /tmp/rose.pdf
    pdftk /tmp/rose.pdf dump_data

    ?

     
  • Jan

    Jan - 2021-02-19

    convert gave no visual output.
    pdftk raised:
    ~~~
    Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=gasp
    InfoBegin
    Error: could not load a required library for this operation.
    java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringEscapeUtils
    Make sure that bcprov and commons-lang3 are installed and included in the
    classpath. See also https://gitlab.com/pdftk-java/pdftk/issues/2.
    No output created.
    ~~~
    So I checked and neither bcprov nor java-commons-lang have been installed on my system.

    I installed both packages and the error message has disappeared - thanks for pointing me in the right direction!

    I checked the pdftk package for Arch linux and both packages are listed as optional dependencies only. Should those packages be added as mandatory to pdftk or to the gscan2pdf package? What is your opinion on this?

     

    Last edit: Jan 2021-02-19
  • Jeffrey Ratcliffe

    Ticket moved from /p/gscan2pdf/bugs/377/

     
  • Jeffrey Ratcliffe

    It seems to me that those packages should be required for pdftk.

    Glad that got it working.

     
  • Jeffrey Ratcliffe

    • status: open --> closed
     

Log in to post a comment.

Auth0 Logo