Could not find how to do it with qpdf or pdftk or even a gui tool.

Edit: Solution pdftk A=oldpdf.pdf cat A output newpdf.pdf This removes all metadata and also the attachments.

  • worfamerryman@beehaw.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I forget exactly what I did, but I think I used okukar. It showed the attachments then it just selected them all and copied them to the desktop.

    It might have been one of the web browsers, but I’m pretty sure it was okular as i couldn’t do it on windows.

    If you have a better solution, please let me know.

    • antihero@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      I am talking about removing them from pdf. For extracting them this works pdftk [pdf_file.pdf] unpack_files.

      • Fox@pawb.social
        link
        fedilink
        English
        arrow-up
        0
        arrow-down
        1
        ·
        1 year ago

        I’ve used LibreOffice Draw before to remove content from PDF files without reprinting